ARV752DPW22.dts 4.9 KB

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