ath79: drop redundant status for gpio target-wide
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_rosinson_wr818.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 "qca956x.dtsi"
8
9 / {
10 model = "ROSINSON WR818";
11 compatible = "rosinson,wr818", "qca,qca9563";
12
13 aliases {
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_system: system {
24 label = "wr818:red:system";
25 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
26 };
27
28 wifi_2g {
29 label = "wr818:red:wifi2g";
30 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
31 linux,default-trigger = "phy0tpt";
32 };
33 };
34
35 keys {
36 compatible = "gpio-keys";
37
38 reset {
39 label = "reset";
40 linux,code = <KEY_RESTART>;
41 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
42 debounce-interval = <60>;
43 };
44 };
45 };
46
47 &uart {
48 status = "okay";
49 };
50
51 &spi {
52 status = "okay";
53
54 num-cs = <1>;
55
56 flash@0 {
57 compatible = "jedec,spi-nor";
58 reg = <0>;
59 spi-max-frequency = <25000000>;
60
61 partitions {
62 compatible = "fixed-partitions";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 partition@0 {
67 label = "u-boot";
68 reg = <0x000000 0x040000>;
69 read-only;
70 };
71
72 partition@40000 {
73 label = "u-boot-env";
74 reg = <0x040000 0x010000>;
75 read-only;
76 };
77
78 info: partition@50000 {
79 label = "factory";
80 reg = <0x050000 0x010000>;
81 read-only;
82 };
83
84 partition@60000 {
85 compatible = "denx,uimage";
86 label = "firmware";
87 reg = <0x060000 0xf80000>;
88 };
89
90 art: partition@ff0000 {
91 label = "art";
92 reg = <0xff0000 0x010000>;
93 read-only;
94 };
95 };
96 };
97 };
98
99 &mdio0 {
100 status = "okay";
101
102 phy-mask = <0>;
103 phy0: ethernet-phy@0 {
104 reg = <0>;
105 phy-mode = "sgmii";
106
107 qca,ar8327-initvals = <
108 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
109 0x7c 0x0000007e /* PORT0_STATUS */
110 >;
111 };
112 };
113
114 &eth0 {
115 status = "okay";
116
117 mtd-mac-address = <&info 0x0>;
118 phy-mode = "sgmii";
119 phy-handle = <&phy0>;
120 };
121
122 &wmac {
123 status = "okay";
124
125 mtd-cal-data = <&art 0x1000>;
126 };
127
128 &usb_phy0 {
129 status = "okay";
130 };
131
132 &usb0 {
133 #address-cells = <1>;
134 #size-cells = <0>;
135 status = "okay";
136
137 port@1 {
138 reg = <1>;
139 #trigger-source-cells = <0>;
140 };
141 };
142
143 &usb_phy1 {
144 status = "okay";
145 };
146
147 &usb1 {
148 #address-cells = <1>;
149 #size-cells = <0>;
150 status = "okay";
151
152 port@2 {
153 reg = <2>;
154 #trigger-source-cells = <0>;
155 };
156 };