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>
7 #include <dt-bindings/mtd/partitions/uimage.h>
10 model = "PISEN WMB001N";
11 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 = <&fwconcat0 &fwconcat1>;
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
109 compatible = "openwrt,uimage", "denx,uimage";
110 openwrt,ih-magic = <IH_MAGIC_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>;
137 compatible = "jedec,spi-nor";
139 spi-max-frequency = <25000000>;
142 compatible = "fixed-partitions";
143 #address-cells = <1>;
153 label = "u-boot-env";
154 reg = <0x10000 0x10000>;
158 fwconcat0: partition@20000 {
160 reg = <0x20000 0xdc0000>;
165 reg = <0xde0000 0x10000>;
168 fwconcat1: partition@df0000 {
170 reg = <0xdf0000 0x1f0000>;
175 reg = <0xfe0000 0x10000>;
179 art: partition@ff0000 {
181 reg = <0xff0000 0x10000>;
190 phy-handle = <&swphy4>;
191 nvmem-cells = <&macaddr_art_0>;
192 nvmem-cell-names = "mac-address";
196 compatible = "syscon", "simple-mfd";
201 switch-phy-swap = <0>;
215 mtd-cal-data = <&art 0x1000>;
219 compatible = "nvmem-cells";
220 #address-cells = <1>;
223 macaddr_art_0: macaddr@0 {