From nobody Thu Jan 30 23:21:43 2025 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 CB9051D14E2; Thu, 23 Jan 2025 22:29:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737671359; cv=none; b=C9djCVPrCFTIiFKN0wg5jAmR9bArMNogCePPeEJaDzb4xrkRhPzmmf5Unb5zssq3Ljy5yTm0AinNl/LK96ALr3taDOZsD5lyoDyPPMO1chy4qrKJDEbaglpeEM8qcW4glUtoZaOEw5uM5t4clOhM8nndpNz4PMdp3nqftQl3MXw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737671359; c=relaxed/simple; bh=DYl+QLg+bXf1oFNxNjE9MmYOZbStaYtUHF6Ata+RLOA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=evWFlcGUlwHgRPou65wyyxbMOuQLINXuPTFOAhqZXODHwnKgZUU6GP1UCUxjzjRSnH8vU35roxUqZqQqS0fpikPb7jb2JjtPbXVHVr845Eumm0rBxgpm5ISd5Kq1t0IwchQEZa3IeS+HHKO3v9uUQ5x1VntFlf9gUvDetNMZM/w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=Vr2xpAN4; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Vr2xpAN4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1737671355; bh=DYl+QLg+bXf1oFNxNjE9MmYOZbStaYtUHF6Ata+RLOA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vr2xpAN4ksdLDWbNRyZDBVw58o4axQ7f0jvRwJfz1gnFc4uARKRe5OPQwHZIZJ5Ti ZNK5UDQl2nlzsPH42JWBuMDqRYtZqaE9TSXSHGIfIfSCNlfYYoPzKhPEumnjCPq+Lc IRKTizZprjjrZrsE1O8KWNFQUbbxEpFbbuxrVHG65xw737BtusbliNkvUXheIYRm3g mPxfrrJM/W0ZHNWjiS5ha6spAJhsyJIGvhAeTacgR77k587pz+EImJpG+RoSEgJmob tQAb40UQt2hnYUBFtnYFoTS8l+UxNF9eikTRmMmqhNLXmwcqziqsYSA5rIK5tx05Ns Lp1me8BXbL8uQ== Received: from earth.mtl.collabora.ca (mtl.collabora.ca [66.171.169.34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: detlev) by bali.collaboradmins.com (Postfix) with ESMTPSA id DE7C917E0FA7; Thu, 23 Jan 2025 23:29:11 +0100 (CET) From: Detlev Casanova To: linux-kernel@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Sebastian Reichel , Cristian Ciocaltea , Alexey Charkov , Jianfeng Liu , Dragan Simic , FUKAUMI Naoki , Geert Uytterhoeven , Detlev Casanova , Johan Jonker , Kever Yang , Dmitry Baryshkov , Sugar Zhang , Algea Cao , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, dri-devel@lists.freedesktop.org, kernel@collabora.com Subject: [PATCH v2 2/2] arm64: dts: rockchip: Add HDMI0 audio output on rock-5b Date: Thu, 23 Jan 2025 17:28:07 -0500 Message-ID: <20250123222850.223255-3-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250123222850.223255-1-detlev.casanova@collabora.com> References: <20250123222850.223255-1-detlev.casanova@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use the simple-audio-card driver with the hdmi0 QP node as CODEC and the i2s5 device as CPU. The simple-audio-card,mclk-fs value is set to 128 as it is done in the downstream driver. The #sound-dai-cells value is set to 0 in the hdmi0 node so that it can be used as an audio codec node. Signed-off-by: Detlev Casanova --- arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 1 + .../boot/dts/rockchip/rk3588-rock-5b.dts | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi b/arch/arm64/boo= t/dts/rockchip/rk3588-base.dtsi index a337f3fb8377e..fcd1c85e6ce8f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi @@ -1395,6 +1395,7 @@ hdmi0: hdmi@fde80000 { reset-names =3D "ref", "hdp"; rockchip,grf =3D <&sys_grf>; rockchip,vo-grf =3D <&vo1_grf>; + #sound-dai-cells =3D <0>; status =3D "disabled"; =20 ports { diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/b= oot/dts/rockchip/rk3588-rock-5b.dts index d597112f1d5b8..1909078538367 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -49,6 +49,21 @@ hdmi0_con_in: endpoint { }; }; =20 + hdmi0-sound { + compatible =3D "simple-audio-card"; + simple-audio-card,format =3D "i2s"; + simple-audio-card,mclk-fs =3D <128>; + simple-audio-card,name =3D "hdmi0"; + + simple-audio-card,codec { + sound-dai =3D <&hdmi0>; + }; + + simple-audio-card,cpu { + sound-dai =3D <&i2s5_8ch>; + }; + }; + leds { compatible =3D "gpio-leds"; pinctrl-names =3D "default"; @@ -318,6 +333,10 @@ i2s0_8ch_p0_0: endpoint { }; }; =20 +&i2s5_8ch { + status =3D "okay"; +}; + &package_thermal { polling-delay =3D <1000>; =20 --=20 2.48.1