oxnas: drop target
[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 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "eTactica EG200";
11 compatible = "etactica,eg200", "qca,ar9331";
12
13 aliases {
14 led-boot = &led_etactica;
15 led-failsafe = &led_etactica;
16 led-upgrade = &led_etactica;
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 function = LED_FUNCTION_WLAN;
50 color = <LED_COLOR_ID_RED>;
51 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
53 };
54 };
55 };
56
57 &usb {
58 dr_mode = "host";
59 status = "okay";
60 };
61
62 &usb_phy {
63 status = "okay";
64 };
65
66 &eth0 {
67 status = "okay";
68 nvmem-cells = <&macaddr_art_0>;
69 nvmem-cell-names = "mac-address";
70
71 gmac-config {
72 device = <&gmac>;
73 switch-phy-addr-swap = <1>;
74 switch-phy-swap = <1>;
75 };
76 };
77
78 &eth1 {
79 status = "okay";
80 compatible = "syscon", "simple-mfd";
81 };
82
83 &spi {
84 status = "okay";
85
86 flash@0 {
87 compatible = "jedec,spi-nor";
88 spi-max-frequency = <50000000>;
89 reg = <0>;
90
91 partitions {
92 compatible = "fixed-partitions";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 uboot@0 {
97 reg = <0x0 0x40000>;
98 read-only;
99 };
100
101 uboot-env@40000 {
102 reg = <0x40000 0x10000>;
103 read-only;
104 };
105
106 firmware@50000 {
107 compatible = "denx,uimage";
108 reg = <0x50000 0xfa0000>;
109 };
110
111 art: art@ff0000 {
112 reg = <0xff0000 0x10000>;
113 read-only;
114
115 nvmem-layout {
116 compatible = "fixed-layout";
117 #address-cells = <1>;
118 #size-cells = <1>;
119
120 macaddr_art_0: macaddr@0 {
121 reg = <0x0 0x6>;
122 };
123 };
124 };
125 };
126 };
127 };
128
129 &wmac {
130 status = "okay";
131 mtd-cal-data = <&art 0x1000>;
132 };