1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
3 * Device Tree file for Sercomm H500-s
5 * Copyright (C) 2020 Daniel González Cabanelas <dgcbueu@gmail.com>
8 #include "bcm63268.dtsi"
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
15 led-boot = &led_power_green;
16 led-failsafe = &led_power_red;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_green;
22 bootargs = "rootfstype=squashfs,ubifs noinitrd console=ttyS0,115200";
23 stdout-path = "serial0:115200n8";
27 compatible = "gpio-keys-polled";
34 gpios = <&pinctrl 34 1>;
35 linux,code = <KEY_WPS_BUTTON>;
36 debounce-interval = <60>;
41 gpios = <&pinctrl 35 1>;
42 linux,code = <KEY_RESTART>;
43 debounce-interval = <60>;
51 pinctrl-names = "default";
52 pinctrl-0 = <&pinctrl_leds>;
61 label = "green:mobile";
64 led_power_red: power_red {
66 function = LED_FUNCTION_POWER;
67 color = <LED_COLOR_ID_RED>;
87 label = "red:internet";
92 label = "green:internet";
97 label = "green:phone";
100 led_power_green: power_green {
102 function = LED_FUNCTION_POWER;
103 color = <LED_COLOR_ID_GREEN>;
104 default-state = "on";
109 label = "blue:mobile";
117 compatible = "brcm,nandcs";
119 #address-cells = <1>;
121 nand-ecc-step-size = <512>;
122 nand-ecc-strength = <4>;
124 brcm,nand-oob-sector-size = <64>;
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
133 reg = <0x0000000 0x0020000>;
139 reg = <0x0020000 0x00a0000>;
145 reg = <0x00c0000 0x0140000>;
151 reg = <0x0200000 0x0140000>;
157 reg = <0x6920000 0x0140000>;
162 reg = <0x6a60000 0x0140000>;
166 compatible = "sercomm,wfi";
168 reg = <0x0520000 0x6400000>; /* 2 images, 97152 KiB */
173 reg = <0x6ba0000 0x0280000>;
179 reg = <0x6e20000 0x0280000>;
189 pins = "gpio0", "gpio1", "gpio8", "gpio9",
190 "gpio12", "gpio13", "gpio14", "gpio15",
191 "gpio16", "gpio17", "gpio23";