Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2411196rdg; Mon, 14 Aug 2023 01:18:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFirv/z6/EzgVTLaKIMFaE4C0BoWHE8a+9GHAtTI2vjcqlsUWWnliloQVXJY5vvR+hsuTNU X-Received: by 2002:a17:903:2311:b0:1bb:a55d:c6d7 with SMTP id d17-20020a170903231100b001bba55dc6d7mr8495328plh.66.1692001086505; Mon, 14 Aug 2023 01:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692001086; cv=none; d=google.com; s=arc-20160816; b=bsQdSZzf8IZnFq8TO4OJkE3MxPIDtnQyfXlHnK+Z3hey1IhrFA+zbH8UFLmvfJuKDC CgjvQB2eAj1sJwG619bN34OritC6GU84wS60AC52DWQxRtFT1j8v58z+5k6Do+Ch1ZfB C2fNO6L4JaBLCvlMSuaYIUhe/POOeQ9i5kwaPiY9DqwynB8c9g/jy0+Ig4Fabl2eLYNQ dvAEgPwxq7NpKmjAW6hQnbJNImf1B6VP3UNgaTsteo+L3n0Tqofas1VUok+572Q/1j7t uHpZW5YVRpuYHe8Zyp1mITh1/RGO0dTu57TJO+fng/mqMyB5hcbRXzW6JkSTeztQOOwM Wtlw== 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=EDBo0H2zOpaRtaRQ0BguQW0jfFNfawydHRlBPzd1+vI=; fh=B0sgEKXwfMtykUNbhiSLA+YtrywmkV+z2OUhNGkLN6s=; b=xI8nrtvzUFE3zi8bdq9P70Hx72SM95yw/XKdSMZZEDgqF9Pqs8D2g6TfyB+GI5td9a oEhZP39m/34sXmstX6IuVcz6k0usda0SEi0tYTpNMEng/C/bvY8wwPrTE46ohx8JRI5a yGIyQ0iNdQqU+54yNkGWjPzqvHFUOluVKu3kreMq7wfIxU096MjFYLcL+tSxNP2usIj/ y3ufxmH93cx4drFjKb6auLZY8Red5XsS+JzGErK7AunwiojFfvZZ5WD9YfHJXWCM9yTO jW3pXzii8MnuRTp5JULiVLrk+ahSuoQIeSY4UD0AXmt8eDqiTWXOMBzXvy+f9NGNogZn krMw== 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 c16-20020a170902d49000b001bb3bcd05bbsi7819137plg.471.2023.08.14.01.17.54; Mon, 14 Aug 2023 01:18:06 -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 S233338AbjHNIHD convert rfc822-to-8bit (ORCPT + 99 others); Mon, 14 Aug 2023 04:07:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233036AbjHNIG3 (ORCPT ); Mon, 14 Aug 2023 04:06:29 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A877010F2; Mon, 14 Aug 2023 01:06:22 -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 43B3A82CB; Mon, 14 Aug 2023 16:06:21 +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, 14 Aug 2023 16:06:21 +0800 Received: from ubuntu.localdomain (183.27.98.20) by EXMBX172.cuchost.com (172.16.6.92) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 14 Aug 2023 16:06:20 +0800 From: Hal Feng To: Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , "Claudiu Beznea" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Walker Chen , Xingyu Wu , Emil Renner Berthing , Hal Feng CC: , , , Subject: [PATCH v3 1/3] ASoC: dt-bindings: Add StarFive JH7110 PWM-DAC controller Date: Mon, 14 Aug 2023 16:06:16 +0800 Message-ID: <20230814080618.10036-2-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230814080618.10036-1-hal.feng@starfivetech.com> References: <20230814080618.10036-1-hal.feng@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.98.20] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) 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, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS 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. Reviewed-by: Krzysztof Kozlowski 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..e2b4db6aa2fb --- /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