qca9531_yuncore_a770.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 "qca953x.dtsi"
  6. / {
  7. model = "YunCore A770";
  8. compatible = "yuncore,a770", "qca,qca9533";
  9. aliases {
  10. led-boot = &status;
  11. led-failsafe = &status;
  12. led-running = &status;
  13. led-upgrade = &status;
  14. };
  15. chosen {
  16. bootargs = "console=ttyS0,115200n8";
  17. };
  18. keys {
  19. compatible = "gpio-keys";
  20. reset {
  21. label = "reset";
  22. linux,code = <KEY_RESTART>;
  23. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  24. debounce-interval = <60>;
  25. };
  26. };
  27. leds {
  28. compatible = "gpio-leds";
  29. lan {
  30. label = "a770:green:lan";
  31. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  32. };
  33. status: status {
  34. label = "a770:green:status";
  35. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  36. default-state = "keep";
  37. };
  38. wan {
  39. label = "a770:green:wan";
  40. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  41. };
  42. wlan2g {
  43. label = "a770:red:wlan2g";
  44. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  45. linux,default-trigger = "phy1tpt";
  46. };
  47. };
  48. };
  49. &eth0 {
  50. status = "okay";
  51. phy-handle = <&swphy4>;
  52. mtd-mac-address = <&art 0x0>;
  53. };
  54. &eth1 {
  55. mtd-mac-address = <&art 0x6>;
  56. };
  57. &pcie0 {
  58. status = "okay";
  59. };
  60. &spi {
  61. status = "okay";
  62. num-cs = <1>;
  63. flash@0 {
  64. compatible = "jedec,spi-nor";
  65. reg = <0>;
  66. spi-max-frequency = <25000000>;
  67. partitions {
  68. compatible = "fixed-partitions";
  69. #address-cells = <1>;
  70. #size-cells = <1>;
  71. partition@0 {
  72. label = "u-boot";
  73. reg = <0x000000 0x040000>;
  74. read-only;
  75. };
  76. partition@40000 {
  77. label = "u-boot-env";
  78. reg = <0x040000 0x010000>;
  79. };
  80. partition@50000 {
  81. compatible = "denx,uimage";
  82. label = "firmware";
  83. reg = <0x050000 0xfa0000>;
  84. };
  85. art: partition@ff0000 {
  86. label = "art";
  87. reg = <0xff0000 0x010000>;
  88. read-only;
  89. };
  90. };
  91. };
  92. };
  93. &uart {
  94. status = "okay";
  95. };
  96. &wmac {
  97. status = "okay";
  98. mtd-cal-data = <&art 0x1000>;
  99. };