DGN3500.dtsi 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. #include "ar9.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. / {
  4. chosen {
  5. bootargs = "root= console=ttyLTQ0,115200";
  6. };
  7. aliases {
  8. led-boot = &power_green;
  9. led-failsafe = &power_red;
  10. led-running = &power_green;
  11. led-dsl = &dsl;
  12. led-internet = &internet;
  13. led-usb = &usb;
  14. led-wifi = &wifi;
  15. };
  16. memory@0 {
  17. reg = <0x0 0x4000000>;
  18. };
  19. fpi@10000000 {
  20. gpio: pinmux@E100B10 {
  21. pinctrl-names = "default";
  22. pinctrl-0 = <&state_default>;
  23. state_default: pinmux {
  24. exin {
  25. lantiq,groups = "exin1";
  26. lantiq,function = "exin";
  27. };
  28. pci {
  29. lantiq,groups = "gnt1", "req1";
  30. lantiq,function = "pci";
  31. };
  32. pci-in {
  33. lantiq,groups = "req1";
  34. lantiq,output = <0>;
  35. lantiq,open-drain = <1>;
  36. lantiq,pull = <2>;
  37. };
  38. pci-out {
  39. lantiq,groups = "gnt1";
  40. lantiq,output = <1>;
  41. lantiq,pull = <0>;
  42. };
  43. };
  44. pins_spi_default: pins_spi_default {
  45. spi_in {
  46. lantiq,groups = "spi_di";
  47. lantiq,function = "spi";
  48. };
  49. spi_out {
  50. lantiq,groups = "spi_do", "spi_clk",
  51. "spi_cs4";
  52. lantiq,function = "spi";
  53. lantiq,output = <1>;
  54. };
  55. };
  56. };
  57. etop@E180000 {
  58. phy-mode = "mii";
  59. };
  60. ifxhcd@E101000 {
  61. status = "okay";
  62. };
  63. };
  64. rtl8366rb {
  65. compatible = "rtl8366rb";
  66. gpio-sda = <&gpio 35 GPIO_ACTIVE_HIGH>;
  67. gpio-sck = <&gpio 37 GPIO_ACTIVE_HIGH>;
  68. };
  69. gpio-keys-polled {
  70. compatible = "gpio-keys-polled";
  71. #address-cells = <1>;
  72. #size-cells = <0>;
  73. poll-interval = <100>;
  74. rfkill {
  75. label = "rfkill";
  76. gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
  77. linux,code = <KEY_RFKILL>;
  78. };
  79. wps {
  80. label = "wps";
  81. gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
  82. linux,code = <KEY_WPS_BUTTON>;
  83. };
  84. reset {
  85. label = "reset";
  86. gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
  87. linux,code = <KEY_RESTART>;
  88. };
  89. };
  90. gpio-leds {
  91. compatible = "gpio-leds";
  92. internet: internet {
  93. label = "dgn3500:green:internet";
  94. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  95. };
  96. /*
  97. internet red is missing
  98. */
  99. dsl: dsl {
  100. label = "dgn3500:green:dsl";
  101. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  102. };
  103. usb: usb {
  104. label = "dgn3500:green:usb";
  105. gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
  106. };
  107. power_green: power {
  108. label = "dgn3500:green:power";
  109. gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
  110. default-state = "keep";
  111. };
  112. power_red: power2 {
  113. label = "dgn3500:red:power";
  114. gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
  115. };
  116. /*
  117. power amber is missing
  118. */
  119. wifi: wifi {
  120. label = "dgn3500:blue:wireless";
  121. gpios = <&gpio 51 GPIO_ACTIVE_LOW>;
  122. };
  123. wps {
  124. label = "dgn3500:green:wps";
  125. gpios = <&gpio 52 GPIO_ACTIVE_LOW>;
  126. };
  127. };
  128. };
  129. &pci0 {
  130. status = "okay";
  131. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  132. wifi@168c,0029 {
  133. compatible = "pci168c,0029";
  134. reg = <0x7000 0 0 0 0>;
  135. qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
  136. };
  137. };
  138. &spi {
  139. pinctrl-names = "default";
  140. pinctrl-0 = <&pins_spi_default>;
  141. status = "ok";
  142. m25p80@4 {
  143. #address-cells = <1>;
  144. #size-cells = <1>;
  145. compatible = "jedec,spi-nor";
  146. reg = <4 0>;
  147. spi-max-frequency = <20000000>;
  148. partitions {
  149. compatible = "fixed-partitions";
  150. #address-cells = <1>;
  151. #size-cells = <1>;
  152. partition@0 {
  153. reg = <0x0 0x10000>;
  154. label = "uboot";
  155. read-only;
  156. };
  157. partition@10000 {
  158. reg = <0x10000 0x10000>;
  159. label = "uboot-env";
  160. read-only;
  161. };
  162. ath9k_cal: partition@20000 {
  163. reg = <0x20000 0x10000>;
  164. label = "calibration";
  165. read-only;
  166. };
  167. partition@50000 {
  168. reg = <0x50000 0xfa0000>;
  169. label = "firmware";
  170. };
  171. };
  172. };
  173. };