1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq4018-rutx.dtsi"
6 model = "Teltonika RUTX50";
7 compatible = "teltonika,rutx50";
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;
19 compatible = "gpio-export";
23 gpio-export,name = "modem_reset";
24 gpio-export,output = <0>;
25 gpios = <&shift_io 8 GPIO_ACTIVE_HIGH>;
29 gpio-export,name = "modem_power";
30 gpio-export,output = <0>;
31 gpios = <&shift_io 9 GPIO_ACTIVE_HIGH>;
35 gpio-export,name = "sim-select";
36 /* 0 = SIM1 ; 1 = SIM2 */
37 gpio-export,output = <0>;
38 gpios = <&shift_io 10 GPIO_ACTIVE_HIGH>;
42 gpio-export,name = "sim-detect";
43 gpio-export,input = <0>;
44 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
49 compatible = "gpio-leds";
53 gpios = <&shift_io 14 GPIO_ACTIVE_HIGH>;
58 gpios = <&shift_io 15 GPIO_ACTIVE_HIGH>;
63 gpios = <&shift_io 6 GPIO_ACTIVE_HIGH>;
68 gpios = <&shift_io 7 GPIO_ACTIVE_HIGH>;
73 gpios = <&shift_io 5 GPIO_ACTIVE_HIGH>;
78 gpios = <&shift_io 4 GPIO_ACTIVE_HIGH>;
83 gpios = <&shift_io 3 GPIO_ACTIVE_HIGH>;
87 label = "green:rssi0";
88 gpios = <&shift_io 0 GPIO_ACTIVE_HIGH>;
92 label = "green:rssi1";
93 gpios = <&shift_io 1 GPIO_ACTIVE_HIGH>;
97 label = "green:rssi2";
98 gpios = <&shift_io 2 GPIO_ACTIVE_HIGH>;
102 label = "green:wifi2g";
103 gpios = <&shift_io 12 GPIO_ACTIVE_HIGH>;
107 label = "green:wifi5g";
108 gpios = <&shift_io 13 GPIO_ACTIVE_HIGH>;
113 compatible = "spi-gpio";
114 #address-cells = <1>;
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>;
122 shift_io: shift_io@0 {
123 compatible = "fairchild,74hc595";
127 /* Attn: This is specific to RUTX50 in Teltonika GPL */
128 registers-number = <2>;
129 spi-max-frequency = <10000000>;
137 qcom,ath10k-calibration-variant = "Teltonika-RUTX10";
142 qcom,ath10k-calibration-variant = "Teltonika-RUTX10";