ARV752DPW.dts 4.4 KB

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