From patchwork Tue Dec 19 14:54:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 13498424 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 045C3C46CCD for ; Tue, 19 Dec 2023 14:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OTSjuu8w+Z2e1OsSy6f+sdK0vCvh6bzULooJcf0Tc5Q=; b=Ey0LJP5PSQENs1 bJd+UYG2tkr82Vx77VM2QOvicsqHpdGFZW6NNyvZlAZvHNj9+yN7SvRJe90/G0XQgaJXxK1cnBWlo qzi9xpcG255KRVjRNoMJ2VuJiTx91+rq3Jxu6r+9MsEzKE7F1xoxiCAzm1AsF1RwXPN/Y8eiD3ciS Lae/4FV584sYp0oMXypoI7s2+H8kbRhUwQgcvECiGKl0XTjVXz/aY2GqZoh1pB5y/44KKUm3Nvtbg SY9RGLAFb9hAqfE1cmsgq0FkO8wwZx0/AM/rjs4Tkf9+rUVPPMVP5GBft4sbOcyOT1cnyhWUoXn6x S16ceauKloRMKbiOTHjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFbUu-00ERso-29; Tue, 19 Dec 2023 14:55:04 +0000 Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFbUl-00ERm5-0d; Tue, 19 Dec 2023 14:54:56 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 920C040011; Tue, 19 Dec 2023 14:54:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1702997693; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DKABT8hoj9L9ghNNfdmlCq+oeU3JvftP7p2T+VtAYWY=; b=NjKcCOgGDo+XETF/Hypet1aJBwghhZr1DhRR6Qi5wKYDb6mF1BqGPpodtuqh75GMYhjxOP z1FLdAG/tUcXxg7k4cu6dk5lqrDmC7fqYBf6D0Y+ELnjWyGEpe3RmsKdKnbwoXQRGMDJNt f1EahkiGS2OOWkL5WHxMhgkcJd4PXjx6e0EKGlNQGsar1GG8Jwfi2buOGShQQbTTbU+7/p djDi4xaa3N0M2EwV0OJWSWiv7VTVDe21LZjMzvP0xb6I0a+1K+qmKX59AVad1tku1M2FSO h/lq5+ZJgWcQBnuJgSD8Ap0a7/GWc3PcA5XRJYXP3WwZx8Hoas5QtEUHufssSQ== From: Luca Ceresoli Date: Tue, 19 Dec 2023 15:54:21 +0100 Subject: [PATCH v2 6/6] arm64: dts: rockchip: add the internal audio codec MIME-Version: 1.0 Message-Id: <20231219-rk3308-audio-codec-v2-6-c70d06021946@bootlin.com> References: <20231219-rk3308-audio-codec-v2-0-c70d06021946@bootlin.com> In-Reply-To: <20231219-rk3308-audio-codec-v2-0-c70d06021946@bootlin.com> To: Nicolas Frattaroli , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel Cc: Thomas Petazzoni , linux-rockchip@lists.infradead.org, linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Luca Ceresoli X-Mailer: b4 0.12.4 X-GND-Sasl: luca.ceresoli@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231219_065455_367261_B63CC6C3 X-CRM114-Status: UNSURE ( 9.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The RK3308 has a built-in audio codec that connects internally to i2s_8ch_2 or i2s_8ch_3. Signed-off-by: Luca Ceresoli --- Changed in v2: - use generic node name --- arch/arm64/boot/dts/rockchip/rk3308.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3308.dtsi b/arch/arm64/boot/dts/rockchip/rk3308.dtsi index fa34cae915a7..965b7d3230c0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3308.dtsi @@ -810,6 +810,20 @@ cru: clock-controller@ff500000 { assigned-clock-rates = <32768>; }; + codec: codec@ff560000 { + compatible = "rockchip,rk3308-codec"; + reg = <0x0 0xff560000 0x0 0x10000>; + rockchip,grf = <&grf>; + clock-names = "mclk_tx", "mclk_rx", "hclk"; + clocks = <&cru SCLK_I2S2_8CH_TX_OUT>, + <&cru SCLK_I2S2_8CH_RX_OUT>, + <&cru PCLK_ACODEC>; + reset-names = "codec-reset"; + resets = <&cru SRST_ACODEC_P>; + #sound-dai-cells = <0>; + status = "disabled"; + }; + gic: interrupt-controller@ff580000 { compatible = "arm,gic-400"; reg = <0x0 0xff581000 0x0 0x1000>,