rt3883_sitecom_wlr-6000.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. &state_default {
  48. gpio {
  49. ralink,group = "i2c", "jtag", "uartf";
  50. ralink,function = "gpio";
  51. };
  52. };
  53. &ethernet {
  54. status = "okay";
  55. mtd-mac-address = <&factory 0x8004>;
  56. mtd-mac-address-increment = <1>;
  57. port@0 {
  58. phy-handle = <&phy0>;
  59. phy-mode = "rgmii";
  60. };
  61. mdio-bus {
  62. status = "okay";
  63. phy0: ethernet-phy@0 {
  64. reg = <0>;
  65. phy-mode = "rgmii";
  66. qca,ar8327-initvals = <
  67. 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
  68. 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
  69. 0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
  70. 0x50 0xc437c437 /* LED Control Register 0 */
  71. 0x54 0xc337c337 /* LED Control Register 1 */
  72. 0x58 0x00000000 /* LED Control Register 2 */
  73. 0x5c 0x03ffff00 /* LED Control Register 3 */
  74. 0x7c 0x0000007e /* PORT0_STATUS */
  75. 0x94 0x0000007e /* PORT6 STATUS */
  76. >;
  77. };
  78. };
  79. };
  80. &spi0 {
  81. status = "okay";
  82. m25p80@0 {
  83. compatible = "jedec,spi-nor";
  84. reg = <0>;
  85. spi-max-frequency = <8600000>;
  86. m25p,fast-read;
  87. partitions {
  88. compatible = "fixed-partitions";
  89. #address-cells = <1>;
  90. #size-cells = <1>;
  91. partition@0 {
  92. label = "u-boot";
  93. reg = <0x0 0x30000>;
  94. read-only;
  95. };
  96. partition@30000 {
  97. label = "u-boot-env";
  98. reg = <0x30000 0x10000>;
  99. read-only;
  100. };
  101. factory: partition@40000 {
  102. label = "factory";
  103. reg = <0x40000 0x10000>;
  104. read-only;
  105. };
  106. partition@50000 {
  107. compatible = "denx,uimage";
  108. label = "firmware";
  109. reg = <0x50000 0x713000>;
  110. };
  111. partition@763000 {
  112. label = "manufacture";
  113. reg = <0x763000 0x7D000>;
  114. read-only;
  115. };
  116. partition@7E0000 {
  117. label = "backup";
  118. reg = <0x7E0000 0x10000>;
  119. read-only;
  120. };
  121. partition@7F0000 {
  122. label = "storage";
  123. reg = <0x7F0000 0x10000>;
  124. read-only;
  125. };
  126. };
  127. };
  128. };
  129. &pci {
  130. status = "okay";
  131. };
  132. &pci1 {
  133. status = "okay";
  134. wifi@0,0 {
  135. compatible = "pci1814,3091";
  136. reg = <0x10000 0 0 0 0>;
  137. ralink,mtd-eeprom = <&factory 0x8000>;
  138. };
  139. };
  140. &wmac {
  141. status = "okay";
  142. ralink,2ghz = <0>;
  143. ralink,mtd-eeprom = <&factory 0x0>;
  144. };
  145. &ehci {
  146. status = "okay";
  147. };
  148. &ohci {
  149. status = "okay";
  150. };