Skip to content

Commit

Permalink
Fix OPi5plus hym8563 pinctrls and poweroff support (armbian#6276)
Browse files Browse the repository at this point in the history
- Fix hym8563 interrupt pinctrls
- Support poweroff
- Correct gpio_pwrctrl1 typo
  • Loading branch information
mschirrmeister authored Feb 14, 2024
1 parent fa3c796 commit f9c3b6c
Showing 1 changed file with 57 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: John Doe <[email protected]>
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 <[email protected]>
---
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

0 comments on commit f9c3b6c

Please sign in to comment.