From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 61532CA0FF3 for ; Fri, 30 Aug 2024 13:49:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To :Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=puSN+ivNX9K9xEMMEOG53Ybveu68hno/PW82syoDPQk=; b=DMB7lhpWj50DU+sKnufa8p6XMd ZJnfHEalei+6r1g87V1z34AvDHwOz48l0Nh+12Yb4+JMtOS6PP7HYLsnPZaPGX0eXZRvb+UI7VbvP FIRQdBXRx3XFWU4ZnfVnysfFfy4HmtRVAha+NTKdOrA2yhVnOFPpiCLgHPtDjrTsUDUHtkUTm0eJA 84Ut5d2BA3KGROjiWd87GDMVZgkchDbc51U+pUUy/T3g7GM77l+LuCpEYRAPMrheGLMlnaB3uj+Q/ C440whZhdhuXZzvdU/IxZMrWOBkJMMYxmz57jbTAyUai+mV/e5pBjwYdlTZEExBPbth4tgfJLqePx IfUmCqgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk20C-00000006Tg5-38VN; Fri, 30 Aug 2024 13:49:24 +0000 Received: from nyc.source.kernel.org ([147.75.193.91]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk1zJ-00000006TTZ-2OOY for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 13:48:31 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 78E3DA44945; Fri, 30 Aug 2024 13:48:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8895EC4CEC2; Fri, 30 Aug 2024 13:48:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725025708; bh=C7SzgnZQ5XbL0Poy8QlUNW6+CVwAR6aH2vrX/N/Txxw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kKvebFtRV+e4c4onP/eArXUHfNnw+SSvW4ORRbhw1Rjjg3fMsXfAr4B+w3zJt+E3+ 6WQykcEprwYkvPJOmEoRoIEu7lWKUhIL68FNSgE57SF5I631cRIdoy4hz8OlElR3Hl hRlAC2IJFcPyR5GMgsgGE25vQOZyFxBiocdP9H/SMrscBNjggBl9LK3zVRLoav5Yg+ aJRV11RhcN+9scvQI/STiYvV9p4zW+uoJFenWbw0wKEk/5RHUoMKcDxBte1jJkuyUn 5Xgznb6ICztJcLc/qKHX8usYgssCOEPn8dlgEbR+RIWt8M/8y4IHgp4MFvGghYHQOY EjGGbyRsNiLdg== Date: Fri, 30 Aug 2024 14:48:23 +0100 From: Conor Dooley To: Dharma Balasubiramani Subject: Re: [PATCH v2 1/2] dt-bindings: mmc: sdhci-atmel: Convert to json schema Message-ID: <20240830-satisfy-dislike-27ed075138b3@spud> References: <20240830-atmel-sdhci-v2-0-b7f58973f3fc@microchip.com> <20240830-atmel-sdhci-v2-1-b7f58973f3fc@microchip.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BDXgFad7zf52Vic3" Content-Disposition: inline In-Reply-To: <20240830-atmel-sdhci-v2-1-b7f58973f3fc@microchip.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240830_064829_767606_53F5C2B6 X-CRM114-Status: GOOD ( 22.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , linux-kernel@vger.kernel.org, Alexandre Belloni , devicetree@vger.kernel.org, Aubin Constans , linux-mmc@vger.kernel.org, Ulf Hansson , Claudiu Beznea , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --BDXgFad7zf52Vic3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 30, 2024 at 01:49:42PM +0530, Dharma Balasubiramani wrote: > Convert sdhci-atmel documentation to yaml format. The new file will inher= it > from sdhci-common.yaml. >=20 > Note: Add microchip,sama7g5-sdhci to compatible list as we already use it > in the DT. >=20 > Signed-off-by: Dharma Balasubiramani > --- > .../bindings/mmc/atmel,sama5d2-sdhci.yaml | 98 ++++++++++++++++= ++++++ > .../devicetree/bindings/mmc/sdhci-atmel.txt | 35 -------- > 2 files changed, 98 insertions(+), 35 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/mmc/atmel,sama5d2-sdhci.ya= ml b/Documentation/devicetree/bindings/mmc/atmel,sama5d2-sdhci.yaml > new file mode 100644 > index 000000000000..91d18b2545e1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mmc/atmel,sama5d2-sdhci.yaml > @@ -0,0 +1,98 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mmc/atmel,sama5d2-sdhci.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Atmel SDHCI controller > + > +maintainers: > + - Aubin Constans > + - Nicolas Ferre > + > +description: > + Bindings for the SDHCI controller found in Atmel/Microchip SoCs. > + > +properties: > + compatible: > + oneOf: > + - enum: > + - atmel,sama5d2-sdhci > + - atmel,sama5d3-sdhci > + - atmel,sama5d4-sdhci > + - microchip,sam9x60-sdhci > + - items: > + - enum: > + - microchip,sama7g5-sdhci > + - const: microchip,sam9x60-sdhci > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + minItems: 2 > + maxItems: 3 > + description: | > + The sama5d2 family includes three clocks: `hclock`, `multclk`, and= `baseclk`. > + For other families, including sam9x60 and sam9x7, only `hclock` an= d `multclk` are used. This should instead be an items list, rather than a text based description. > + > + clock-names: > + minItems: 2 > + maxItems: 3 We prefer that you describe the entries at this level, and constrain them in the conditional bits below. IOW, move the items list here, and only use minItems/maxItems below. > + > + microchip,sdcal-inverted: > + type: boolean > + description: > + When present, polarity on the SDCAL SoC pin is inverted. > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + > +allOf: > + - $ref: sdhci-common.yaml# > + - if: > + properties: > + compatible: > + contains: > + enum: > + - atmel,sama5d2-sdhci > + then: > + properties: > + clocks: > + maxItems: 3 maxItems: 3 or minItems: 3? Your answer will depend on whether or not baseclk is optional on sama5d2. Cheers, Conor. > + clock-names: > + items: > + - const: hclock > + - const: multclk > + - const: baseclk > + else: > + properties: > + clocks: > + maxItems: 2 > + clock-names: > + items: > + - const: hclock > + - const: multclk > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + mmc@a0000000 { > + compatible =3D "atmel,sama5d2-sdhci"; > + reg =3D <0xa0000000 0x300>; > + interrupts =3D <31 IRQ_TYPE_LEVEL_HIGH 0>; > + clocks =3D <&sdmmc0_hclk>, <&sdmmc0_gclk>, <&main>; > + clock-names =3D "hclock", "multclk", "baseclk"; > + assigned-clocks =3D <&sdmmc0_gclk>; > + assigned-clock-rates =3D <480000000>; > + }; --BDXgFad7zf52Vic3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZtHNpwAKCRB4tDGHoIJi 0hybAQDUlIVOHIEiR1wC9Pruszi99jufighJpzE4S1psUqavTAEA2IlB4SSTQg7j Ypqt/472eU2lCY9H6m0T51AJB5hbzw8= =bSGL -----END PGP SIGNATURE----- --BDXgFad7zf52Vic3--