Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8522586rwr; Thu, 11 May 2023 02:25:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5BmA00EwiWgpRMu4bLRhV3nNkBIRxRTDaSOfwVZmG7hz5QBlrV1RdlyMdC3aeYf8ARi7D9 X-Received: by 2002:a17:90a:404b:b0:24e:3b85:a8a with SMTP id k11-20020a17090a404b00b0024e3b850a8amr20422867pjg.8.1683797139140; Thu, 11 May 2023 02:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683797139; cv=none; d=google.com; s=arc-20160816; b=KOPRdpQGDKhatAbBJP8bwCmtGu3cv0SiIl9fys3mkwgzvvTIaX8jrVP7kZMI1b1DHq Hmv22hBNuvoQ5ewxIXU1FVWDxfqq8eo4sam5RQLNDVpKGxOKtIwRBqmuleUbRHBrfhv/ JcrATvnigyC72pmcySVOOgiAjwNqatZ6iBqQdIaHqVTT074aG96XyX8VhkMhpkzc5Pfs 7PKBJJxI9Q5af7SraWrQTabvM6UMCF+SB4P7GV4gBXYsdChL/Mv4S/9qzvvvnahdd6a6 rDt8q0GVbMbHjkaChnPVIgMBuMchZOfHGDA6GtPSAKzeuG6I+zQCrQYuTFGVTk6nAZ2L XrpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=mxb5ndLxLPz40t2xdwfr+nnJXLDLh6ghsmLaYlWyPp0=; b=pmFHymxhvB0eG1OeD+Bbe4l1DappbNUrrQsdfboOeL87DVYmIB67tzktJm3M4bisTK 3L2Mbfpg2AgNJBtXCHFdZvmFRprIbWdwhvjBkPNzn0cFe2/l4hoN4pmlewq5s8+gAlNE 0Ayq98Fk8YAudSFqHGKibegF4t7GN3MHG5X5zNRgJuHopzajYE6i1nSht0RTGgxzWoCe iYN5WUZkZT7f4tAqRUMKeYz91vUhrBaIYVT5yzSVRpqTs7jPVQ+PpRQbrZ2u6da6AmCN 1HOAV3QL+GIIKnwIpsO6/zW/6DHayIi+9EjKBSsUeil4awfUVidGhpj92iMBaC/5ecTc h2Aw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb18-20020a17090b4a5200b002478d1e81c7si1373943pjb.174.2023.05.11.02.25.24; Thu, 11 May 2023 02:25:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236661AbjEKJP7 (ORCPT + 99 others); Thu, 11 May 2023 05:15:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjEKJP5 (ORCPT ); Thu, 11 May 2023 05:15:57 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A60026A2; Thu, 11 May 2023 02:15:53 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id A6B6482EB; Thu, 11 May 2023 17:15:51 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 11 May 2023 17:15:51 +0800 Received: from SD-Server.starfivetech.com (113.72.146.187) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 11 May 2023 17:15:50 +0800 From: Walker Chen To: Mark Brown , Liam Girdwood , Claudiu Beznea , Jaroslav Kysela , Takashi Iwai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Walker Chen CC: , , , Subject: [PATCH v4 1/3] ASoC: dt-bindings: Add TDM controller bindings for StarFive JH7110 Date: Thu, 11 May 2023 17:15:47 +0800 Message-ID: <20230511091549.28003-2-walker.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230511091549.28003-1-walker.chen@starfivetech.com> References: <20230511091549.28003-1-walker.chen@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.146.187] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add bindings for TDM driver which supports multi-channel audio playback and capture on JH7110 platform. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Walker Chen --- .../bindings/sound/starfive,jh7110-tdm.yaml | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/starfive,jh7110-tdm.yaml diff --git a/Documentation/devicetree/bindings/sound/starfive,jh7110-tdm.yaml b/Documentation/devicetree/bindings/sound/starfive,jh7110-tdm.yaml new file mode 100644 index 000000000000..abb373fbfa26 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/starfive,jh7110-tdm.yaml @@ -0,0 +1,98 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/starfive,jh7110-tdm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 TDM Controller + +description: | + The TDM Controller is a Time Division Multiplexed audio interface + integrated in StarFive JH7110 SoC, allowing up to 8 channels of + audio over a serial interface. The TDM controller can operate both + in master and slave mode. + +maintainers: + - Walker Chen + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - starfive,jh7110-tdm + + reg: + maxItems: 1 + + clocks: + items: + - description: TDM AHB Clock + - description: TDM APB Clock + - description: TDM Internal Clock + - description: TDM Clock + - description: Inner MCLK + - description: TDM External Clock + + clock-names: + items: + - const: tdm_ahb + - const: tdm_apb + - const: tdm_internal + - const: tdm + - const: mclk_inner + - const: tdm_ext + + resets: + items: + - description: tdm ahb reset line + - description: tdm apb reset line + - description: tdm core reset line + + dmas: + items: + - description: RX DMA Channel + - description: TX DMA Channel + + dma-names: + items: + - const: rx + - const: tx + + "#sound-dai-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - dmas + - dma-names + - "#sound-dai-cells" + +additionalProperties: false + +examples: + - | + tdm@10090000 { + compatible = "starfive,jh7110-tdm"; + reg = <0x10090000 0x1000>; + clocks = <&syscrg 184>, + <&syscrg 185>, + <&syscrg 186>, + <&syscrg 187>, + <&syscrg 17>, + <&tdm_ext>; + clock-names = "tdm_ahb", "tdm_apb", + "tdm_internal", "tdm", + "mclk_inner", "tdm_ext"; + resets = <&syscrg 105>, + <&syscrg 107>, + <&syscrg 106>; + dmas = <&dma 20>, <&dma 21>; + dma-names = "rx","tx"; + #sound-dai-cells = <0>; + }; -- 2.17.1