ipq807x: sax1v1k: fix sysupgrade not touching rootfs_data
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9533_qca_ap143.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
9
10 / {
11 aliases {
12 led-boot = &led_wps;
13 led-failsafe = &led_wps;
14 led-running = &led_wps;
15 led-upgrade = &led_wps;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 wan {
22 function = LED_FUNCTION_WAN;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
25 };
26
27 wlan {
28 function = LED_FUNCTION_WLAN;
29 color = <LED_COLOR_ID_GREEN>;
30 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
31 linux,default-trigger = "phy0tpt";
32 };
33
34 lan1 {
35 label = "green:lan1";
36 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
37 };
38
39 lan2 {
40 label = "green:lan2";
41 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
42 };
43
44 lan3 {
45 label = "green:lan3";
46 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
47 };
48
49 lan4 {
50 label = "green:lan4";
51 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
52 };
53
54 led_wps: wps {
55 function = LED_FUNCTION_WPS;
56 color = <LED_COLOR_ID_GREEN>;
57 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
58 };
59 };
60
61 keys {
62 compatible = "gpio-keys";
63
64 wps {
65 label = "WPS button";
66 linux,code = <KEY_WPS_BUTTON>;
67 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
68 debounce-interval = <60>;
69 };
70 };
71 };
72
73 &spi {
74 status = "okay";
75
76 flash@0 {
77 compatible = "jedec,spi-nor";
78 reg = <0>;
79 spi-max-frequency = <25000000>;
80
81 partitions: partitions {
82 compatible = "fixed-partitions";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 partition@0 {
87 label = "u-boot";
88 reg = <0x000000 0x040000>;
89 read-only;
90 };
91
92 partition@40000 {
93 label = "u-boot-env";
94 reg = <0x040000 0x010000>;
95 read-only;
96 };
97 };
98 };
99 };
100
101 &eth0 {
102 status = "okay";
103
104 phy-handle = <&swphy4>;
105 };
106
107 &eth1 {
108 gmac-config {
109 device = <&gmac>;
110 };
111 };
112
113 &wmac {
114 status = "okay";
115 };
116
117 &usb0 {
118 status = "okay";
119 };
120
121 &usb_phy {
122 status = "okay";
123 };