ar9331_etactica_eg200.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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 "ar9331.dtsi"
  6. / {
  7. model = "eTactica EG200";
  8. compatible = "etactica,eg200", "qca,ar9331";
  9. aliases {
  10. serial0 = &uart;
  11. };
  12. keys {
  13. compatible = "gpio-keys-polled";
  14. poll-interval = <50>;
  15. restore {
  16. linux,code = <KEY_WPS_BUTTON>;
  17. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  18. };
  19. };
  20. leds {
  21. compatible = "gpio-leds";
  22. modbus {
  23. label = "eg200:red:modbus";
  24. gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
  25. };
  26. etactica {
  27. label = "eg200:red:etactica";
  28. gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
  29. };
  30. eth0 {
  31. label = "eg200:red:eth0";
  32. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  33. };
  34. wlan {
  35. label = "eg200:red:wlan";
  36. gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
  37. linux,default-trigger = "phy0tpt";
  38. };
  39. };
  40. };
  41. &uart {
  42. status = "okay";
  43. };
  44. &gpio {
  45. status = "okay";
  46. };
  47. &usb {
  48. dr_mode = "host";
  49. status = "okay";
  50. };
  51. &usb_phy {
  52. status = "okay";
  53. };
  54. &eth0 {
  55. status = "okay";
  56. mtd-mac-address = <&art 0x0>;
  57. gmac-config {
  58. device = <&gmac>;
  59. switch-phy-addr-swap = <1>;
  60. switch-phy-swap = <1>;
  61. };
  62. };
  63. &eth1 {
  64. status = "okay";
  65. compatible = "syscon", "simple-mfd";
  66. };
  67. &spi {
  68. num-chipselects = <1>;
  69. status = "okay";
  70. flash@0 {
  71. compatible = "jedec,spi-nor";
  72. spi-max-frequency = <50000000>;
  73. reg = <0>;
  74. partitions {
  75. compatible = "fixed-partitions";
  76. #address-cells = <1>;
  77. #size-cells = <1>;
  78. uboot@0 {
  79. reg = <0x0 0x40000>;
  80. read-only;
  81. };
  82. uboot-env@40000 {
  83. reg = <0x40000 0x10000>;
  84. read-only;
  85. };
  86. firmware@50000 {
  87. compatible = "denx,uimage";
  88. reg = <0x50000 0xfa0000>;
  89. };
  90. art: art@ff0000 {
  91. reg = <0xff0000 0x10000>;
  92. read-only;
  93. };
  94. };
  95. };
  96. };
  97. &wmac {
  98. status = "okay";
  99. mtd-cal-data = <&art 0x1000>;
  100. mtd-mac-address = <&art 0x1002>;
  101. };