ath79: eg200: enable status led usage
[openwrt/staging/wigyori.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 led-boot = &led_etactica;
15 led-failsafe = &led_etactica;
16 led-upgrade = &led_etactica;
17 serial0 = &uart;
18 };
19
20 keys {
21 compatible = "gpio-keys-polled";
22 poll-interval = <50>;
23
24 restore {
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32 pinctrl-names = "default";
33 pinctrl-0 = <&switch_led_disable_pins>;
34
35 modbus {
36 label = "eg200:red:modbus";
37 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
38 };
39
40 led_etactica: etactica {
41 label = "eg200:red:etactica";
42 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
43 };
44
45 eth0 {
46 label = "eg200:red:eth0";
47 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
48 };
49
50 wlan {
51 label = "eg200:red:wlan";
52 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy0tpt";
54 };
55 };
56 };
57
58 &uart {
59 status = "okay";
60 };
61
62 &gpio {
63 status = "okay";
64 };
65
66 &usb {
67 dr_mode = "host";
68 status = "okay";
69 };
70
71 &usb_phy {
72 status = "okay";
73 };
74
75 &eth0 {
76 status = "okay";
77 mtd-mac-address = <&art 0x0>;
78
79 gmac-config {
80 device = <&gmac>;
81 switch-phy-addr-swap = <1>;
82 switch-phy-swap = <1>;
83 };
84 };
85
86 &eth1 {
87 status = "okay";
88 compatible = "syscon", "simple-mfd";
89 };
90
91 &spi {
92 num-chipselects = <1>;
93 status = "okay";
94
95 flash@0 {
96 compatible = "jedec,spi-nor";
97 spi-max-frequency = <50000000>;
98 reg = <0>;
99
100 partitions {
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 uboot@0 {
106 reg = <0x0 0x40000>;
107 read-only;
108 };
109
110 uboot-env@40000 {
111 reg = <0x40000 0x10000>;
112 read-only;
113 };
114
115 firmware@50000 {
116 compatible = "denx,uimage";
117 reg = <0x50000 0xfa0000>;
118 };
119
120 art: art@ff0000 {
121 reg = <0xff0000 0x10000>;
122 read-only;
123 };
124 };
125 };
126 };
127
128 &wmac {
129 status = "okay";
130 mtd-cal-data = <&art 0x1000>;
131 mtd-mac-address = <&art 0x1002>;
132 };