8fc976a11b1fe6fc77f56dd281b2493b55612e24
[openwrt/staging/stintel.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4018-rutx10.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4018-rutx.dtsi"
4
5 / {
6 model = "Teltonika RUTX10";
7 compatible = "teltonika,rutx10";
8
9 soc {
10 leds {
11 compatible = "gpio-leds";
12
13 wifi2g {
14 label = "green:wifi2g";
15 gpios = <&stm32_io 19 GPIO_ACTIVE_HIGH>;
16 linux,default-trigger = "phy0tpt";
17 };
18
19 wifi5g {
20 label = "green:wifi5g";
21 gpios = <&stm32_io 18 GPIO_ACTIVE_HIGH>;
22 linux,default-trigger = "phy1tpt";
23 };
24 };
25
26 gpio_export {
27 compatible = "gpio-export";
28 #size-cells = <0>;
29
30 gpio_out {
31 gpio-export,name = "gpio_out";
32 gpio-export,output = <0>;
33 gpio-export,direction_may_change = <0>;
34 gpios = <&stm32_io 23 GPIO_ACTIVE_HIGH>;
35 };
36
37 gpio_in {
38 gpio-export,name = "gpio_in";
39 gpio-export,input = <0>;
40 gpio-export,direction_may_change = <0>;
41 gpios = <&stm32_io 24 GPIO_ACTIVE_LOW>;
42 };
43 };
44 };
45 };
46
47 &blsp1_i2c3 {
48 status = "okay";
49 pinctrl-0 = <&i2c_0_pins>;
50 pinctrl-names = "default";
51 clock-frequency = <400000>;
52
53 stm32_io: stm32@74 {
54 compatible = "tlt,stm32v1";
55 #gpio-cells = <2>;
56 #interrupt-cells = <2>;
57 gpio-controller;
58 interrupt-controller;
59 interrupt-parent = <&tlmm>;
60 interrupts = <5 2>;
61 reg = <0x74>;
62 };
63 };
64
65 &wifi0 {
66 status = "okay";
67 qcom,ath10k-calibration-variant = "Teltonika-RUTX10";
68 };
69
70 &wifi1 {
71 status = "okay";
72 qcom,ath10k-calibration-variant = "Teltonika-RUTX10";
73 };