ath79: remove model name from LED labels
[openwrt/staging/ynezz.git] / target / linux / ath79 / dts / qca9558_openmesh_om5p-ac-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "openmesh,om5p-ac-v2", "qca,qca9558";
10 model = "OpenMesh OM5P-AC V2";
11
12 extosc: ref {
13 compatible = "fixed-clock";
14 #clock-cells = <0>;
15 clock-output-names = "ref";
16 clock-frequency = <40000000>;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 power {
23 label = "blue:power";
24 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
25 };
26
27 wifi_green {
28 label = "green:wifi";
29 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
30 };
31
32 wifi_yellow {
33 label = "yellow:wifi";
34 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
35 };
36
37 wifi_red {
38 label = "red:wifi";
39 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
40 };
41 };
42
43 keys {
44 compatible = "gpio-keys";
45
46 reset {
47 label = "reset";
48 linux,code = <KEY_RESTART>;
49 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
50 };
51 };
52
53 gpio-export {
54 compatible = "gpio-export";
55 #size-cells = <0>;
56
57 gpio_pa_dcdc {
58 gpio-export,name = "om5pac:pa_dcdc";
59 gpio-export,output = <1>;
60 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
61 };
62 gpio_pa_high {
63 gpio-export,name = "om5pac:pa_high";
64 gpio-export,output = <1>;
65 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
66 };
67 };
68 };
69
70 &pinmux {
71 pinmux_pa_dcdc_pins {
72 pinctrl-single,bits = <0x0 0xff00 0x0>;
73 };
74
75 pinmux_pa_high_pins {
76 pinctrl-single,bits = <0x10 0xff 0x0>;
77 };
78 };
79
80 &pcie0 {
81 status = "okay";
82 };
83
84 &uart {
85 status = "okay";
86 };
87
88 &pll {
89 clocks = <&extosc>;
90 };
91
92 &spi {
93 status = "okay";
94 num-cs = <1>;
95
96 flash@0 {
97 compatible = "jedec,spi-nor";
98 reg = <0>;
99 spi-max-frequency = <25000000>;
100
101 partitions {
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 partition@0 {
107 label = "u-boot";
108 reg = <0x000000 0x040000>;
109 read-only;
110 };
111
112 partition@1 {
113 label = "u-boot-env";
114 reg = <0x040000 0x010000>;
115 };
116
117 partition@2 {
118 compatible = "denx,uimage";
119 label = "firmware";
120 reg = <0x850000 0x7a0000>;
121 };
122
123 partition@3 {
124 label = "art";
125 reg = <0xff0000 0x010000>;
126 read-only;
127 };
128 };
129 };
130 };
131
132 &mdio0 {
133 status = "okay";
134
135 phy4: ethernet-phy@4 {
136 reg = <4>;
137 phy-mode = "rgmii-id";
138 };
139 };
140
141 &mdio1 {
142 status = "okay";
143
144 phy1: ethernet-phy@1 {
145 reg = <1>;
146 phy-mode = "sgmii";
147 };
148 };
149
150 &eth0 {
151 status = "okay";
152
153 pll-data = <0x82000101 0x80000101 0x80001313>;
154
155 phy-handle = <&phy4>;
156 phy-mode = "rgmii";
157 };
158
159 &eth1 {
160 status = "okay";
161
162 pll-data = <0x03000101 0x80000101 0x80001313>;
163
164 phy-handle = <&phy1>;
165 phy-mode = "sgmii";
166 };