mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-14 11:13:29 +00:00
rockchip: show boot stages on nanopi r6
Some checks failed
OpenWrt-CI / Build OpenWrt Firmware (push) Failing after 5s
Some checks failed
OpenWrt-CI / Build OpenWrt Firmware (push) Failing after 5s
Set up openwrt to show boot progress on the nanopi r6s/r6c system LED. The LED blinking states indicate the boot stage. The LED is defined as a power LED, but can still be set to heartbeat in /etc/config/system after the system is done booting. Signed-off-by: Michel Lespinasse <michel@lespinasse.org> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
7eb42a3618
commit
8c11125e5e
@ -16,12 +16,30 @@
|
||||
ethernet0 = &gmac1;
|
||||
mmc0 = &sdmmc;
|
||||
mmc1 = &sdhci;
|
||||
led-boot = &sys_led;
|
||||
led-failsafe = &sys_led;
|
||||
led-running = &sys_led;
|
||||
led-upgrade = &sys_led;
|
||||
};
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial2:1500000n8";
|
||||
};
|
||||
|
||||
adc-key-maskrom {
|
||||
compatible = "adc-keys";
|
||||
io-channels = <&saradc 0>;
|
||||
io-channel-names = "buttons";
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
poll-interval = <100>;
|
||||
|
||||
button-maskrom {
|
||||
label = "Maskrom";
|
||||
linux,code = <KEY_VENDOR>;
|
||||
press-threshold-microvolt = <1800>;
|
||||
};
|
||||
};
|
||||
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
pinctrl-names = "default";
|
||||
@ -30,7 +48,7 @@
|
||||
button-user {
|
||||
debounce-interval = <50>;
|
||||
gpios = <&gpio1 RK_PC0 GPIO_ACTIVE_LOW>;
|
||||
label = "User Button";
|
||||
label = "reset";
|
||||
linux,code = <KEY_RESTART>;
|
||||
};
|
||||
};
|
||||
@ -40,9 +58,9 @@
|
||||
|
||||
sys_led: led-0 {
|
||||
color = <LED_COLOR_ID_RED>;
|
||||
function = LED_FUNCTION_HEARTBEAT;
|
||||
function = LED_FUNCTION_POWER;
|
||||
gpios = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
linux,default-trigger = "heartbeat";
|
||||
default-state = "on";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sys_led_pin>;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user