Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1695445pxb; Fri, 20 Aug 2021 11:33:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5NqkYLYNwNsRunYQLfOGXQEOJrzm3yQgcm1IXmQZa6SVnm/IjU+s4UsUi1qHjjUgQ4NUO X-Received: by 2002:a17:906:8281:: with SMTP id h1mr24175821ejx.352.1629484400625; Fri, 20 Aug 2021 11:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629484400; cv=none; d=google.com; s=arc-20160816; b=SCIIUIuV499D1YB5tZN9PhiJGYvKBSlZBsG0tr0Te+xurdW/SJ4jPDJrBDtjY6gVAv bUfLKHUoCGxsw40JbgrjBclTljpcyGJe03fFVnqpcqa8aFxyhBmbtU9q7y0OA8qTKAHV KXrbtqwp5vDMnbOKelDb8DzaT2gW3nr25aefWRNZ9cHKYrAslS//wzpwrADTGpvOYWf2 vT7Kq1uA/DNUxFsS22P1mpDbJoah+ORvJGpcjN8Z45MscB++Rilzt8YyC7TFwcNVRTJr A52WixdYsBxU4CNn4evTy0e7buKbYYoX43tzJ4OPCc+lZFoAREUS/HuzaVDzJRjpz6a7 NobQ== 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=cENZLLHwvvAfM8Bz4wGMWapvwPbQelm5zUSRTGsu2cU=; b=pEmTXkcgxGEd+DAK4lNMTWbDOAQojyRmhqE6gkaYVf+9TYgNqmPP6fFFqE0FJcM0Te LFLCvkuwL1/8/oiTMZzlDF4Pekz4yKlGb9NHTVhAartnw3FwTmCXDX22xy4+GYDYrTcj 4IvR92ZFc9iyXJYinls5MTaJY1goetamVhPtCU6dzKh3q2ZlwYRZ9XiXXxzrkyRsllEK T+0/RGLq98OaJwqK1dSfcMzWqw3vc+Tp3S2X/XfBGPtWovJ+ATWpPwtsGtlQCt5A2yu3 FMdkn8w4FztBE+nAtcFz9v49nEhAbTf49oDCnNiv2iqM2E2tMiCA+YGEKfSO1PJ47s57 G1NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="YgqbJh+/"; 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 v25si7601282edx.72.2021.08.20.11.32.57; Fri, 20 Aug 2021 11:33:20 -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="YgqbJh+/"; 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 S238051AbhHTS3d (ORCPT + 99 others); Fri, 20 Aug 2021 14:29:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237743AbhHTS32 (ORCPT ); Fri, 20 Aug 2021 14:29:28 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AAD0C061575; Fri, 20 Aug 2021 11:28:50 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id b15so21886602ejg.10; Fri, 20 Aug 2021 11:28:50 -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=cENZLLHwvvAfM8Bz4wGMWapvwPbQelm5zUSRTGsu2cU=; b=YgqbJh+/0L5gXYDdr+o23/i/axG68ZmUx2va6Gy2WACDnZuoLfS06sWobv5qmAW0+w gdNZcsJP4LTQcH/jlmzkOLrAQcOdBUFc5bfZfOgLKg7RTCWosWyMoktYcy7ldD/d22nW hmZc+cMQEILYYtKDZN7miPZrEnQux3BUCBWZE9CVhKIvCTg/CfAgP2Hl8UkJhiWOsGML l0rwFF41lh2UNkpQ88tntyR9agKqQshOWKHe1e9DxszUf1oIX7iwWcrzT3nwt9493zUD fUqpZkhHIlHUXGVOMrFpITF/gCohkf/MtKUbP44+9G8/+b/lsS/4gr//Ovr0KifatsWV sA/w== 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=cENZLLHwvvAfM8Bz4wGMWapvwPbQelm5zUSRTGsu2cU=; b=S6IikTjzyKpOrTQIXLMxOEVvvJilDjOIH09M7BrHY0ISqE1GdtHJZs4guZJrR92PnG Ob/Gq7525i3BMWYx3gHjRfLZ9/M4FIUPp5L8Bd4ia7FM+0DAbMp0gFFJ8ldrzLWhNVTM jjRYOhby5MZNJb6xd3tL4bImtPHXHlWx9Z1cSUgVcBujNd90Mdw8vhIKEg/AcjA+pC6+ okdOM1B98T6jyenQgD5sWEjbOyGpN+oyRro7xWPbGtYcRJGnkDK2X6acSIrZ0vXN+7If JB1Og+7z+v2YX/1jcaPWcH31OVhDNI4r3bk6kKnF3qUouVPHDNP2DyX1c4Oxt4o/Xean Bq9Q== X-Gm-Message-State: AOAM533en86zdsVq6dwqqI8r/qV9WNvTf8V4XWzZ1jsc1Hu043I0qaA0 /zSff7eD2d6DDcd+EIyNk9c= X-Received: by 2002:a17:906:3854:: with SMTP id w20mr22731050ejc.537.1629484128360; Fri, 20 Aug 2021 11:28:48 -0700 (PDT) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id n10sm3255724ejk.86.2021.08.20.11.28.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Aug 2021 11:28:47 -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 v2 3/4] arm64: dts: rockchip: add i2s1 on rk356x Date: Fri, 20 Aug 2021 20:27:30 +0200 Message-Id: <20210820182731.29370-4-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210820182731.29370-1-frattaroli.nicolas@gmail.com> References: <20210820182731.29370-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.32.0