From 03f17a36cebfaafcad3f84aeba257746067e29c3 Mon Sep 17 00:00:00 2001 From: Alvin Xie Date: Tue, 7 Nov 2023 19:04:14 +0800 Subject: [PATCH 1/2] arm: dts: radxa cm3i-io: enabe i2s1 for 14pin audio Signed-off-by: Alvin Xie --- .../arm64/boot/dts/rockchip/rk3568-radxa-cm3i-io.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i-io.dts b/arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i-io.dts index d4f701c085d69d..4e9b2d11a0b807 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i-io.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i-io.dts @@ -201,6 +201,18 @@ status = "okay"; }; +&i2s1_8ch { + status = "okay"; +}; + +&rk809_sound { + status = "okay"; +}; + +&rk809_codec { + status = "okay"; +}; + &combphy2_psq { status = "okay"; }; From e90571b8d38c8f8effb4064fc7ebc35a3e4392d5 Mon Sep 17 00:00:00 2001 From: Alvin Xie Date: Tue, 7 Nov 2023 20:29:11 +0800 Subject: [PATCH 2/2] arm: dts: radxa cm3i-io: add hp det Signed-off-by: Alvin Xie --- arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i-io.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i-io.dts b/arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i-io.dts index 4e9b2d11a0b807..edce5e7aa05eb6 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i-io.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i-io.dts @@ -206,6 +206,9 @@ }; &rk809_sound { + simple-audio-card,hp-det-gpio = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&hp_det>; status = "okay"; }; @@ -311,4 +314,11 @@ rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + + headphone { + hp_det: hp-det { + rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + };