1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 compatible = "teltonika,rut9xx", "qca,ar9344";
15 label-mac-device = ð1;
19 compatible = "i2c-gpio";
20 scl-gpios = <&gpio 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
21 sda-gpios = <&gpio 17 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
26 compatible = "microchip,mcp3221";
32 compatible = "gpio-keys";
36 linux,code = <KEY_RESTART>;
37 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
38 debounce-interval = <60>;
44 clock-frequency = <40000000>;
54 pinctrl-names = "default";
55 pinctrl-0 = <&pmx_uart2>;
57 rts-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
59 linux,rs485-enabled-at-boot-time;
65 pinctrl-names = "default";
66 pinctrl-0 = <&pmx_spi>;
69 compatible = "jedec,spi-nor";
71 spi-max-frequency = <25000000>;
74 compatible = "fixed-partitions";
84 config: partition@20000 {
86 reg = <0x20000 0x10000>;
90 art: partition@30000 {
92 reg = <0x30000 0x10000>;
98 reg = <0x40000 0xf30000>;
99 compatible = "tplink,firmware";
104 reg = <0xf70000 0x90000>;
113 compatible = "mmc-spi-slot";
114 spi-max-frequency = <25000000>;
116 voltage-ranges = <3200 3400>;
122 #address-cells = <1>;
127 #address-cells = <1>;
132 compatible = "usb-a-connector";
137 label = "RS-232 serial adapter";
142 label = "internal wwan modem";
155 mtd-cal-data = <&art 0x1000>;
156 mtd-mac-address = <&config 0x0>;
157 mtd-mac-address-increment = <2>;
163 pinctrl-single,bits = <0x0 0x07000000 0xff000000>;
166 pmx_leds_switch: leds_switch {
167 // switch port LEDs on GPIO 1, GPIO 13, GPIO 14 and GPIO 22
168 pinctrl-single,bits = <0x0 0x00002d00 0x0000ff00>,
169 <0xc 0x002c2b00 0x00ffff00>,
170 <0x14 0x002a0000 0x00ff0000>;
174 // UART1_DTR on GPIO 0, UART1_RD on GPIO 11, UART1_TD on GPIO 18
175 pinctrl-single,bits = <0x0 0x0 0xff>,
176 <0x10 0x4f000000 0xff000000>,
177 <0x3c 0x000b0000 0x00ff0000>;