ath79: fix dts whitespace
[openwrt/staging/aparcar.git] / target / linux / ath79 / dts / ar7161_trendnet_tew-673gru.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7100.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "trendnet,tew-673gru", "qca,ar7161";
10 model = "TRENDNET TEW-673GRU";
11
12 aliases {
13 led-boot = &led_wps;
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_wps: wps {
23 label = "blue:wps";
24 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
25 };
26 };
27
28 keys {
29 compatible = "gpio-keys";
30
31 reset {
32 label = "reset";
33 linux,code = <KEY_RESTART>;
34 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
35 };
36
37 wps {
38 label = "wps";
39 linux,code = <KEY_WPS_BUTTON>;
40 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
41 };
42 };
43
44 rtl8366s {
45 compatible = "realtek,rtl8366s";
46 gpio-sda = <&gpio 5 GPIO_ACTIVE_HIGH>;
47 gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
48 realtek,initvals = <0x06 0x0108>;
49
50 mdio-bus {
51 #address-cells = <1>;
52 #size-cells = <0>;
53 status = "okay";
54
55 phy4: ethernet-phy@4 {
56 reg = <4>;
57 phy-mode = "rgmii";
58 };
59 };
60 };
61
62 virtual_flash {
63 compatible = "mtd-concat";
64 devices = <&fwconcat0 &fwconcat1>;
65
66 partitions {
67 compatible = "fixed-partitions";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 partition@0 {
72 compatible = "denx,uimage";
73 label = "firmware";
74 reg = <0x0 0x0>;
75 };
76 };
77 };
78 };
79
80 &usb1 {
81 status = "okay";
82 };
83
84 &usb2 {
85 status = "okay";
86 };
87
88 &usb_phy {
89 status = "okay";
90 };
91
92 &pcie0 {
93 status = "okay";
94
95 wifi@0,11 {
96 compatible = "pci168c,0029";
97 reg = <0x8800 0 0 0 0>;
98 qca,no-eeprom;
99 };
100
101 wifi@0,12 {
102 compatible = "pci168c,0029";
103 reg = <0x9000 0 0 0 0>;
104 qca,no-eeprom;
105 };
106 };
107
108 &spi {
109 status = "okay";
110
111 flash@0 {
112 compatible = "jedec,spi-nor";
113 reg = <0>;
114 spi-max-frequency = <25000000>;
115
116 partitions {
117 compatible = "fixed-partitions";
118 #address-cells = <1>;
119 #size-cells = <1>;
120
121 partition@0 {
122 label = "u-boot";
123 reg = <0x000000 0x040000>;
124 read-only;
125 };
126
127 partition@40000 {
128 label = "config";
129 reg = <0x040000 0x010000>;
130 read-only;
131 };
132
133 fwconcat0: partition@50000 {
134 label = "fwconcat0";
135 reg = <0x050000 0x610000>;
136 };
137
138 partition@660000 {
139 label = "caldata";
140 reg = <0x660000 0x010000>;
141 read-only;
142 };
143
144 fwconcat1: partition@670000 {
145 label = "fwconcat1";
146 reg = <0x670000 0x190000>;
147 };
148 };
149 };
150 };
151
152 &eth0 {
153 status = "okay";
154
155 pll-data = <0x11110000 0x00001099 0x00991099>;
156
157 fixed-link {
158 speed = <1000>;
159 full-duplex;
160 };
161 };
162
163 &eth1 {
164 status = "okay";
165
166 pll-data = <0x11110000 0x00001099 0x00991099>;
167
168 phy-handle = <&phy4>;
169 };