1
0

ar9341_pcs_cr3000.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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 "ar9341.dtsi"
  6. / {
  7. model = "PowerCloud Systems CR3000";
  8. compatible = "pcs,cr3000", "qca,ar9341";
  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. wps {
  28. label = "WPS button";
  29. linux,code = <KEY_WPS_BUTTON>;
  30. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  31. debounce-interval = <60>;
  32. };
  33. };
  34. leds {
  35. compatible = "gpio-leds";
  36. status: power {
  37. label = "pcs:amber:power";
  38. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  39. default-state = "on";
  40. };
  41. wlan2g {
  42. label = "pcs:blue:wlan";
  43. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  44. linux,default-trigger = "phy0tpt";
  45. };
  46. wan {
  47. label = "pcs:blue:wan";
  48. gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
  49. };
  50. lan1 {
  51. label = "pcs:blue:lan1";
  52. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  53. };
  54. lan2 {
  55. label = "pcs:blue:lan2";
  56. gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
  57. };
  58. lan3 {
  59. label = "pcs:blue:lan3";
  60. gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
  61. };
  62. lan4 {
  63. label = "pcs:blue:lan4";
  64. gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
  65. };
  66. };
  67. };
  68. &ref {
  69. clock-frequency = <25000000>;
  70. };
  71. &uart {
  72. status = "okay";
  73. };
  74. &gpio {
  75. status = "okay";
  76. };
  77. &spi {
  78. num-cs = <1>;
  79. status = "okay";
  80. flash@0 {
  81. compatible = "jedec,spi-nor";
  82. reg = <0>;
  83. spi-max-frequency = <25000000>;
  84. partitions {
  85. compatible = "fixed-partitions";
  86. #address-cells = <1>;
  87. #size-cells = <1>;
  88. uboot: partition@0 {
  89. label = "u-boot";
  90. reg = <0x000000 0x040000>;
  91. read-only;
  92. };
  93. partition@40000 {
  94. label = "u-boot-env";
  95. reg = <0x040000 0x010000>;
  96. read-only;
  97. };
  98. partition@50000 {
  99. compatible = "denx,uimage";
  100. label = "firmware";
  101. reg = <0x050000 0x07a0000>;
  102. };
  103. art: partition@7f0000 {
  104. label = "art";
  105. reg = <0x7f0000 0x010000>;
  106. read-only;
  107. };
  108. };
  109. };
  110. };
  111. &wmac {
  112. status = "okay";
  113. mtd-cal-data = <&art 0x1000>;
  114. mtd-mac-address = <&art 0x1002>;
  115. };
  116. &eth0 {
  117. status = "okay";
  118. phy-handle = <&swphy0>;
  119. mtd-mac-address = <&art 0x0>;
  120. mtd-mac-address-increment = <1>;
  121. };
  122. &eth1 {
  123. status = "okay";
  124. phy-handle = <&swphy4>;
  125. mtd-mac-address = <&art 0x0>;
  126. phy-mode = "gmii";
  127. pll-data = <0x06000000 0x00000101 0x00001616>;
  128. gmac-config {
  129. device = <&gmac>;
  130. switch-phy-swap = <1>;
  131. };
  132. };