rt3662_edimax_br-6475nd.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. /dts-v1/;
  2. #include "rt3883.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "edimax,br-6475nd", "ralink,rt3662-soc", "ralink,rt3883-soc";
  7. model = "Edimax BR-6475nD";
  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 = <100>;
  17. reset {
  18. label = "reset";
  19. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  20. linux,code = <KEY_RESTART>;
  21. };
  22. rfkill {
  23. label = "rfkill";
  24. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  25. linux,input-type = <EV_SW>;
  26. linux,code = <KEY_RFKILL>;
  27. };
  28. };
  29. leds {
  30. compatible = "gpio-leds";
  31. led_power: power {
  32. label = "br-6475nd:green:power";
  33. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  34. };
  35. wlan {
  36. label = "br-6475nd:amber:wlan";
  37. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  38. };
  39. wlan_5ghz {
  40. label = "br-6475nd:amber:wlan_5ghz";
  41. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  42. };
  43. };
  44. flash@1c000000 {
  45. compatible = "cfi-flash";
  46. reg = <0x1c000000 0x800000>;
  47. bank-width = <2>;
  48. partitions {
  49. compatible = "fixed-partitions";
  50. #address-cells = <1>;
  51. #size-cells = <1>;
  52. partition@0 {
  53. reg = <0x00000000 0x00030000>;
  54. label = "u-boot";
  55. read-only;
  56. };
  57. partition@30000 {
  58. reg = <0x00030000 0x00010000>;
  59. label = "nvram";
  60. read-only;
  61. };
  62. factory: partition@40000 {
  63. reg = <0x00040000 0x00010000>;
  64. label = "factory";
  65. read-only;
  66. };
  67. devdata: partition@50000 {
  68. reg = <0x00050000 0x00020000>;
  69. label = "devdata";
  70. read-only;
  71. };
  72. partition@70000 {
  73. compatible = "edimax,uimage";
  74. reg = <0x00070000 0x00790000>;
  75. label = "firmware";
  76. };
  77. };
  78. };
  79. rtl8367 {
  80. compatible = "realtek,rtl8367";
  81. gpio-sda = <&gpio0 5 GPIO_ACTIVE_HIGH>;
  82. gpio-sck = <&gpio0 4 GPIO_ACTIVE_HIGH>;
  83. realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
  84. };
  85. /*
  86. * Unclear if this is the correct gpio setup; the USB ports are
  87. * unpopulated on a stock BR-6475nD, even though the hardware exists
  88. * and the headers are there.
  89. */
  90. /*
  91. gpio_export {
  92. compatible = "gpio-export";
  93. #size-cells = <0>;
  94. usb {
  95. gpio-export,name="usb";
  96. gpio-export,output=<0>;
  97. gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
  98. };
  99. };
  100. */
  101. };
  102. &state_default {
  103. gpio {
  104. groups = "spi", "jtag", "uartf";
  105. function = "gpio";
  106. };
  107. };
  108. &timer {
  109. status = "okay";
  110. };
  111. &gpio1 {
  112. status = "okay";
  113. };
  114. &uartlite {
  115. status = "okay";
  116. };
  117. &ethernet {
  118. status = "okay";
  119. mtd-mac-address = <&devdata 0xd>;
  120. port@0 {
  121. mediatek,fixed-link = <1000 1 1 1>;
  122. };
  123. };
  124. &wmac {
  125. status = "okay";
  126. ralink,mtd-eeprom = <&factory 0x0>;
  127. };
  128. &pci {
  129. status = "okay";
  130. };
  131. &pci1 {
  132. status = "okay";
  133. wifi@0,0 {
  134. compatible = "pci0,0";
  135. reg = <0x10000 0 0 0 0>;
  136. ralink,5ghz = <0>;
  137. ralink,mtd-eeprom = <&factory 0x8000>;
  138. };
  139. };
  140. &ehci {
  141. status = "okay";
  142. };
  143. &ohci {
  144. status = "okay";
  145. };