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