Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15986176rwd; Mon, 26 Jun 2023 04:20:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72P7WojVk9xFCMVuo970od3oy9hACpSI2pjIf2BCqNo2wttpNbApMHJsP9A0jpaJa63/gy X-Received: by 2002:a17:90a:1f82:b0:250:6c76:fd9b with SMTP id x2-20020a17090a1f8200b002506c76fd9bmr18349840pja.38.1687778412428; Mon, 26 Jun 2023 04:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687778412; cv=none; d=google.com; s=arc-20160816; b=tq6j0F5pMEs0ZGn2eQJmic8Ld5GxV9h0x+pFQinanR6A37pkJ2c/jCWYCJiErE8fHV IcepbyStD6Ir8D05KTwKLMZ61/5CLKT8nzw8zEoFfb10iw4ns4nm/Hmofv7aXIvENMj9 Xw8OpO9XHt/o47zNO6i6i/Ua+f9a0W/CJsnDaamLxQ1qmVRiSWX7QpBRX69C74VJiH06 cDQWe8yZoDRTpHdRG69ecbBJGZ4Xfl3bg1ME2qROUnkEQYHvn6NocasVekSnIa/55n6q 1wlg6y3/m39MJgyqv+L2uI0bfPDqgmDr397yTsKMwqPf45P95gtXbj8qTBH+P08FMHR/ Si8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=EFQxCwE6q/nqnI5vMiUjCKyjE9hte3PDtwREkOhzDJ8=; fh=C9k7ewE3MFlelxbPIhf5lgILyVkFS4QkOgvXASRW4pM=; b=ZGErommBz7ufyHmJbAw7L0GjYUXo/1OYI1/2CUUT3zKNjqo2CFYxDQjCf9h10IamTo MuCQvmtGp11ZUus36149wRINJzb9i2dSAIbeEz+oj+uZmuqWkwxrpqpwifT+x5HImVRr sPDo5ZXBZWNyyZALSEqGGrDGegn7Xcg5VQrzHhSv8TxriCxmNueh89rTe+gU5VjRwJa8 NQQpWUTj/sYVXvvtm5ih6jSzwDylau3kHQ6TiLgr8dTK1/MF6zw2ZiP6Li1JSrS50Euc qbL+nUS9uUfNasoMiKRl8K7oiH9n9iMI7sIbSFe/pgyNAjpLpSy1Cj8Qi7CxgtSg/qMt rjRw== 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 kb8-20020a17090ae7c800b002532e1993basi5507023pjb.154.2023.06.26.04.20.00; Mon, 26 Jun 2023 04:20:12 -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 S230383AbjFZLJh convert rfc822-to-8bit (ORCPT + 99 others); Mon, 26 Jun 2023 07:09:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230109AbjFZLJW (ORCPT ); Mon, 26 Jun 2023 07:09:22 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FABEBE; Mon, 26 Jun 2023 04:09:19 -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 ex01.ufhost.com (Postfix) with ESMTP id B713324E26A; Mon, 26 Jun 2023 19:09:13 +0800 (CST) Received: from EXMBX172.cuchost.com (172.16.6.92) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 26 Jun 2023 19:09:13 +0800 Received: from ubuntu.localdomain (113.72.146.167) by EXMBX172.cuchost.com (172.16.6.92) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 26 Jun 2023 19:09:12 +0800 From: Hal Feng To: Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Walker Chen" , Xingyu Wu , Emil Renner Berthing , Hal Feng CC: , , , Subject: [PATCH v1 3/5] ASoC: dt-bindings: Add StarFive JH7110 PWM-DAC controller Date: Mon, 26 Jun 2023 19:09:07 +0800 Message-ID: <20230626110909.38718-4-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230626110909.38718-1-hal.feng@starfivetech.com> References: <20230626110909.38718-1-hal.feng@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.146.167] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX172.cuchost.com (172.16.6.92) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, 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 the PWM-DAC controller on the JH7110 RISC-V SoC by StarFive Ltd. Signed-off-by: Hal Feng --- .../sound/starfive,jh7110-pwmdac.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/starfive,jh7110-pwmdac.yaml diff --git a/Documentation/devicetree/bindings/sound/starfive,jh7110-pwmdac.yaml b/Documentation/devicetree/bindings/sound/starfive,jh7110-pwmdac.yaml new file mode 100644 index 000000000000..91a4213f2bd8 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/starfive,jh7110-pwmdac.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/starfive,jh7110-pwmdac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 PWM-DAC Controller + +description: | + The PWM-DAC Controller uses PWM square wave generators plus RC filters to + form a DAC for audio play in StarFive JH7110 SoC. This audio play controller + supports 16 bit audio format, up to 48K sampling frequency , up to left + and right dual channels. + +maintainers: + - Hal Feng + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: starfive,jh7110-pwmdac + + reg: + maxItems: 1 + + clocks: + items: + - description: PWMDAC APB + - description: PWMDAC CORE + + clock-names: + items: + - const: apb + - const: core + + resets: + maxItems: 1 + description: PWMDAC APB + + dmas: + maxItems: 1 + description: TX DMA Channel + + dma-names: + const: tx + + "#sound-dai-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - dmas + - dma-names + - "#sound-dai-cells" + +additionalProperties: false + +examples: + - | + pwmdac@100b0000 { + compatible = "starfive,jh7110-pwmdac"; + reg = <0x100b0000 0x1000>; + clocks = <&syscrg 157>, + <&syscrg 158>; + clock-names = "apb", "core"; + resets = <&syscrg 96>; + dmas = <&dma 22>; + dma-names = "tx"; + #sound-dai-cells = <0>; + }; -- 2.38.1