Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp441426lqs; Tue, 5 Mar 2024 06:38:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVYNw5pxtp4q/Tiu1twW+pXwYq0RsND9gOYCI6oIRavt+hq7UfwFOkgDTPL+Yrly80Wd3cFkeSIKrXwWOhOz8/uP223EVI1st8FTrj93g== X-Google-Smtp-Source: AGHT+IEgxtErLBzGcTYWcFjEgEMvf4W37vISXjQfezNyuBY9PmVP8FWwBcnQN0PCMv4GFV3Vvi5k X-Received: by 2002:a05:6402:905:b0:565:778a:cd26 with SMTP id g5-20020a056402090500b00565778acd26mr3318416edz.11.1709649516201; Tue, 05 Mar 2024 06:38:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709649516; cv=pass; d=google.com; s=arc-20160816; b=a9tfE7GE2OcQanO3bCLfIHoYIVPcHsT2SXkqbkGqhb/FWKEoY/7Kq71ZqqCGOfJOzG dRaydQ1UaTG9sSp/PH1MRegO5RpnEBdwvYBeeuH+EtVbLzegyuqXeTvw8RMdVEjt9mOK j7h9S8V1ilSCMqKJILNlTV2JVKb8+6mCPDjq0bHdCfZbIfut0KpWFsr3v+i77jyB1pQ5 aCeAcdaZcppAPG/mQMOMU+0EmETwg9e+KqA42Yd98bcL7AZN6fT7shWj+pTG4LoPMvvB l2X4YtaUdc+8gnRR1GWT4YIjygqILwYknn+vBlh2vH/T8JIWEwloRbXr9M4+cismnonU 3ouQ== ARC-Message-Signature: i=2; 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=u6o1HAKXtBl5rVLvoNigCvVZ6wM33rLm44ZB/B7ufNg=; fh=2Nt6gk3gPvwOdwcJtrHNtNEL9XfCtvtFncBpJgtdmfg=; b=R8E60K8DeZa7a1K7Vo2pfhipeGOSnyi5QGTtfS2/ILnsw8w1iKiSpnwlLjUuCDyY+9 OVWZIDWTLV9zN3+BGe2mV9mKd7FTxzp4qR+uh2ltYZFqo7MZWJUock2Nr1rqy2WkwJCN x1DOnOK3s7Kz8wFl5GKQJ46eAUtkaLPIJN4fxHNjrNgIBVlWN/YKoB+JVsSqSqeL0x6/ mcy+XfG9lMGCb6EDImNUltlGv+sSboWB+YZ7EJYQmzwC7Lk5SNuD815JRNehCmYx24jg RXe4H6PrVXZr4A41bWszBvPNocO5xX0Y2R8/YPN/R3AXayVn7r9bKH941IcgBfPX94yg uB9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=df4Hrjwu; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-92527-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92527-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 m2-20020a50d7c2000000b0056568fe52eesi5037733edj.565.2024.03.05.06.38.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 06:38:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92527-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=df4Hrjwu; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-92527-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92527-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 E768E1F239CA for ; Tue, 5 Mar 2024 14:38:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0ABDE128383; Tue, 5 Mar 2024 14:37:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="df4Hrjwu" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 3EAA086AC6; Tue, 5 Mar 2024 14:37:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709649429; cv=none; b=HnIcsEhbexqNQu5ork5povV8IViExDLrHLTIoIPjzcEnGYxr0RUwX3X5rwEzLxyT/agnMEq50rUkR7HmMAnrWpnxDlQusMs1L8q+rk4J2gz0NC+1KqR1FjaX3VdcmljwNG5rSYU4rC+7wRQu4ojOvM5iC+08O9POXyjawcCb7QU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709649429; c=relaxed/simple; bh=dmp5KFcigV9N/0wkF+seHjqncGB1BmNzUlnwbTpFD8w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=L2aMiTxnr153MrKuSQFst8jpPsk3V5KEFqqreg89WQdY1y4sCdzdQe3Dil9f9EA9Xb6dUAUo3kghWHN1762X+rW1yUy0SJU4zFsVJTg6+VXCHg6gC2OdPiAe/YuTBUwMt/zWIN0ThBBOS720VPrPAqsZqWJ7V5EZ/lKLz8nstCU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=df4Hrjwu; arc=none smtp.client-ip=217.70.183.198 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 5299EC0008; Tue, 5 Mar 2024 14:37:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709649425; 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=u6o1HAKXtBl5rVLvoNigCvVZ6wM33rLm44ZB/B7ufNg=; b=df4HrjwuvptUVVpTjuESCaN83CMpEgi6TZgqQyQebF+TtMYicP6CvNanjzZhb+NMevKMaA I/voGdKrmqBZa9J/ifD3qF8CkCDbjPBK+KpEEBReS/mGxPt6GCp5HTz3p6/fjKxx1lw9qs uhOG++siVgIx/L/dSVXOAbusfzRwGzJn5QJj+9plfFdK49x7Dq4bJX+yeycd0YkOxmWtAZ wlg1K66c5OxEbOHkqBxUe9V79yH4aYlzOzu1hIhTMtUY5JPTNReCkIVZMhL92fQd/caxhg fJRu2JLjcDMDtyWG5e19/F8p31h8x2AUW+pQxYG/nlFo4Qxnk8skiOKK8821yA== From: Luca Ceresoli Date: Tue, 05 Mar 2024 15:36:34 +0100 Subject: [PATCH v4 7/7] 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: <20240305-rk3308-audio-codec-v4-7-312acdbe628f@bootlin.com> References: <20240305-rk3308-audio-codec-v4-0-312acdbe628f@bootlin.com> In-Reply-To: <20240305-rk3308-audio-codec-v4-0-312acdbe628f@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, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Luca Ceresoli X-Mailer: b4 0.13.0 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 v4: nothing Changed in v3: nothing 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 662c55fe9b77..962ea893999b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3308.dtsi @@ -803,6 +803,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