build/patch/kernel/archive/sunxi-6.5/patches.megous/opi5-notes.patch

63 lines
2.0 KiB
Diff

From d1354095f7cac9a6a470865c354e1d5aef7703c8 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Sun, 2 Jul 2023 12:02:41 +0200
Subject: [PATCH 457/464] opi5: notes
---
.../boot/dts/rockchip/rk3588-orangepi-5-plus.dts | 11 ++++++++---
1 file changed, 8 insertions(+), 3 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 0c5cf2bf9f8f..86c7150e3898 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts
@@ -66,11 +66,15 @@ headphone_amp: audio-amplifier1 {
sound-name-prefix = "Headphones Amp";
};
+ /*XXX: fan */
+ /* GPIO3 B2, active high, PWM3_IR_M1 */
+
ir-receiver {
compatible = "gpio-ir-receiver";
gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&ir_receiver_pin>;
+ /*XXX: VCC_3V3_S3 */
};
leds {
@@ -81,7 +85,7 @@ leds {
led-0 {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_INDICATOR;
- gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>;
+ gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>; /* XXX: may be PWM controlled, PWM2_M1 */
};
led-1 {
@@ -99,9 +103,10 @@ sound {
simple-audio-card,aux-devs = <&speaker_amp>, <&headphone_amp>;
simple-audio-card,format = "i2s";
simple-audio-card,mclk-fs = <256>;
- simple-audio-card,hp-det-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
+ simple-audio-card,hp-det-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>; /* XXX: active low */
simple-audio-card,bitclock-master = <&daicpu>;
simple-audio-card,frame-master = <&daicpu>;
+ /* SARADC_IN3 is used as MIC detection / key input */
simple-audio-card,widgets =
"Microphone", "Onboard Microphone",
@@ -297,7 +302,7 @@ hym8563: rtc@51 {
&i2c7 {
status = "okay";
-
+ /* PLDO2 vcca 1.8V, BUCK8 gated by PLDO2 being enabled */
es8388: audio-codec@11 {
compatible = "everest,es8388";
reg = <0x11>;
--
2.34.1