BR-6475ND.dts 2.7 KB

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