Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp154557rwr; Wed, 19 Apr 2023 19:43:03 -0700 (PDT) X-Google-Smtp-Source: AKy350YVYBGQngr3lPgwB/wjzkATegn4Ho3aiLQVJJig84SOxLoRmhke0fax5AwxEZR8OQzEneBR X-Received: by 2002:a17:902:654a:b0:1a8:1c9a:f68 with SMTP id d10-20020a170902654a00b001a81c9a0f68mr3962510pln.36.1681958583085; Wed, 19 Apr 2023 19:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681958583; cv=none; d=google.com; s=arc-20160816; b=Mx8Ej47wm1uyom4vt2AV1xPUD0ECyPeb+CmJ0rXaudwzFtpZziDV8utL0UwNg/CcMh ko4WCytwVzsH2rI1xo3thguxzRl9k9u4iQtDKrf3YPKvku/f4JWppwpUVVE06bYiSlK+ VqKDdCpBTZHmjdUMYetA0nbM87N4kNrwzezDK2o8Wpor1LyJ6UySsDuE6bFDJ9pivPT8 pmGdVglEU24WlBNCxF0i2wLFu6CHRfZ4taDWCOkFtUyYmFraq3fW4wHmPyXHaCFngPyd nokozijdtmaP0Hzb6GHzKXQKSXsTNcAzFwM0D7Jff6jlUxuo8OsTp4nG3EcikkXfH6/8 si6Q== 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=bAJ7aYqAqIKcoY9/IzvEZrs0KgB+WGQGvhFxT8/1ONQ=; b=O6EUXLEfo4KUDLGPfLwFfF4AgA+9zT1EQrFsh39iVCG0bekhweXCMagSFu2d6a+4wr ZxPNkhQtR+yXxdIvfSUmG9fYwwGPJLlE9cFrIbZMmfYoMLhuBWJJ257zMf3okgu/xCv2 czpp+4HFneWXYz60hJ82DeAUnH/tU44a/lsV/i7NHOlIPz2QomiwU+BtXzdpBUveitxZ JuPhnBbF0cdipmsgZL6yKewcrXmPhA18RLdv4nBFNvBT8gjMriZLvhSTxACvrcPA4t94 qNN5E8aVMRd/P2o76h5a+kWaZEDZOLFgDNLLc8uTiZHlMfpRGhQhAp6TIXkhSkOihBc2 LOeA== 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 d7-20020a170902654700b001a22560151asi417821pln.325.2023.04.19.19.42.51; Wed, 19 Apr 2023 19:43:03 -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 S233493AbjDTCmK (ORCPT + 99 others); Wed, 19 Apr 2023 22:42:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233441AbjDTCld (ORCPT ); Wed, 19 Apr 2023 22:41:33 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B367CE4E; Wed, 19 Apr 2023 19:41:26 -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 517AD24DB83; Thu, 20 Apr 2023 10:41:20 +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, 20 Apr 2023 10:41:20 +0800 Received: from SD-Server.starfivetech.com (113.72.144.253) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 20 Apr 2023 10:41:19 +0800 From: Walker Chen To: Jaroslav Kysela , Takashi Iwai , "Rob Herring" , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Liam Girdwood , Mark Brown , Walker Chen CC: , , , Subject: [PATCH v2 1/4] dt-bindings: sound: Add TDM for StarFive JH7110 Date: Thu, 20 Apr 2023 10:41:15 +0800 Message-ID: <20230420024118.22677-2-walker.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230420024118.22677-1-walker.chen@starfivetech.com> References: <20230420024118.22677-1-walker.chen@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.144.253] 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,RCVD_IN_MSPIKE_H2, 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 to describe the TDM driver for the StarFive JH7110 SoC. 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