Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1958502rwr; Sat, 6 May 2023 02:04:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4fuSN7ssc5eyMmfDWMEz0DJtjzvpF35HWPbtAxb4AZa6fHH9mlLzG+ggMtng5OLDUlOC3e X-Received: by 2002:a17:902:f546:b0:1ab:62e:5c60 with SMTP id h6-20020a170902f54600b001ab062e5c60mr4969283plf.3.1683363854713; Sat, 06 May 2023 02:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683363854; cv=none; d=google.com; s=arc-20160816; b=0pEo4u9Hn7lZ7fXwmiMj5qYMZyQl20oN7cilhOORDcOyUF4eudlJURvxUk1EmxRZ6I v97y8xKsw8pm2MJaknOfl974oDfvP4uAC81jwl0jhC/1IZxB9qAZIiM41qGwnPSoES3t fpjMoLwot8moT7OMgojNuyF0MlLuVT4MmxrbWu+C28OAb9bkRc3chuvLYUhG6+M+f1p3 rZxRXs7oicUG6QPy8ZTmyrskof0Vm5AhHA7jmUuWipzut85FTQKGhfPG+86Q5mh/RCvi bsjm+FIjGXghG3CFZuGHqXNpa08PeVOnRxo1ZLHHHWvifHvTy4FuwWjU0prW2M0pZ5ov oEcQ== 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=iVpVsmIOWk6Cd07Qsy/jAi1RpjLqki7yjYhPPIEbKnY=; b=R7QW2Nlf0Nqh9gxFGT2MKSMK/+l3pEwxK5ShK/FjtEiIqzfL/bjUU7zh6WeTbtuMoX l4fnC6toC1ftCiXV+RBincrPI8V7ESwLrYmB7+WQgfyxQQsAiRbW2235KXdQrG2Coyb4 QHepMnKoapU3JuSoRwSxpW7xVTmLE7XPr7co2aVTCmNV9mvruIwOadsWd+srv2ADyq3q ZtCd4N6FX5DPBFK2R8QydDVVGN63JTqOR4S/Q/YElJj7As0j4sVN0dL+lmmcZHLmsJkK F6tO/rVmu1R2bA55SgrdrMjYrqLwdX2S/6SSXYc5M7+uw4AAE5/cg0GRDgXgIRLPnDPT l5Qw== 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 c3-20020a170902d48300b001ab23e4b72fsi3746577plg.38.2023.05.06.02.04.02; Sat, 06 May 2023 02:04:14 -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 S231854AbjEFJB2 (ORCPT + 99 others); Sat, 6 May 2023 05:01:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231226AbjEFJB0 (ORCPT ); Sat, 6 May 2023 05:01:26 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D71F869E; Sat, 6 May 2023 02:01:24 -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 ex01.ufhost.com (Postfix) with ESMTP id 377CC24E251; Sat, 6 May 2023 17:01:18 +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; Sat, 6 May 2023 17:01:18 +0800 Received: from SD-Server.starfivetech.com (183.27.98.219) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Sat, 6 May 2023 17:01:17 +0800 From: Walker Chen To: Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Walker Chen CC: , , , Subject: [PATCH v3 1/3] dt-bindings: sound: Add TDM for StarFive JH7110 Date: Sat, 6 May 2023 17:01:14 +0800 Message-ID: <20230506090116.9206-2-walker.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230506090116.9206-1-walker.chen@starfivetech.com> References: <20230506090116.9206-1-walker.chen@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.98.219] X-ClientProxiedBy: EXCAS061.cuchost.com (172.16.6.21) 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_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 to describe the TDM driver for the StarFive JH7110 SoC. 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