Newifi-D1.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "Newifi-D1";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x0 0x10000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,115200";
  12. };
  13. gpio-leds {
  14. compatible = "gpio-leds";
  15. status-red {
  16. label = "newifi-d1:red:status";
  17. gpios = <&gpio0 14 1>;
  18. };
  19. status-green {
  20. label = "newifi-d1:green:status";
  21. gpios = <&gpio0 13 1>;
  22. };
  23. statys-blue {
  24. label = "newifi-d1:blue:status";
  25. gpios = <&gpio0 16 1>;
  26. };
  27. };
  28. gpio-keys-polled {
  29. compatible = "gpio-keys-polled";
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. poll-interval = <20>;
  33. reset {
  34. label = "reset";
  35. gpios = <&gpio0 15 1>;
  36. linux,code = <KEY_RESTART>;
  37. };
  38. };
  39. gpio_export {
  40. compatible = "gpio-export";
  41. #size-cells = <0>;
  42. usb2power {
  43. gpio-export,name = "usb2power";
  44. gpio-export,output = <1>;
  45. gpios = <&gpio0 9 0>;
  46. };
  47. usb3power {
  48. gpio-export,name = "usb3power";
  49. gpio-export,output = <1>;
  50. gpios = <&gpio0 11 0>;
  51. };
  52. };
  53. };
  54. &sdhci {
  55. status = "okay";
  56. pinctrl-names = "default";
  57. pinctrl-0 = <&sdhci_pins>;
  58. };
  59. &spi0 {
  60. status = "okay";
  61. m25p80@0 {
  62. #address-cells = <1>;
  63. #size-cells = <1>;
  64. compatible = "jedec,spi-nor";
  65. reg = <0>;
  66. spi-max-frequency = <10000000>;
  67. m25p,chunked-io = <32>;
  68. partition@0 {
  69. label = "u-boot";
  70. reg = <0x0 0x30000>;
  71. read-only;
  72. };
  73. partition@30000 {
  74. label = "u-boot-env";
  75. reg = <0x30000 0x10000>;
  76. read-only;
  77. };
  78. factory: partition@40000 {
  79. label = "factory";
  80. reg = <0x40000 0x10000>;
  81. read-only;
  82. };
  83. partition@50000 {
  84. label = "firmware";
  85. reg = <0x50000 0x2000000>;
  86. };
  87. };
  88. };
  89. &pcie {
  90. status = "okay";
  91. pcie0 {
  92. mt76@0,0 {
  93. reg = <0x0000 0 0 0 0>;
  94. device_type = "pci";
  95. mediatek,mtd-eeprom = <&factory 0x8000>;
  96. ieee80211-freq-limit = <5000000 6000000>;
  97. };
  98. };
  99. pcie1 {
  100. mt76@1,0 {
  101. reg = <0x0000 0 0 0 0>;
  102. device_type = "pci";
  103. mediatek,mtd-eeprom = <&factory 0x0000>;
  104. };
  105. };
  106. };
  107. &ethernet {
  108. mtd-mac-address = <&factory 0xe000>;
  109. };
  110. &pinctrl {
  111. state_default: pinctrl0 {
  112. gpio {
  113. ralink,group = "wdt", "rgmii2", "jtag", "uart2", "uart3", "i2c";
  114. ralink,function = "gpio";
  115. };
  116. };
  117. };