qca9563_rosinson_wr818.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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 "qca956x.dtsi"
  6. / {
  7. model = "ROSINSON WR818";
  8. compatible = "rosinson,wr818", "qca,qca9563";
  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. gpio_leds: leds {
  19. compatible = "gpio-leds";
  20. system: system {
  21. label = "wr818:red:system";
  22. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  23. };
  24. wifi_2g {
  25. label = "wr818:red:wifi2g";
  26. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  27. linux,default-trigger = "phy0tpt";
  28. };
  29. };
  30. keys {
  31. compatible = "gpio-keys";
  32. reset {
  33. label = "reset";
  34. linux,code = <KEY_RESTART>;
  35. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  36. debounce-interval = <60>;
  37. };
  38. };
  39. };
  40. &uart {
  41. status = "okay";
  42. };
  43. &gpio {
  44. status = "okay";
  45. };
  46. &spi {
  47. num-cs = <1>;
  48. status = "okay";
  49. flash@0 {
  50. compatible = "jedec,spi-nor";
  51. reg = <0>;
  52. spi-max-frequency = <25000000>;
  53. partitions {
  54. compatible = "fixed-partitions";
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. partition@0 {
  58. label = "u-boot";
  59. reg = <0x000000 0x040000>;
  60. read-only;
  61. };
  62. partition@40000 {
  63. label = "u-boot-env";
  64. reg = <0x040000 0x010000>;
  65. read-only;
  66. };
  67. info: partition@50000 {
  68. label = "factory";
  69. reg = <0x050000 0x010000>;
  70. read-only;
  71. };
  72. partition@60000 {
  73. compatible = "denx,uimage";
  74. label = "firmware";
  75. reg = <0x060000 0xf80000>;
  76. };
  77. art: partition@ff0000 {
  78. label = "art";
  79. reg = <0xff0000 0x010000>;
  80. read-only;
  81. };
  82. };
  83. };
  84. };
  85. &mdio0 {
  86. status = "okay";
  87. phy-mask = <0>;
  88. phy0: ethernet-phy@0 {
  89. reg = <0>;
  90. phy-mode = "sgmii";
  91. qca,ar8327-initvals = <
  92. 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
  93. 0x7c 0x0000007e /* PORT0_STATUS */
  94. >;
  95. };
  96. };
  97. &eth0 {
  98. status = "okay";
  99. mtd-mac-address = <&info 0x0>;
  100. phy-mode = "sgmii";
  101. phy-handle = <&phy0>;
  102. };
  103. &wmac {
  104. status = "okay";
  105. mtd-cal-data = <&art 0x1000>;
  106. };
  107. &usb_phy0 {
  108. status = "okay";
  109. };
  110. &usb0 {
  111. #address-cells = <1>;
  112. #size-cells = <0>;
  113. status = "okay";
  114. port@1 {
  115. reg = <1>;
  116. #trigger-source-cells = <0>;
  117. };
  118. };
  119. &usb_phy1 {
  120. status = "okay";
  121. };
  122. &usb1 {
  123. #address-cells = <1>;
  124. #size-cells = <0>;
  125. status = "okay";
  126. port@2 {
  127. reg = <2>;
  128. #trigger-source-cells = <0>;
  129. };
  130. };