ar9344_pcs_cap324.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "ar9344.dtsi"
  6. / {
  7. model = "PowerCloud Systems CAP324";
  8. compatible = "pcs,cap324", "qca,ar9344";
  9. aliases {
  10. serial0 = &uart;
  11. led-boot = &status;
  12. led-failsafe = &status;
  13. led-running = &status;
  14. led-upgrade = &status;
  15. };
  16. keys {
  17. compatible = "gpio-keys-polled";
  18. poll-interval = <20>;
  19. pinctrl-names = "default";
  20. pinctrl-0 = <&jtag_disable_pins>;
  21. reset {
  22. label = "Reset button";
  23. linux,code = <KEY_RESTART>;
  24. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  25. debounce-interval = <60>;
  26. };
  27. };
  28. leds {
  29. compatible = "gpio-leds";
  30. power_amber {
  31. label = "pcs:amber:power";
  32. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  33. default-state = "off";
  34. };
  35. status: power_green {
  36. label = "pcs:green:power";
  37. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  38. default-state = "on";
  39. };
  40. wlan_amber {
  41. label = "pcs:amber:wlan";
  42. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  43. default-state = "off";
  44. linux,default-trigger = "phy1tpt";
  45. };
  46. wlan_green {
  47. label = "pcs:green:wlan";
  48. gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
  49. default-state = "off";
  50. linux,default-trigger = "phy0tpt";
  51. };
  52. lan_amber {
  53. label = "pcs:lan:amber";
  54. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  55. default-state = "off";
  56. };
  57. lan_green {
  58. label = "pcs:lan:green";
  59. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  60. default-state = "off";
  61. };
  62. };
  63. };
  64. &ref {
  65. clock-frequency = <25000000>;
  66. };
  67. &uart {
  68. status = "okay";
  69. };
  70. &gpio {
  71. status = "okay";
  72. };
  73. &spi {
  74. num-cs = <1>;
  75. status = "okay";
  76. flash@0 {
  77. compatible = "jedec,spi-nor";
  78. reg = <0>;
  79. spi-max-frequency = <25000000>;
  80. partitions {
  81. compatible = "fixed-partitions";
  82. #address-cells = <1>;
  83. #size-cells = <1>;
  84. uboot: partition@0 {
  85. label = "u-boot";
  86. reg = <0x000000 0x040000>;
  87. read-only;
  88. };
  89. partition@40000 {
  90. label = "u-boot-env";
  91. reg = <0x040000 0x010000>;
  92. read-only;
  93. };
  94. partition@50000 {
  95. label = "firmware";
  96. reg = <0x050000 0x0fa0000>;
  97. };
  98. art: partition@7f0000 {
  99. label = "art";
  100. reg = <0xff0000 0x010000>;
  101. read-only;
  102. };
  103. };
  104. };
  105. };
  106. &pcie {
  107. status = "okay";
  108. ath9k: wifi@0,0 {
  109. compatible = "168c,0030";
  110. reg = <0x0000 0 0 0 0>;
  111. mtd-mac-address = <&art 0x0>;
  112. mtd-mac-address-increment = <(-2)>;
  113. mtd-cal-data = <&art 0x5000>;
  114. qca,no-eeprom;
  115. qca,disable-5ghz;
  116. #gpio-cells = <2>;
  117. gpio-controller;
  118. };
  119. };
  120. &wmac {
  121. status = "okay";
  122. qca,disable-2ghz;
  123. mtd-cal-data = <&art 0x1000>;
  124. mtd-mac-address = <&art 0x0>;
  125. mtd-mac-address-increment = <(-1)>;
  126. };
  127. &mdio0 {
  128. status = "okay";
  129. phy-mask = <0>;
  130. phy0: ethernet-phy@0 {
  131. reg = <0>;
  132. phy-mode = "rgmii";
  133. };
  134. };
  135. &eth0 {
  136. status = "okay";
  137. /* default for ar934x, except for 1000M */
  138. pll-data = <0x06000000 0x00000101 0x00001616>;
  139. mtd-mac-address = <&art 0x0>;
  140. phy-mode = "rgmii";
  141. phy-handle = <&phy0>;
  142. };