Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4008672pxb; Tue, 19 Apr 2022 14:50:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaxvw9Ikq68ilEX8bDRxwqozEDxbs64lJhaMiGngQKvXvDGM/exnG9RJp0KxNq6PeP6Yo8 X-Received: by 2002:a17:903:1247:b0:156:25b4:4206 with SMTP id u7-20020a170903124700b0015625b44206mr17597849plh.146.1650405016003; Tue, 19 Apr 2022 14:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650405015; cv=none; d=google.com; s=arc-20160816; b=s42Jwc0LXyDw/oA7me3jTDjjVj89M/9sNgX1V1UZSi8YJHdLNwBjnUwXRUwugTRfs/ vswn8ZQ7O05JYInRG5LkyFtN9V0rfdBaBkBiXSbzy6MTgeb5HmS3fcSDH8B317yM6lnn YhxtQTJqMQNleqaxVgoMfKSFbtL71bJJ35zC9o5vfpcjpjkWkri9330RcdGHDV2VF0fZ g1fmCzZQx4aYnilmU7J8UXg5FJPazt5S76qoP/v65d9TU8BuqRzDCIgrEqadQ5S2usph poe7ekVch7ctNhx600fEegotN2HFC6KrKutNb2TEr1GgUO5PHwANQu+EDLSnWT1DiC6D q2zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=9u41AmvPYzaP5UxEoTmolh4l0tPcqavKOqVOLJJD3S4=; b=vQcEsBe9K6HjWoWmGiHhxvRFl0OIB/wXHxKYnr92mDjEXurdTEVP8+yDG+X6B8N4ME fjKyqYLlnPdUfgmpwiQlvQP8oIJXO26SlaIKfhUgFnvBpVPpW6qfvp1L5JUNGVca1Gpg Cwag83JwMP6+aj03krXWxUdK855EGEofUqx5DJIyyvTDDvdH7YaFGaDDbzAq+8BErBy5 +hyTMbmk0j0lwGF2vgKSIMG9PJrMQef38AitUV8v3BTbawE8pBXbkkMJdJLpNtdeFB40 xknFIP42nAcl0L5Q+A0kpOKQiOLSsTcu05vvbqDDC3AOoNbvqNqEqGqHfAs5yf0O2QLt 4QnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ifnn0Hal; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r10-20020a63e50a000000b003a283acb929si410475pgh.490.2022.04.19.14.50.00; Tue, 19 Apr 2022 14:50:15 -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=@bootlin.com header.s=gm1 header.b=ifnn0Hal; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350809AbiDSOn6 (ORCPT + 99 others); Tue, 19 Apr 2022 10:43:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233365AbiDSOnz (ORCPT ); Tue, 19 Apr 2022 10:43:55 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DE6721828; Tue, 19 Apr 2022 07:41:10 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 8137D24000E; Tue, 19 Apr 2022 14:41:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1650379268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9u41AmvPYzaP5UxEoTmolh4l0tPcqavKOqVOLJJD3S4=; b=ifnn0HaliB65Zi+kAJRPXi5a+jTdBu3WK28oWc6C177sY+9wmTGu2+9paSFyuEFrjwqb2I EWmhc7RgywHsmIZBb9pI0Ued52Cd7GVuNZsmVt63Tc26FASbndA/TAKJYDc96j5pQyNOdu fcYp1bnmDUwby5nsy3gnxN8NLoUnopiyswW2W7ktfnfeSQIXr4ulP7eyL+VtjVqYUL8PMj f7zQx6OMXad5pt3DJZpF8QdOa5WCux7Pu4/l4/lIq2tIi3X+a0BoN0+vRum89II7OH1qCS nbZrSCLzmE1NsrQeo7w8Btcm2ARDea8dHqdlyVBFfqroKGJjfWQumv3Lab1qbQ== Date: Tue, 19 Apr 2022 16:41:05 +0200 From: Herve Codina To: Geert Uytterhoeven Cc: Marek Vasut , Yoshihiro Shimoda , Bjorn Helgaas , Rob Herring , Krzysztof Kozlowski , Magnus Damm , Lorenzo Pieralisi , Krzysztof =?UTF-8?B?V2lsY3p5xYRza2k=?= , Rob Herring , linux-pci , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Sergey Shtylyov , Thomas Petazzoni , Clement Leger , Miquel Raynal Subject: Re: [PATCH v2 2/8] dt-bindings: PCI: renesas-pci-usb: Convert bindings to json-schema Message-ID: <20220419164105.14bf82cf@bootlin.com> In-Reply-To: References: <20220414074011.500533-1-herve.codina@bootlin.com> <20220414074011.500533-3-herve.codina@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Hi Geert, On Thu, 14 Apr 2022 10:28:47 +0200 Geert Uytterhoeven wrote: > Hi Herv=C3=A9, >=20 > On Thu, Apr 14, 2022 at 9:40 AM Herve Codina w= rote: > > Convert Renesas PCI bridge bindings documentation to json-schema. > > Also name it 'renesas,pci-usb' as it is specifically used to > > connect the PCI USB controllers to AHB bus. > > > > Signed-off-by: Herve Codina =20 >=20 > Thanks a lot for tackling this DT binding file! >=20 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/pci/renesas,pci-usb.yaml > > @@ -0,0 +1,134 @@ > > +# SPDX-License-Identifier: GPL-2.0 =20 >=20 > scripts/checkpatch.pl says: > WARNING: DT binding documents should be licensed (GPL-2.0-only OR BSD-2-C= lause) Right, changed to "GPL-2.0-only OR BSD-2-Clause" >=20 > > + reg: > > + description: | > > + A list of physical regions to access the device. The first is > > + the operational registers for the OHCI/EHCI controllers and the > > + second is for the bridge configuration and control registers. > > + minItems: 2 > > + maxItems: 2 =20 >=20 > reg: > items: > - description: Operational registers for the OHCI/EHCI controllers. > - description: Bridge configuration and control registers. Ok, changed. >=20 > > + > > + interrupts: > > + description: Interrupt for the device. =20 >=20 > maxItems: 1 >=20 > The description is not needed. Ok, changed. >=20 > > + > > + interrupt-map: > > + description: | > > + Standard property used to define the mapping of the PCI interrup= ts > > + to the GIC interrupts. > > + > > + interrupt-map-mask: > > + description: > > + Standard property that helps to define the interrupt mapping. > > + > > + clocks: > > + description: The reference to the device clock. =20 >=20 > maxItems: 1 >=20 > The description is not needed. Ok, changed >=20 > Missing "resets" and "power-domains" properties. >=20 > Missing description of the child nodes. "resets", "power-domains" dans child nodes added >=20 > > +required: > > + - compatible > > + - reg > > + - interrupts > > + - interrupt-map > > + - interrupt-map-mask > > + - clocks =20 >=20 > Missing "resets" and "power-domains". Added >=20 > > + - bus-range > > + - "#address-cells" > > + - "#size-cells" > > + - "#interrupt-cells" > > + > > +unevaluatedProperties: false =20 >=20 > Why doesn't "make dtbs_check" complain about the presence of > e.g. "resets" in the actual DTS files? >=20 > > + > > +examples: > > + - | > > + #include > > + #include > > + > > + bus { > > + #address-cells =3D <2>; > > + #size-cells =3D <2>; =20 >=20 > I think you should drop this (and the corresponding high addresses > below). >=20 Ok > > + > > + pci0: pci@ee090000 { > > + compatible =3D "renesas,pci-r8a7790", "renesas,pci-rcar-ge= n2"; > > + device_type =3D "pci"; > > + clocks =3D <&cpg CPG_MOD 703>; > > + reg =3D <0 0xee090000 0 0xc00>, > > + <0 0xee080000 0 0x1100>; > > + interrupts =3D ; =20 >=20 > power-domains =3D <&sysc R8A7790_PD_ALWAYS_ON>; > resets =3D <&cpg 703>; Ok >=20 > > + status =3D "disabled"; > > + > > + bus-range =3D <0 0>; > > + #address-cells =3D <3>; > > + #size-cells =3D <2>; > > + #interrupt-cells =3D <1>; > > + ranges =3D <0x02000000 0 0xee080000 0 0xee080000 0 0x00010= 000>; > > + dma-ranges =3D <0x42000000 0 0x40000000 0 0x40000000 0 0x4= 0000000>; > > + interrupt-map-mask =3D <0xf800 0 0 0x7>; > > + interrupt-map =3D <0x0000 0 0 1 &gic GIC_SPI 108 IRQ_TYPE_= LEVEL_HIGH>, > > + <0x0800 0 0 1 &gic GIC_SPI 108 IRQ_TYPE_LE= VEL_HIGH>, > > + <0x1000 0 0 2 &gic GIC_SPI 108 IRQ_TYPE_LE= VEL_HIGH>; > > + > > + usb@1,0 { > > + reg =3D <0x800 0 0 0 0>; > > + phys =3D <&usb0 0>; > > + phy-names =3D "usb"; > > + }; > > + =20 >=20 > ERROR: trailing whitespace > #249: FILE: Documentation/devicetree/bindings/pci/renesas,pci-usb.yaml:12= 7: > + $ Ok >=20 > > + usb@2,0 { > > + reg =3D <0x1000 0 0 0 0>; > > + phys =3D <&usb0 0>; > > + phy-names =3D "usb"; > > + }; > > + }; > > + }; =20 >=20 > Gr{oetje,eeting}s, >=20 > Geert >=20 > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m6= 8k.org >=20 > In personal conversations with technical people, I call myself a hacker. = But > when I'm talking to journalists I just say "programmer" or something like= that. > -- Linus Torvalds Thanks for the review, Herv=C3=A9 --=20 Herv=C3=A9 Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com