ARV7518PW.dts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. /dts-v1/;
  2. #include "danube.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "ARV7518PW - Astoria Networks";
  6. chosen {
  7. bootargs = "console=ttyLTQ0,115200";
  8. };
  9. aliases {
  10. led-boot = &power_green;
  11. led-failsafe = &power_red;
  12. led-running = &power_green;
  13. led-dsl = &dsl;
  14. led-internet = &online_green;
  15. led-usb = &usb;
  16. led-wifi = &wifi;
  17. };
  18. memory@0 {
  19. reg = <0x0 0x4000000>;
  20. };
  21. sram@1F000000 {
  22. vmmc@107000 {
  23. status = "okay";
  24. };
  25. };
  26. fpi@10000000 {
  27. localbus@0 {
  28. nor-boot@0 {
  29. compatible = "lantiq,nor";
  30. bank-width = <2>;
  31. reg = <0 0x0 0x2000000>;
  32. #address-cells = <1>;
  33. #size-cells = <1>;
  34. partitions {
  35. compatible = "fixed-partitions";
  36. #address-cells = <1>;
  37. #size-cells = <1>;
  38. partition@0 {
  39. label = "uboot";
  40. reg = <0x00000 0x10000>;
  41. read-only;
  42. };
  43. partition@10000 {
  44. label = "uboot_env";
  45. reg = <0x10000 0x10000>;
  46. };
  47. partition@20000 {
  48. label = "firmware";
  49. reg = <0x20000 0x7d0000>;
  50. };
  51. boardconfig: partition@400000 {
  52. label = "boardconfig";
  53. reg = <0x7f0000 0x10000>;
  54. read-only;
  55. };
  56. };
  57. };
  58. gpiomm: gpiomm@4000000 {
  59. compatible = "lantiq,gpio-mm";
  60. reg = <1 0x0 0x10 >;
  61. #address-cells = <1>;
  62. #size-cells = <1>;
  63. #gpio-cells = <2>;
  64. gpio-controller;
  65. lantiq,shadow = <0x0>;
  66. };
  67. };
  68. gpio: pinmux@E100B10 {
  69. pinctrl-names = "default";
  70. pinctrl-0 = <&state_default>;
  71. state_default: pinmux {
  72. ebu {
  73. lantiq,groups = "ebu cs1";
  74. lantiq,function = "ebu";
  75. };
  76. pci_in {
  77. lantiq,groups = "req1";
  78. lantiq,function = "pci";
  79. lantiq,open-drain = <1>;
  80. lantiq,pull = <2>;
  81. lantiq,output = <0>;
  82. };
  83. pci_out {
  84. lantiq,groups = "gnt1";
  85. lantiq,function = "pci";
  86. lantiq,pull = <0>;
  87. lantiq,output = <1>;
  88. };
  89. pci_rst {
  90. lantiq,pins = "io21";
  91. lantiq,pull = <2>;
  92. lantiq,output = <1>;
  93. };
  94. leds {
  95. lantiq,pins = "io2", "io4", "io5", "io6", "io7", "io8", "io19";
  96. lantiq,output = <1>;
  97. };
  98. keys {
  99. lantiq,pins = "io28", "io30";
  100. lantiq,output = <0>;
  101. lantiq,pull = <2>;
  102. lantiq,open-drain = <1>;
  103. };
  104. };
  105. };
  106. etop@E180000 {
  107. phy-mode = "mii";
  108. mtd-mac-address = <&boardconfig 0x16>;
  109. };
  110. ifxhcd@E101000 {
  111. status = "okay";
  112. gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
  113. };
  114. };
  115. /*
  116. #define SWITCH_RESET 13
  117. */
  118. gpio-keys-polled {
  119. compatible = "gpio-keys-polled";
  120. #address-cells = <1>;
  121. #size-cells = <0>;
  122. poll-interval = <100>;
  123. rfkill {
  124. label = "rfkill";
  125. gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
  126. linux,code = <KEY_RFKILL>;
  127. };
  128. reset {
  129. label = "reset";
  130. gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
  131. linux,code = <KEY_RESTART>;
  132. };
  133. };
  134. gpio-leds {
  135. compatible = "gpio-leds";
  136. power_green: power {
  137. label = "arv7518pw:green:power";
  138. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  139. default-state = "keep";
  140. };
  141. dsl: dsl {
  142. label = "arv7518pw:green:dsl";
  143. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  144. };
  145. online_green: online {
  146. label = "arv7518pw:green:internet";
  147. gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  148. };
  149. wifi: wifi {
  150. label = "arv7518pw:green:wlan";
  151. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  152. };
  153. power_red: power2 {
  154. label = "arv7518pw:red:power";
  155. gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  156. };
  157. online2 {
  158. label = "arv7518pw:red:internet";
  159. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  160. };
  161. usb: usb {
  162. label = "arv7518pw:green:usb";
  163. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  164. };
  165. voice {
  166. label = "arv7518pw:green:voip";
  167. gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
  168. };
  169. fxs1 {
  170. label = "arv7518pw:green:phone1";
  171. gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
  172. };
  173. fxs2 {
  174. label = "arv7518pw:green:phone2";
  175. gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
  176. };
  177. unlabeled {
  178. label = "arv7518pw:amber:unlabeled";
  179. gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
  180. };
  181. wps {
  182. label = "arv7518pw:amber:wps";
  183. gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
  184. };
  185. wps2 {
  186. label = "arv7518pw:green:wps";
  187. gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
  188. };
  189. wps3 {
  190. label = "arv7518pw:red:wps";
  191. gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
  192. };
  193. };
  194. };
  195. &pci0 {
  196. status = "okay";
  197. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  198. lantiq,external-clock;
  199. req-mask = <0xf>;
  200. wifi@168c,0029 {
  201. compatible = "pci168c,0029";
  202. reg = <0x7000 0 0 0 0>;
  203. qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
  204. mtd-mac-address = <&boardconfig 0x16>;
  205. mtd-mac-address-increment = <1>;
  206. };
  207. };