ARV4510PW.dts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. /dts-v1/;
  2. #include "danube.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "arcadyan,arv4510pw", "lantiq,xway", "lantiq,danube";
  6. model = "Wippies, Elisa";
  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 = &adsl;
  16. led-internet = &internet;
  17. led-usb = &led_usb;
  18. led-usb2 = &led_usb2;
  19. led-wifi = &wifi;
  20. };
  21. memory@0 {
  22. reg = <0x0 0x2000000>;
  23. };
  24. gpio-keys-polled {
  25. compatible = "gpio-keys-polled";
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. poll-interval = <100>;
  29. wps {
  30. label = "wps";
  31. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  32. linux,code = <KEY_WPS_BUTTON>;
  33. };
  34. reset {
  35. label = "reset";
  36. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  37. linux,code = <KEY_RESTART>;
  38. };
  39. };
  40. gpio-leds {
  41. compatible = "gpio-leds";
  42. power: power {
  43. label = "power";
  44. gpios = <&gpios 21 GPIO_ACTIVE_HIGH>;
  45. default-state = "keep";
  46. };
  47. power2: power2 {
  48. label = "power2";
  49. gpios = <&gpios 20 GPIO_ACTIVE_HIGH>;
  50. };
  51. lan1 {
  52. label = "lan1";
  53. gpios = <&gpios 19 GPIO_ACTIVE_HIGH>;
  54. };
  55. lan2 {
  56. label = "lan2";
  57. gpios = <&gpios 18 GPIO_ACTIVE_HIGH>;
  58. };
  59. lan3 {
  60. label = "lan3";
  61. gpios = <&gpios 17 GPIO_ACTIVE_HIGH>;
  62. };
  63. lan4 {
  64. label = "lan4";
  65. gpios = <&gpios 16 GPIO_ACTIVE_HIGH>;
  66. };
  67. wifi: wifi {
  68. label = "wifi";
  69. gpios = <&gpios 15 GPIO_ACTIVE_HIGH>;
  70. };
  71. adsl: adsl {
  72. label = "adsl";
  73. gpios = <&gpios 14 GPIO_ACTIVE_HIGH>;
  74. };
  75. internet: internet {
  76. label = "internet";
  77. gpios = <&gpios 13 GPIO_ACTIVE_HIGH>;
  78. };
  79. internet2 {
  80. label = "internet2";
  81. gpios = <&gpios 12 GPIO_ACTIVE_HIGH>;
  82. };
  83. voip {
  84. label = "voip";
  85. gpios = <&gpios 11 GPIO_ACTIVE_HIGH>;
  86. };
  87. phone {
  88. label = "phone";
  89. gpios = <&gpios 10 GPIO_ACTIVE_HIGH>;
  90. };
  91. phone2 {
  92. label = "phone2";
  93. gpios = <&gpios 9 GPIO_ACTIVE_HIGH>;
  94. };
  95. led_usb: usb {
  96. label = "usb";
  97. gpios = <&gpios 8 GPIO_ACTIVE_HIGH>;
  98. };
  99. led_usb2: usb2 {
  100. label = "usb2";
  101. gpios = <&gpios 7 GPIO_ACTIVE_HIGH>;
  102. };
  103. usb3 {
  104. label = "usb3";
  105. gpios = <&gpios 6 GPIO_ACTIVE_HIGH>;
  106. };
  107. unlabeled {
  108. label = "unlabeled";
  109. gpios = <&gpios 5 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 a23";
  119. lantiq,function = "ebu";
  120. lantiq,open-drain = <0>;
  121. lantiq,output = <1>;
  122. };
  123. stp {
  124. lantiq,groups = "stp";
  125. lantiq,function = "stp";
  126. lantiq,open-drain = <0>;
  127. lantiq,output = <1>;
  128. };
  129. exin {
  130. lantiq,groups = "exin1", "exin2";
  131. lantiq,function = "exin";
  132. lantiq,output = <0>;
  133. };
  134. pci_in {
  135. lantiq,groups = "req1", "req2";
  136. lantiq,function = "pci";
  137. lantiq,output = <0>;
  138. };
  139. pci_out {
  140. lantiq,groups = "gnt1", "gnt2";
  141. lantiq,function = "pci";
  142. lantiq,open-drain = <0>;
  143. lantiq,pull = <0>;
  144. lantiq,output = <1>;
  145. };
  146. pci_rst {
  147. lantiq,pins = "io21";
  148. lantiq,open-drain = <0>;
  149. lantiq,output = <1>;
  150. };
  151. buttons {
  152. lantiq,pins = "io3", "io14";
  153. lantiq,pull = <2>;
  154. lantiq,output = <0>;
  155. };
  156. };
  157. };
  158. &gpios {
  159. status = "okay";
  160. lantiq,groups = <0x7>;
  161. };
  162. &gsw {
  163. phy-mode = "rmii";
  164. };
  165. &localbus {
  166. nor@0 {
  167. compatible = "lantiq,nor";
  168. bank-width = <2>;
  169. reg = <0 0x0 0x1000000>;
  170. #address-cells = <1>;
  171. #size-cells = <1>;
  172. lantiq,noxip;
  173. partitions {
  174. compatible = "fixed-partitions";
  175. #address-cells = <1>;
  176. #size-cells = <1>;
  177. partition@0 {
  178. label = "uboot";
  179. reg = <0x00000 0x40000>;
  180. read-only;
  181. };
  182. partition@40000 {
  183. label = "uboot_env";
  184. reg = <0x40000 0x20000>;
  185. read-only;
  186. };
  187. partition@60000 {
  188. label = "firmware";
  189. reg = <0x60000 0xfa0000>;
  190. };
  191. };
  192. };
  193. };
  194. &pci0 {
  195. status = "okay";
  196. lantiq,external-clock;
  197. interrupt-map = <
  198. 0x6000 0 0 1 &icu0 135
  199. 0x7800 0 0 1 &icu0 66
  200. 0x7800 0 0 2 &icu0 66
  201. 0x7800 0 0 3 &icu0 66
  202. >;
  203. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  204. req-mask = <0x7>;
  205. };
  206. &vmmc {
  207. status = "okay";
  208. };