ARV452CQW.dts 4.4 KB

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