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";
13 label-mac-device = ð1;
17 compatible = "i2c-gpio";
18 scl-gpios = <&gpio 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
19 sda-gpios = <&gpio 17 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
24 compatible = "microchip,mcp3221";
30 compatible = "gpio-keys";
34 linux,code = <KEY_RESTART>;
35 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
36 debounce-interval = <60>;
42 clock-frequency = <40000000>;
48 pinctrl-names = "default";
49 pinctrl-0 = <&pmx_uart2>;
51 rts-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
53 linux,rs485-enabled-at-boot-time;
59 pinctrl-names = "default";
60 pinctrl-0 = <&pmx_spi>;
63 compatible = "jedec,spi-nor";
65 spi-max-frequency = <25000000>;
68 compatible = "fixed-partitions";
78 config: partition@20000 {
80 reg = <0x20000 0x10000>;
84 art: partition@30000 {
86 reg = <0x30000 0x10000>;
92 reg = <0x40000 0xf30000>;
93 compatible = "tplink,firmware";
98 reg = <0xf70000 0x90000>;
107 compatible = "mmc-spi-slot";
108 spi-max-frequency = <25000000>;
110 voltage-ranges = <3200 3400>;
120 #address-cells = <1>;
124 compatible = "usb-a-connector";
129 label = "RS-232 serial adapter";
134 label = "internal wwan modem";
146 mtd-cal-data = <&art 0x1000>;
147 nvmem-cells = <&macaddr_config_0>;
148 nvmem-cell-names = "mac-address";
149 mac-address-increment = <2>;
155 pinctrl-single,bits = <0x0 0x07000000 0xff000000>;
158 pmx_leds_switch: leds_switch {
159 // switch port LEDs on GPIO 1, GPIO 13, GPIO 14 and GPIO 22
160 pinctrl-single,bits = <0x00 0x00002d00 0x0000ff00>,
161 <0x0c 0x002c2b00 0x00ffff00>,
162 <0x14 0x002a0000 0x00ff0000>;
166 // UART1_DTR on GPIO 0, UART1_RD on GPIO 11, UART1_TD on GPIO 18
167 pinctrl-single,bits = <0x00 0x00000000 0x000000ff>,
168 <0x10 0x004f0000 0x00ff0000>,
169 <0x3c 0x000b0000 0x00ff0000>;
174 compatible = "nvmem-cells";
175 #address-cells = <1>;
178 macaddr_config_0: macaddr@0 {