From patchwork Fri Apr 12 12:51:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 162119 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp593559jan; Fri, 12 Apr 2019 05:52:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqySowzeaLS/oWXG1gw+nNllilBs96eThqM48q7A7dBKV0c/4n0y8g2LvYs0c/yLZ4B1UNJZ X-Received: by 2002:a63:79c3:: with SMTP id u186mr51584308pgc.20.1555073540101; Fri, 12 Apr 2019 05:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555073540; cv=none; d=google.com; s=arc-20160816; b=msAZeGu5DvRdLsCP5LDTG1gaYmNZ98B9c22OfVCxCHsb85dKqJrF8FC4CCj6hC9fPm qR+87b3dkci0OuI9PrtAk0AQ9xYozz3cIEqR8ZfqQUvRn9Q5gMB3zAa87INihO8vaiUu UB+lgs/gPN3GI2oVI67IUNvEgNVvvSqk60A5N5FdqqjF7WAe+N4fiFi6o4S3CY9emEmr w1TYgV/310clp4NNc3slQ/VIBHsLlwNsaCgk7UZH8uZIQS0RdRHDTSmu3jC2IsnIAEvh Eux8xAnnhTsyAUe6c9wOrcGHaZdaex4wsr8wBh/p1kmMaeyUugsxGR5vG5B7Krh2CYzr zUOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qQKSrAozsbENhTZ6S3OHU0SyNZNFyQXAXzXFR3IFJvY=; b=W5zTIExM18Hi0otgEabSLccsWIkij7MV50vOacHUwciNk9hGbn+hC5ejnjiWv1Wuym gLE5NhnvBiBWFBcccbzlPxD+JUi5L0g0kzv7dhtUYPc7BIgMvkQbFxiAbW+uTpfvTaqh Dykulqcu+dq8fsNAgXDftYUtStk54pUjXFVw1vCyOUM/6prpfrKLEd+k317NWcNWRzyA 0y8s/KsALhexuo4jN3Jutcf6pKMNCIowv7dCnDh5ox/vnc49egwUXt06cTppjzSQdvGg +FaqdvW26YT6NtFvc59iaqq67N1QbRPB+FH7neUsOJMYlG8MYM+s2J2JNTzGifInPxC7 GXkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=zODMANuH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n12si37164182pgm.191.2019.04.12.05.52.19; Fri, 12 Apr 2019 05:52:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=zODMANuH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728748AbfDLMwS (ORCPT + 31 others); Fri, 12 Apr 2019 08:52:18 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33635 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728565AbfDLMvz (ORCPT ); Fri, 12 Apr 2019 08:51:55 -0400 Received: by mail-wm1-f66.google.com with SMTP id z6so407167wmi.0 for ; Fri, 12 Apr 2019 05:51:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qQKSrAozsbENhTZ6S3OHU0SyNZNFyQXAXzXFR3IFJvY=; b=zODMANuHrceM7wVHJE1vYFLTNr4tuxlssv2rouQOifD9bLvX1ZXzxzDmzsaD0Zy0U5 Rmd7jINYyED5FmMxdgNczZ6joC2jK22/cvSA8lLoUpqRd+FScNHLsYvtZU9n7AuiJOmU f9zts3GarrHiDbFJ9pyD6B1Zq4uS6N/uWzmo00xwacZvE1vUcaN+4cHaJFf+eQAkVeHB qz8B25m3GEOf27QFBamfbp2ZZ3AAJ8oE+kMWQEQcQ9bPIwgSF5mlTWiokqt4yhHH0Dil xxMIIbqDMtBGpelPDz85bWV03Sphv/3/pvM6iE9ifXJcqlMC2f6on+3HnhG2AvSopxmV nXlg== 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=qQKSrAozsbENhTZ6S3OHU0SyNZNFyQXAXzXFR3IFJvY=; b=mKIvI9N9yT9acpIfe5BmMsWDN06zG5gomjyUDqLp4V1ri9Eu2oXxZ1okLaCnbAWq+3 aocbE1yMIIRDBzNCsmtl2jgxqe1tX2SmzGsHPXUe6cZoahRlL+H3UYWF2pqS7gW3/+3o mAj1jhX56EBMh4ydGAEVhxUBnRAD04bzi0IKVg2Y36Kr7tSTSVzguybxOCDlv9RytDRH RcnZUXmlmubF1WI8TOLH7BD79kzv/RTAYYmlsslgDZGwWngLrgGPpumsVydbFvTCAxZN OGuYcUKjVd0d2fjfuc7vsAarYP0AL9LUQtHjrZuR9tSJUgWkosPzWV8xHvcIx/EgtP1a KkHA== X-Gm-Message-State: APjAAAUTfpyKzpsJdlnKj+PRS0GrGSF+Vjdzn/1rebF2Uco1AdtO9at7 yFKIde13RntTVvynAaYIEwS9NA== X-Received: by 2002:a05:600c:2055:: with SMTP id p21mr10342654wmg.118.1555073513423; Fri, 12 Apr 2019 05:51:53 -0700 (PDT) Received: from boomer.baylibre.com ([2a01:e34:eeb6:4690:106b:bae3:31ed:7561]) by smtp.googlemail.com with ESMTPSA id b3sm42049702wrx.57.2019.04.12.05.51.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Apr 2019 05:51:52 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman Cc: Jerome Brunet , devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, patchwork-bot+notify@kernel.org Subject: [PATCH 4/7] arm64: dts: meson: g12a: add tdm devices Date: Fri, 12 Apr 2019 14:51:33 +0200 Message-Id: <20190412125136.28232-5-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190412125136.28232-1-jbrunet@baylibre.com> References: <20190412125136.28232-1-jbrunet@baylibre.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the tdm encoders, decoders and interfaces devices of the g12a SoC. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 135 ++++++++++++++++++++ 1 file changed, 135 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 18f7d5af7dae..5f5b8c67df49 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -18,6 +18,39 @@ #address-cells = <2>; #size-cells = <2>; + tdmif_a: audio-controller-0 { + compatible = "amlogic,axg-tdm-iface"; + #sound-dai-cells = <0>; + sound-name-prefix = "TDM_A"; + clocks = <&clkc_audio AUD_CLKID_MST_A_MCLK>, + <&clkc_audio AUD_CLKID_MST_A_SCLK>, + <&clkc_audio AUD_CLKID_MST_A_LRCLK>; + clock-names = "mclk", "sclk", "lrclk"; + status = "disabled"; + }; + + tdmif_b: audio-controller-1 { + compatible = "amlogic,axg-tdm-iface"; + #sound-dai-cells = <0>; + sound-name-prefix = "TDM_B"; + clocks = <&clkc_audio AUD_CLKID_MST_B_MCLK>, + <&clkc_audio AUD_CLKID_MST_B_SCLK>, + <&clkc_audio AUD_CLKID_MST_B_LRCLK>; + clock-names = "mclk", "sclk", "lrclk"; + status = "disabled"; + }; + + tdmif_c: audio-controller-2 { + compatible = "amlogic,axg-tdm-iface"; + #sound-dai-cells = <0>; + sound-name-prefix = "TDM_C"; + clocks = <&clkc_audio AUD_CLKID_MST_C_MCLK>, + <&clkc_audio AUD_CLKID_MST_C_SCLK>, + <&clkc_audio AUD_CLKID_MST_C_LRCLK>; + clock-names = "mclk", "sclk", "lrclk"; + status = "disabled"; + }; + cpus { #address-cells = <0x2>; #size-cells = <0x0>; @@ -320,6 +353,108 @@ #reset-cells = <1>; clocks = <&clkc_audio AUD_CLKID_DDR_ARB>; }; + + tdmin_a: audio-controller@300 { + compatible = "amlogic,g12a-tdmin", + "amlogic,axg-tdmin"; + reg = <0x0 0x300 0x0 0x40>; + sound-name-prefix = "TDMIN_A"; + clocks = <&clkc_audio AUD_CLKID_TDMIN_A>, + <&clkc_audio AUD_CLKID_TDMIN_A_SCLK>, + <&clkc_audio AUD_CLKID_TDMIN_A_SCLK_SEL>, + <&clkc_audio AUD_CLKID_TDMIN_A_LRCLK>, + <&clkc_audio AUD_CLKID_TDMIN_A_LRCLK>; + clock-names = "pclk", "sclk", "sclk_sel", + "lrclk", "lrclk_sel"; + status = "disabled"; + }; + + tdmin_b: audio-controller@340 { + compatible = "amlogic,g12a-tdmin", + "amlogic,axg-tdmin"; + reg = <0x0 0x340 0x0 0x40>; + sound-name-prefix = "TDMIN_B"; + clocks = <&clkc_audio AUD_CLKID_TDMIN_B>, + <&clkc_audio AUD_CLKID_TDMIN_B_SCLK>, + <&clkc_audio AUD_CLKID_TDMIN_B_SCLK_SEL>, + <&clkc_audio AUD_CLKID_TDMIN_B_LRCLK>, + <&clkc_audio AUD_CLKID_TDMIN_B_LRCLK>; + clock-names = "pclk", "sclk", "sclk_sel", + "lrclk", "lrclk_sel"; + status = "disabled"; + }; + + tdmin_c: audio-controller@380 { + compatible = "amlogic,g12a-tdmin", + "amlogic,axg-tdmin"; + reg = <0x0 0x380 0x0 0x40>; + sound-name-prefix = "TDMIN_C"; + clocks = <&clkc_audio AUD_CLKID_TDMIN_C>, + <&clkc_audio AUD_CLKID_TDMIN_C_SCLK>, + <&clkc_audio AUD_CLKID_TDMIN_C_SCLK_SEL>, + <&clkc_audio AUD_CLKID_TDMIN_C_LRCLK>, + <&clkc_audio AUD_CLKID_TDMIN_C_LRCLK>; + clock-names = "pclk", "sclk", "sclk_sel", + "lrclk", "lrclk_sel"; + status = "disabled"; + }; + + tdmin_lb: audio-controller@3c0 { + compatible = "amlogic,g12a-tdmin", + "amlogic,axg-tdmin"; + reg = <0x0 0x3c0 0x0 0x40>; + sound-name-prefix = "TDMIN_LB"; + clocks = <&clkc_audio AUD_CLKID_TDMIN_LB>, + <&clkc_audio AUD_CLKID_TDMIN_LB_SCLK>, + <&clkc_audio AUD_CLKID_TDMIN_LB_SCLK_SEL>, + <&clkc_audio AUD_CLKID_TDMIN_LB_LRCLK>, + <&clkc_audio AUD_CLKID_TDMIN_LB_LRCLK>; + clock-names = "pclk", "sclk", "sclk_sel", + "lrclk", "lrclk_sel"; + status = "disabled"; + }; + + tdmout_a: audio-controller@500 { + compatible = "amlogic,g12a-tdmout"; + reg = <0x0 0x500 0x0 0x40>; + sound-name-prefix = "TDMOUT_A"; + clocks = <&clkc_audio AUD_CLKID_TDMOUT_A>, + <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK>, + <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK_SEL>, + <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>, + <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>; + clock-names = "pclk", "sclk", "sclk_sel", + "lrclk", "lrclk_sel"; + status = "disabled"; + }; + + tdmout_b: audio-controller@540 { + compatible = "amlogic,g12a-tdmout"; + reg = <0x0 0x540 0x0 0x40>; + sound-name-prefix = "TDMOUT_B"; + clocks = <&clkc_audio AUD_CLKID_TDMOUT_B>, + <&clkc_audio AUD_CLKID_TDMOUT_B_SCLK>, + <&clkc_audio AUD_CLKID_TDMOUT_B_SCLK_SEL>, + <&clkc_audio AUD_CLKID_TDMOUT_B_LRCLK>, + <&clkc_audio AUD_CLKID_TDMOUT_B_LRCLK>; + clock-names = "pclk", "sclk", "sclk_sel", + "lrclk", "lrclk_sel"; + status = "disabled"; + }; + + tdmout_c: audio-controller@580 { + compatible = "amlogic,g12a-tdmout"; + reg = <0x0 0x580 0x0 0x40>; + sound-name-prefix = "TDMOUT_C"; + clocks = <&clkc_audio AUD_CLKID_TDMOUT_C>, + <&clkc_audio AUD_CLKID_TDMOUT_C_SCLK>, + <&clkc_audio AUD_CLKID_TDMOUT_C_SCLK_SEL>, + <&clkc_audio AUD_CLKID_TDMOUT_C_LRCLK>, + <&clkc_audio AUD_CLKID_TDMOUT_C_LRCLK>; + clock-names = "pclk", "sclk", "sclk_sel", + "lrclk", "lrclk_sel"; + status = "disabled"; + }; }; };