1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include "bcm6328.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
9 model = "Sercomm AD1018";
10 compatible = "sercomm,ad1018", "brcm,bcm6328";
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_green;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_green;
20 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
21 stdout-path = "serial0:115200n8";
25 compatible = "gpio-keys-polled";
32 gpios = <&pinctrl 24 1>;
33 linux,code = <KEY_WPS_BUTTON>;
34 debounce-interval = <60>;
39 gpios = <&pinctrl 25 1>;
40 linux,code = <KEY_WLAN>;
41 debounce-interval = <60>;
46 gpios = <&pinctrl 31 1>;
47 linux,code = <KEY_RESTART>;
48 debounce-interval = <60>;
56 pinctrl-names = "default";
57 pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led
58 &pinctrl_ephy0_spd_led &pinctrl_ephy1_act_led
59 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
62 brcm,serial-shift-inv;
68 label = "red:internet";
74 label = "green:internet";
77 led_power_green: led@8 {
80 function = LED_FUNCTION_POWER;
81 color = <LED_COLOR_ID_GREEN>;
100 label = "green:phone";
106 function = LED_FUNCTION_WPS;
107 color = <LED_COLOR_ID_GREEN>;
113 label = "green:wifi";
119 function = LED_FUNCTION_USB;
120 color = <LED_COLOR_ID_GREEN>;
126 brcm,hardware-controlled;
134 compatible = "brcm,nandcs";
136 #address-cells = <1>;
138 nand-ecc-step-size = <512>;
139 nand-ecc-strength = <15>;
141 brcm,nand-oob-sector-size = <64>;
144 compatible = "fixed-partitions";
145 #address-cells = <1>;
150 reg = <0x0000000 0x0020000>;
156 reg = <0x0020000 0x00a0000>;
162 reg = <0x00c0000 0x0140000>;
168 reg = <0x0200000 0x0140000>;
174 reg = <0x0340000 0x00a0000>;
180 reg = <0x03e0000 0x0140000>;
186 reg = <0x6920000 0x0140000>;
191 reg = <0x6a60000 0x0140000>;
195 compatible = "sercomm,wfi";
197 reg = <0x0520000 0x6400000>;
202 reg = <0x6ba0000 0x0280000>;
208 reg = <0x6e20000 0x0280000>;
218 pins = "gpio0", "gpio1";