1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "teltonika,rut9xx", "qca,ar9344";
14 label-mac-device = ð1;
18 compatible = "i2c-gpio";
19 scl-gpios = <&gpio 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
20 sda-gpios = <&gpio 17 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
25 compatible = "microchip,mcp3221";
31 compatible = "gpio-keys";
35 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
43 clock-frequency = <40000000>;
53 pinctrl-names = "default";
54 pinctrl-0 = <&pmx_uart2>;
56 rts-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
58 linux,rs485-enabled-at-boot-time;
64 pinctrl-names = "default";
65 pinctrl-0 = <&pmx_spi>;
68 compatible = "jedec,spi-nor";
70 spi-max-frequency = <25000000>;
73 compatible = "fixed-partitions";
83 config: partition@20000 {
85 reg = <0x20000 0x10000>;
89 art: partition@30000 {
91 reg = <0x30000 0x10000>;
97 reg = <0x40000 0xf30000>;
98 compatible = "tplink,firmware";
103 reg = <0xf70000 0x90000>;
112 compatible = "mmc-spi-slot";
113 spi-max-frequency = <25000000>;
115 voltage-ranges = <3200 3400>;
121 #address-cells = <1>;
126 #address-cells = <1>;
131 compatible = "usb-a-connector";
136 label = "RS-232 serial adapter";
141 label = "internal wwan modem";
154 mtd-cal-data = <&art 0x1000>;
155 mtd-mac-address = <&config 0x0>;
156 mtd-mac-address-increment = <2>;
162 pinctrl-single,bits = <0x0 0x07000000 0xff000000>;
165 pmx_leds_switch: leds_switch {
166 // switch port LEDs on GPIO 1, GPIO 13, GPIO 14 and GPIO 22
167 pinctrl-single,bits = <0x0 0x00002d00 0x0000ff00>,
168 <0xc 0x002c2b00 0x00ffff00>,
169 <0x14 0x002a0000 0x00ff0000>;
173 // UART1_DTR on GPIO 0, UART1_RD on GPIO 11, UART1_TD on GPIO 18
174 pinctrl-single,bits = <0x0 0x0 0xff>,
175 <0x10 0x4f000000 0xff000000>,
176 <0x3c 0x000b0000 0x00ff0000>;