d566647a058d267aa795be9edccd08e97c613eac
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_etactica_eg200.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9331.dtsi"
8
9 / {
10 model = "eTactica EG200";
11 compatible = "etactica,eg200", "qca,ar9331";
12
13 aliases {
14 serial0 = &uart;
15 };
16
17 keys {
18 compatible = "gpio-keys-polled";
19 poll-interval = <50>;
20
21 restore {
22 linux,code = <KEY_WPS_BUTTON>;
23 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
24 };
25 };
26
27 leds {
28 compatible = "gpio-leds";
29
30 modbus {
31 label = "eg200:red:modbus";
32 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
33 };
34
35 etactica {
36 label = "eg200:red:etactica";
37 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
38 };
39
40 eth0 {
41 label = "eg200:red:eth0";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 };
44
45 wlan {
46 label = "eg200:red:wlan";
47 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
49 };
50 };
51 };
52
53 &uart {
54 status = "okay";
55 };
56
57 &gpio {
58 status = "okay";
59 };
60
61 &usb {
62 dr_mode = "host";
63 status = "okay";
64 };
65
66 &usb_phy {
67 status = "okay";
68 };
69
70 &eth0 {
71 status = "okay";
72 mtd-mac-address = <&art 0x0>;
73
74 gmac-config {
75 device = <&gmac>;
76 switch-phy-addr-swap = <1>;
77 switch-phy-swap = <1>;
78 };
79 };
80
81 &eth1 {
82 status = "okay";
83 compatible = "syscon", "simple-mfd";
84 };
85
86 &spi {
87 num-chipselects = <1>;
88 status = "okay";
89
90 flash@0 {
91 compatible = "jedec,spi-nor";
92 spi-max-frequency = <50000000>;
93 reg = <0>;
94
95 partitions {
96 compatible = "fixed-partitions";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 uboot@0 {
101 reg = <0x0 0x40000>;
102 read-only;
103 };
104
105 uboot-env@40000 {
106 reg = <0x40000 0x10000>;
107 read-only;
108 };
109
110 firmware@50000 {
111 compatible = "denx,uimage";
112 reg = <0x50000 0xfa0000>;
113 };
114
115 art: art@ff0000 {
116 reg = <0xff0000 0x10000>;
117 read-only;
118 };
119 };
120 };
121 };
122
123 &wmac {
124 status = "okay";
125 mtd-cal-data = <&art 0x1000>;
126 mtd-mac-address = <&art 0x1002>;
127 };