Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp797562rwl; Wed, 29 Mar 2023 08:35:31 -0700 (PDT) X-Google-Smtp-Source: AKy350ZpCXwJZ/b05tBdf9SlhQKw6nXS2eDoQuph7EQp4q/dOLkeX37HbtQ1rLVvJ3XSvWEBGTl5 X-Received: by 2002:aa7:d584:0:b0:4fa:ba60:8188 with SMTP id r4-20020aa7d584000000b004faba608188mr19350250edq.8.1680104131093; Wed, 29 Mar 2023 08:35:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680104131; cv=none; d=google.com; s=arc-20160816; b=FH74Xr2FUDRVHjNR3jmqaiWejMp6kw2vARmEOly9gh9/2gXt5bL9KO3+PSdLhHUxNa YC3tK1qruEs6e6w1EnHNnyAkoM+BfhruMYNe3FfvJOFTZftWI1Ua5L7cEIRp6XxWs7HY dzPDuZJ7ZfzNklxBUbPROWFIyZhxrGWbA3nNiyLs48i2pJvH8i+f/wj6eSIZl11unvo+ ZhbiVYayUQV4EPcqxbDpcE7NhUe5lxrH72bSGNDzXRTlHI26sBQUUGcSGmXXK1bnojCk 1lyqTEOXc5OmFUzv5z6WdbsZ8pnSql1CsUoRCVKOJ27GKuQCrpsp15rQmD2FXSyCYEfr yv2Q== 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=3Bw/eglUWluBQ/Gex6JEzGFYkr+FUlg59E33qEbUn6Y=; b=ACglMmq9lVd3K1Iudr/NrvxuX34SZhWEPVB3Bq9EgU4iMCJMcMG4Po8g368Z/kebZ+ tBfdkTtRcAueySfGWoNiK3sOW7E3gg9kWRyFgpNqthsZSDU9+5W/CYByAU0H2DZ7FgDJ J/Zz48oSAH3wIFA6N1/RsbH+j4DBO8/FrC3QBQMKKbQLn0KQq653Ub22Imw77VIv1uhn TFLd4rYH4gsqqEajYIXoZYi76MVId5KRMvKg+2McPa50ZCvcLJCe5NiuLKAH4FtwqMGd yH4OjPnoB9lwjeo3d0HFDHZHWGaVJ9s8iYT276J/WiXbTD6aoE0lBgOg/454sHu2OtaI EFHQ== 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 q7-20020a17090676c700b0092fb11f889bsi33398791ejn.265.2023.03.29.08.35.05; Wed, 29 Mar 2023 08:35:31 -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 S230194AbjC2PeM (ORCPT + 99 others); Wed, 29 Mar 2023 11:34:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230328AbjC2Pdy (ORCPT ); Wed, 29 Mar 2023 11:33:54 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC3BF55A3; Wed, 29 Mar 2023 08:33:40 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 5A6E724DC09; Wed, 29 Mar 2023 23:33:33 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 29 Mar 2023 23:33:33 +0800 Received: from localhost.localdomain (113.72.144.76) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 29 Mar 2023 23:33:32 +0800 From: Walker Chen To: Jaroslav Kysela , Takashi Iwai , "Rob Herring" , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Walker Chen CC: , , , Subject: [PATCH v1 1/3] dt-bindings: sound: Add TDM for StarFive JH7110 Date: Wed, 29 Mar 2023 23:33:18 +0800 Message-ID: <20230329153320.31390-2-walker.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230329153320.31390-1-walker.chen@starfivetech.com> References: <20230329153320.31390-1-walker.chen@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.144.76] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 to describe the TDM driver for the StarFive JH7110 SoC. Signed-off-by: Walker Chen --- .../bindings/sound/starfive,jh7110-tdm.yaml | 95 +++++++++++++++++++ 1 file changed, 95 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..d65b9ed781ef --- /dev/null +++ b/Documentation/devicetree/bindings/sound/starfive,jh7110-tdm.yaml @@ -0,0 +1,95 @@ +# 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 + +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: 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