Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1861845rwd; Wed, 17 May 2023 02:22:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4G+ZSAKpczX57szZjbbcGW+BMQcPOQmcphtJWMH4/xzC45K8dB7wqAEVgAup1ICc/eOHy9 X-Received: by 2002:a17:90a:590b:b0:24d:f1b1:4bea with SMTP id k11-20020a17090a590b00b0024df1b14beamr2004926pji.0.1684315339471; Wed, 17 May 2023 02:22:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684315339; cv=none; d=google.com; s=arc-20160816; b=yus5JcKsPS84OwmL5zl9Pa0S5OFnaQrTnwLYVhGvy0vWsEewZW8kvQJEErq08qcRv2 oTMJbauv2LME1yYv5UMVqiuAtAt0HnCF4hQfQLLDKcRLX2JdrxvZM98LQ4fY+pYapEzq Uiy6sPLXfsC6BEgS85T1i08nEtXP6ok+WGJLlZnWEUWujY8rSG+jomsy1RwQpmkiLmSN FZkDbaFlYb7J809hDWNsxQBTC0+WPBIB1dtGzazSlISomHgeCw0V2CDrPsz8LC2vuo/L zKtATYZzAD+nd2v8hKR1V38uCXObUmQ20pvrj5Md8z+VswWiDNorLCk9XDqafezZyCIS MmWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nanZ2Yuf+smogPFzui8ns3+mDW2bGWBovedaONeccv0=; b=krA28Sgcd/RdRApzvcmzYR9+vFfqMlFJ8lGkk+Rxv2VKpQvWgzcJXA/sZ/1t97bSP/ QAC0lGSm4TY4cTza14Dov63mVzpRQvKDlOP5X5i2/i6kObZ3/gHjceTtyM/nxu1c1nqX WW9OQZfZo+GbZ7siszeSKwuW/vDGDr5/MWPj24fPLfCJU1exALwzBGKJjdi99bu/lyTO 77YbmcdHCZMPIG3/dDdtKJHiOyqEwwg+5WgPZv9tw8P3U4NYiZK39/Zv4/682uX7aHxA PnFqfihIbtLXzDcCEViJ8R2CoDhktVEPoyB67NHyHq4xhZKs162raHtF2yCZ/SnAEvRm aKEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=LxQdPAGc; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb8-20020a17090ae7c800b00252873f1500si1428020pjb.138.2023.05.17.02.22.03; Wed, 17 May 2023 02:22:19 -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=@microchip.com header.s=mchp header.b=LxQdPAGc; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229648AbjEQI4Y (ORCPT + 99 others); Wed, 17 May 2023 04:56:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjEQI4W (ORCPT ); Wed, 17 May 2023 04:56:22 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 471CA1738; Wed, 17 May 2023 01:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1684313780; x=1715849780; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=4S+mksSwEuy7jDabqK76rs9uXWBf27hYxYgzx1zFBEo=; b=LxQdPAGcCb0SYoZoOrHbKgLHCEywoa7jD0sieONUOdi/A8+TW8ExY6c0 q01Fam72lNetFHOTmTeb2HMk9IQ/DJcwpZUeMu/ZYQl1WTKnaPGHlPUkV U+c4qhueuR5IeXtfFNYDDRtoOrQmH3tTnMymCHyBneFWPRD6rqVJgRvpc U3i4X68ZUyB59TUMfondm39Rhx3o7XzfF4+17uar7A1JV9H4O12w5Dwya kb0h4RfZvHE0etc7pzR6VMlr7P8e7hPS3/pOL8GYUuOTtaXNUlSnYg71+ naVIWCuO5M701/zYXa+zBtrUr3rXETJ1bATGPhFQibIg2PNWTKIwhAHd7 Q==; X-IronPort-AV: E=Sophos;i="5.99,281,1677567600"; d="asc'?scan'208";a="152498435" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 17 May 2023 01:56:19 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 17 May 2023 01:56:18 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Wed, 17 May 2023 01:56:16 -0700 Date: Wed, 17 May 2023 09:55:55 +0100 From: Conor Dooley To: CC: , , , , , , , , , Subject: Re: [PATCH v4 2/5] dt-bindings: clocks: atmel,at91rm9200-pmc: convert to yaml Message-ID: <20230517-railway-babble-df75495cd312@wendy> References: <20230516051836.2511149-1-claudiu.beznea@microchip.com> <20230516051836.2511149-3-claudiu.beznea@microchip.com> <20230516-modulator-reason-1d3a754c6dd7@wendy> <131f3527-8ad8-bdd2-036d-6c8c61f69142@microchip.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cWROMdDqqGTQkPgl" Content-Disposition: inline In-Reply-To: <131f3527-8ad8-bdd2-036d-6c8c61f69142@microchip.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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 --cWROMdDqqGTQkPgl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 17, 2023 at 08:48:04AM +0000, Claudiu.Beznea@microchip.com wrot= e: > On 16.05.2023 15:58, Claudiu Beznea - M18063 wrote: > > Hi, Conor, > >=20 > > On 16.05.2023 15:00, Conor Dooley wrote: > >> Hey Claudiu, > >> > >> On Tue, May 16, 2023 at 08:18:33AM +0300, Claudiu Beznea wrote: > >>> Convert Atmel PMC documentation to yaml. Along with it clock names > >>> were adapted according to the current available device trees as > >>> different controller versions accept different clock (some of them > >>> have 3 clocks as input, some has 2 clocks as inputs and some with 2 > >>> input clocks uses different clock names). > >>> diff --git a/Documentation/devicetree/bindings/clock/atmel,at91rm9200= -pmc.yaml b/Documentation/devicetree/bindings/clock/atmel,at91rm9200-pmc.ya= ml > >>> new file mode 100644 > >>> index 000000000000..e5f514bc4bf7 > >>> --- /dev/null > >>> +++ b/Documentation/devicetree/bindings/clock/atmel,at91rm9200-pmc.ya= ml > >>> @@ -0,0 +1,153 @@ > >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > >>> +%YAML 1.2 > >>> +--- > >>> +$id: http://devicetree.org/schemas/clock/atmel,at91rm9200-pmc.yaml# > >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# > >>> + > >>> +title: Atmel Power Management Controller (PMC) > >>> + > >>> +maintainers: > >>> + - Claudiu Beznea > >>> + > >>> +description: > >>> + The power management controller optimizes power consumption by con= trolling all > >>> + system and user peripheral clocks. The PMC enables/disables the cl= ock inputs > >>> + to many of the peripherals and to the processor. > >>> + > >>> +properties: > >>> + compatible: > >>> + oneOf: > >>> + - items: > >>> + - const: atmel,at91sam9g20-pmc > >>> + - const: atmel,at91sam9260-pmc > >>> + - const: syscon > >>> + - items: > >>> + - enum: > >>> + - atmel,at91sam9g15-pmc > >>> + - atmel,at91sam9g25-pmc > >>> + - atmel,at91sam9g35-pmc > >>> + - atmel,at91sam9x25-pmc > >>> + - atmel,at91sam9x35-pmc > >>> + - const: atmel,at91sam9x5-pmc > >> Yet another combinations question for you... > >> With this binding the following is not possible: > >> > >> "atmel,at91sam9x5-pmc", "syscon" > >> > >> Is that intended? > >=20 > > No, I've just missed it. Same for the above. I'll have a new round and = fix it. >=20 > Though... shouldn't this have been detected by make dtbs_check? Only if there actually exists a dtb containing compatible =3D "atmel,at91sam9x5-pmc", "syscon"; that is enabled by the config that you are building with. =46rom taking a quick look: git grep "\"atmel,at91sam9x5-pmc\", \"syscon\"" arch/arm/boot/dts/at91sam9g15.dtsi: compatible =3D "atmel,at91sam9g15-pm= c", "atmel,at91sam9x5-pmc", "syscon"; arch/arm/boot/dts/at91sam9g25.dtsi: compatible =3D "atmel,at91sam9g25-pm= c", "atmel,at91sam9x5-pmc", "syscon"; arch/arm/boot/dts/at91sam9g35.dtsi: compatible =3D "atmel,at91sam9g35-pm= c", "atmel,at91sam9x5-pmc", "syscon"; arch/arm/boot/dts/at91sam9x25.dtsi: compatible =3D "atmel,at91sam9x25-pm= c", "atmel,at91sam9x5-pmc", "syscon"; arch/arm/boot/dts/at91sam9x35.dtsi: compatible =3D "atmel,at91sam9x35-pm= c", "atmel,at91sam9x5-pmc", "syscon"; arch/arm/boot/dts/at91sam9x5.dtsi: compatible =3D "atmel,at91sam9x5-pmc= ", "syscon"; There's only actually one place where you have this combination & it seems to get overridden by all of the more specific dtsi files that include at91sam9x5.dtsi. Hope that helps, Conor. --cWROMdDqqGTQkPgl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZGSWkAAKCRB4tDGHoIJi 0n3gAQCe16U0H1kSoUhYYNlGxAarRvNm6f9LyymQm8xl7FL32wD+Nf5z5eXtVZvs axfaAB+pfK2KqjdQtG6ZEnfYKZ4c/wg= =gglf -----END PGP SIGNATURE----- --cWROMdDqqGTQkPgl--