Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp695448ybh; Wed, 22 Jul 2020 10:45:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx5zwNrgDBkVyqOPx8OFXzlw185T9Sn6r+i62s5xSR7HltJJ8xE9UAEyoSXns1F70ynL6R X-Received: by 2002:a17:906:6d56:: with SMTP id a22mr707134ejt.440.1595439946593; Wed, 22 Jul 2020 10:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595439946; cv=none; d=google.com; s=arc-20160816; b=x0N4aON3UHc8ol3YOIvjywZ6bYgu0ZNgQfpO8TWoae1COT3j78jkSoGZS/qQU0m0qN wSZq/CnXCpwFrE07RrUTUu/MhKil3mEgyB1Is4MIhqw5fMb8S3XbOnDFmLdN428sCRYy ciOLj13pJtbmjTYaml3hBfQQzVLVTX6OzWpoXrJHmm+tgfiVvKAcsCgqk8E5uB7orkDG MLxLj1ged0lMrJalDJhjrf6mUdOKS1kbn+Ggog7oDty9l2yZyc2A8NaLHrdATpPuSb2+ bzRXoybo2Lqu0sAj87f30HfeTgz5gvQ8xe4Wv8Ylf4C4bjjyE7ybycQYYWPu51WRgP/C S94g== 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=NsnTU13lcK8SsraFUtjXcFTM0yY+KJ+0Cv+1n/Q3HG0=; b=GSnBg3EL4yBTJ3wcDPa2dbOv1ramEL1so4c4dKPw5cJBGm2r5S5MhreYTJ+e/rctsH BYBxkBZ+S/bBb9tblSonHcccMSff+EH+bVTP+a2F6XyYl+XvDw+Pe0yq9jf48TF0p/A2 j3O693u646jKJXGgdgwerg7wEhTNH70Qd56YZeL9dUQLshMba0vIoKxAGPlbg7rGXuKF WjyXHQX3tYiATK6m09Ve7JPDFkjVNOLPRE2gscYeuQS6ePVsh5/bpkPzr+CApTQfDX3y 9J9a0mbkFIeOuujO4Xce2cSXsE+wxFrq8EHtFYvUfwOuM2ACeoM235S5KXCtoQJPwhdJ E0Lg== 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 lj8si407592ejb.60.2020.07.22.10.45.23; Wed, 22 Jul 2020 10:45:46 -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 S1727948AbgGVRmi (ORCPT + 99 others); Wed, 22 Jul 2020 13:42:38 -0400 Received: from www1102.sakura.ne.jp ([219.94.129.142]:33245 "EHLO www1102.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726642AbgGVRmi (ORCPT ); Wed, 22 Jul 2020 13:42:38 -0400 Received: from fsav105.sakura.ne.jp (fsav105.sakura.ne.jp [27.133.134.232]) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 06MHgK4s032158; Thu, 23 Jul 2020 02:42:20 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Received: from www1102.sakura.ne.jp (219.94.129.142) by fsav105.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav105.sakura.ne.jp); Thu, 23 Jul 2020 02:42:20 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav105.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 06MHgGAM032144 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Jul 2020 02:42:20 +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 , Rob Herring Subject: [PATCH v2] dt-bindings: sound: convert ROHM BD28623 amplifier binding to yaml Date: Thu, 23 Jul 2020 02:42:15 +0900 Message-Id: <20200722174215.988974-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 Reviewed-by: Rob Herring --- Changes in v2: - add additionalProperties:false - add Rob's Reviewed-by --- .../bindings/sound/rohm,bd28623.txt | 29 -------- .../bindings/sound/rohm,bd28623.yaml | 67 +++++++++++++++++++ 2 files changed, 67 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..859ce64da152 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/rohm,bd28623.yaml @@ -0,0 +1,67 @@ +# 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" + +additionalProperties: false + +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