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