From patchwork Mon Jun 26 11:09:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Feng X-Patchwork-Id: 112860 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7404367vqr; Mon, 26 Jun 2023 04:21:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5B3Ww/cIO7VJVpsEaiCZ5cCKaf50p3PMQx3tvDwT+jv3EEra+0fxhkP+2hhQD2nxBZAJkG X-Received: by 2002:a05:6a00:24d5:b0:66a:5e6f:8b21 with SMTP id d21-20020a056a0024d500b0066a5e6f8b21mr9807859pfv.2.1687778479959; Mon, 26 Jun 2023 04:21:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687778479; cv=none; d=google.com; s=arc-20160816; b=vNWqd5cNlzsnLO2Mzq7+S2K2Rq+29CKXkAZMOg0fPkFAv7yMWm9bOiUYkNtKPKKY52 nQ36/ULz+USpSrqVb21AJZNBrqpkE+nsfzQrjDkC1xxYHR4u+/17ALtz303Qftg7jJEv jaskKSxapypqj7z4hwKqKyurO2Sc1XMQOMGtgnjmkEAlf1HsT2mV1ATN6xE2ouHShzfj HOH/q4ka0z6Jiveb0Tbup9H3ONqQiYZoDKG9BQUCbIngQyKQaXPeTp+fUvvZ+zoVlKO0 +qEQ6ZqKuXVX9H+1dhjx10lzwuQY6W5gjyHlt12S09qs4Ib5ooYtH/rYA7RQzp/tSnvv jQWA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cg20-20020a056a00291400b00646672f2be3si3040029pfb.282.2023.06.26.04.21.07; Mon, 26 Jun 2023 04:21:19 -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 S230394AbjFZLJh 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 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769764007432340014?= X-GMAIL-MSGID: =?utf-8?q?1769764007432340014?= Add bindings for the PWM-DAC controller on the JH7110 RISC-V SoC by StarFive Ltd. Signed-off-by: Hal Feng Reviewed-by: Krzysztof Kozlowski --- .../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>; + };