2
0

ARV752DPW22.dts 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. /dts-v1/;
  2. #include "danube.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "arcadyan,arv752dpw22", "lantiq,xway", "lantiq,danube";
  6. model = "Arcor 803";
  7. chosen {
  8. bootargs = "console=ttyLTQ0,115200";
  9. };
  10. aliases {
  11. led-boot = &power_red;
  12. led-failsafe = &power_blue;
  13. led-running = &power_red;
  14. led-upgrade = &power_red;
  15. led-dsl = &internet_red;
  16. led-usb = &umts;
  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. wps {
  28. label = "wps";
  29. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  30. linux,code = <KEY_WPS_BUTTON>;
  31. };
  32. restart {
  33. label = "restart";
  34. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  35. linux,code = <KEY_POWER>;
  36. };
  37. dsl {
  38. label = "dsl";
  39. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  40. linux,code = <BTN_0>;
  41. };
  42. reset {
  43. label = "reset";
  44. gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
  45. linux,code = <KEY_RESTART>;
  46. };
  47. };
  48. gpio-leds {
  49. compatible = "gpio-leds";
  50. power_blue: power1 {
  51. label = "arv752dpw22:blue:power";
  52. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  53. };
  54. internet_red: internet {
  55. label = "arv752dpw22:red:internet";
  56. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  57. };
  58. message {
  59. label = "arv752dpw22:red:message";
  60. gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  61. };
  62. power_red: power {
  63. label = "arv752dpw22:red:power";
  64. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  65. default-state = "keep";
  66. };
  67. voice1 {
  68. label = "arv752dpw22:red:voice";
  69. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  70. };
  71. umts: umts {
  72. label = "arv752dpw22:red:umts";
  73. gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
  74. };
  75. wifi: wifi {
  76. label = "arv752dpw22:red:wifi";
  77. gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
  78. };
  79. fxs1 {
  80. label = "arv752dpw22:green:tae-n";
  81. gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
  82. };
  83. fxs2 {
  84. label = "arv752dpw22:green:tae-u";
  85. gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
  86. };
  87. fxo {
  88. label = "arv752dpw22:green:isdn";
  89. gpios = <&gpiomm 7 GPIO_ACTIVE_LOW>;
  90. };
  91. internet2 {
  92. label = "arv752dpw22:blue:internet";
  93. gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>;
  94. };
  95. voice2 {
  96. label = "arv752dpw22:blue:voice";
  97. gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
  98. };
  99. eth1 {
  100. label = "arv752dpw22:green:lan1";
  101. gpios = <&gpiomm 11 GPIO_ACTIVE_LOW>;
  102. };
  103. eth2 {
  104. label = "arv752dpw22:green:lan2";
  105. gpios = <&gpiomm 12 GPIO_ACTIVE_LOW>;
  106. };
  107. eth3 {
  108. label = "arv752dpw22:green:lan3";
  109. gpios = <&gpiomm 13 GPIO_ACTIVE_LOW>;
  110. };
  111. eth4 {
  112. label = "arv752dpw22:green:lan4";
  113. gpios = <&gpiomm 14 GPIO_ACTIVE_LOW>;
  114. };
  115. };
  116. usb_vbus: regulator-usb-vbus {
  117. compatible = "regulator-fixed";
  118. regulator-name = "USB_VBUS";
  119. regulator-min-microvolt = <5000000>;
  120. regulator-max-microvolt = <5000000>;
  121. gpio = <&gpiomm 0 GPIO_ACTIVE_HIGH>;
  122. enable-active-high;
  123. };
  124. };
  125. &gpio {
  126. pinctrl-names = "default";
  127. pinctrl-0 = <&state_default>;
  128. state_default: pinmux {
  129. ebu {
  130. lantiq,groups = "ebu cs1";
  131. lantiq,function = "ebu";
  132. };
  133. exin {
  134. lantiq,groups = "exin1";
  135. lantiq,function = "exin";
  136. lantiq,pull = <2>;
  137. lantiq,output = <0>;
  138. };
  139. pci_in {
  140. lantiq,groups = "req1";
  141. lantiq,function = "pci";
  142. lantiq,pull = <2>;
  143. lantiq,output = <0>;
  144. };
  145. pci_out {
  146. lantiq,groups = "gnt1";
  147. lantiq,function = "pci";
  148. lantiq,open-drain = <1>;
  149. lantiq,output = <1>;
  150. };
  151. pci_rst {
  152. lantiq,pins = "io21";
  153. lantiq,open-drain = <1>;
  154. lantiq,output = <1>;
  155. };
  156. leds {
  157. lantiq,pins = "io3", "io5", "io6", "io8";
  158. lantiq,open-drain = <1>;
  159. lantiq,output = <1>;
  160. };
  161. buttons {
  162. lantiq,pins = "io11", "io12", "io13", "io28";
  163. lantiq,pull = <2>;
  164. lantiq,output = <0>;
  165. };
  166. };
  167. };
  168. &gpiomm {
  169. status = "okay";
  170. lantiq,shadow = <3>;
  171. };
  172. &gsw {
  173. phy-mode = "mii";
  174. mtd-mac-address = <&boardconfig 0x16>;
  175. };
  176. &localbus {
  177. nor@0 {
  178. compatible = "lantiq,nor";
  179. bank-width = <2>;
  180. reg = <0 0x0 0x800000>;
  181. #address-cells = <1>;
  182. #size-cells = <1>;
  183. partitions {
  184. compatible = "fixed-partitions";
  185. #address-cells = <1>;
  186. #size-cells = <1>;
  187. partition@0 {
  188. label = "uboot";
  189. reg = <0x00000 0x30000>;
  190. read-only;
  191. };
  192. partition@10000 {
  193. label = "uboot_env";
  194. reg = <0x30000 0x10000>;
  195. read-only;
  196. };
  197. partition@20000 {
  198. label = "firmware";
  199. reg = <0x40000 0x7b0000>;
  200. };
  201. boardconfig: partition@7f0000 {
  202. label = "board_config";
  203. reg = <0x7f0000 0x10000>;
  204. read-only;
  205. };
  206. };
  207. };
  208. };
  209. &pci0 {
  210. status = "okay";
  211. lantiq,external-clock;
  212. interrupt-map = <
  213. 0x7000 0 0 1 &icu0 30
  214. 0x7800 0 0 1 &icu0 135
  215. 0x7800 0 0 2 &icu0 135
  216. 0x7800 0 0 3 &icu0 135
  217. >;
  218. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  219. req-mask = <0x3>;
  220. wifi@1814,3592 {
  221. compatible = "pci1814,3592";
  222. reg = <0x7000 0 0 0 0>;
  223. ralink,mtd-eeprom = <&boardconfig 0x410>;
  224. ralink,mtd-eeprom-swap;
  225. mtd-mac-address = <&boardconfig 0x16>;
  226. };
  227. };
  228. &usb_phy {
  229. status = "okay";
  230. };
  231. &usb {
  232. status = "okay";
  233. vbus-supply = <&usb_vbus>;
  234. };
  235. &vmmc {
  236. status = "okay";
  237. gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
  238. };