ARV4519PW.dts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. /dts-v1/;
  2. #include "danube.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "arcadyan,arv4519pw", "lantiq,xway", "lantiq,danube";
  6. model = "Vodafone Netfaster IAD 2, Pirelli P.RG A4201G";
  7. chosen {
  8. bootargs = "console=ttyLTQ0,115200";
  9. };
  10. aliases {
  11. led-boot = &power_green;
  12. led-failsafe = &power_red;
  13. led-running = &power_green;
  14. led-upgrade = &power_green;
  15. led-dsl = &dsl;
  16. led-internet = &internet_green;
  17. led-usb = &led_usb;
  18. led-wifi = &wifi;
  19. };
  20. memory@0 {
  21. reg = <0x0 0x2000000>;
  22. };
  23. gpio-keys-polled {
  24. compatible = "gpio-keys-polled";
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. poll-interval = <100>;
  28. rfkill {
  29. label = "rfkill";
  30. gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_RFKILL>;
  32. };
  33. reset {
  34. label = "reset";
  35. gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
  36. linux,code = <KEY_RESTART>;
  37. };
  38. };
  39. gpio-leds {
  40. compatible = "gpio-leds";
  41. power_green: power {
  42. label = "arv4519pw:green:power";
  43. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  44. default-state = "keep";
  45. };
  46. power_red: power2 {
  47. label = "arv4519pw:red:power";
  48. gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  49. };
  50. wifi: wifi {
  51. label = "arv4519pw:green:wlan";
  52. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  53. };
  54. dsl: dsl {
  55. label = "arv4519pw:green:dsl";
  56. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  57. };
  58. internet_green: online {
  59. label = "arv4519pw:green:internet";
  60. gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  61. };
  62. online2 {
  63. label = "arv4519pw:red:internet";
  64. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  65. };
  66. led_usb: usb {
  67. label = "arv4519pw:green:usb";
  68. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  69. };
  70. voip {
  71. label = "arv4519pw:green:voip";
  72. gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
  73. };
  74. fxs1 {
  75. label = "arv4519pw:green:phone1";
  76. gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
  77. };
  78. fxs2 {
  79. label = "arv4519pw:green:phone2";
  80. gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
  81. };
  82. fxo {
  83. label = "arv4519pw:green:line";
  84. gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
  85. };
  86. wps2 {
  87. label = "arv4519pw:green:wps";
  88. gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
  89. };
  90. wps {
  91. label = "arv4519pw:orange:wps";
  92. gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
  93. };
  94. wps3 {
  95. label = "arv4519pw:red:wps";
  96. gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
  97. };
  98. };
  99. usb_vbus: regulator-usb-vbus {
  100. compatible = "regulator-fixed";
  101. regulator-name = "USB_VBUS";
  102. regulator-min-microvolt = <5000000>;
  103. regulator-max-microvolt = <5000000>;
  104. gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
  105. enable-active-high;
  106. };
  107. };
  108. &gpio {
  109. pinctrl-names = "default";
  110. pinctrl-0 = <&state_default>;
  111. state_default: pinmux {
  112. ebu {
  113. lantiq,groups = "ebu cs1";
  114. lantiq,function = "ebu";
  115. };
  116. };
  117. };
  118. &gpiomm {
  119. status = "okay";
  120. lantiq,shadow = <0x400>;
  121. };
  122. &gsw {
  123. phy-mode = "mii";
  124. mtd-mac-address = <&boardconfig 0x16>;
  125. };
  126. &localbus {
  127. nor@0 {
  128. compatible = "lantiq,nor";
  129. bank-width = <2>;
  130. reg = <0 0x0 0x2000000>;
  131. #address-cells = <1>;
  132. #size-cells = <1>;
  133. partitions {
  134. compatible = "fixed-partitions";
  135. #address-cells = <1>;
  136. #size-cells = <1>;
  137. partition@0 {
  138. label = "uboot";
  139. reg = <0x00000 0x10000>;
  140. read-only;
  141. };
  142. partition@10000 {
  143. label = "uboot_env";
  144. reg = <0x10000 0x10000>;
  145. };
  146. partition@20000 {
  147. label = "firmware";
  148. reg = <0x20000 0x3d0000>;
  149. };
  150. boardconfig: partition@3f0000 {
  151. label = "boardconfig";
  152. reg = <0x3f0000 0x10000>;
  153. read-only;
  154. };
  155. };
  156. };
  157. };
  158. &pci0 {
  159. status = "okay";
  160. lantiq,external-clock;
  161. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  162. req-mask = <0xf>;
  163. };
  164. &usb_phy {
  165. status = "okay";
  166. };
  167. &usb {
  168. status = "okay";
  169. vbus-supply = <&usb_vbus>;
  170. };
  171. &vmmc {
  172. status = "okay";
  173. gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
  174. };