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 model = "PISEN WMB001N";
11 compatible = "pisen,wmb001n", "qca,ar9341";
22 compatible = "i2c-gpio";
23 pinctrl-names = "default";
24 pinctrl-0 = <&pmx_i2c_gpio &pmx_i2s_spdif>;
26 sda-gpios = <&gpio 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
27 scl-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
29 * Pull-up resistor for scl is missing on this board.
30 * Following settings trick i2c-gpio to use output mode
31 * instead of open-drain for scl.
33 i2c-gpio,scl-output-only;
34 i2c-gpio,scl-open-drain;
38 compatible = "gpio-keys";
42 linux,code = <KEY_RESTART>;
43 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
48 label = "volume down";
49 linux,code = <KEY_VOLUMEDOWN>;
50 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
51 debounce-interval = <60>;
56 linux,code = <KEY_VOLUMEUP>;
57 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
58 debounce-interval = <60>;
63 compatible = "gpio-leds";
64 pinctrl-names = "default";
65 pinctrl-0 = <&jtag_disable_pins>;
68 label = "wmb001n:blue:volume1";
69 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
73 label = "wmb001n:blue:volume2";
74 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
78 label = "wmb001n:blue:volume3";
79 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
83 label = "wmb001n:blue:volume4";
84 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
88 label = "wmb001n:blue:volume5";
89 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
93 label = "wmb001n:blue:wifi";
94 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
99 compatible = "mtd-concat";
100 devices = <&fwpart1 &fwpart2>;
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
110 compatible = "openwrt,okli";
117 pmx_i2c_gpio: pinmux_i2c_gpio {
118 pinctrl-single,bits = <0x10 0x0 0xff>,
122 pmx_i2s_spdif: pinmux_i2s_spdif {
123 pinctrl-single,bits = <0x8 0x0e000000 0xff000000>,
124 <0xc 0x0f0c0d 0xffffff>,
125 <0x14 0x1900 0xff00>;
130 clock-frequency = <25000000>;
147 compatible = "jedec,spi-nor";
149 spi-max-frequency = <25000000>;
152 compatible = "fixed-partitions";
153 #address-cells = <1>;
163 label = "u-boot-env";
164 reg = <0x10000 0x10000>;
168 fwpart1: partition@20000 {
170 reg = <0x20000 0xdc0000>;
175 reg = <0xde0000 0x10000>;
178 fwpart2: partition@df0000 {
180 reg = <0xdf0000 0x1f0000>;
185 reg = <0xfe0000 0x10000>;
189 art: partition@ff0000 {
191 reg = <0xff0000 0x10000>;
200 phy-handle = <&swphy4>;
201 mtd-mac-address = <&art 0x0>;
205 compatible = "syscon", "simple-mfd";
210 switch-phy-swap = <0>;
224 mtd-cal-data = <&art 0x1000>;