ARV452CQW.dts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. /dts-v1/;
  2. #include "danube.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "arcadyan,arv452cqw", "lantiq,xway", "lantiq,danube";
  6. model = "Arcor 801";
  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_blue;
  16. led-usb = &led_usb;
  17. led-wifi = &wifi;
  18. };
  19. memory@0 {
  20. reg = <0x0 0x2000000>;
  21. };
  22. ath5k_eep {
  23. compatible = "ath5k,eeprom";
  24. ath,eep-flash = <&boardconfig 0x400>;
  25. ath,mac-offset = <0x0>;
  26. ath,eep-swap;
  27. };
  28. gpio-keys-polled {
  29. compatible = "gpio-keys-polled";
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. poll-interval = <100>;
  33. rfkill {
  34. label = "rfkill";
  35. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  36. linux,code = <KEY_RFKILL>;
  37. };
  38. wps {
  39. label = "wps";
  40. gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
  41. linux,code = <KEY_WPS_BUTTON>;
  42. };
  43. reset {
  44. label = "reset";
  45. gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
  46. linux,code = <KEY_RESTART>;
  47. };
  48. };
  49. gpio-leds {
  50. compatible = "gpio-leds";
  51. power_blue: power0 {
  52. label = "arv452cqw:blue:power";
  53. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  54. default-state = "keep";
  55. };
  56. dsl_blue: dsl {
  57. label = "arv452cqw:blue:dsl";
  58. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  59. };
  60. isdn {
  61. label = "arv452cqw:blue:isdn";
  62. gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  63. };
  64. power_red: power1 {
  65. label = "arv452cqw:red:power";
  66. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  67. };
  68. wps {
  69. label = "arv452cqw:blue:wps";
  70. gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  71. };
  72. wps1 {
  73. label = "arv452cqw:yellow:wps";
  74. gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
  75. };
  76. fxs1 {
  77. label = "arv452cqw:blue:telefon1";
  78. gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
  79. };
  80. fxs2 {
  81. label = "arv452cqw:blue:telefon2";
  82. gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
  83. };
  84. wps2 {
  85. label = "arv452cqw:red:wps";
  86. gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
  87. };
  88. fxo {
  89. label = "arv452cqw:blue:line";
  90. gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
  91. };
  92. voice {
  93. label = "arv452cqw:blue:sprache";
  94. gpios = <&gpiomm 4 1>;
  95. };
  96. led_usb: usb {
  97. label = "arv452cqw:blue:usb";
  98. gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
  99. };
  100. wifi: wifi {
  101. label = "arv452cqw:blue:wlan";
  102. gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
  103. };
  104. /*
  105. internet blue and internet red are missing
  106. dsl2 and dsl3 are not referenced in manual
  107. */
  108. dsl2 {
  109. label = "arv452cqw:yellow:dsl";
  110. gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>;
  111. };
  112. dsl3 {
  113. label = "arv452cqw:red:dsl";
  114. gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
  115. };
  116. };
  117. usb_vbus: regulator-usb-vbus {
  118. compatible = "regulator-fixed";
  119. regulator-name = "USB_VBUS";
  120. regulator-min-microvolt = <5000000>;
  121. regulator-max-microvolt = <5000000>;
  122. gpio = <&gpio 28 GPIO_ACTIVE_HIGH>;
  123. enable-active-high;
  124. };
  125. };
  126. &gpio {
  127. pinctrl-names = "default";
  128. pinctrl-0 = <&state_default>;
  129. state_default: pinmux {
  130. ebu {
  131. lantiq,groups = "ebu cs1";
  132. lantiq,function = "ebu";
  133. };
  134. pci_in {
  135. lantiq,groups = "req1";
  136. lantiq,function = "pci";
  137. lantiq,open-drain = <1>;
  138. lantiq,pull = <2>;
  139. lantiq,output = <0>;
  140. };
  141. pci_out {
  142. lantiq,groups = "gnt1";
  143. lantiq,function = "pci";
  144. lantiq,output = <1>;
  145. };
  146. pci_rst {
  147. lantiq,pins = "io21";
  148. lantiq,pull = <0>;
  149. lantiq,output = <1>;
  150. };
  151. leds {
  152. lantiq,pins = "io3", "io5", "io6", "io7", "io9";
  153. lantiq,output = <1>;
  154. };
  155. };
  156. };
  157. &gpiomm {
  158. status = "okay";
  159. lantiq,shadow = <0x77f>;
  160. };
  161. /*
  162. #define ARV452CPW_SWITCH_RESET 110
  163. */
  164. &gsw {
  165. phy-mode = "rmii";
  166. mtd-mac-address = <&boardconfig 0x16>;
  167. };
  168. &localbus {
  169. nor@0 {
  170. compatible = "lantiq,nor";
  171. bank-width = <2>;
  172. reg = <0 0x0 0x400000>;
  173. #address-cells = <1>;
  174. #size-cells = <1>;
  175. partitions {
  176. compatible = "fixed-partitions";
  177. #address-cells = <1>;
  178. #size-cells = <1>;
  179. partition@0 {
  180. label = "uboot";
  181. reg = <0x00000 0x10000>;
  182. read-only;
  183. };
  184. partition@10000 {
  185. label = "uboot_env";
  186. reg = <0x10000 0x10000>;
  187. read-only;
  188. };
  189. partition@20000 {
  190. label = "firmware";
  191. reg = <0x20000 0x3d0000>;
  192. };
  193. boardconfig: partition@3f0000 {
  194. label = "boardconfig";
  195. reg = <0x3f0000 0x10000>;
  196. read-only;
  197. };
  198. };
  199. };
  200. };
  201. &pci0 {
  202. status = "okay";
  203. lantiq,external-clock;
  204. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  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 = <&gpio 31 GPIO_ACTIVE_HIGH
  216. &gpiomm 7 GPIO_ACTIVE_HIGH>;
  217. };