ARV7519PW.dts 4.0 KB

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