Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp441264lqs; Tue, 5 Mar 2024 06:38:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWX7gDDcW+hsY9rdyESkTpWRNva2hOjPfeeAnX2B3En1JHQqMZ5OW6Nfb1MjDB9wKR7WN/S+vzuYGmSRrEVd0ql+9fDx8hXFAoar4nF3g== X-Google-Smtp-Source: AGHT+IF+IDFtVmWkahr9d6+v8o/FBGf97c0x5qWcY0p75wqIQg0JWXKX96mN+XuUof4a+90yT49c X-Received: by 2002:a05:622a:120a:b0:42e:f1d7:4c9a with SMTP id y10-20020a05622a120a00b0042ef1d74c9amr2254069qtx.42.1709649502562; Tue, 05 Mar 2024 06:38:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709649502; cv=pass; d=google.com; s=arc-20160816; b=WCFqNthHQRDrnqpV1OMKpplSVP1wZ4tUopBXFxEtss1w7VqhRydsruYYWAazx0HdGn qGQj6Ujyf3ZS1MSrmtqivs4F3fkAxVhQb1fz9RaVg7TpIa9dhRDK46TQGRMB4oZ2apS3 vmtM7pO4kMjTANlNxT6UOsyNhQURCPJzm+BcAF0pk8xLcCjydODH6jOfWwvL8w8f7Dcx 7e2cX48ijsMz76NujO5vu189d9Y/eBLXsDWaFuqYi6ih5JPT1x0ycPvLR9th251larO2 FXArAxOnR2s84Wg7IOpWSEyk9VxHt6H6Yl4PwUp1F9Ng7cKVxZZf4x5nRt0zC4nZQh1q +nsg== 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=p95wvDK9w0tJ9c5khPTqW4lIM1Qh7HWUU4fVk+JnuSQ=; fh=2Nt6gk3gPvwOdwcJtrHNtNEL9XfCtvtFncBpJgtdmfg=; b=Sx80EWBGeXqfhAcdcY+sfoGu1MkhdgNN74rpmlBM5JA4mSm8s0qO6jSVn5XgyIpvnO lDSwOQNcC7IkYT8ZJ7NtVA3i91M64n9DLtSU7+llI2AKvB9HWRogyZTvvHB492ophc+q BrPPF6S7dqJ2TFHqTHgugrO3NL3ndX8j54GwvSGPun3qX17RJknfXGY3sY4FE2UYyerh 1L8MHYGv8YV1hB/eqeheCSZ4C9J6Kn0Y0LizqZk53HCWqfp2tQSYvxcQVDM10CbQ5Rse 0hPsHNy8YeGksLL3yUfMIk2KTM7dRGr4CtE2qbfJ5VKavYIRPcUFRfVxczbUcezzl8rt 0w6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eodDd8yv; 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-92525-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92525-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p14-20020a05622a13ce00b0042ef3db45c8si4341262qtk.338.2024.03.05.06.38.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 06:38:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92525-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eodDd8yv; 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-92525-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92525-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4A8B21C216E3 for ; Tue, 5 Mar 2024 14:38:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2F86127B7D; Tue, 5 Mar 2024 14:37:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="eodDd8yv" 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 AE5621272BC; Tue, 5 Mar 2024 14:37:05 +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=1709649428; cv=none; b=kYUxUdyEgVMfeK46DSEMLzYBkPYMlzVesVwzHk7CQiNvZtnc/BHIv+xGMi9eGvnbcdff/D59zpONxJzyKHLYMMw1lS8tMtcVZZbQ/IjkuH3Hd3HSw/n5tpxCsMKDjFRLsIYIQMi1WduRTp3wDxrhqi7rXVfl2dezVczRpP/OhuE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709649428; c=relaxed/simple; bh=sHNrhVnVo+J5CJCZHm6ezBFQjHEVTGLXAnhHf+jAMhE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HjZ3jkC7q7pS328T0dI2AQo6z71oxxyGk+wNna1nzyAKXwXex0FlYVQQ630+ArGnp8XkfjhRv0N1g/F3laI5MKBCB+TxA8duFjicc/uYiovNMjM7UKzq+hLpQvPt6cdx8utWEpMbxmBxhvxyEuFx0uwRBzu5T133m+eybVJ4Xlk= 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=eodDd8yv; 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 E4A82C0004; Tue, 5 Mar 2024 14:37:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709649424; 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=p95wvDK9w0tJ9c5khPTqW4lIM1Qh7HWUU4fVk+JnuSQ=; b=eodDd8yvaxNuiRMp7Tv0NwWtjikPDhLFjP8eCHJNS4nB3tqq1reg44GFcHAEQtTJL+ofia Ox7/K6jikOHgr4UOllP/BbPnBMxcLp64T8eIiNRK5nWZG247VJtBeGZqASTmvutQ8kQHDA xYW8pzH1dDIH06ZPP4kK6ERAeSn3wPzCPgIcBhdFaYQK4czS4yKN6qfXOf9yN8BSO5g6h3 E6Kaerzfl+C7EvmuNtlrwOBFEc3Ryf/EaCJO/8iNB6DDB22925QedgyzJLmevtg6pzfJJH JwKAakhA/lo7+4XKOVYznKKmWDVV7W0mNLBBonPGUqy1rxUzAzhp0ttJ8xxBBQ== From: Luca Ceresoli Date: Tue, 05 Mar 2024 15:36:33 +0100 Subject: [PATCH v4 6/7] arm64: dts: rockchip: add i2s_8ch_2 and i2s_8ch_3 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-6-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 These are I2S engines internally connected to the built-in audio codec. Signed-off-by: Luca Ceresoli --- Changed in v4: nothing Changed in v3: - removed the 4 optional clocks Changed in v2: nothing --- arch/arm64/boot/dts/rockchip/rk3308.dtsi | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3308.dtsi b/arch/arm64/boot/dts/rockchip/rk3308.dtsi index cfc0a87b5195..662c55fe9b77 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3308.dtsi @@ -578,6 +578,48 @@ dmac1: dma-controller@ff2d0000 { #dma-cells = <1>; }; + /* + * - can be clock producer or consumer + * - up to 8 capture channels and 2 playback channels + * - connected internally to audio codec + */ + i2s_8ch_2: i2s@ff320000 { + compatible = "rockchip,rk3308-i2s-tdm"; + reg = <0x0 0xff320000 0x0 0x1000>; + interrupts = ; + clock-names = "mclk_tx", "mclk_rx", "hclk"; + clocks = <&cru SCLK_I2S2_8CH_TX>, + <&cru SCLK_I2S2_8CH_RX>, + <&cru HCLK_I2S2_8CH>; + dmas = <&dmac1 5>, <&dmac1 4>; + dma-names = "rx", "tx"; + resets = <&cru SRST_I2S2_8CH_TX_M>, <&cru SRST_I2S2_8CH_RX_M>; + reset-names = "tx-m", "rx-m"; + rockchip,grf = <&grf>; + status = "disabled"; + }; + + /* + * - can be clock consumer only + * - up to 4 capture channels, no playback + * - connected internally to audio codec + */ + i2s_8ch_3: i2s@ff330000 { + compatible = "rockchip,rk3308-i2s-tdm"; + reg = <0x0 0xff330000 0x0 0x1000>; + interrupts = ; + clock-names = "mclk_tx", "mclk_rx", "hclk"; + clocks = <&cru SCLK_I2S3_8CH_TX>, + <&cru SCLK_I2S3_8CH_RX>, + <&cru HCLK_I2S3_8CH>; + dmas = <&dmac1 7>; + dma-names = "rx"; + resets = <&cru SRST_I2S3_8CH_TX_M>, <&cru SRST_I2S3_8CH_RX_M>; + reset-names = "tx-m", "rx-m"; + rockchip,grf = <&grf>; + status = "disabled"; + }; + i2s_2ch_0: i2s@ff350000 { compatible = "rockchip,rk3308-i2s", "rockchip,rk3066-i2s"; reg = <0x0 0xff350000 0x0 0x1000>; -- 2.34.1