ath79: add support for Senao Engenius EnStationAC v1
[openwrt/openwrt.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
95 flash@0 {
96 compatible = "jedec,spi-nor";
97 reg = <0>;
98 spi-max-frequency = <25000000>;
99
100 partitions {
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 partition@0 {
106 label = "u-boot";
107 reg = <0x000000 0x040000>;
108 read-only;
109 };
110
111 partition@1 {
112 label = "u-boot-env";
113 reg = <0x040000 0x010000>;
114 };
115
116 partition@2 {
117 compatible = "denx,uimage";
118 label = "firmware";
119 reg = <0x850000 0x7a0000>;
120 };
121
122 partition@3 {
123 label = "art";
124 reg = <0xff0000 0x010000>;
125 read-only;
126 };
127 };
128 };
129 };
130
131 &mdio0 {
132 status = "okay";
133
134 phy4: ethernet-phy@4 {
135 reg = <4>;
136 phy-mode = "rgmii-id";
137 };
138 };
139
140 &mdio1 {
141 status = "okay";
142
143 phy1: ethernet-phy@1 {
144 reg = <1>;
145 phy-mode = "sgmii";
146 };
147 };
148
149 &eth0 {
150 status = "okay";
151
152 pll-data = <0x82000101 0x80000101 0x80001313>;
153
154 phy-handle = <&phy4>;
155 };
156
157 &eth1 {
158 status = "okay";
159
160 pll-data = <0x03000101 0x80000101 0x80001313>;
161
162 phy-handle = <&phy1>;
163 };