1
0

PBR-M1.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "PBR-M1";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x0 0x10000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,115200";
  12. };
  13. palmbus: palmbus@1E000000 {
  14. i2c: i2c@900 {
  15. status = "okay";
  16. pcf8563: rtc@51 {
  17. status = "okay";
  18. compatible = "nxp,pcf8563";
  19. reg = <0x51>;
  20. };
  21. };
  22. };
  23. gpio-leds {
  24. compatible = "gpio-leds";
  25. power {
  26. label = "pbr-m1:blue:power";
  27. gpios = <&gpio0 31 1>;
  28. };
  29. sys {
  30. label = "pbr-m1:blue:sys";
  31. gpios = <&gpio1 0 1>;
  32. };
  33. internet {
  34. label = "pbr-m1:blue:internet";
  35. gpios = <&gpio0 29 1>;
  36. };
  37. wlan2g {
  38. label = "pbr-m1:blue:wlan2g";
  39. gpios = <&gpio1 1 1>;
  40. };
  41. wlan5g {
  42. label = "pbr-m1:blue:wlan5g";
  43. gpios = <&gpio0 28 1>;
  44. };
  45. };
  46. gpio-keys-polled {
  47. compatible = "gpio-keys-polled";
  48. #address-cells = <1>;
  49. #size-cells = <0>;
  50. poll-interval = <20>;
  51. reset {
  52. label = "reset";
  53. gpios = <&gpio0 18 1>;
  54. linux,code = <KEY_RESTART>;
  55. };
  56. };
  57. gpio_export {
  58. compatible = "gpio-export";
  59. #size-cells = <0>;
  60. power_usb2 {
  61. gpio-export,name = "power_usb2";
  62. gpio-export,output = <1>;
  63. gpios = <&gpio0 22 0>;
  64. };
  65. power_usb3 {
  66. gpio-export,name = "power_usb3";
  67. gpio-export,output = <1>;
  68. gpios = <&gpio0 25 0>;
  69. };
  70. power_sata {
  71. gpio-export,name = "power_sata";
  72. gpio-export,output = <1>;
  73. gpios = <&gpio0 27 0>;
  74. };
  75. };
  76. beeper: beeper {
  77. compatible = "gpio-beeper";
  78. gpios = <&gpio0 26 1>;
  79. };
  80. };
  81. &sdhci {
  82. status = "okay";
  83. pinctrl-names = "default";
  84. pinctrl-0 = <&sdhci_pins>;
  85. };
  86. &spi0 {
  87. status = "okay";
  88. m25p80@0 {
  89. #address-cells = <1>;
  90. #size-cells = <1>;
  91. compatible = "jedec,spi-nor";
  92. reg = <0>;
  93. spi-max-frequency = <10000000>;
  94. m25p,chunked-io = <32>;
  95. partition@0 {
  96. label = "u-boot";
  97. reg = <0x0 0x30000>;
  98. read-only;
  99. };
  100. partition@30000 {
  101. label = "u-boot-env";
  102. reg = <0x30000 0x10000>;
  103. read-only;
  104. };
  105. factory: partition@40000 {
  106. label = "factory";
  107. reg = <0x40000 0x10000>;
  108. read-only;
  109. };
  110. partition@50000 {
  111. label = "firmware";
  112. reg = <0x50000 0xfb0000>;
  113. };
  114. };
  115. };
  116. &pcie {
  117. status = "okay";
  118. pcie0 {
  119. mt76@0,0 {
  120. reg = <0x0000 0 0 0 0>;
  121. device_type = "pci";
  122. mediatek,mtd-eeprom = <&factory 0x8000>;
  123. mediatek,2ghz = <0>;
  124. };
  125. };
  126. pcie1 {
  127. mt76@1,0 {
  128. reg = <0x0000 0 0 0 0>;
  129. device_type = "pci";
  130. mediatek,mtd-eeprom = <&factory 0x0000>;
  131. mediatek,5ghz = <0>;
  132. };
  133. };
  134. };
  135. &ethernet {
  136. mtd-mac-address = <&factory 0xe000>;
  137. };
  138. &pinctrl {
  139. state_default: pinctrl0 {
  140. gpio {
  141. ralink,group = "wdt", "rgmii2", "jtag", "mdio";
  142. ralink,function = "gpio";
  143. };
  144. };
  145. };