ipq40xx: switch default to 6.6
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4018-rutx50.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4018-rutx.dtsi"
4
5 / {
6 model = "Teltonika RUTX50";
7 compatible = "teltonika,rutx50";
8
9 aliases {
10 led-boot = &led_rssi0;
11 led-failsafe = &led_rssi0;
12 led-running = &led_rssi0;
13 led-upgrade = &led_rssi0;
14 label-mac-device = &gmac;
15 };
16
17 soc {
18 gpio-export {
19 compatible = "gpio-export";
20 #size-cells = <0>;
21
22 gpio_modem_reset {
23 gpio-export,name = "modem_reset";
24 gpio-export,output = <0>;
25 gpios = <&shift_io 8 GPIO_ACTIVE_HIGH>;
26 };
27
28 gpio_modem_power {
29 gpio-export,name = "modem_power";
30 gpio-export,output = <0>;
31 gpios = <&shift_io 9 GPIO_ACTIVE_HIGH>;
32 };
33
34 gpio_out_1 {
35 gpio-export,name = "sim-select";
36 /* 0 = SIM1 ; 1 = SIM2 */
37 gpio-export,output = <0>;
38 gpios = <&shift_io 10 GPIO_ACTIVE_HIGH>;
39 };
40
41 gpio_in_1 {
42 gpio-export,name = "sim-detect";
43 gpio-export,input = <0>;
44 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
45 };
46 };
47
48 leds {
49 compatible = "gpio-leds";
50
51 led-0 {
52 label = "green:sim1";
53 gpios = <&shift_io 14 GPIO_ACTIVE_HIGH>;
54 };
55
56 led-1 {
57 label = "green:sim2";
58 gpios = <&shift_io 15 GPIO_ACTIVE_HIGH>;
59 };
60
61 led-2 {
62 label = "green:eth";
63 gpios = <&shift_io 6 GPIO_ACTIVE_HIGH>;
64 };
65
66 led-3 {
67 label = "green:wifi";
68 gpios = <&shift_io 7 GPIO_ACTIVE_HIGH>;
69 };
70
71 led-4 {
72 label = "green:3g";
73 gpios = <&shift_io 5 GPIO_ACTIVE_HIGH>;
74 };
75
76 led-5 {
77 label = "green:4g";
78 gpios = <&shift_io 4 GPIO_ACTIVE_HIGH>;
79 };
80
81 led-6 {
82 label = "green:5g";
83 gpios = <&shift_io 3 GPIO_ACTIVE_HIGH>;
84 };
85
86 led_rssi0: led-7 {
87 label = "green:rssi0";
88 gpios = <&shift_io 0 GPIO_ACTIVE_HIGH>;
89 };
90
91 led-8 {
92 label = "green:rssi1";
93 gpios = <&shift_io 1 GPIO_ACTIVE_HIGH>;
94 };
95
96 led-9 {
97 label = "green:rssi2";
98 gpios = <&shift_io 2 GPIO_ACTIVE_HIGH>;
99 };
100
101 led-10 {
102 label = "green:wifi2g";
103 gpios = <&shift_io 12 GPIO_ACTIVE_HIGH>;
104 };
105
106 led-11 {
107 label = "green:wifi5g";
108 gpios = <&shift_io 13 GPIO_ACTIVE_HIGH>;
109 };
110 };
111
112 spi-gpio {
113 compatible = "spi-gpio";
114 #address-cells = <1>;
115 #size-cells = <0>;
116
117 gpio-sck = <&tlmm 1 GPIO_ACTIVE_HIGH>;
118 gpio-mosi = <&tlmm 3 GPIO_ACTIVE_HIGH>;
119 cs-gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
120 num-chipselects = <1>;
121
122 shift_io: shift_io@0 {
123 compatible = "fairchild,74hc595";
124 reg = <0>;
125 gpio-controller;
126 #gpio-cells = <2>;
127 /* Attn: This is specific to RUTX50 in Teltonika GPL */
128 registers-number = <2>;
129 spi-max-frequency = <10000000>;
130 };
131 };
132 };
133 };
134
135 &wifi0 {
136 status = "okay";
137 qcom,ath10k-calibration-variant = "Teltonika-RUTX10";
138 };
139
140 &wifi1 {
141 status = "okay";
142 qcom,ath10k-calibration-variant = "Teltonika-RUTX10";
143 };
144
145 &gmac {
146 status = "okay";
147 };
148
149 &switch {
150 status = "okay";
151 };
152
153 &swport1 {
154 status = "okay";
155
156 label = "lan1";
157 };
158
159 &swport2 {
160 status = "okay";
161
162 label = "lan2";
163 };
164
165 &swport3 {
166 status = "okay";
167
168 label = "lan3";
169 };
170
171 &swport4 {
172 status = "okay";
173
174 label = "lan4";
175 };
176
177 &swport5 {
178 status = "okay";
179
180 label = "wan";
181 };