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