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: 181043 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2000727dyi; Tue, 19 Dec 2023 07:06:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IE308U8qU3qx5FJdT4phAXzy5c1QxyQdDwzkLkNsZGsffXT3iPaR8Gv8CCOLRfLolYa2OGn X-Received: by 2002:a05:6871:282:b0:203:ca97:353a with SMTP id i2-20020a056871028200b00203ca97353amr3844051oae.108.1702998373428; Tue, 19 Dec 2023 07:06:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702998373; cv=none; d=google.com; s=arc-20160816; b=z7jGjCkxZ9yYBwUEIejWfZoJhU+r3d6caFIp3BwtMyt3GJ3oqA5NZNhN51EbvSpfFh 1XX8nDVp2jqkV40w3ZHyBuNYFc1WSMZIsd2SPiRiPPh9SYvzZzsz5PbCFNke9/zN33CU RmUgRxg1YPppGgsT+rmCnZHm2m4COy2aul2uHlBK2hnWlLNLYzd6NKKLNp2bzJa7jEPF z/a+VEe2bjmQfedlSUngOOwejeV8iH1ngr+f2OzTX/Hz3KBhkoBUk+36hBa6EuuoTRKA /5n1KVlGb5gERXf5aa2nYEn/d+S6Df5URdXu/KM3lLeXcNcUK+c2/gxM9rlECrGLVQmE pgqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=DKABT8hoj9L9ghNNfdmlCq+oeU3JvftP7p2T+VtAYWY=; fh=YBpXnBz4z5WTNuRpmEjjmJAYZAysFFiStO3A7cE8DhM=; b=MEgMFxlHTDY7jDW4MlE41k0vwO6cDyWm6l2GrgsJVCMDESp5MxiekwoybejducNPzn ZT8mmQUIS0st6UCIJKQD9s0Dixd5jpvFlq0+C53XsIZDDBWmvWTTCVCmHOyASRjVBVQr POd1PorZwlfZN6oTmEWb9fpBDsKA2Y+T//CTdQDtCq6O2cjKYzoYUWNXkdHuPSj2Ukd2 fE9kF8t2QzVF2ivLpfCJy6B9n1+fX+bhrfDDkJJAJdKxn9JoeHJxhdO/R5LnpaqYiykt u7FzgMvy4+xfsoGag5BPdSCXnwY53sVCk8bqOy9olnGEjYj2jJogp0lNL+Qpq+T9znP0 PBHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=NjKcCOgG; spf=pass (google.com: domain of linux-kernel+bounces-5437-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5437-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r16-20020a056870415000b00203e04fdeaesi784154oad.124.2023.12.19.07.06.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 07:06:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5437-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=NjKcCOgG; spf=pass (google.com: domain of linux-kernel+bounces-5437-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5437-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A7D88286E24 for ; Tue, 19 Dec 2023 15:00:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 261A03A1AF; Tue, 19 Dec 2023 14:55:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="NjKcCOgG" X-Original-To: linux-kernel@vger.kernel.org Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 8E07637D22; Tue, 19 Dec 2023 14:54:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785723222853293409 X-GMAIL-MSGID: 1785723222853293409 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>,