Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1595785ybh; Tue, 14 Jul 2020 02:00:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqvswZNcgce3jLvaZscnyOBRO3uzuSBUvViGQa11An7I4xgYN25e0ILrMy0DUr0YcWLmXe X-Received: by 2002:a50:d784:: with SMTP id w4mr3521097edi.34.1594717257237; Tue, 14 Jul 2020 02:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594717257; cv=none; d=google.com; s=arc-20160816; b=aICMFDT4D7n9XfSqiZEKI8vr9O8mEnhz8fL7GwcPe3fiBEkpN8yPHe4YCSuUcwa+55 +dqCVSUekcNlR6WD1rcmkw+wi3YgJqX474s0eg/Q4O40CfDRCTrsYBkqBTt/2z+3grXP RzOG/Z8jm3CPoJICwDrX7Eeq6VHb/OG3xA7t+tvDly0QU/IIsAVJv1P8MsYsUBqLJZoI aa0wPyqZ5ULyN4yCzNf5SJyPhYiFZM0PuGLlu44FNA1bksZOKUfI9cx8GMt8T0lEZakI 6GiQ0viILjTTjBlMNVRY3Nc72+6k4Fzn7BuREmuRq4Pt/pMg5dWaQEKkV/YgZhzalRFS lH5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=jysIHqB8s4Ff/VUIlC31DxvE9vATeTt2vWTb9gw0+uM=; b=XGZqhrAhxJ3jUqCzOhrT9FTVyPu+bz/669TKM05SNa2gcLsOJ34RhQPW7tgKpXKjGV tqMsN/f4xIisyh8WNnbcrGE+fHuli/QKilEUn6XxzULWYN7MAXqW4jaCD2BgzbcdCsfx g7/yR2y0DhGeb7RRZK4NKC30l24aq/ILj4IRwqMz6DQs7SRxO4Hi9Eyu2UWDJG1ZFQvb WfTiyBevW3siAxqakqvWjf8ovH7VlIn/rCRR+XMzgYYQwSqRW9MI1Hf89zPUFO26Yh3Y Ye8eXXmNwkx9OQGPJhlNKG351g1er4j18G6xzEM9t5yWgUYV1hu2//V3PFnEL6OYYnug VUaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si10386929ejg.426.2020.07.14.02.00.33; Tue, 14 Jul 2020 02:00:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725905AbgGNJAY (ORCPT + 99 others); Tue, 14 Jul 2020 05:00:24 -0400 Received: from www1102.sakura.ne.jp ([219.94.129.142]:28073 "EHLO www1102.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725816AbgGNJAY (ORCPT ); Tue, 14 Jul 2020 05:00:24 -0400 X-Greylist: delayed 3004 seconds by postgrey-1.27 at vger.kernel.org; Tue, 14 Jul 2020 05:00:23 EDT Received: from fsav302.sakura.ne.jp (fsav302.sakura.ne.jp [153.120.85.133]) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 06E8A6nX049094; Tue, 14 Jul 2020 17:10:06 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Received: from www1102.sakura.ne.jp (219.94.129.142) by fsav302.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav302.sakura.ne.jp); Tue, 14 Jul 2020 17:10:06 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav302.sakura.ne.jp) Received: from localhost.localdomain (121.252.232.153.ap.dti.ne.jp [153.232.252.121]) (authenticated bits=0) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 06E8A1Zq049060 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Jul 2020 17:10:06 +0900 (JST) (envelope-from katsuhiro@katsuster.net) From: Katsuhiro Suzuki To: Mark Brown , Rob Herring Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Katsuhiro Suzuki Subject: [PATCH] dt-bindings: sound: convert ROHM BD28623 amplifier binding to yaml Date: Tue, 14 Jul 2020 17:09:59 +0900 Message-Id: <20200714081000.177914-1-katsuhiro@katsuster.net> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch converts ROHM BD28623UMV class D speaker amplifier binding to DT schema. Signed-off-by: Katsuhiro Suzuki --- .../bindings/sound/rohm,bd28623.txt | 29 --------- .../bindings/sound/rohm,bd28623.yaml | 65 +++++++++++++++++++ 2 files changed, 65 insertions(+), 29 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/rohm,bd28623.txt create mode 100644 Documentation/devicetree/bindings/sound/rohm,bd28623.yaml diff --git a/Documentation/devicetree/bindings/sound/rohm,bd28623.txt b/Documentation/devicetree/bindings/sound/rohm,bd28623.txt deleted file mode 100644 index d84557c2686e..000000000000 --- a/Documentation/devicetree/bindings/sound/rohm,bd28623.txt +++ /dev/null @@ -1,29 +0,0 @@ -ROHM BD28623MUV Class D speaker amplifier for digital input - -This codec does not have any control buses such as I2C, it detect format and -rate of I2S signal automatically. It has two signals that can be connected -to GPIOs: reset and mute. - -Required properties: -- compatible : should be "rohm,bd28623" -- #sound-dai-cells: should be 0. -- VCCA-supply : regulator phandle for the VCCA supply -- VCCP1-supply : regulator phandle for the VCCP1 supply -- VCCP2-supply : regulator phandle for the VCCP2 supply - -Optional properties: -- reset-gpios : GPIO specifier for the active low reset line -- mute-gpios : GPIO specifier for the active low mute line - -Example: - - codec { - compatible = "rohm,bd28623"; - #sound-dai-cells = <0>; - - VCCA-supply = <&vcc_reg>; - VCCP1-supply = <&vcc_reg>; - VCCP2-supply = <&vcc_reg>; - reset-gpios = <&gpio 0 GPIO_ACTIVE_LOW>; - mute-gpios = <&gpio 1 GPIO_ACTIVE_LOW>; - }; diff --git a/Documentation/devicetree/bindings/sound/rohm,bd28623.yaml b/Documentation/devicetree/bindings/sound/rohm,bd28623.yaml new file mode 100644 index 000000000000..acd8609252b4 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/rohm,bd28623.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/rohm,bd28623.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BD28623MUV Class D speaker amplifier for digital input + +description: + This codec does not have any control buses such as I2C, it detect + format and rate of I2S signal automatically. It has two signals + that can be connected to GPIOs reset and mute. + +maintainers: + - Katsuhiro Suzuki + +properties: + compatible: + const: rohm,bd28623 + + "#sound-dai-cells": + const: 0 + + VCCA-supply: + description: + regulator phandle for the VCCA (for analog) power supply + + VCCP1-supply: + description: + regulator phandle for the VCCP1 (for ch1) power supply + + VCCP2-supply: + description: + regulator phandle for the VCCP2 (for ch2) power supply + + reset-gpios: + maxItems: 1 + description: + GPIO specifier for the active low reset line + + mute-gpios: + maxItems: 1 + description: + GPIO specifier for the active low mute line + +required: + - compatible + - VCCA-supply + - VCCP1-supply + - VCCP2-supply + - "#sound-dai-cells" + +examples: + - | + #include + codec { + compatible = "rohm,bd28623"; + #sound-dai-cells = <0>; + + VCCA-supply = <&vcc_reg>; + VCCP1-supply = <&vcc_reg>; + VCCP2-supply = <&vcc_reg>; + reset-gpios = <&gpio 0 GPIO_ACTIVE_LOW>; + mute-gpios = <&gpio 1 GPIO_ACTIVE_LOW>; + }; -- 2.27.0