From f9c3b6ce3d68509767ef8a388ac8a6856b0deae8 Mon Sep 17 00:00:00 2001 From: Marco Schirrmeister Date: Wed, 14 Feb 2024 15:30:56 +0100 Subject: [PATCH] Fix OPi5plus hym8563 pinctrls and poweroff support (#6276) - Fix hym8563 interrupt pinctrls - Support poweroff - Correct gpio_pwrctrl1 typo --- ...dd-poweroff-support-Orange-Pi-5-Plus.patch | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 patch/kernel/rockchip-rk3588-edge/0034-arm64-dts-fix-rtc-add-poweroff-support-Orange-Pi-5-Plus.patch diff --git a/patch/kernel/rockchip-rk3588-edge/0034-arm64-dts-fix-rtc-add-poweroff-support-Orange-Pi-5-Plus.patch b/patch/kernel/rockchip-rk3588-edge/0034-arm64-dts-fix-rtc-add-poweroff-support-Orange-Pi-5-Plus.patch new file mode 100644 index 0000000000..c3ea3f8f1d --- /dev/null +++ b/patch/kernel/rockchip-rk3588-edge/0034-arm64-dts-fix-rtc-add-poweroff-support-Orange-Pi-5-Plus.patch @@ -0,0 +1,57 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: John Doe +Date: Mon, 29 Jan 2024 12:51:13 +0100 +Subject: Patching kernel rockchip-rk3588 files + arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts + +Signed-off-by: John Doe +--- + arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts +index 88bfce6237db..70cc6bd5a0af 100644 +--- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts ++++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts +@@ -462,11 +462,11 @@ &pcie3x4 { + }; + + &pinctrl { + hym8563 { + hym8563_int: hym8563-int { +- rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; ++ rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + + leds { + blue_led_pin: blue-led { +@@ -572,10 +572,12 @@ pmic@0 { + pinctrl-names = "default"; + pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, + <&rk806_dvs2_null>, <&rk806_dvs3_null>; + spi-max-frequency = <1000000>; + ++ system-power-controller; ++ + vcc1-supply = <&vcc5v0_sys>; + vcc2-supply = <&vcc5v0_sys>; + vcc3-supply = <&vcc5v0_sys>; + vcc4-supply = <&vcc5v0_sys>; + vcc5-supply = <&vcc5v0_sys>; +@@ -592,11 +594,11 @@ pmic@0 { + + gpio-controller; + #gpio-cells = <2>; + + rk806_dvs1_null: dvs1-null-pins { +- pins = "gpio_pwrctrl2"; ++ pins = "gpio_pwrctrl1"; + function = "pin_fun0"; + }; + + rk806_dvs2_null: dvs2-null-pins { + pins = "gpio_pwrctrl2"; +-- +Created with Armbian build tools https://github.com/armbian/build +