From nobody Fri Oct 3 21:53:43 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A233F25D1E5; Sat, 23 Aug 2025 12:43:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755953034; cv=none; b=o0S/mRuIA2Wj7BIGKfqLzZ3ZiNiJNA8jJesV/1bdlZSM6BY0ioJ+JlHOmFf1HwohHaoZ77e0R3IevXPZCodtAaEBUHpKFHIeLH3QYFVLieRyo7N3s0z18ssN5hfcN6tZIRzCSSwfhhaux/34w/CAEyJKzXGYGnzHFgFt0ax84GQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755953034; c=relaxed/simple; bh=B0yWv5F7kSvazoMcjgU+eIFJl5bLPubYgvJIyWU40a4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ol6wG0aZ1hqhGCuDyOFzMzrNevuZmbk5KEWdAOm4ZTSJ4yRZoDd26cPANNf63+OgCm5wTzXw838yDKh0EzCxn4P4syuJwyEr7x/zO1lvkSqIkvODqrKAUiw9LFwcoHP/hlyEyOzW0BkccR0wG5j7hfm2mqy+QriCKIbrFtHBJPw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Is+9f/LK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Is+9f/LK" Received: by smtp.kernel.org (Postfix) with ESMTPS id 3ABCDC4FDF9; Sat, 23 Aug 2025 12:43:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755953034; bh=B0yWv5F7kSvazoMcjgU+eIFJl5bLPubYgvJIyWU40a4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Is+9f/LKlPgXOnVoQjCbpl0SRkyPIhdLVusrD1VHKH4EhAX0rOXLL76gpa93j1Uka YEaQNCztshxn2SyniYROzQjnTCF5MRuz9omm8IRZGZs9mFqnIivO+IreUMWKBeuID8 zxJNgOTuUrJo7qYvLB363lOnT7OuGKRDakkCNnlE6dZleVTE7LKmuxGM3sDe76QwcG BPed3Z+7askIlg6pPFfJrS/26E3jysNElOV91/HBqnzWtfYkxxe9TstmdN6x3de0dz LtOGOBFu9xDk4xoQDzShFgmza6EL2LCe7z+y+/O2VyDShlcTFACJ0qqvsvAUsRS4eN k499aE2fooCVQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 321B6CA0EE4; Sat, 23 Aug 2025 12:43:54 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Sat, 23 Aug 2025 14:43:50 +0200 Subject: [PATCH 1/3] arm64: dts: rockchip: Fix the headphone detection on the orangepi 5 plus Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250823-orangepi5-v1-1-ae77dd0e06d7@hotmail.com> References: <20250823-orangepi5-v1-0-ae77dd0e06d7@hotmail.com> In-Reply-To: <20250823-orangepi5-v1-0-ae77dd0e06d7@hotmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Ondrej Jirman Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755953033; l=1342; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=kGPjNY4n/uxG/MNPreW3TR8PtxdOfCOti3K91Nz2Q5M=; b=DIIVLpd0YMMUOmcU63vKLqzgA2GVop3tml6nsagnUg28WHgYFNVQa1U8unq2gIzeNRFYO+3xa zedfsD0szo3C/pGzsmbaED6YJPXVZCsHsZqCDvRN/JxRx91zW/Cx/Jk X-Developer-Key: i=maud_spierings@hotmail.com; a=ed25519; pk=CeFKVnZvRfX2QjB1DpdiAe2N+MEjwLEB9Yhx/OAcxRc= X-Endpoint-Received: by B4 Relay for maud_spierings@hotmail.com/20241110 with auth_id=273 X-Original-From: Maud Spierings Reply-To: maud_spierings@hotmail.com From: Maud Spierings The logic of the headphone detect pin seems to be inverted, with this change headphones actually output sound when plugged in. Verified by checking /sys/kernel/debug/gpio and by listening. Fixes: 236d225e1ee7 ("arm64: dts: rockchip: Add board device tree for rk358= 8-orangepi-5-plus") Signed-off-by: Maud Spierings Reviewed-by: Ond=C5=99ej Jirman --- There was a big change at some point so it will take some effor to port it back that far. --- arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 121e4d1c3fa5dab0d08edf7cba692a765b48f7b4..8222f1fae8fadc5cbb4ef16b3db= 5ed975ed43915 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts @@ -77,7 +77,7 @@ &analog_sound { pinctrl-names =3D "default"; pinctrl-0 =3D <&hp_detect>; simple-audio-card,aux-devs =3D <&speaker_amp>, <&headphone_amp>; - simple-audio-card,hp-det-gpios =3D <&gpio1 RK_PD3 GPIO_ACTIVE_LOW>; + simple-audio-card,hp-det-gpios =3D <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>; simple-audio-card,widgets =3D "Microphone", "Onboard Microphone", "Microphone", "Microphone Jack", --=20 2.50.1 From nobody Fri Oct 3 21:53:43 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A240C277C90; Sat, 23 Aug 2025 12:43:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755953034; cv=none; b=DMLdvzT2+JCKur2wKmF1fPxP8PK/LR8ZOSLFycM4p4ooyDeLm/HT5iV2Vl3OA/DcscNNkmaGOekAE/OeH6HxJr92dyER6sWw7qrgGUQRqmv5wlzffg/O8S4szDHpyc4m/W5OWT8+q4Foj1odpSDyx3Ia3XDnmmBe6YvSmRwc5k4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755953034; c=relaxed/simple; bh=VQ1GUY2EiTPu4SjJoDzd70Xf1RpVnGqds8+QtYq8Q9Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YD2n/okUo0dGzyMsL23ypYMZax6mbI1otmoyDJbgNUVN1FUmqObnwXpuP01gzkUumAnXQYFDDxA9rEhNXFTkVAxeAUMP7d8bMhnhQHmR63oxjkt6hzu/X2/hsEOXjQtrgcD/atgwIOi3HwYElpnLTAnJgRC4fdsH3JoDqEs2Zyo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p7/iZwHO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p7/iZwHO" Received: by smtp.kernel.org (Postfix) with ESMTPS id 4745EC4FDFB; Sat, 23 Aug 2025 12:43:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755953034; bh=VQ1GUY2EiTPu4SjJoDzd70Xf1RpVnGqds8+QtYq8Q9Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=p7/iZwHO+4c0Qb0P+5QUQ5TA0wgDTP6G2rce5VQdCw/C9BTLr8MbCQv3VmGD2OT7F eF2WVrgS4taBP2KxAdbbDmHT5APfPx8+llqBe2tsMpld+j/MDpTDNLl2ntMFpHbRuY XbTkIZUpFDFYRxDrT5uVoHkV8qsn8k0dX1nF01g+HqAjHxeNdmd9jQhTDy5bT+GkwW GCLtSyOLSFKjrkeY92RkCrXVofhX+14xoRoru6JKw2CIZpK9GeVrZXQax/z/FXl64S goXmyALOWC87O78hJKMIzwGiTSHZ7aQrmy6Av/DX7TbxWtE+7lD1tSEobVKonOP8oy 1axpz28O0lhXA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FB2ACA0EFA; Sat, 23 Aug 2025 12:43:54 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Sat, 23 Aug 2025 14:43:51 +0200 Subject: [PATCH 2/3] arm64: dts: rockchip: Enable HDMI receiver on orangepi 5 plus Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250823-orangepi5-v1-2-ae77dd0e06d7@hotmail.com> References: <20250823-orangepi5-v1-0-ae77dd0e06d7@hotmail.com> In-Reply-To: <20250823-orangepi5-v1-0-ae77dd0e06d7@hotmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Ondrej Jirman Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755953033; l=1303; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=cqF8f43yoVXcmOBW/qzowTAQoqelusXMIpBTqWyFkKQ=; b=e5rk5j157Pc110tlG1qPb/JIPQGiDbO9A+GNioTHi5dwaS+OTK54zQBnVy9QTWCrJJXChDbbE zB+wprfpaOrDegEQmj7y2Tx7xMASdUtj1wQKs+BD9xCTVGonas1o07P X-Developer-Key: i=maud_spierings@hotmail.com; a=ed25519; pk=CeFKVnZvRfX2QjB1DpdiAe2N+MEjwLEB9Yhx/OAcxRc= X-Endpoint-Received: by B4 Relay for maud_spierings@hotmail.com/20241110 with auth_id=273 X-Original-From: Maud Spierings Reply-To: maud_spierings@hotmail.com From: Maud Spierings Enable support for the HDMI input port found on the orangepi 5 plus. Signed-off-by: Maud Spierings Reviewed-by: Ond=C5=99ej Jirman --- arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts | 17 +++++++++++++= ++++ 1 file changed, 17 insertions(+) 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 8222f1fae8fadc5cbb4ef16b3db5ed975ed43915..9950d1147e129dc866cfde62ddd= 636b082ae1926 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts @@ -160,6 +160,17 @@ &hdmi1_sound { status =3D "okay"; }; =20 +&hdmi_receiver_cma { + status =3D "okay"; +}; + +&hdmi_receiver { + hpd-gpios =3D <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>; + pinctrl-0 =3D <&hdmim1_rx_cec &hdmim1_rx_hpdin &hdmim1_rx_scl &hdmim1_rx_= sda &hdmirx_hpd>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + &hdptxphy0 { status =3D "okay"; }; @@ -279,6 +290,12 @@ blue_led_pin: blue-led { }; }; =20 + hdmirx { + hdmirx_hpd: hdmirx-5v-detection { + rockchip,pins =3D <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + ir-receiver { ir_receiver_pin: ir-receiver-pin { rockchip,pins =3D <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; --=20 2.50.1 From nobody Fri Oct 3 21:53:43 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A23A9277C8D; Sat, 23 Aug 2025 12:43:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755953034; cv=none; b=tq4fAZuNYqsJqU5mw3xo4X6V2gVDV5bIGH9mS6U+sbhFC/diaO4M5Q4NCZMl8ioW7D5prrPQiKgQMxhm8VwCVTDogooPJzBdl82xtyPTBiWGX3CQjVFgKUKUIdml0A3Ek94F5etB0T9+tqKnPPVPry8IGS4Vw10JIAerkvLnfew= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755953034; c=relaxed/simple; bh=2MvRqg6db2hlEoYeXL+KXE0Pz5fSjhUlKeSSolL4RgU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZfvDwpfbTCQ9Ov9Lf7TnUApYmh9sUhbsnMY+34fJv8HyaqrRrxW4m/dyjfyQxN67IXATriM9/8TwC91XiTzq/FIcUJHc7+KHLsr/9FOu4JKZxBJw3J1SxORNzxaABSkLH1q+siFC2BdUfoWgbLGHpdSWDSl14Sr78J0jQJ16Cmg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FKmQKVs6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FKmQKVs6" Received: by smtp.kernel.org (Postfix) with ESMTPS id 543ECC4FDFC; Sat, 23 Aug 2025 12:43:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755953034; bh=2MvRqg6db2hlEoYeXL+KXE0Pz5fSjhUlKeSSolL4RgU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=FKmQKVs6L26o+932W0nDgQ44U+tN24LtYqn1SnSO9Vj5UvsH41ERmOxKuRqFZvCnm 1Y6xJWsgaEnYqnbpS/iH9A3RvC0n7JKTIyxes2F7r644I9EtJoHlRWcGe47Bz4zjKX dTQjUk+fv+PKBfopAkHkMX6OtJUly3jRJR2Cb47v2Mn9IXbJnYDkpzvDTXQBjIy+k8 qBKXNvPJU4iM3XNlsRgFtqbEOUtF3wku/+unxpa002k0XbZHxKXZy56v3zfxIUl0eK nVxZH+p79Fd9pidQNPe6b/xlGhQ0UO4djMqmHyGIPB+0tLJgtKRhluhLNagIxtGXII ed6+b+177o0Vw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C314CA0EED; Sat, 23 Aug 2025 12:43:54 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Sat, 23 Aug 2025 14:43:52 +0200 Subject: [PATCH 3/3] arm64: dts: rockchip: Enable the NPU on the orangepi 5 boards Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250823-orangepi5-v1-3-ae77dd0e06d7@hotmail.com> References: <20250823-orangepi5-v1-0-ae77dd0e06d7@hotmail.com> In-Reply-To: <20250823-orangepi5-v1-0-ae77dd0e06d7@hotmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Ondrej Jirman Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755953033; l=1851; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=oBmYWOYe78XM4Z0Bh7EdEdBYV/CCziVSeJYCFliWyGo=; b=/HVPsjCoScbYi0ithXRZqLZtHuyD8mfp54LrdD+vPVXniIw1gI0zTG4LaPUiJycPh1IC4SjNU foRZ8VAIYOFAIwm7Sq5U0k5/Jct24ObIRRPCJqd9hPim2awDBEjlIsc X-Developer-Key: i=maud_spierings@hotmail.com; a=ed25519; pk=CeFKVnZvRfX2QjB1DpdiAe2N+MEjwLEB9Yhx/OAcxRc= X-Endpoint-Received: by B4 Relay for maud_spierings@hotmail.com/20241110 with auth_id=273 X-Original-From: Maud Spierings Reply-To: maud_spierings@hotmail.com From: Maud Spierings Enable the NPU and the PMIC that powers it. Signed-off-by: Maud Spierings Reviewed-by: Ond=C5=99ej Jirman --- .../arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi | 56 ++++++++++++++++++= ++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi b/arch/arm= 64/boot/dts/rockchip/rk3588-orangepi-5.dtsi index 91d56c34a1e456e18db31e1bbe7252b7e4632588..ac1df223d6a25f3059ce3397095= 3745e402ef695 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi @@ -258,6 +258,28 @@ regulator-state-mem { }; }; =20 +&i2c1 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c1m2_xfer>; + status =3D "okay"; + + vdd_npu_s0: regulator@42 { + compatible =3D "rockchip,rk8602"; + reg =3D <0x42>; + fcs,suspend-voltage-selector =3D <1>; + regulator-name =3D "vdd_npu_s0"; + regulator-boot-on; + regulator-min-microvolt =3D <550000>; + regulator-max-microvolt =3D <950000>; + regulator-ramp-delay =3D <2300>; + vin-supply =3D <&vcc5v0_sys>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; +}; + &i2c6 { clock-frequency =3D <400000>; status =3D "okay"; @@ -352,6 +374,40 @@ &pd_gpu { domain-supply =3D <&vdd_gpu_s0>; }; =20 +&pd_npu { + domain-supply =3D <&vdd_npu_s0>; +}; + +&rknn_core_0 { + npu-supply =3D <&vdd_npu_s0>; + sram-supply =3D <&vdd_npu_s0>; + status =3D "okay"; +}; + +&rknn_core_1 { + npu-supply =3D <&vdd_npu_s0>; + sram-supply =3D <&vdd_npu_s0>; + status =3D "okay"; +}; + +&rknn_core_2 { + npu-supply =3D <&vdd_npu_s0>; + sram-supply =3D <&vdd_npu_s0>; + status =3D "okay"; +}; + +&rknn_mmu_0 { + status =3D "okay"; +}; + +&rknn_mmu_1 { + status =3D "okay"; +}; + +&rknn_mmu_2 { + status =3D "okay"; +}; + &saradc { vref-supply =3D <&vcc_1v8_s0>; status =3D "okay"; --=20 2.50.1