ARV752DPW.dts 4.4 KB

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