qca9558_ocedo_koala.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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 "qca9557.dtsi"
  6. / {
  7. compatible = "ocedo,koala", "qca,qca9557";
  8. model = "OCEDO Koala";
  9. chosen {
  10. bootargs = "console=ttyS0,115200n8";
  11. };
  12. aliases {
  13. led-boot = &system;
  14. led-failsafe = &system;
  15. led-running = &system;
  16. led-upgrade = &system;
  17. };
  18. leds {
  19. compatible = "gpio-leds";
  20. power {
  21. label = "koala:green:power";
  22. gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
  23. default-state = "on";
  24. };
  25. wifi2 {
  26. label = "koala:yellow:wlan2";
  27. gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
  28. linux,default-trigger = "phy1tpt";
  29. };
  30. wifi5 {
  31. label = "koala:red:wlan58";
  32. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  33. linux,default-trigger = "phy0tpt";
  34. };
  35. system: system {
  36. label = "koala:blue:sys";
  37. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  38. };
  39. };
  40. keys {
  41. compatible = "gpio-keys-polled";
  42. poll-interval = <100>;
  43. reset {
  44. label = "reset";
  45. linux,code = <KEY_RESTART>;
  46. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  47. };
  48. };
  49. };
  50. &pcie0 {
  51. status = "okay";
  52. };
  53. &uart {
  54. status = "okay";
  55. };
  56. &pll {
  57. clocks = <&extosc>;
  58. };
  59. &spi {
  60. status = "okay";
  61. num-cs = <1>;
  62. flash@0 {
  63. compatible = "jedec,spi-nor";
  64. reg = <0>;
  65. spi-max-frequency = <25000000>;
  66. partitions {
  67. compatible = "fixed-partitions";
  68. #address-cells = <1>;
  69. #size-cells = <1>;
  70. uboot: partition@0 {
  71. label = "u-boot";
  72. reg = <0x000000 0x040000>;
  73. read-only;
  74. };
  75. partition@40000 {
  76. label = "u-boot-env";
  77. reg = <0x040000 0x010000>;
  78. };
  79. partition@50000 {
  80. compatible = "denx,uimage";
  81. label = "firmware";
  82. reg = <0x050000 0x740000>;
  83. };
  84. partition@790000 {
  85. label = "vendor";
  86. reg = <0x790000 0x740000>;
  87. read-only;
  88. };
  89. partition@ed0000 {
  90. label = "data";
  91. reg = <0xed0000 0x110000>;
  92. read-only;
  93. };
  94. partition@fe0000 {
  95. label = "id";
  96. reg = <0xfe0000 0x010000>;
  97. read-only;
  98. };
  99. art: partition@ff0000 {
  100. label = "art";
  101. reg = <0xff0000 0x010000>;
  102. read-only;
  103. };
  104. };
  105. };
  106. };
  107. &wmac {
  108. status = "okay";
  109. mtd-cal-data = <&art 0x1000>;
  110. mtd-mac-address = <&art 0x06>;
  111. };
  112. &mdio0 {
  113. status = "okay";
  114. phy5: ethernet-phy@5 {
  115. reg = <5>;
  116. phy-mode = "rgmii-rxid";
  117. at803x-disable-smarteee;
  118. };
  119. };
  120. &eth0 {
  121. status = "okay";
  122. mtd-mac-address = <&art 0x00>;
  123. phy-handle = <&phy5>;
  124. phy-mode = "rgmii-rxid";
  125. pll-data = <0xae000000 0xa0000101 0xa0001313>;
  126. gmac-config {
  127. device = <&gmac>;
  128. rxdv-delay = <3>;
  129. rxd-delay = <3>;
  130. txen-delay = <0>;
  131. txd-delay = <0>;
  132. rgmii-enabled = <1>;
  133. };
  134. };