ARV452CQW.dts 4.5 KB

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