ARV7519PW.dts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. /dts-v1/;
  2. #include "danube.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "arcadyan,arv7519pw", "lantiq,xway", "lantiq,danube";
  6. model = "ARV7519PW - Astoria Networks";
  7. chosen {
  8. bootargs = "console=ttyLTQ0,115200";
  9. };
  10. aliases {
  11. led-boot = &power;
  12. led-failsafe = &power2;
  13. led-running = &power;
  14. led-dsl = &dsl;
  15. led-internet = &online;
  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 0x40000>;
  41. read-only;
  42. };
  43. partition@40000 {
  44. label = "uboot_env";
  45. reg = <0x40000 0x20000>;
  46. };
  47. partition@60000 {
  48. label = "firmware";
  49. reg = <0x60000 0xf80000>;
  50. };
  51. boardconfig: partition@fe0000 {
  52. label = "board_config";
  53. reg = <0xfe0000 0x20000>;
  54. read-only;
  55. };
  56. };
  57. };
  58. };
  59. gpio: pinmux@E100B10 {
  60. pinctrl-names = "default";
  61. pinctrl-0 = <&state_default>;
  62. state_default: pinmux {
  63. ebu {
  64. lantiq,groups = "ebu cs1";
  65. lantiq,function = "ebu";
  66. };
  67. pci_in {
  68. lantiq,groups = "req1";
  69. lantiq,function = "pci";
  70. lantiq,open-drain = <1>;
  71. lantiq,pull = <2>;
  72. lantiq,output = <0>;
  73. };
  74. pci_out {
  75. lantiq,groups = "gnt1";
  76. lantiq,function = "pci";
  77. lantiq,pull = <0>;
  78. lantiq,output = <1>;
  79. };
  80. pci_rst {
  81. lantiq,pins = "io21";
  82. lantiq,pull = <2>;
  83. lantiq,output = <1>;
  84. };
  85. switch_rst {
  86. lantiq,pins = "io19";
  87. lantiq,pull = <2>;
  88. lantiq,output = <1>;
  89. };
  90. };
  91. };
  92. etop@E180000 {
  93. phy-mode = "mii";
  94. mtd-mac-address = <&boardconfig 0x16>;
  95. };
  96. /* warning: passive port
  97. only works with active devices */
  98. ifxhcd@E101000 {
  99. status = "okay";
  100. };
  101. };
  102. gpio-keys-polled {
  103. compatible = "gpio-keys-polled";
  104. #address-cells = <1>;
  105. #size-cells = <0>;
  106. poll-interval = <100>;
  107. rfkill {
  108. label = "rfkill";
  109. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  110. linux,code = <KEY_RFKILL>;
  111. };
  112. reset {
  113. label = "reset";
  114. gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
  115. linux,code = <KEY_RESTART>;
  116. };
  117. };
  118. gpio-leds {
  119. compatible = "gpio-leds";
  120. power: power {
  121. label = "power";
  122. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  123. default-state = "keep";
  124. };
  125. power2: power2 {
  126. label = "power2";
  127. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  128. };
  129. online: online {
  130. label = "online";
  131. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  132. };
  133. online2 {
  134. label = "online2";
  135. gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
  136. };
  137. wifi: wifi {
  138. label = "wifi";
  139. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  140. };
  141. wifi2 {
  142. label = "wifi2";
  143. gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
  144. };
  145. wifi3 {
  146. label = "wifi3";
  147. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  148. };
  149. voice {
  150. label = "voice";
  151. gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
  152. };
  153. wps {
  154. label = "wps";
  155. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  156. };
  157. wps2 {
  158. label = "wps2";
  159. gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  160. };
  161. wps3 {
  162. label = "wps3";
  163. gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
  164. };
  165. dsl: dsl {
  166. label = "dsl";
  167. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  168. };
  169. lan {
  170. label = "lan";
  171. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  172. };
  173. tv {
  174. label = "tv";
  175. gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
  176. };
  177. upgrade {
  178. label = "upgrade";
  179. gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
  180. };
  181. };
  182. /* is there another way to "reserve" the GPIO? */
  183. gpio_export {
  184. compatible = "gpio-export";
  185. #size-cells = <0>;
  186. switch {
  187. gpio-export,name = "switch";
  188. gpio-export,output = <1>;
  189. gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
  190. };
  191. };
  192. };
  193. &pci0 {
  194. status = "okay";
  195. lantiq,external-clock;
  196. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  197. req-mask = <0xf>;
  198. wifi@0,0 {
  199. compatible = "pci0,0";
  200. reg = <0x7000 0 0 0 0>;
  201. ralink,mtd-eeprom = <&boardconfig 0x410>;
  202. ralink,mtd-eeprom-swap;
  203. };
  204. };