ARV4525PW.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /dts-v1/;
  2. /include/ "danube.dtsi"
  3. / {
  4. model = "ARV4525PW - Speedport W501V Typ A";
  5. memory@0 {
  6. reg = <0x0 0x2000000>;
  7. };
  8. sram@1F000000 {
  9. vmmc@107000 {
  10. status = "okay";
  11. gpios = <&gpio 31 0>;
  12. };
  13. };
  14. fpi@10000000 {
  15. localbus@0 {
  16. nor-boot@0 {
  17. compatible = "lantiq,nor";
  18. bank-width = <2>;
  19. reg = <0 0x0 0x2000000>;
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. partition@0 {
  23. label = "uboot";
  24. reg = <0x00000 0x10000>;
  25. read-only;
  26. };
  27. partition@10000 {
  28. label = "uboot_env";
  29. reg = <0x10000 0x10000>;
  30. read-only;
  31. };
  32. partition@20000 {
  33. label = "firmware";
  34. reg = <0x20000 0x3d0000>;
  35. };
  36. partition@400000 {
  37. label = "boardconfig";
  38. reg = <0x3f0000 0x10000>;
  39. read-only;
  40. };
  41. };
  42. mac_addr {
  43. compatible = "lantiq,eth-mac";
  44. reg = <0 0x3f0016 0x6>;
  45. mac-increment = <2>;
  46. };
  47. ath5k_eep {
  48. compatible = "ath5k,eeprom";
  49. reg = <0 0x3f0400 0x1000>;
  50. ath,mac-offset = <0>;
  51. ath,eep-swap;
  52. };
  53. };
  54. gpio: pinmux@E100B10 {
  55. pinctrl-names = "default";
  56. pinctrl-0 = <&state_default>;
  57. state_default: pinmux {
  58. pci_in {
  59. lantiq,groups = "req1";
  60. lantiq,function = "pci";
  61. lantiq,open-drain = <1>;
  62. lantiq,pull = <2>;
  63. lantiq,output = <0>;
  64. };
  65. pci_out {
  66. lantiq,groups = "gnt1";
  67. lantiq,function = "pci";
  68. lantiq,output = <1>;
  69. };
  70. pci_rst {
  71. lantiq,pins = "io21";
  72. lantiq,pull = <2>;
  73. lantiq,output = <1>;
  74. };
  75. relay {
  76. lantiq,pins = "io31";
  77. lantiq,output = <1>;
  78. };
  79. };
  80. };
  81. etop@E180000 {
  82. phy-mode = "mii";
  83. };
  84. pci@E105400 {
  85. status = "okay";
  86. gpio-reset = <&gpio 21 0>;
  87. };
  88. };
  89. /*
  90. #define ARV4525PW_PHYRESET 13
  91. #define ARV4525PW_RELAY 31
  92. */
  93. gpio-keys-polled {
  94. compatible = "gpio-keys-polled";
  95. #address-cells = <1>;
  96. #size-cells = <0>;
  97. poll-interval = <100>;
  98. wps {
  99. label = "wps";
  100. gpios = <&gpio 29 1>;
  101. linux,code = <0x211>;
  102. };
  103. reset {
  104. label = "reset";
  105. gpios = <&gpio 30 1>;
  106. linux,code = <0x198>;
  107. };
  108. };
  109. gpio-leds {
  110. compatible = "gpio-leds";
  111. fxo {
  112. label = "fxo";
  113. gpios = <&gpio 4 1>;
  114. };
  115. fxs {
  116. label = "fxs";
  117. gpios = <&gpio 5 1>;
  118. };
  119. dsl {
  120. label = "dsl";
  121. gpios = <&gpio 6 1>;
  122. };
  123. wifi {
  124. label = "wifi";
  125. gpios = <&gpio 8 1>;
  126. };
  127. online {
  128. /*label = "online"; - we dont have a power led, lets use this one */
  129. label = "power";
  130. gpios = <&gpio 9 1>;
  131. };
  132. };
  133. };