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