BR-6475ND.dts 2.8 KB

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