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 model = "PISEN WMB001N";
10 compatible = "pisen,wmb001n", "qca,ar9341";
15 led-failsafe = &led_wifi;
16 led-running = &led_wifi;
17 led-upgrade = &led_wifi;
21 compatible = "i2c-gpio";
22 pinctrl-names = "default";
23 pinctrl-0 = <&pmx_i2c_gpio &pmx_i2s_spdif>;
25 sda-gpios = <&gpio 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
26 scl-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
28 * Pull-up resistor for scl is missing on this board.
29 * Following settings trick i2c-gpio to use output mode
30 * instead of open-drain for scl.
32 i2c-gpio,scl-output-only;
33 i2c-gpio,scl-open-drain;
37 compatible = "gpio-keys";
41 linux,code = <KEY_RESTART>;
42 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
43 debounce-interval = <60>;
47 label = "volume down";
48 linux,code = <KEY_VOLUMEDOWN>;
49 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
50 debounce-interval = <60>;
55 linux,code = <KEY_VOLUMEUP>;
56 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
57 debounce-interval = <60>;
62 compatible = "gpio-leds";
63 pinctrl-names = "default";
64 pinctrl-0 = <&jtag_disable_pins>;
67 label = "blue:volume1";
68 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
72 label = "blue:volume2";
73 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
77 label = "blue:volume3";
78 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
82 label = "blue:volume4";
83 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
87 label = "blue:volume5";
88 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
93 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
98 compatible = "mtd-concat";
99 devices = <&fwpart1 &fwpart2>;
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
109 compatible = "openwrt,okli";
116 pmx_i2c_gpio: pinmux_i2c_gpio {
117 pinctrl-single,bits = <0x10 0x0 0xff>,
121 pmx_i2s_spdif: pinmux_i2s_spdif {
122 pinctrl-single,bits = <0x8 0x0e000000 0xff000000>,
123 <0xc 0x0f0c0d 0xffffff>,
124 <0x14 0x1900 0xff00>;
129 clock-frequency = <25000000>;
140 compatible = "jedec,spi-nor";
142 spi-max-frequency = <25000000>;
145 compatible = "fixed-partitions";
146 #address-cells = <1>;
156 label = "u-boot-env";
157 reg = <0x10000 0x10000>;
161 fwpart1: partition@20000 {
163 reg = <0x20000 0xdc0000>;
168 reg = <0xde0000 0x10000>;
171 fwpart2: partition@df0000 {
173 reg = <0xdf0000 0x1f0000>;
178 reg = <0xfe0000 0x10000>;
182 art: partition@ff0000 {
184 reg = <0xff0000 0x10000>;
193 phy-handle = <&swphy4>;
194 mtd-mac-address = <&art 0x0>;
198 compatible = "syscon", "simple-mfd";
203 switch-phy-swap = <0>;
217 mtd-cal-data = <&art 0x1000>;