treewide: dts: Remove default-state=off property from all gpio LED nodes
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_ocedo_koala.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 "qca9557.dtsi"
8
9 / {
10 compatible = "ocedo,koala", "qca,qca9557";
11 model = "OCEDO Koala";
12
13 chosen {
14 bootargs = "console=ttyS0,115200n8";
15 };
16
17 aliases {
18 led-boot = &system;
19 led-failsafe = &system;
20 led-running = &system;
21 led-upgrade = &system;
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 power {
28 label = "koala:green:power";
29 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
30 default-state = "on";
31 };
32
33 wifi2 {
34 label = "koala:yellow:wlan2";
35 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy1tpt";
37 };
38
39 wifi5 {
40 label = "koala:red:wlan58";
41 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
43 };
44
45 system: system {
46 label = "koala:blue:sys";
47 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
48 };
49 };
50
51 keys {
52 compatible = "gpio-keys-polled";
53 poll-interval = <100>;
54
55 reset {
56 label = "reset";
57 linux,code = <KEY_RESTART>;
58 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
59 };
60 };
61 };
62
63 &pcie0 {
64 status = "okay";
65 };
66
67 &uart {
68 status = "okay";
69 };
70
71 &pll {
72 clocks = <&extosc>;
73 };
74
75 &spi {
76 status = "okay";
77 num-cs = <1>;
78
79 flash@0 {
80 compatible = "jedec,spi-nor";
81 reg = <0>;
82 spi-max-frequency = <25000000>;
83
84 partitions {
85 compatible = "fixed-partitions";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 uboot: partition@0 {
90 label = "u-boot";
91 reg = <0x000000 0x040000>;
92 read-only;
93 };
94
95 partition@40000 {
96 label = "u-boot-env";
97 reg = <0x040000 0x010000>;
98 };
99
100 partition@50000 {
101 compatible = "denx,uimage";
102 label = "firmware";
103 reg = <0x050000 0x740000>;
104 };
105
106 partition@790000 {
107 label = "vendor";
108 reg = <0x790000 0x740000>;
109 read-only;
110 };
111
112 partition@ed0000 {
113 label = "data";
114 reg = <0xed0000 0x110000>;
115 read-only;
116 };
117
118 partition@fe0000 {
119 label = "id";
120 reg = <0xfe0000 0x010000>;
121 read-only;
122 };
123
124 art: partition@ff0000 {
125 label = "art";
126 reg = <0xff0000 0x010000>;
127 read-only;
128 };
129 };
130 };
131 };
132
133 &wmac {
134 status = "okay";
135
136 mtd-cal-data = <&art 0x1000>;
137 mtd-mac-address = <&art 0x06>;
138 };
139
140 &mdio0 {
141 status = "okay";
142
143 phy5: ethernet-phy@5 {
144 reg = <5>;
145 phy-mode = "rgmii-rxid";
146
147 at803x-disable-smarteee;
148 };
149 };
150
151 &eth0 {
152 status = "okay";
153
154 mtd-mac-address = <&art 0x00>;
155
156 phy-handle = <&phy5>;
157 phy-mode = "rgmii-rxid";
158
159 pll-data = <0xae000000 0xa0000101 0xa0001313>;
160
161 gmac-config {
162 device = <&gmac>;
163
164 rxdv-delay = <3>;
165 rxd-delay = <3>;
166 txen-delay = <0>;
167 txd-delay = <0>;
168 rgmii-enabled = <1>;
169 };
170 };