Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp559740rdh; Tue, 19 Dec 2023 07:06:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6WPT6oNcWrsaJ6lmLuoO8Jajp43tiqK0tSyUFJZkKPer0xV+y4EiBq2zu0ZRZ9HqIVtI5 X-Received: by 2002:a50:9996:0:b0:54c:4837:9fd4 with SMTP id m22-20020a509996000000b0054c48379fd4mr5310212edb.43.1702998383550; Tue, 19 Dec 2023 07:06:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702998383; cv=none; d=google.com; s=arc-20160816; b=Dxq1krWJ0Im10iN6WvHVjZGA3XdopuB7Dlc245ot64wTqbY93NPnrY99Owt58Amgle KzfyrQ7e2gheLhTXDvMTMj9DwcPsooz4sX45fhND/9RLtCsYBtxOUxMcgFBfKTQIi9nw ia0rqySHaiXARMkM8TEjRMS7+076aH+oWeD8fnoiTQ6kM7cnYQsCVlewJP0fPqJHMINe VdwNVXlbgMoYyNNRe8B4HaHUu03JQmXVmBsN4Z4GuCVomJhHHvEdQV/tc5+1sNY+Dw3l C/NwjBnc00hxLcQpyy1YxOQmrvx6Rgp2wi5yKqU/4qHaBowEhhHeSsKfX13Xpi6F2/gp HJjg== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f12-20020a056402354c00b0054b2bc76084si11418939edd.130.2023.12.19.07.06.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 07:06:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5437-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5437-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 85C781F28A47 for ; Tue, 19 Dec 2023 15:00:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00F9F38FBB; Tue, 19 Dec 2023 14:55:04 +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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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>, -- 2.34.1