ath79: enable gpio on ar933x by default
[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 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";
22
23 restore {
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31 pinctrl-names = "default";
32 pinctrl-0 = <&switch_led_disable_pins>;
33
34 modbus {
35 label = "eg200:red:modbus";
36 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
37 };
38
39 led_etactica: etactica {
40 label = "eg200:red:etactica";
41 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
42 };
43
44 eth0 {
45 label = "eg200:red:eth0";
46 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
47 };
48
49 wlan {
50 label = "eg200:red:wlan";
51 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
53 };
54 };
55 };
56
57 &uart {
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 };