ARV4525PW.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. /dts-v1/;
  2. #include "danube.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "ARV4525PW - Speedport W501V Typ A";
  6. chosen {
  7. bootargs = "console=ttyLTQ0,115200";
  8. };
  9. aliases {
  10. /* we dont have a power led, lets use the online led */
  11. led-boot = &online;
  12. led-failsafe = &online;
  13. led-dsl = &dsl;
  14. led-internet = &online;
  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. };
  25. };
  26. fpi@10000000 {
  27. localbus@0 {
  28. nor-boot@0 {
  29. compatible = "lantiq,nor";
  30. bank-width = <2>;
  31. reg = <0 0x0 0x2000000>;
  32. #address-cells = <1>;
  33. #size-cells = <1>;
  34. partitions {
  35. compatible = "fixed-partitions";
  36. #address-cells = <1>;
  37. #size-cells = <1>;
  38. partition@0 {
  39. label = "uboot";
  40. reg = <0x00000 0x10000>;
  41. read-only;
  42. };
  43. partition@10000 {
  44. label = "uboot_env";
  45. reg = <0x10000 0x10000>;
  46. read-only;
  47. };
  48. partition@20000 {
  49. label = "firmware";
  50. reg = <0x20000 0x3d0000>;
  51. };
  52. boardconfig: partition@400000 {
  53. label = "boardconfig";
  54. reg = <0x3f0000 0x10000>;
  55. read-only;
  56. };
  57. };
  58. };
  59. ath5k_eep {
  60. compatible = "ath5k,eeprom";
  61. ath,eep-flash = <&boardconfig 0x400>;
  62. ath,mac-offset = <0x0>;
  63. ath,eep-swap;
  64. };
  65. };
  66. gpio: pinmux@E100B10 {
  67. pinctrl-names = "default";
  68. pinctrl-0 = <&state_default>;
  69. state_default: pinmux {
  70. pci_in {
  71. lantiq,groups = "req1";
  72. lantiq,function = "pci";
  73. lantiq,open-drain = <1>;
  74. lantiq,pull = <2>;
  75. lantiq,output = <0>;
  76. };
  77. pci_out {
  78. lantiq,groups = "gnt1";
  79. lantiq,function = "pci";
  80. lantiq,output = <1>;
  81. };
  82. pci_rst {
  83. lantiq,pins = "io21";
  84. lantiq,pull = <2>;
  85. lantiq,output = <1>;
  86. };
  87. relay {
  88. lantiq,pins = "io31";
  89. lantiq,output = <1>;
  90. };
  91. };
  92. };
  93. etop@E180000 {
  94. phy-mode = "mii";
  95. mtd-mac-address = <&boardconfig 0x16>;
  96. };
  97. pci@E105400 {
  98. status = "okay";
  99. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  100. };
  101. };
  102. /*
  103. #define ARV4525PW_PHYRESET 13
  104. #define ARV4525PW_RELAY 31
  105. */
  106. gpio-keys-polled {
  107. compatible = "gpio-keys-polled";
  108. #address-cells = <1>;
  109. #size-cells = <0>;
  110. poll-interval = <100>;
  111. wps {
  112. label = "wps";
  113. gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
  114. linux,code = <KEY_WPS_BUTTON>;
  115. };
  116. reset {
  117. label = "reset";
  118. gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
  119. linux,code = <KEY_RESTART>;
  120. };
  121. };
  122. gpio-leds {
  123. compatible = "gpio-leds";
  124. fxo {
  125. label = "arv4525pw:green:festnetz";
  126. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  127. };
  128. fxs {
  129. label = "arv4525pw:green:internet";
  130. gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  131. };
  132. dsl: dsl {
  133. label = "arv4525pw:green:t-dsl";
  134. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  135. };
  136. wifi: wifi {
  137. label = "arv4525pw:green:wlan";
  138. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  139. };
  140. online: online {
  141. label = "arv4525pw:green:online";
  142. gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
  143. };
  144. };
  145. };