Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp711678ybh; Wed, 22 Jul 2020 11:10:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGZUD40snJyjkODDNasQoJB842zFZSjnSTpbL1BWqdG2QdV7Wh1fGaXqW1a7EPveHoW4n8 X-Received: by 2002:a17:906:33ca:: with SMTP id w10mr791256eja.171.1595441451758; Wed, 22 Jul 2020 11:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595441451; cv=none; d=google.com; s=arc-20160816; b=t3yTUuu76DGCOaxITVTdze0kDLBsd70fTKs67wQvxJXXNZDBMxk6o+1VUOvLSE6vNi 1evjnMlQXQwC1vEsMx9b1EPxbFfR6jFErzA2PCmYpZnzyYIfhH9bM27/QVe0sZogLqMU O9AuBRIxldD3ecp5CLn2T98RPV8Lhhu+xs1RUcAwP5s9H7P1w1GDPWUp+DULMhEcsSOC wSkiTQGSZqDbBc5r+PamaBnIFiEmB4priaMfT4Al+bTkJEKgoMuwSW/LvliHRAlFVbZF UUQnnFoo2beM54NTfxPbgp5PDHy+D1DCWg39wweDDT9rU/rbLlyTGOpqo58nQATwpyda urnA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=I2mf/jQr84xZX6EFyCgW++pMVMLSzG3mzwN2da9eu98=; b=EvPOG4K1LD3eXOezt0i2Ng2hJeFbgbQ1L9HrZizRRLAsxTLmgs3NVAftIuT5GMGDQC rJecxgzk8rCFet+YJnUB1/NmLIPva0jzw9H4blMpOfHk7MUnyAONCkpx4GCMhBS2Maca zd3myL6YlLR0rTMLrMObgU+9fqo2vaxONWUbcOsgxb6dwfsUtfH+cSRZPIZRneutevPO MuTy/Cn6gqbam4lKMtKz3FY+n7W2EETGv7pZzwtH7Ikk9uwTob9BNsGyqk0GkjowWcXt gh4C6bu0q+m5nTh/WL2ZrUYFZjfgtKsBNXprZe8dBTU/hfnzBmb7j3tFAKY3ep0Kw+el P+Qg== 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 l13si488741ejk.170.2020.07.22.11.10.28; Wed, 22 Jul 2020 11:10:51 -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 S1731710AbgGVSIA (ORCPT + 99 others); Wed, 22 Jul 2020 14:08:00 -0400 Received: from www1102.sakura.ne.jp ([219.94.129.142]:17322 "EHLO www1102.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727044AbgGVSH5 (ORCPT ); Wed, 22 Jul 2020 14:07:57 -0400 Received: from fsav303.sakura.ne.jp (fsav303.sakura.ne.jp [153.120.85.134]) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 06MI7mBv038876; Thu, 23 Jul 2020 03:07:48 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Received: from www1102.sakura.ne.jp (219.94.129.142) by fsav303.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav303.sakura.ne.jp); Thu, 23 Jul 2020 03:07:48 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav303.sakura.ne.jp) Received: from [192.168.1.2] (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 06MI7lJ8038871 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Jul 2020 03:07:48 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Subject: Re: [PATCH] dt-bindings: sound: convert ROHM BD28623 amplifier binding to yaml To: Rob Herring Cc: Mark Brown , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20200714081000.177914-1-katsuhiro@katsuster.net> <20200721021211.GA3388250@bogus> From: Katsuhiro Suzuki Message-ID: Date: Thu, 23 Jul 2020 03:07:47 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200721021211.GA3388250@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Rob, Thanks a lot for your review! Best Regards, Katsuhiro Suzuki On 2020/07/21 11:12, Rob Herring wrote: > On Tue, Jul 14, 2020 at 05:09:59PM +0900, Katsuhiro Suzuki wrote: >> 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" > > Needs an: > > additionalProperties: false > > With that, > > Reviewed-by: Rob Herring > >> + >> +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 >>