BR-6475ND.dts 2.8 KB

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