FRITZ7320.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /dts-v1/;
  2. #include "ar9.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "avm,fritz7320", "lantiq,xway", "lantiq,ar9";
  6. model = "AVM FRITZ!Box 7320";
  7. chosen {
  8. bootargs = "console=ttyLTQ0,115200";
  9. };
  10. aliases {
  11. led-boot = &power;
  12. led-failsafe = &power;
  13. led-running = &power;
  14. led-upgrade = &power;
  15. led-internet = &info_green;
  16. led-dsl = &power;
  17. led-wifi = &wlan;
  18. };
  19. memory@0 {
  20. reg = <0x0 0x4000000>;
  21. };
  22. gpio-keys-polled {
  23. compatible = "gpio-keys-polled";
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. poll-interval = <100>;
  27. rfkill {
  28. label = "rfkill";
  29. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  30. linux,code = <KEY_RFKILL>;
  31. };
  32. dect {
  33. label = "dect";
  34. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  35. linux,code = <KEY_PHONE>;
  36. };
  37. };
  38. gpio-leds {
  39. compatible = "gpio-leds";
  40. power: power {
  41. label = "fritz7320:green:power";
  42. gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
  43. default-state = "keep";
  44. };
  45. voice {
  46. label = "fritz7320:green:fon";
  47. gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
  48. };
  49. dect {
  50. label = "fritz7320:green:dect";
  51. gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
  52. };
  53. wlan: wlan {
  54. label = "fritz7320:green:wlan";
  55. gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
  56. };
  57. info_green: info_green {
  58. label = "fritz7320:green:info";
  59. gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
  60. };
  61. info_red {
  62. label = "fritz7320:red:info";
  63. gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
  64. };
  65. };
  66. };
  67. &gpio {
  68. pinctrl-names = "default";
  69. pinctrl-0 = <&state_default>;
  70. state_default: pinmux {
  71. pci {
  72. lantiq,groups = "gnt1", "req1", "req2", "req3", "req4", "gnt2", "gnt3", "gnt4";
  73. lantiq,function = "pci";
  74. };
  75. pci-in {
  76. lantiq,groups = "req1", "req2", "req3", "req4";
  77. lantiq,output = <0>;
  78. lantiq,open-drain = <1>;
  79. lantiq,pull = <2>;
  80. };
  81. pci-out {
  82. lantiq,groups = "gnt1", "gnt2", "gnt3", "gnt4";
  83. lantiq,output = <1>;
  84. lantiq,pull = <0>;
  85. };
  86. };
  87. };
  88. &gsw {
  89. phy-mode = "mii";
  90. mtd-mac-address = <&ath9k_cal 0xa91>;
  91. mtd-mac-address-increment = <(-2)>;
  92. };
  93. &localbus {
  94. nor@0 {
  95. compatible = "lantiq,nor";
  96. bank-width = <2>;
  97. reg = <0 0x0 0x1000000>;
  98. #address-cells = <1>;
  99. #size-cells = <1>;
  100. partitions {
  101. compatible = "fixed-partitions";
  102. #address-cells = <1>;
  103. #size-cells = <1>;
  104. ath9k_cal: partition@0 {
  105. label = "urlader";
  106. reg = <0x00000 0x20000>;
  107. read-only;
  108. };
  109. partition@20000 {
  110. label = "firmware";
  111. reg = <0x20000 0xf60000>;
  112. };
  113. partition@f80000 {
  114. label = "tffs (1)";
  115. reg = <0xf80000 0x40000>;
  116. read-only;
  117. };
  118. partition@fc0000 {
  119. label = "tffs (2)";
  120. reg = <0xfc0000 0x40000>;
  121. read-only;
  122. };
  123. };
  124. };
  125. };
  126. &pci0 {
  127. status = "okay";
  128. req-mask = <0xf>;
  129. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  130. wifi@0,0 {
  131. compatible = "pci0,0";
  132. reg = <0x7000 0 0 0 0>;
  133. qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
  134. };
  135. };
  136. &usb_phy0 {
  137. status = "okay";
  138. };
  139. &usb0 {
  140. status = "okay";
  141. };