ar9331_etactica_eg200.dts 1.9 KB

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