ARV4520PW.dts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. /dts-v1/;
  2. #include "danube.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "arcadyan,arv4520pw", "lantiq,xway", "lantiq,danube";
  6. model = "Easybox 800, WAV-281";
  7. chosen {
  8. bootargs = "console=ttyLTQ0,115200";
  9. };
  10. aliases {
  11. led-boot = &power_blue;
  12. led-failsafe = &power_red;
  13. led-running = &power_blue;
  14. led-upgrade = &power_blue;
  15. led-dsl = &dsl;
  16. led-internet = &internet_blue;
  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 = "wps";
  30. gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_WPS_BUTTON>;
  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_blue: power {
  42. label = "arv4520pw:blue:power";
  43. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  44. default-state = "keep";
  45. };
  46. dsl: dsl {
  47. label = "arv4520pw:blue:dsl";
  48. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  49. };
  50. internet_blue: internet {
  51. label = "arv4520pw:blue:internet";
  52. gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  53. };
  54. power_red: power2 {
  55. label = "arv4520pw:red:power";
  56. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  57. };
  58. wps {
  59. label = "arv4520pw:yellow:wps";
  60. gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  61. };
  62. wps2 {
  63. label = "arv4520pw:red:wps";
  64. gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
  65. };
  66. /*
  67. wps green is missing
  68. */
  69. fxs1 {
  70. label = "arv4520pw:blue:telefon1";
  71. gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
  72. };
  73. fxs2 {
  74. label = "arv4520pw:blue:telefon2";
  75. gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
  76. };
  77. isdn {
  78. label = "arv4520pw:blue:isdn";
  79. gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
  80. };
  81. fxo {
  82. label = "arv4520pw:blue:line";
  83. gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
  84. };
  85. voice {
  86. label = "arv4520pw:blue:sprache";
  87. gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
  88. };
  89. led_usb: usb {
  90. label = "arv4520pw:blue:usb";
  91. gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
  92. };
  93. wifi: wifi {
  94. label = "arv4520pw:blue:wifi";
  95. gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
  96. };
  97. internet2 {
  98. label = "arv4520pw:red:internet";
  99. gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
  100. };
  101. /*
  102. info is missing
  103. */
  104. };
  105. usb_vbus: regulator-usb-vbus {
  106. compatible = "regulator-fixed";
  107. regulator-name = "USB_VBUS";
  108. regulator-min-microvolt = <5000000>;
  109. regulator-max-microvolt = <5000000>;
  110. gpio = <&gpio 28 GPIO_ACTIVE_HIGH>;
  111. enable-active-high;
  112. };
  113. };
  114. &gpio {
  115. pinctrl-names = "default";
  116. pinctrl-0 = <&state_default>;
  117. state_default: pinmux {
  118. ebu {
  119. lantiq,groups = "ebu cs1";
  120. lantiq,function = "ebu";
  121. };
  122. pci_in {
  123. lantiq,groups = "req1";
  124. lantiq,function = "pci";
  125. lantiq,open-drain = <1>;
  126. lantiq,pull = <2>;
  127. lantiq,output = <0>;
  128. };
  129. pci_out {
  130. lantiq,groups = "gnt1";
  131. lantiq,function = "pci";
  132. lantiq,output = <1>;
  133. };
  134. pci_rst {
  135. lantiq,pins = "io21";
  136. lantiq,open-drain = <0>;
  137. lantiq,pull = <0>;
  138. };
  139. };
  140. };
  141. &gpiomm {
  142. status = "okay";
  143. lantiq,shadow = <0x400>;
  144. };
  145. &gsw {
  146. /* gpiomm 10 - switch */
  147. phy-mode = "rmii";
  148. mtd-mac-address = <&boardconfig 0x16>;
  149. };
  150. &localbus {
  151. nor@0 {
  152. compatible = "lantiq,nor";
  153. bank-width = <2>;
  154. reg = <0 0x0 0x800000>;
  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 0x20000>;
  164. read-only;
  165. };
  166. partition@20000 {
  167. label = "uboot_env";
  168. reg = <0x20000 0x10000>;
  169. read-only;
  170. };
  171. partition@30000 {
  172. label = "firmware";
  173. reg = <0x30000 0x3c0000>;
  174. };
  175. boardconfig: partition@7f0000 {
  176. label = "boardconfig";
  177. reg = <0x3f0000 0x10000>;
  178. read-only;
  179. };
  180. };
  181. };
  182. };
  183. &pci0 {
  184. status = "okay";
  185. lantiq,external-clock;
  186. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  187. };
  188. &usb_phy {
  189. status = "okay";
  190. };
  191. &usb {
  192. status = "okay";
  193. vbus-supply = <&usb_vbus>;
  194. };
  195. &vmmc {
  196. status = "okay";
  197. gpios = <&gpio 31 GPIO_ACTIVE_HIGH
  198. &gpiomm 7 GPIO_ACTIVE_HIGH>;
  199. };