ipq807x: sax1v1k: fix sysupgrade not touching rootfs_data
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_re450.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 mdio-gpio0 = &mdio2;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 led_power: power {
22 function = LED_FUNCTION_POWER;
23 color = <LED_COLOR_ID_BLUE>;
24 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
25 };
26
27 wlan2g {
28 label = "blue:wlan2g";
29 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
30 linux,default-trigger = "phy1tpt";
31 };
32
33 wlan5g {
34 label = "blue:wlan5g";
35 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
37 };
38
39 lan_link {
40 label = "green:lan_link";
41 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
42 };
43
44 lan_data {
45 label = "green:lan_data";
46 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
47 };
48
49 wps_blue {
50 function = LED_FUNCTION_WPS;
51 color = <LED_COLOR_ID_BLUE>;
52 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
53 };
54
55 wps_red {
56 function = LED_FUNCTION_WPS;
57 color = <LED_COLOR_ID_RED>;
58 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
59 };
60 };
61
62 keys {
63 compatible = "gpio-keys";
64
65 reset {
66 label = "Reset button";
67 linux,code = <KEY_RESTART>;
68 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
69 debounce-interval = <60>;
70 };
71
72 power {
73 label = "Power button";
74 linux,code = <KEY_POWER>;
75 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
76 debounce-interval = <60>;
77 };
78
79 leds {
80 label = "LED control button";
81 linux,code = <BTN_0>;
82 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
83 debounce-interval = <60>;
84 };
85
86 wps {
87 label = "WPS button";
88 linux,code = <KEY_WPS_BUTTON>;
89 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
90 debounce-interval = <60>;
91 };
92 };
93
94 mdio2: mdio {
95 compatible = "virtual,mdio-gpio";
96
97 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>, /* MDC */
98 <&gpio 4 GPIO_ACTIVE_HIGH>; /* MDIO */
99 #address-cells = <1>;
100 #size-cells = <0>;
101
102 phy4: ethernet-phy@4 {
103 reg = <4>;
104 device_type = "ethernet-phy";
105 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
106 };
107 };
108 };
109
110 &pcie {
111 status = "okay";
112 };
113
114 &spi {
115 status = "okay";
116
117 flash@0 {
118 compatible = "jedec,spi-nor";
119 reg = <0>;
120 spi-max-frequency = <25000000>;
121
122 partitions: partitions {
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
125 #size-cells = <1>;
126 };
127 };
128 };
129
130 &eth0 {
131 status = "okay";
132
133 phy-mode = "sgmii";
134 phy-handle = <&phy4>;
135 };
136
137 &wmac {
138 status = "okay";
139 };