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 0A04CCA1002 for ; Fri, 30 Aug 2024 15:18:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc: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=YTht8e7ILUy4Qizeq4sMyOuf78p1wwO5OJ6HsJqyXVA=; b=v0ZFiKXpzjwjVRpEhZmBzxdbhj D2PERaEvnz+8YzWgraHhxQbvamjOH5U3cOtWSee3A3wOgLg5lM8/FgJXgHJ9vJc+cg/tLMlldhDRx W2spfgHHYy/c9soHtgNhwFlqIk6TmRp1WOSbR/OEONTxjFpxh05wyNBToVfxHf0XP0eh3PUrcovaM 6Lix6burRpEXQbqYA9v9TzR+24ruDHM+ZjV1nKYl5gBtjAen5lYJBpjexWUxAHOKUxbW4yEST8khw cnDqA/Rt7IWdTOfoe+5hzErNunLtUrFS/nDqxOSLKcu7qSnaN8BZLBAN5z5VL5vfpYgZjSjtDwLsQ 7rQ9PNrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk3Nz-00000006kdO-0SSn; Fri, 30 Aug 2024 15:18:03 +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 1sk3N6-00000006kQD-0EXh for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 15:17:10 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 1B471A44AF2; Fri, 30 Aug 2024 15:17:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6703C4CEC2; Fri, 30 Aug 2024 15:17:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725031026; bh=INyY8kzYL6NFQlWqGfro8S2POcahnLhYvWoyR/3H+6o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hIyvcV8xvK++jbnFO50FJzssMBGVHaa051mEeKlsU8GQ9Il3ChMM0vxHnRu5+fgTb 64P0xsn4l4eh6G5wvCJxyeZoNkoR0cvOM2sl9QqVrB7gGG5QZNKG2C+1n27yD0+wk9 rXj43F/Gotz8adRGsTBl7hfswZdTHCpdMprSjJ/5/BKAun8BQ5WeB/iAU6GqpsZVAv STT2IDkHo2hEcC1QVCOy83V1BQJtXbEkdslyAHqltV8Mly1v4mr+CQgijquaZ2E5p9 1dRPtctGRApKWYTljSJQBUC92rd+yWeoxZmy6UPdSAhjM58vU9wYsoxeqb6mj1Vxsk K1OTbnk4RtTWg== Date: Fri, 30 Aug 2024 16:17:02 +0100 From: Conor Dooley To: Fabio Estevam Cc: broonie@kernel.org, linux-spi@vger.kernel.org, otavio.salvador@ossystems.com.br, heiko@sntech.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/2] dt-bindings: trivial-devices: Add a reference to spi-peripheral-props.yaml Message-ID: <20240830-rockfish-shun-da3e42b69f1d@spud> References: <20240829201315.3412759-1-festevam@gmail.com> <20240829201315.3412759-2-festevam@gmail.com> <20240830-anchor-glucose-f8dcc1b0fd16@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Dq5SpshxUndbzuAM" Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240830_081708_295276_410914B6 X-CRM114-Status: GOOD ( 21.61 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --Dq5SpshxUndbzuAM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 30, 2024 at 12:05:20PM -0300, Fabio Estevam wrote: > Hi Conor, >=20 > On Fri, Aug 30, 2024 at 11:14=E2=80=AFAM Conor Dooley = wrote: >=20 > > Since those don't come from spi-peripheral-props, not really the correct > > justification (although why they don't, I'm not sure). If you still saw > > dtbs_check complaints after the first patch, I maybe the controller > > schema is missing a reference to spi-controller.yaml? >=20 > I changed the first patch as suggested: >=20 > --- a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml > +++ b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml > @@ -29,6 +29,10 @@ properties: > description: > Chip select used by the device. >=20 > + spi-cpha: true > + > + spi-cpol: true > + > spi-cs-high: > $ref: /schemas/types.yaml#/definitions/flag > description: >=20 > spi-rockchip.yaml does reference spi-controller.yaml, but I still get > dtbs_check complaints after the first patch. >=20 > $ make CHECK_DTBS=3Dy rockchip/rv1108-elgin-r1.dtb -j12 > UPD include/config/kernel.release > SCHEMA Documentation/devicetree/bindings/processed-schema.json > DTC [C] arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dtb > /home/fabio/linux-next/arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dtb: > display@0: 'spi-cpha', 'spi-cpol' do not match any of the regexes: > 'pinctrl-[0-9]+' > from schema $id: http://devicetree.org/schemas/trivial-devices.yaml# >=20 > I would appreciate some suggestions on how to fix this warning. Ah, I think I suggested something garbage, because I misread the diff, as my quoted mail evidences. I was really trying to suggest putting spi-cpha: true spi-cpol: true in trivial-devices.yaml, but I didn't notice that the patch was to spi-peripheral-props rather than trivial-devices. These properties are defined (for reasons I don't quite understand) in spi-controller.yaml and applied to children of the controller node by that binding and I wanted to avoid the redefinition. --Dq5SpshxUndbzuAM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZtHibgAKCRB4tDGHoIJi 0mUqAQCneNd0cvKzjfOEhaMynX4R/HOTN6dY6quVuiDHkr+T5wEA8fi611+D43Oo DzGp1GUrFCByDvVmbdIRmMSHQ1QO8AA= =R3u1 -----END PGP SIGNATURE----- --Dq5SpshxUndbzuAM--