BR-6475ND.dts 2.9 KB

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