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