WLR-6000.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. /dts-v1/;
  2. #include "rt3883.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "sitecom,wlr-6000", "ralink,rt3883-soc";
  7. model = "Sitecom WLR-6000";
  8. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. keys {
  15. compatible = "gpio-keys-polled";
  16. poll-interval = <20>;
  17. reset {
  18. label = "reset";
  19. gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
  20. linux,code = <KEY_RESTART>;
  21. };
  22. };
  23. leds {
  24. compatible = "gpio-leds";
  25. led_power: power {
  26. label = "wlr-6000:red:power";
  27. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  28. };
  29. ops {
  30. label = "wlr-6000:white:ops";
  31. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  32. };
  33. };
  34. gpio_export {
  35. compatible = "gpio-export";
  36. #size-cells = <0>;
  37. usb {
  38. gpio-export,name = "usb";
  39. gpio-export,output = <1>;
  40. gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
  41. };
  42. };
  43. };
  44. &gpio1 {
  45. status = "okay";
  46. };
  47. &pinctrl {
  48. state_default: pinctrl0 {
  49. gpio {
  50. ralink,group = "i2c", "jtag", "uartf";
  51. ralink,function = "gpio";
  52. };
  53. };
  54. };
  55. &ethernet {
  56. status = "okay";
  57. mtd-mac-address = <&factory 0x8004>;
  58. mtd-mac-address-increment = <1>;
  59. port@0 {
  60. phy-handle = <&phy0>;
  61. phy-mode = "rgmii";
  62. };
  63. mdio-bus {
  64. status = "okay";
  65. phy0: ethernet-phy@0 {
  66. reg = <0>;
  67. phy-mode = "rgmii";
  68. qca,ar8327-initvals = <
  69. 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
  70. 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
  71. 0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
  72. 0x50 0xc437c437 /* LED Control Register 0 */
  73. 0x54 0xc337c337 /* LED Control Register 1 */
  74. 0x58 0x00000000 /* LED Control Register 2 */
  75. 0x5c 0x03ffff00 /* LED Control Register 3 */
  76. 0x7c 0x0000007e /* PORT0_STATUS */
  77. 0x94 0x0000007e /* PORT6 STATUS */
  78. >;
  79. };
  80. };
  81. };
  82. &spi0 {
  83. status = "okay";
  84. m25p80@0 {
  85. compatible = "jedec,spi-nor";
  86. reg = <0>;
  87. spi-max-frequency = <8600000>;
  88. m25p,fast-read;
  89. partitions {
  90. compatible = "fixed-partitions";
  91. #address-cells = <1>;
  92. #size-cells = <1>;
  93. partition@0 {
  94. label = "u-boot";
  95. reg = <0x0 0x30000>;
  96. read-only;
  97. };
  98. partition@30000 {
  99. label = "u-boot-env";
  100. reg = <0x30000 0x10000>;
  101. read-only;
  102. };
  103. factory: partition@40000 {
  104. label = "factory";
  105. reg = <0x40000 0x10000>;
  106. read-only;
  107. };
  108. partition@50000 {
  109. compatible = "denx,uimage";
  110. label = "firmware";
  111. reg = <0x50000 0x713000>;
  112. };
  113. partition@763000 {
  114. label = "manufacture";
  115. reg = <0x763000 0x7D000>;
  116. read-only;
  117. };
  118. partition@7E0000 {
  119. label = "backup";
  120. reg = <0x7E0000 0x10000>;
  121. read-only;
  122. };
  123. partition@7F0000 {
  124. label = "storage";
  125. reg = <0x7F0000 0x10000>;
  126. read-only;
  127. };
  128. };
  129. };
  130. };
  131. &pci {
  132. status = "okay";
  133. };
  134. &pci1 {
  135. status = "okay";
  136. wifi@0,0 {
  137. compatible = "pci1814,3091";
  138. reg = <0x10000 0 0 0 0>;
  139. ralink,mtd-eeprom = <&factory 0x8000>;
  140. };
  141. };
  142. &wmac {
  143. status = "okay";
  144. ralink,2ghz = <0>;
  145. ralink,mtd-eeprom = <&factory 0x0>;
  146. };
  147. &ehci {
  148. status = "okay";
  149. };
  150. &ohci {
  151. status = "okay";
  152. };