Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp558568rdh; Tue, 19 Dec 2023 07:05:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4+Jg1UIs8PUiFxtbb5+4bbhuPrAOocY4RH3BFAC4C42sWIY5CI5ciiAQt4kc6G9bort7h X-Received: by 2002:a05:6a20:7fa0:b0:18f:97c:4f3b with SMTP id d32-20020a056a207fa000b0018f097c4f3bmr11008943pzj.71.1702998311582; Tue, 19 Dec 2023 07:05:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702998311; cv=none; d=google.com; s=arc-20160816; b=SDpPiABMwaNZ763QbZQMwvYzmY6rhUjIxofIdKN3lI4A9VJEwppJpxVzjV87TqvTP+ cZv9Km+rYLg/cPDRHYXRGrr0DcvFKxAg5xebh8+OzkARHSVKMRfIRChaiYQD1QKByXi7 b8C2JyVSbn2GF2bVCaAn8IHm9eZ9KNP2is+0O338ppwPh/s/suZQENgJbUgfeFxvnrFI l1uA/fx6kIpHgoilkXsB7TqwEBRkopwy/wo5YLxMb4iW36zOw5tCUUJoTdKNI6r/NJEk t5XwXuf4woxG0GKz4bvCvIXJcoMhr0Q/Q9qzcc6fYajwuXydt+ausY/OpZRLSZH0U0Zg GHfA== 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=0cYAvtbYQmtBX1+AmSwcKknSfCzuBZ5CMRjyNDvr3P0=; fh=YBpXnBz4z5WTNuRpmEjjmJAYZAysFFiStO3A7cE8DhM=; b=JGrzsnsIhWD+hTDUhjvEhmk3arA6ceaGW9nzu11m5TEJQLQFY0gfKVEISRamnTNCaO jwwmuWnD7ASiow78neR1gXkOYZGJ1G+/hpZmz3Ce1T1JiI+GlGJ47z1+hyHB6mG34+BY Lrr7Avq3M9AH6dd2TsMeK3g8jARQDtAL1tdQ3qf+AdJpkayA8t16aO/M8GUzaOA20X/b hFiVNhFXhagv/FlKsu1uDlphMFAGqmdwg/gNk5xN+45NRMOHzLEi31vbXTbAvzqdn0GG doRc8KYeXasAhNo1y5MhTNu0vhJyo8PitarnlVKtv1w7BWgen+J1uCOsclqe768/EoCp bjwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=UFcfiK00; spf=pass (google.com: domain of linux-kernel+bounces-5436-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5436-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x1-20020a631701000000b005b887ff580asi19284191pgl.878.2023.12.19.07.05.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 07:05:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5436-linux.lists.archive=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=UFcfiK00; spf=pass (google.com: domain of linux-kernel+bounces-5436-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5436-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B8BBC284FFA for ; Tue, 19 Dec 2023 14:59:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71AFF3985F; Tue, 19 Dec 2023 14:55:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="UFcfiK00" 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 3D205374F3; Tue, 19 Dec 2023 14:54:53 +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 402C840016; Tue, 19 Dec 2023 14:54:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1702997692; 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=0cYAvtbYQmtBX1+AmSwcKknSfCzuBZ5CMRjyNDvr3P0=; b=UFcfiK00j/VBVCdL8RcW9luAA2fO95lbia3p8M4aYIsiw5sDDCbodzKOe2BnFeNJMPluC7 SsLp+SH5bXVR0DBJmC8UrOwwX1svLnFOgajqXqjM6CHa0/aAVH0NOlKIrYkRIfH0LB950s tX62I5atHBh7ODjLIMsf3ZDSrTGSfe5QLyhadCfHFmiKMb6lxTmnxTHqlGfbnHPRrPOfWK yoL5MaEyBfZ/73Jwkf9e7SMSFr41Px/SpXikC37AZK+/uKg+p5f++r+t38k9MkMQRORtkM d6ANJ03UH2ufbvCohFr+1G8/+1uQzqzyXzcWjQFl03/2K72tYW3n1PeuoQlvug== From: Luca Ceresoli Date: Tue, 19 Dec 2023 15:54:20 +0100 Subject: [PATCH v2 5/6] 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: <20231219-rk3308-audio-codec-v2-5-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 These are I2S engines internally connected to the built-in audio codec. Signed-off-by: Luca Ceresoli --- Changed in v2: nothing --- arch/arm64/boot/dts/rockchip/rk3308.dtsi | 54 ++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3308.dtsi b/arch/arm64/boot/dts/rockchip/rk3308.dtsi index 2ae4bb7d5e62..fa34cae915a7 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3308.dtsi @@ -573,6 +573,60 @@ 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", + "mclk_tx_src", "mclk_rx_src", + "mclk_root0", "mclk_root1"; + clocks = <&cru SCLK_I2S2_8CH_TX>, + <&cru SCLK_I2S2_8CH_RX>, + <&cru HCLK_I2S2_8CH>, + <&cru SCLK_I2S2_8CH_TX_SRC>, + <&cru SCLK_I2S2_8CH_RX_SRC>, + <&cru PLL_VPLL0>, + <&cru PLL_VPLL1>; + 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", + "mclk_tx_src", "mclk_rx_src", + "mclk_root0", "mclk_root1"; + clocks = <&cru SCLK_I2S3_8CH_TX>, + <&cru SCLK_I2S3_8CH_RX>, + <&cru HCLK_I2S3_8CH>, + <&cru SCLK_I2S3_8CH_TX_SRC>, + <&cru SCLK_I2S3_8CH_RX_SRC>, + <&cru PLL_VPLL0>, + <&cru PLL_VPLL1>; + 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