Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2560675rwd; Fri, 26 May 2023 08:07:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4mx/kkBoqoUQWwd2Xj9mFx6xsAVnJMb571FFvwunrVBOZ8Cs6hW3ncDDb/Sfmc9ZvGl9xc X-Received: by 2002:a17:90b:182:b0:256:1441:95b5 with SMTP id t2-20020a17090b018200b00256144195b5mr2405221pjs.29.1685113659538; Fri, 26 May 2023 08:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685113659; cv=none; d=google.com; s=arc-20160816; b=iJpLOm24Ds1j/Y0pXahAUvDwfxWd4ikdWCDabOJWq0VHcGwqzqezW2IieV4FKIDTsk Kd6np35u5or+Nmah9bB00xslaUy8poAIaVpugB6ETyJpFeIE62zOPZEcNNYF8fLytUq0 DbLvSn2V/H8kFaUFfOU6N0nWb6AxJF3cyMHa1aZKiNKjEHZrTeiq7644VzXAV4QbyyMg KvGS3TYGZ7IA3s92sYGzPvhHhlQgbd4LNUlmc1aZMg1m+5T4lQTE988HO4wDsZLJ7dyO prdh5lHhx9hnGAlDyVM4x+A+l7JuemMHL4kQbHnyP0JlDk0JIVjj1QZ0y9GAoQpRmFX4 bYTA== 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=CJrAmHKMztL9s1giiMcPvjdlM9YIKlkEGiH5gTlilWUhf280jOpbrbBLpVohtRnD8E Y8kp1GHKOlPgRujRPe/th2ndi6Qc5eA2EYCxzfhzQP924uF982q5k3Z4Pkzi6Eebv3bI s704JKegby1Mv/4iXDVurrO+LTXAR8EIWpM+bmzSzCKD7j8sR8VhGQOCYuL47ECgclbm lIGtprWt7PyJcZEjmjvQCn5On6EA8NAC9Bk4mD106LBEbZ2AYBkiuNiR91gHwqntMkmw 7mrPm9FCei9x+o3YGpDxttDyJsBg6NB220B2PgIstmVru+/b+U2S57E+iEpnw2+tiaaa FZAw== 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 nm19-20020a17090b19d300b00252b6276bc2si4164167pjb.109.2023.05.26.08.07.26; Fri, 26 May 2023 08:07: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 S243435AbjEZOyX (ORCPT + 99 others); Fri, 26 May 2023 10:54:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237425AbjEZOyS (ORCPT ); Fri, 26 May 2023 10:54:18 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AF4E199; Fri, 26 May 2023 07:54:16 -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 9594324E1F2; Fri, 26 May 2023 22:54:06 +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; Fri, 26 May 2023 22:54:04 +0800 Received: from SD-Server.starfivetech.com (183.27.98.143) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 26 May 2023 22:54:04 +0800 From: Walker Chen To: Mark Brown , Liam Girdwood , Claudiu Beznea , Jaroslav Kysela , Takashi Iwai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Hal Feng , Walker Chen CC: , , , Subject: [PATCH v5 1/3] ASoC: dt-bindings: Add TDM controller bindings for StarFive JH7110 Date: Fri, 26 May 2023 22:54:00 +0800 Message-ID: <20230526145402.450-2-walker.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230526145402.450-1-walker.chen@starfivetech.com> References: <20230526145402.450-1-walker.chen@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.98.143] 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=-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 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