diff --git a/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3568-opc-h68k.dts b/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3568-opc-h68k.dts index 0b576931a..9fea2d58d 100644 --- a/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3568-opc-h68k.dts +++ b/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3568-opc-h68k.dts @@ -42,6 +42,19 @@ }; #endif + keys { + compatible = "gpio-keys"; + pinctrl-0 = <&reset_button_pin>; + pinctrl-names = "default"; + + reset { + label = "reset"; + gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <50>; + }; + }; + leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -553,6 +566,12 @@ }; &pinctrl { + button { + reset_button_pin: reset-button-pin { + rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + leds { led_net_en: led_net_en { rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; diff --git a/target/linux/rockchip/image/armv8.mk b/target/linux/rockchip/image/armv8.mk index 43185d6b9..95213e9a4 100644 --- a/target/linux/rockchip/image/armv8.mk +++ b/target/linux/rockchip/image/armv8.mk @@ -20,7 +20,7 @@ define Device/hinlink_opc-h68k IMAGE/sysupgrade.img.gz := boot-common | boot-script nanopi-r5s | pine64-img | gzip | append-metadata DEVICE_PACKAGES := kmod-mt7921e kmod-r8125 endef -#TARGET_DEVICES += hinlink_opc-h68k +TARGET_DEVICES += hinlink_opc-h68k define Device/fastrhino_common DEVICE_VENDOR := FastRhino