ath79: drop and consolidate redundant chosen/bootargs
[openwrt/staging/chunkeey.git] / target / linux / ath79 / dts / qca9558_tplink_archer-c7.dtsi
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 "qca9557.dtsi"
8
9 / {
10 aliases {
11 led-boot = &system;
12 led-failsafe = &system;
13 led-running = &system;
14 led-upgrade = &system;
15 };
16
17 gpio_leds: leds {
18 compatible = "gpio-leds";
19
20 system: system {
21 label = "tp-link:green:system";
22 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
23 default-state = "on";
24 };
25
26 usb1 {
27 label = "tp-link:green:usb1";
28 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
29 trigger-sources = <&hub_port1>;
30 linux,default-trigger = "usbport";
31 };
32
33 usb2 {
34 label = "tp-link:green:usb2";
35 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
36 trigger-sources = <&hub_port0>;
37 linux,default-trigger = "usbport";
38 };
39
40 led_wlan2g: wlan2g {
41 label = "tp-link:green:wlan2g";
42 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1tpt";
44 };
45
46 qss {
47 label = "tp-link:green:qss";
48 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
49 };
50 };
51
52 gpio_keys: keys {
53 compatible = "gpio-keys";
54
55 reset {
56 label = "Reset button";
57 linux,code = <KEY_RESTART>;
58 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
59 debounce-interval = <60>;
60 };
61 };
62
63 gpio-export {
64 compatible = "gpio-export";
65
66 gpio_usb1_power {
67 gpio-export,name = "tp-link:power:usb1";
68 gpio-export,output = <1>;
69 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
70 };
71
72 gpio_usb2_power {
73 gpio-export,name = "tp-link:power:usb2";
74 gpio-export,output = <1>;
75 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
76 };
77
78 };
79 };
80
81 &pcie1 {
82 status = "okay";
83 };
84
85 &uart {
86 status = "okay";
87 };
88
89 &gpio {
90 status = "okay";
91 };
92
93 &usb_phy0 {
94 status = "okay";
95 };
96
97 &usb0 {
98 #address-cells = <1>;
99 #size-cells = <0>;
100 status = "okay";
101
102 hub_port0: port@1 {
103 reg = <1>;
104 #trigger-source-cells = <0>;
105 };
106 };
107
108 &usb_phy1 {
109 status = "okay";
110 };
111
112 &usb1 {
113 #address-cells = <1>;
114 #size-cells = <0>;
115 status = "okay";
116
117 hub_port1: port@1 {
118 reg = <1>;
119 #trigger-source-cells = <0>;
120 };
121 };
122
123 &spi {
124 status = "okay";
125 num-cs = <1>;
126
127 flash@0 {
128 compatible = "jedec,spi-nor";
129 reg = <0>;
130 spi-max-frequency = <25000000>;
131
132 mtdparts: partitions {
133 compatible = "fixed-partitions";
134 #address-cells = <1>;
135 #size-cells = <1>;
136 };
137 };
138 };
139
140 &mdio0 {
141 status = "okay";
142
143 phy0: ethernet-phy@0 {
144 reg = <0>;
145
146 qca,ar8327-initvals = <
147 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
148 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
149 0x50 0xc737c737 /* LED_CTRL0 */
150 0x54 0x00000000 /* LED_CTRL1 */
151 0x58 0x00000000 /* LED_CTRL2 */
152 0x5c 0x0030c300 /* LED_CTRL3 */
153 0x7c 0x0000007e /* PORT0_STATUS */
154 0x94 0x0000007e /* PORT6 STATUS */
155 >;
156 };
157 };
158
159 &eth0 {
160 status = "okay";
161
162 mtd-mac-address = <&uboot 0x1fc00>;
163 mtd-mac-address-increment = <1>;
164 phy-handle = <&phy0>;
165 pll-data = <0x56000000 0x00000101 0x00001616>;
166
167 gmac-config {
168 device = <&gmac>;
169 rgmii-enabled = <1>;
170 };
171 };
172
173 &eth1 {
174 status = "okay";
175
176 mtd-mac-address = <&uboot 0x1fc00>;
177 pll-data = <0x03000101 0x00000101 0x00001616>;
178
179 fixed-link {
180 speed = <1000>;
181 full-duplex;
182 };
183 };
184
185 &wmac {
186 status = "okay";
187 mtd-cal-data = <&art 0x1000>;
188 mtd-mac-address = <&uboot 0x1fc00>;
189 };