ath79: add support for Ubiquiti airCube AC
[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 status = "okay";
87
88 flash@0 {
89 compatible = "jedec,spi-nor";
90 spi-max-frequency = <50000000>;
91 reg = <0>;
92
93 partitions {
94 compatible = "fixed-partitions";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 uboot@0 {
99 reg = <0x0 0x40000>;
100 read-only;
101 };
102
103 uboot-env@40000 {
104 reg = <0x40000 0x10000>;
105 read-only;
106 };
107
108 firmware@50000 {
109 compatible = "denx,uimage";
110 reg = <0x50000 0xfa0000>;
111 };
112
113 art: art@ff0000 {
114 reg = <0xff0000 0x10000>;
115 read-only;
116 };
117 };
118 };
119 };
120
121 &wmac {
122 status = "okay";
123 mtd-cal-data = <&art 0x1000>;
124 };