ARV7525PW.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /dts-v1/;
  2. #include "danube.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "arcadyan,arv7525pw", "lantiq,xway", "lantiq,danube";
  6. model = "Speedport W303V Typ A";
  7. chosen {
  8. bootargs = "console=ttyLTQ0,115200";
  9. };
  10. aliases {
  11. led-boot = &power_green;
  12. led-failsafe = &power_red;
  13. led-running = &power_green;
  14. led-dsl = &power_green;
  15. led-internet = &online;
  16. led-wifi = &wifi;
  17. };
  18. memory@0 {
  19. reg = <0x0 0x2000000>;
  20. };
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. poll-interval = <100>;
  26. wps {
  27. label = "wps";
  28. gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
  29. linux,code = <KEY_WPS_BUTTON>;
  30. };
  31. reset {
  32. label = "reset";
  33. gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
  34. linux,code = <KEY_RESTART>;
  35. };
  36. };
  37. gpio-leds {
  38. compatible = "gpio-leds";
  39. power_green: power {
  40. label = "arv7525pw:green:power";
  41. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  42. default-state = "keep";
  43. };
  44. power_red: power1 {
  45. label = "arv7525pw:red:power";
  46. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  47. };
  48. online: online {
  49. label = "arv7525pw:green:online";
  50. gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  51. };
  52. voice {
  53. label = "arv7525pw:green:telefonie";
  54. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  55. };
  56. voice2 {
  57. label = "arv7525pw:red:telefonie";
  58. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  59. };
  60. wifi: wifi {
  61. label = "arv7525pw:green:wlan";
  62. gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
  63. };
  64. };
  65. };
  66. &gpio {
  67. pinctrl-names = "default";
  68. pinctrl-0 = <&state_default>;
  69. state_default: pinmux {
  70. exin {
  71. lantiq,groups = "exin1";
  72. lantiq,function = "exin";
  73. };
  74. pci {
  75. lantiq,groups = "gnt1", "req1";
  76. lantiq,function = "pci";
  77. };
  78. };
  79. };
  80. &gsw {
  81. phy-mode = "mii";
  82. mtd-mac-address = <&boardconfig 0x16>;
  83. };
  84. &localbus {
  85. nor@0 {
  86. compatible = "lantiq,nor";
  87. bank-width = <2>;
  88. reg = <0 0x0 0x2000000>;
  89. #address-cells = <1>;
  90. #size-cells = <1>;
  91. partitions {
  92. compatible = "fixed-partitions";
  93. #address-cells = <1>;
  94. #size-cells = <1>;
  95. partition@0 {
  96. label = "uboot";
  97. reg = <0x00000 0x10000>;
  98. read-only;
  99. };
  100. partition@10000 {
  101. label = "uboot_env";
  102. reg = <0x10000 0x10000>;
  103. read-only;
  104. };
  105. partition@20000 {
  106. label = "firmware";
  107. reg = <0x20000 0x3d0000>;
  108. };
  109. boardconfig: partition@400000 {
  110. label = "board_config";
  111. reg = <0x3f0000 0x10000>;
  112. read-only;
  113. };
  114. };
  115. };
  116. };
  117. &pci0 {
  118. status = "okay";
  119. interrupt-map = <0x7000 0 0 1 &icu0 135 1>;
  120. wifi@0,0 {
  121. compatible = "pci0,0";
  122. reg = <0x7000 0 0 0 0>;
  123. ralink,mtd-eeprom = <&boardconfig 0x410>;
  124. };
  125. };
  126. &vmmc {
  127. status = "okay";
  128. gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
  129. };