Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2124378rwl; Thu, 6 Apr 2023 06:15:56 -0700 (PDT) X-Google-Smtp-Source: AKy350bqmaGgs7jXRyeBydHJVIdDnxKifZ+q4KEikXnM1kuRzIVVueaTg+oiYAa1fNcF76MF1otx X-Received: by 2002:a05:6402:544:b0:500:2a15:f86b with SMTP id i4-20020a056402054400b005002a15f86bmr4712518edx.42.1680786956406; Thu, 06 Apr 2023 06:15:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680786956; cv=none; d=google.com; s=arc-20160816; b=AYzS7zcfWEm8tDAVyCNlV0C+Wl0i4IGB+bLIZcx2AWUCIf04drmVuEf7xHyvMGwxvP LQP1N4ORgmz3ZSxh2kLOy4KzAF5toLuLVPhKGKxCUG6KUfwJKs+JcOYmKL4o3Bw8vQQV +swuiX1J9QUmLc2i9zM6yRe79pppsUc6C4cQOW12xDAkNx4rvFyWJm+q3PEczmw2mjt+ MNxtDWCoWupLH11bAPSrZE18+cCzeAYyvr+gsIKgyRmYg9aWGFLhogA3S+6uWFEmyiqh UGg3Kflf+0INmw0+K/uDjcmORRJqSmrM8OMGPi3l8RFs6qVaeIP7kD5dekOjXFsIQKHX PCXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=m4ykYv4fHBiosjt/dHrV4fV/L15jZ1kaICr2KC4eMFo=; b=qbluH3s06tLjduE3SoyRIirlu4psrOQSTSFG4lkcCLiBCtdymYaaZApNfXbYcvbNul Yf9hiUxgKs8+HIWa92quVayjEzZ6Bh2m8cSePKqbYrzynORjlNyDWNmimumQn29ytaP+ /SIno63oAf/ByBobnfGCHOGe71VutIJ65i470AaTipyF3oRScvCxMRxe8ZQlL+yr5a8p TIvu271pCQ49An3HT/09iTH7p9MIBkkNIA8oMFBwmogSXNs7WEUgId8P6FDmuU9V1rVK elYY/XPJtASwn8MSrb7Umx7G5rT+cVQ9IPAZyr3odXwZn/HVFxZucTqnfDIH+9pFWhSl ESMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PjG4crlQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ba12-20020a0564021acc00b004fe042c5a6esi136546edb.453.2023.04.06.06.15.30; Thu, 06 Apr 2023 06:15:56 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PjG4crlQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236806AbjDFNMa (ORCPT + 99 others); Thu, 6 Apr 2023 09:12:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbjDFNM2 (ORCPT ); Thu, 6 Apr 2023 09:12:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F688901C; Thu, 6 Apr 2023 06:12:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C05E36472A; Thu, 6 Apr 2023 13:12:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2ADFFC4339C; Thu, 6 Apr 2023 13:12:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680786741; bh=h9ji6NYGYKhe8pru+plznJ5ni8zeCU3Dta5EJvRMeRo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=PjG4crlQOjp5xxZmpAMnr4kZzad/soJ0KNGo0HGrmiUCC9bT0Ru9qwccDBM7xlFqv iCxhiA7JmfQwtz+kz7E67ZkRPZywb6mOgoPl85WBlgZv2w1gy35+9Uklt67ny/l8qD oSIecvVTLcOUh5ILCDpRhEPJJEOklj2rG5AkRob2iesB+MuzM7LuoedaDESuLve2na 4ON2tIMn3I+/o3pHq0VLx/2UDJzpssBoiM1TpLCD22w3iyoc5Xo4NQWWLK1n0X2vOs MfrnzCYQzBSebjopvH3+FB9cC6wD8F5czhWTrHrscJWd183FfgyZjs3B5yT0zkzTFQ 3yIiQCSEurKDg== Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-5491fa028adso242128537b3.10; Thu, 06 Apr 2023 06:12:21 -0700 (PDT) X-Gm-Message-State: AAQBX9drupBewGHVmCut8uNDLyBmzCl5fJcA9zhDbcIkiwirLmNrh+bh YqmBsz2T2J1fmJOzvlwGpJMEW309l8T7xQHl4g== X-Received: by 2002:a81:b207:0:b0:545:a7d8:f278 with SMTP id q7-20020a81b207000000b00545a7d8f278mr5591986ywh.5.1680786740183; Thu, 06 Apr 2023 06:12:20 -0700 (PDT) MIME-Version: 1.0 References: <20230328091831.55690-1-danascape@gmail.com> In-Reply-To: <20230328091831.55690-1-danascape@gmail.com> From: Rob Herring Date: Thu, 6 Apr 2023 08:12:09 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5] ASoC: dt-bindings: ak4458: Convert to dtschema To: Saalim Quadri Cc: krzysztof.kozlowski@linaro.org, broonie@kernel.org, daniel.baluta@nxp.com, krzysztof.kozlowski+dt@linaro.org, shengjiu.wang@nxp.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 On Tue, Mar 28, 2023 at 4:18=E2=80=AFAM Saalim Quadri = wrote: > > Convert the AK4458 audio DAC bindings to DT schema. > > Signed-off-by: Saalim Quadri > --- > Changes: > V1 -> V2: Use the correct way for dsd-path property > Drop ak4458 label form example > V2 -> V3: ak4458 is the only one that does not support dsd-path, so we > do not require to define an array > V3 -> V4: Add back dsd-path property description > V4 -> V5: Fix yaml format as per example-schema > > .../devicetree/bindings/sound/ak4458.txt | 28 ------- > .../bindings/sound/asahi-kasei,ak4458.yaml | 73 +++++++++++++++++++ > 2 files changed, 73 insertions(+), 28 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/sound/ak4458.txt > create mode 100644 Documentation/devicetree/bindings/sound/asahi-kasei,a= k4458.yaml > > diff --git a/Documentation/devicetree/bindings/sound/ak4458.txt b/Documen= tation/devicetree/bindings/sound/ak4458.txt > deleted file mode 100644 > index 0416c14895d6..000000000000 > --- a/Documentation/devicetree/bindings/sound/ak4458.txt > +++ /dev/null > @@ -1,28 +0,0 @@ > -AK4458 audio DAC > - > -This device supports I2C mode. > - > -Required properties: > - > -- compatible : "asahi-kasei,ak4458" or "asahi-kasei,ak4497" > -- reg : The I2C address of the device for I2C > - > -Optional properties: > -- reset-gpios: A GPIO specifier for the power down & reset pin > -- mute-gpios: A GPIO specifier for the soft mute pin > -- AVDD-supply: Analog power supply > -- DVDD-supply: Digital power supply > -- dsd-path: Select DSD input pins for ak4497 > - 0: select #16, #17, #19 pins > - 1: select #3, #4, #5 pins > - > -Example: > - > -&i2c { > - ak4458: dac@10 { > - compatible =3D "asahi-kasei,ak4458"; > - reg =3D <0x10>; > - reset-gpios =3D <&gpio1 10 GPIO_ACTIVE_LOW> > - mute-gpios =3D <&gpio1 11 GPIO_ACTIVE_HIGH> > - }; > -}; > diff --git a/Documentation/devicetree/bindings/sound/asahi-kasei,ak4458.y= aml b/Documentation/devicetree/bindings/sound/asahi-kasei,ak4458.yaml > new file mode 100644 > index 000000000000..0db0c8e923a0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/asahi-kasei,ak4458.yaml > @@ -0,0 +1,73 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/asahi-kasei,ak4458.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: AK4458 audio DAC > + > +maintainers: > + - Shengjiu Wang > + > +properties: > + compatible: > + enum: > + - asahi-kasei,ak4458 > + - asahi-kasei,ak4497 > + > + reg: > + maxItems: 1 > + > + avdd-supply: > + description: Analog power supply > + > + dvdd-supply: > + description: Digital power supply > + > + reset-gpios: > + maxItems: 1 > + > + mute-gpios: > + maxItems: 1 > + description: > + GPIO used to mute all the outputs > + > + dsd-path: > + description: Select DSD input pins for ak4497 > + $ref: /schemas/types.yaml#/definitions/uint32 > + oneOf: > + - const: 0 > + description: select #16, #17, #19 pins > + - const: 1 > + description: select #3, #4, #5 pins '#' (with a space or newline before) is a comment, so these need to be quoted. I only noticed because yamllint now requires a space after as well: ./Documentation/devicetree/bindings/sound/asahi-kasei,ak4458.yaml:40:30: [error] missing starting space in comment (comments) ./Documentation/devicetree/bindings/sound/asahi-kasei,ak4458.yaml:42:30: [error] missing starting space in comment (comments) Rob