BR-6475ND.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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,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. gpio-keys-polled {
  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. gpio-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. nor-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. reg = <0x00070000 0x00790000>;
  74. label = "firmware";
  75. };
  76. };
  77. };
  78. rtl8367 {
  79. compatible = "realtek,rtl8367";
  80. gpio-sda = <&gpio0 5 GPIO_ACTIVE_HIGH>;
  81. gpio-sck = <&gpio0 4 GPIO_ACTIVE_HIGH>;
  82. realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
  83. };
  84. /*
  85. * Unclear if this is the correct gpio setup; the USB ports are
  86. * unpopulated on a stock BR-6475nD, even though the hardware exists
  87. * and the headers are there.
  88. */
  89. /*
  90. gpio_export {
  91. compatible = "gpio-export";
  92. #size-cells = <0>;
  93. usb {
  94. gpio-export,name="usb";
  95. gpio-export,output=<0>;
  96. gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
  97. };
  98. };
  99. */
  100. };
  101. &pinctrl {
  102. state_default: pinctrl0 {
  103. gpio {
  104. ralink,group = "spi", "jtag", "uartf";
  105. ralink,function = "gpio";
  106. };
  107. };
  108. };
  109. &timer {
  110. status = "okay";
  111. };
  112. &gpio1 {
  113. status = "okay";
  114. };
  115. &uartlite {
  116. status = "okay";
  117. };
  118. &ethernet {
  119. status = "okay";
  120. mtd-mac-address = <&devdata 0x0d>;
  121. port@0 {
  122. mediatek,fixed-link = <1000 1 1 1>;
  123. };
  124. };
  125. &wmac {
  126. status = "okay";
  127. ralink,mtd-eeprom = <&factory 0>;
  128. };
  129. &pci {
  130. status = "okay";
  131. };
  132. &pci1 {
  133. status = "okay";
  134. wifi@0,0 {
  135. compatible = "pci0,0";
  136. reg = <0x10000 0 0 0 0>;
  137. ralink,5ghz = <0>;
  138. ralink,mtd-eeprom = <&factory 0x8000>;
  139. };
  140. };
  141. &ehci {
  142. status = "okay";
  143. };
  144. &ohci {
  145. status = "okay";
  146. };