build/patch/kernel/archive/sunxi-6.1/patches.megous/arm64-dts-pinephone-pro-Enable-POGO-pins-I2C.patch

48 lines
1.3 KiB
Diff

From 98c2ebe85490862d49125bbba8b1fa6816386b99 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Fri, 9 Sep 2022 16:42:51 +0200
Subject: [PATCH 291/389] arm64: dts: pinephone-pro: Enable POGO pins I2C
So that userspace apps can use it.
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
.../boot/dts/rockchip/rk3399-pinephone-pro.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
index 9444c54aefe4..a10a361aa3c5 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
@@ -939,6 +939,14 @@ af8133j: compass@1c {
};
};
+/* This bus is exposed on POGO pins */
+&i2c5 {
+ i2c-scl-rising-time-ns = <450>;
+ i2c-scl-falling-time-ns = <15>;
+ pinctrl-0 = <&i2c5_xfer &pogo_int_pin>;
+ status = "okay";
+};
+
&i2s0 {
rockchip,playback-channels = <2>;
rockchip,capture-channels = <2>;
@@ -1168,6 +1176,12 @@ vsel2_pin: vsel2-pin {
};
};
+ pogo {
+ pogo_int_pin: pogo-int {
+ rockchip,pins = <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+ };
+
sdio-pwrseq {
wifi_enable_h: wifi-enable-h {
rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
--
2.35.3