Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2185593pxb; Sat, 28 Aug 2021 07:05:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbfJ2pT39RFK2Sei0/U0ndXpmtGlqQd46DiAsNrcSijc35IfKZKcLdRAcQi9jdYiggNvxI X-Received: by 2002:a6b:fb0b:: with SMTP id h11mr11295280iog.59.1630159503180; Sat, 28 Aug 2021 07:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630159503; cv=none; d=google.com; s=arc-20160816; b=sjn9fnx91oEU8u06OXxGg7mtEE3G9fkTeElsTf4gRIzpQoVkGAtzLKyeJScrCRfotX iNW0bp6X8/A/SV5+1tbSLc7uX/QMXRHmH4G/O1u2BTiECVdIWRcAoTRUhXF9Pv8ajH+l fyQZzlbMexptP9onf4uZd4xpsvXoLL8xIKb+3Xewhr3jXYFCY3TD4iim42nB4ShOgjRx Dnhe+UUnbVXRNmICaMw7C+04PJC6puN+1bFXimFj/6MHVOfNSfoQV/o60Nbj4jsgYV54 0n6Y8wJLJGmvDpf1qyz62yQ8nNC9CfzDswmH4aw07RpNO+jv4z8+O8yms9xThHLFGFyK y0aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tyrOm7xpawJP+/ommIWD0ISWok2qoozg6cD1tMaZFAQ=; b=m6L95TRrD3P0DyshdAFX3mSkaiDI9/UL1Nap9jvDGArFl7G8Of63og0nrS4KMN3Xir uaXUmlh88aReNt0B01O4ebc5qG36YV93a1Op28H+vzBFPbRA61mnB/VDb7Ogydac2F6r CDuywqZOboqQ6YKgshlMOVcPbadW0KyIIN3fcdYs66NwWhaKAK+Wqwn5SYAXQW6+r6CJ N02A1KrG124goYRqFiA7G6rA3BN1leG4RWfM72HCTrpv6CCvv+Engnln+B/lmPEoianB GaBc6n4vM8AxVwJiTfyBiVL/0K6YgpksXXgRVYbe2AhDhxIv/TEggDZvxMulZScKOd/W 795A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NDrqi0pn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q9si8974417ile.120.2021.08.28.07.04.51; Sat, 28 Aug 2021 07:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NDrqi0pn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234407AbhH1ODa (ORCPT + 99 others); Sat, 28 Aug 2021 10:03:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234406AbhH1ODa (ORCPT ); Sat, 28 Aug 2021 10:03:30 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31694C0613D9; Sat, 28 Aug 2021 07:02:39 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id u3so20223388ejz.1; Sat, 28 Aug 2021 07:02:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tyrOm7xpawJP+/ommIWD0ISWok2qoozg6cD1tMaZFAQ=; b=NDrqi0pnyBtaxic7U2vZv57APr6RKXS5EgGD7rDCG/23xL4GyGge2Ex/XFAb5TExTK R33oWBmooBhy1FQS9DAJTIYbi6Nki0gzBpDsgYPTdPRg06ZALAeXfplTWHfWmAdha77U gF4SQkk4kQ5wYyzhCGurEnzNVqHdUy/FZU0+qQIbYz47ExU1evoRIrVpgiIqN/VNO7LN gAhAuP1L0LH3wnfbq5wcSQv2D3XsyEiCAlNJmsSBj7JjT7OJzYPO00ymZN3F20HMaaZB 7j7zjaD0uy2S6odf3FB9gAMYiHYbd9KyXgHsS+VkWmKFQUVwaHy+pHpm7kpi+wPfKCmU UNFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tyrOm7xpawJP+/ommIWD0ISWok2qoozg6cD1tMaZFAQ=; b=T8KX7AmgxyhQqjjjNDO/LHuJb0SIccTzkhUPW5Ud2x63aVMC2JP2XNw4a8Ngo0aQwy Cze1Z8A0fojhWhtxu7wU0dGj8BXgZUribkR29yQ41I4fxexTPRmMXC8vfBvzCyE3vdm0 pdYka7NUisTF3cI4uBsfAuVIlgfXPgmqqDel/2wsgTsfeyn4QtwRTfmYXk9nt6q5ikt6 fY9Fqw3iHuD5uFRx+m+ROUSaPBQIvuducYo/J+2JRykwenJZ3FATdjAeHBoYUVV6FfbW MHKY5I14h1LALCctzN24o69A0cIXpN+fjMWaZfvuYNTNz0BjafkPW+7c4KeuVctN1em4 0BsQ== X-Gm-Message-State: AOAM5314IzMulUXr4axmwoXqtDDB/Fy53PrwdxXLcw8/mxrGjD2tUKdb sx3SIU4FOm7pYIkVpxvZFk4= X-Received: by 2002:a17:906:fc7:: with SMTP id c7mr14814325ejk.333.1630159357831; Sat, 28 Aug 2021 07:02:37 -0700 (PDT) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id cn16sm4953982edb.87.2021.08.28.07.02.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Aug 2021 07:02:37 -0700 (PDT) From: Nicolas Frattaroli To: Rob Herring , Heiko Stuebner Cc: Nicolas Frattaroli , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/4] arm64: dts: rockchip: add i2s1 on rk356x Date: Sat, 28 Aug 2021 16:02:03 +0200 Message-Id: <20210828140205.21973-4-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210828140205.21973-1-frattaroli.nicolas@gmail.com> References: <20210828140205.21973-1-frattaroli.nicolas@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds the necessary device tree node on rk3566 and rk3568 to enable the I2S1 TDM audio controller. I2S0 has not been added, as it is connected to HDMI and there is no way to test that it's working without a functioning video clock (read: VOP2 driver). Signed-off-by: Nicolas Frattaroli --- arch/arm64/boot/dts/rockchip/rk356x.dtsi | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi index 13b185e1dc5f..fce760996a64 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi @@ -559,6 +559,32 @@ sdhci: mmc@fe310000 { status = "disabled"; }; + i2s1_8ch: i2s@fe410000 { + compatible = "rockchip,rk3568-i2s-tdm"; + reg = <0x0 0xfe410000 0x0 0x1000>; + interrupts = ; + assigned-clocks = <&cru CLK_I2S1_8CH_TX_SRC>, <&cru CLK_I2S1_8CH_RX_SRC>; + assigned-clock-rates = <1188000000>, <1188000000>; + clocks = <&cru MCLK_I2S1_8CH_TX>, <&cru MCLK_I2S1_8CH_RX>, + <&cru HCLK_I2S1_8CH>; + clock-names = "mclk_tx", "mclk_rx", "hclk"; + dmas = <&dmac1 3>, <&dmac1 2>; + dma-names = "rx", "tx"; + resets = <&cru SRST_M_I2S1_8CH_TX>, <&cru SRST_M_I2S1_8CH_RX>; + reset-names = "tx-m", "rx-m"; + rockchip,cru = <&cru>; + rockchip,grf = <&grf>; + #sound-dai-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&i2s1m0_sclktx &i2s1m0_sclkrx + &i2s1m0_lrcktx &i2s1m0_lrckrx + &i2s1m0_sdi0 &i2s1m0_sdi1 + &i2s1m0_sdi2 &i2s1m0_sdi3 + &i2s1m0_sdo0 &i2s1m0_sdo1 + &i2s1m0_sdo2 &i2s1m0_sdo3>; + status = "disabled"; + }; + dmac0: dmac@fe530000 { compatible = "arm,pl330", "arm,primecell"; reg = <0x0 0xfe530000 0x0 0x4000>; -- 2.33.0