ARV7518PW.dts 4.1 KB

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