ar9344_pcs_cap324.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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 = &running;
  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. status: power_amber {
  31. label = "pcs:amber:power";
  32. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  33. };
  34. running: power_green {
  35. label = "pcs:green:power";
  36. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  37. default-state = "on";
  38. };
  39. wlan_amber {
  40. label = "pcs:amber:wlan";
  41. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  42. linux,default-trigger = "phy1tpt";
  43. };
  44. wlan_green {
  45. label = "pcs:green:wlan";
  46. gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
  47. linux,default-trigger = "phy0tpt";
  48. };
  49. lan_amber {
  50. label = "pcs:lan:amber";
  51. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  52. };
  53. lan_green {
  54. label = "pcs:lan:green";
  55. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  56. };
  57. };
  58. };
  59. &ref {
  60. clock-frequency = <25000000>;
  61. };
  62. &uart {
  63. status = "okay";
  64. };
  65. &gpio {
  66. status = "okay";
  67. };
  68. &spi {
  69. num-cs = <1>;
  70. status = "okay";
  71. flash@0 {
  72. compatible = "jedec,spi-nor";
  73. reg = <0>;
  74. spi-max-frequency = <25000000>;
  75. partitions {
  76. compatible = "fixed-partitions";
  77. #address-cells = <1>;
  78. #size-cells = <1>;
  79. uboot: partition@0 {
  80. label = "u-boot";
  81. reg = <0x000000 0x040000>;
  82. read-only;
  83. };
  84. partition@40000 {
  85. label = "u-boot-env";
  86. reg = <0x040000 0x010000>;
  87. read-only;
  88. };
  89. partition@50000 {
  90. compatible = "denx,uimage";
  91. label = "firmware";
  92. reg = <0x050000 0x0fa0000>;
  93. };
  94. art: partition@7f0000 {
  95. label = "art";
  96. reg = <0xff0000 0x010000>;
  97. read-only;
  98. };
  99. };
  100. };
  101. };
  102. &pcie {
  103. status = "okay";
  104. ath9k: wifi@0,0 {
  105. compatible = "168c,0030";
  106. reg = <0x0000 0 0 0 0>;
  107. mtd-mac-address = <&art 0x0>;
  108. mtd-mac-address-increment = <(-2)>;
  109. mtd-cal-data = <&art 0x5000>;
  110. qca,no-eeprom;
  111. qca,disable-5ghz;
  112. #gpio-cells = <2>;
  113. gpio-controller;
  114. };
  115. };
  116. &wmac {
  117. status = "okay";
  118. qca,disable-2ghz;
  119. mtd-cal-data = <&art 0x1000>;
  120. mtd-mac-address = <&art 0x0>;
  121. mtd-mac-address-increment = <(-1)>;
  122. };
  123. &mdio0 {
  124. status = "okay";
  125. phy-mask = <0>;
  126. phy0: ethernet-phy@0 {
  127. reg = <0>;
  128. phy-mode = "rgmii";
  129. };
  130. };
  131. &eth0 {
  132. status = "okay";
  133. /* default for ar934x, except for 1000M */
  134. pll-data = <0x06000000 0x00000101 0x00001616>;
  135. mtd-mac-address = <&art 0x0>;
  136. phy-mode = "rgmii";
  137. phy-handle = <&phy0>;
  138. };