Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp882249pxb; Fri, 3 Sep 2021 16:19:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJy1wB5xwPpS7fPmwGNhJkvdBwlRw2qGpMMDDHoBq54eDtZlV1qQNqbhh6eTx8EBqGk8kW X-Received: by 2002:a50:e789:: with SMTP id b9mr1412164edn.101.1630711158977; Fri, 03 Sep 2021 16:19:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630711158; cv=none; d=google.com; s=arc-20160816; b=ir492YPRw0+nbF5ms4KAPOfP/j3SUmJO2p07oj497jQqz7xV8lpAh11PuF89In9vDy nLRPHerGR1MfVQtD5YMONCeUv4UKoDuU7sQgdzLMixcwRm3f3yWgnhPpjjl+JqwMomL5 pLt1TlAcRoE8Qrg32qs8z+vdesBNaS/PXxhQKDjbiTCFtMYs2xkDHX3wlkNL0WCPheKc r35U4TeArb1+L3R8CtalhRMab/RRzIASfnAoO5H8xqOI/US91VJrwaJofLGuWnVXlRFb ExbwC7b8P1d0AiKZETHouZNb9SrdG8rocpiZ0NZ/0OT/wS7fkXFD/LBWhk5MkpuaooTA 0IFw== 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=VpzMzVA/7NS9EjmqL9D8W4mi42UY9oZ3H5iMtM5xjds=; b=g+OZUQMCfrKeslR0bmjpwfkqpVayAJzE+PfLgmJh7pZnvtHInfxdFTd4azM7+gXwwa 8xJu6hhHJsrmYaa6VszcIxh4qKToJhgK0QYeMR9ObqmZy6u2zlMMIm7g672l0cU9gvW6 l9QuC6WlgMCc24IfIJYG1l6oXGiUVpdflpKngAWOG73vnshUO6LIBsGZ4mZ3lEuk8Ig6 oXPspF/NCpV8R3KIdIdrpGe4jQCfjdyzLTzR4yadmVCjWzdBHcXmQ8FsM0rwVuvk64Ta 96s5JusiDEUcQBApy6X1Ik7VdWE8vW/v0ewiCgN0fV8HebZQudKRPKZA6MBKknCqBXQX DMSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=A4YSx25V; 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 z20si565062ejl.724.2021.09.03.16.18.55; Fri, 03 Sep 2021 16:19:18 -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=20210112 header.b=A4YSx25V; 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 S1350721AbhICXRh (ORCPT + 99 others); Fri, 3 Sep 2021 19:17:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350682AbhICXRh (ORCPT ); Fri, 3 Sep 2021 19:17:37 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62C3DC061575; Fri, 3 Sep 2021 16:16:36 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id i21so1111073ejd.2; Fri, 03 Sep 2021 16:16:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VpzMzVA/7NS9EjmqL9D8W4mi42UY9oZ3H5iMtM5xjds=; b=A4YSx25VKocwcflusol89X01AiH6ksf4xQonvz6/LMUpLJ33QY8b+hKkBKAFTs8AxK iCHv68o6LVLHE5BxA5XifNgHxgn7LAij99rO9kIQ2ps5GF9ooudU7v3F7bfc5g5PEaCN B0CLpXJi4exASWAnHnYdKpb88ZVMniX7phZHXMTxBnH2zV+mof7D3QlJYvuEQi6GTd9F BMU0KXGHbdqGV7BSdHI9eCr0pih0KnfLqRdZqpTButiCZ9jMw5Sl3XqLkJLQAclMDiUz HPa55o49qjMmpGVaqXnh/uBKFnABy8KNUr/bCoNPAskOyNixi9X+MShFJVizaKkPnHok OlEA== 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=VpzMzVA/7NS9EjmqL9D8W4mi42UY9oZ3H5iMtM5xjds=; b=oJZskeOCsyUjKLpsr4+0CfvaRoGoZk5CNgC0R+wM7gQZ92Zw1KBLdHJ9ob6rDUA2HO LtofEl/BZGTnLtuKMGkDyTsydlIZlfDEXg2QuM65MS+ota3KU58j6aZYLWs0M8hs/Fm7 nvHp2HmYNkgakbRTOBoP0UerLGlawsodeBNRbP39fwhW+OPBdP2En+NGF0BGWjUcLOtN j82huqaNDAzSnwGNQRm0vNi/3/80IMaa3bXsK5WNdeIOGd89GbUoqhkH6CxU6940c/o+ 1b6olvJ+v1l+K/Res7KG1udqq1/JYYZY7Ci+rcMbYlA9ifrS3ha7DqPdD9zMpqNwBDEe pFiA== X-Gm-Message-State: AOAM530Q+jP4OXd9ZqQf2wrcHMBfFl+eNQvzr5T02NYkTWnWCXiSeKpM MabD0JpNLzEeh9aWRmupWng= X-Received: by 2002:a17:906:16c4:: with SMTP id t4mr1409139ejd.302.1630710995073; Fri, 03 Sep 2021 16:16:35 -0700 (PDT) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id r11sm214068ejy.71.2021.09.03.16.16.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Sep 2021 16:16:34 -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 v4 3/4] arm64: dts: rockchip: add i2s1 on rk356x Date: Sat, 4 Sep 2021 01:15:35 +0200 Message-Id: <20210903231536.225540-4-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210903231536.225540-1-frattaroli.nicolas@gmail.com> References: <20210903231536.225540-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 e42fbac6147b..a24f7160f6d4 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi @@ -564,6 +564,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