rockchip: enable support for opc-h68k

This commit is contained in:
AmadeusGhost 2022-10-15 23:09:06 +08:00
parent 2a911a7e00
commit 60facd3138
2 changed files with 20 additions and 1 deletions

View File

@ -42,6 +42,19 @@
}; };
#endif #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 = <KEY_RESTART>;
debounce-interval = <50>;
};
};
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default"; pinctrl-names = "default";
@ -553,6 +566,12 @@
}; };
&pinctrl { &pinctrl {
button {
reset_button_pin: reset-button-pin {
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
leds { leds {
led_net_en: led_net_en { led_net_en: led_net_en {
rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;

View File

@ -20,7 +20,7 @@ define Device/hinlink_opc-h68k
IMAGE/sysupgrade.img.gz := boot-common | boot-script nanopi-r5s | pine64-img | gzip | append-metadata IMAGE/sysupgrade.img.gz := boot-common | boot-script nanopi-r5s | pine64-img | gzip | append-metadata
DEVICE_PACKAGES := kmod-mt7921e kmod-r8125 DEVICE_PACKAGES := kmod-mt7921e kmod-r8125
endef endef
#TARGET_DEVICES += hinlink_opc-h68k TARGET_DEVICES += hinlink_opc-h68k
define Device/fastrhino_common define Device/fastrhino_common
DEVICE_VENDOR := FastRhino DEVICE_VENDOR := FastRhino