qca9558_devolo_dvl1xxx.dtsi 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /*
  3. * The hardware of this board family is most likely shared with other devices
  4. * from other manufacturers.
  5. * Devolo seems to use hardware from Edimax, namely the Edimax WAP1750.
  6. *
  7. * The base board is identical but the single models differ in number of
  8. * buttons, ethernet ports, external console, USB, external / internal
  9. * antennas and number of spatial streams.
  10. */
  11. /dts-v1/;
  12. #include <dt-bindings/gpio/gpio.h>
  13. #include <dt-bindings/input/input.h>
  14. #include "qca9557.dtsi"
  15. / {
  16. chosen {
  17. bootargs = "console=ttyS0,115200n8";
  18. };
  19. keys {
  20. compatible = "gpio-keys";
  21. reset {
  22. label = "Reset button";
  23. linux,code = <KEY_RESTART>;
  24. gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
  25. debounce-interval = <60>;
  26. };
  27. };
  28. watchdog {
  29. compatible = "linux,wdt-gpio";
  30. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  31. hw_algo = "toggle";
  32. hw_margin_ms = <300>;
  33. always-running;
  34. };
  35. };
  36. &pcie0 {
  37. status = "okay";
  38. };
  39. &uart {
  40. status = "okay";
  41. };
  42. &gpio {
  43. status = "okay";
  44. };
  45. &spi {
  46. status = "okay";
  47. num-cs = <1>;
  48. flash@0 {
  49. compatible = "jedec,spi-nor";
  50. reg = <0>;
  51. spi-max-frequency = <25000000>;
  52. partitions {
  53. compatible = "fixed-partitions";
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. partition@0 {
  57. label = "u-boot";
  58. reg = <0x000000 0x040000>;
  59. read-only;
  60. };
  61. partition@40000 {
  62. label = "u-boot-env";
  63. reg = <0x040000 0x010000>;
  64. read-only;
  65. };
  66. art: partition@50000 {
  67. label = "art";
  68. reg = <0x050000 0x010000>;
  69. read-only;
  70. };
  71. partition@60000 {
  72. label = "art_bak";
  73. reg = <0x060000 0x010000>;
  74. read-only;
  75. };
  76. partition@70000 {
  77. compatible = "denx,uimage";
  78. label = "firmware";
  79. reg = <0x070000 0xf90000>;
  80. };
  81. };
  82. };
  83. };
  84. &mdio0 {
  85. status = "okay";
  86. phy4: ethernet-phy@4 {
  87. reg = <4>;
  88. at803x-disable-smarteee;
  89. };
  90. };
  91. &eth0 {
  92. status = "okay";
  93. mtd-mac-address = <&art 0x00>;
  94. phy-handle = <&phy4>;
  95. pll-data = <0xae000000 0x80000101 0x80001313>;
  96. gmac_config: gmac-config {
  97. device = <&gmac>;
  98. rxdv-delay = <3>;
  99. rxd-delay = <3>;
  100. txen-delay = <0>;
  101. txd-delay = <0>;
  102. rgmii-enabled = <1>;
  103. };
  104. };
  105. &mdio1 {
  106. phy1: ethernet-phy@1 {
  107. reg = <1>;
  108. };
  109. };
  110. &eth1 {
  111. mtd-mac-address = <&art 0x00>;
  112. mtd-mac-address-increment = <1>;
  113. phy-handle = <&phy1>;
  114. pll-data = <0x03000101 0x00000101 0x00001313>;
  115. };
  116. &wmac {
  117. status = "okay";
  118. mtd-cal-data = <&art 0x1000>;
  119. mtd-mac-address = <&art 0x00>;
  120. mtd-mac-address-increment = <(-2)>;
  121. };