Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp150032pxb; Thu, 21 Apr 2022 19:48:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0qJI2RMPwskG0exqqQMpG3fwCKPUvZ/bFu7FkbL6wvCthYkpYzMXYDUhgjBuy79Rgyuj2 X-Received: by 2002:a17:906:d10f:b0:6e8:94b6:3631 with SMTP id b15-20020a170906d10f00b006e894b63631mr2107209ejz.576.1650595734118; Thu, 21 Apr 2022 19:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650595734; cv=none; d=google.com; s=arc-20160816; b=JO+WSPupAtIJDRo0TY8Xm1QkPiy80xhfPg4xMCQ85yfSkt6V6yRp/idTW/yF+gz0Nh JileehlLLqf00e58UZbtVfs6wEceQW4cXqbBYswhd9Zky2lXuBaWL2eozTTNEAvm3ILw IjTcaM3vPZoBRRV8G1eSmoz66uBa8UNKthKf7+du9PUZ15vdlE3vaMZkaCe7FAmmtbPm ZDA2r27hJg8DuGclRmFC3EVv9mkokliUzSuuEuAYTXSjEjecPnguBSFbOxTaTLuujoSb EXYKeAHbfeySMOR6fMBftBvGDKKIrJuMtaZ7lQTg6/STf4UnJLrXWfBEd9D4QgFJbpqP Qqjg== 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=Gu9XIPDQFJtF5X1LIwJgSFyBvY1NGDGQ+pRrZhn5KiY=; b=WCnI2/RbEc9FwWZjTNkLfHtwGsILb9sbvAeTxMb0AuqDg80qI2IVCJnoVeDa2L/QmA j3dsMbkhhQzPf7X1SR40o0twsvIdzLWNXn4DAVyP72OgrJOpNbLHrFe9oskr7VYmDW6d OSFH7l/IOkK9s7d9jFlstg21pgTJRl83SYyCjSInZwPd2jojD6twYWhn0lueysuDi6Z9 hVbR0DDp04XQhXkB7N9TsfPf/wTELRfhhxYn5NFkyW19gweUcB6E8X4NVCesKyNNPq5z 3zrFoaNeAFG1Fdfx54vvHRaJC/QMcoionn6H05uTFlYFkwKrceGoV1vybAKsRvyb0ncC 1umw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=GeLia+C9; 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 pj26-20020a170906d79a00b006df76385ca2si3378796ejb.322.2022.04.21.19.48.01; Thu, 21 Apr 2022 19:48:54 -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=GeLia+C9; 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 S1379133AbiDTNtG (ORCPT + 99 others); Wed, 20 Apr 2022 09:49:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379127AbiDTNtD (ORCPT ); Wed, 20 Apr 2022 09:49:03 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F09A421E0D; Wed, 20 Apr 2022 06:46:15 -0700 (PDT) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 930D14000D; Wed, 20 Apr 2022 13:46:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1650462374; 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=Gu9XIPDQFJtF5X1LIwJgSFyBvY1NGDGQ+pRrZhn5KiY=; b=GeLia+C9QE8jie0TY69D9ZmjKetBmS0vJX/CXbcYhUD/5S8pnohoodLfUas21s2Xk40UGB GP8EODtmGOitGKtwEXC5VUGV1Hw8wTthv7zqLTZmQkMpPrc/v8tJwiwe7XLqcpA+ronfv/ ix3jrqhvJX1EBYP3aMTFTfn1xfqTh/lsWDY8OC/l8sarpeyA/MBTqDIChKcA+Q6p6xLTfX vlGtYPICVNJMIivU0TS/QCDws6rUaUCvenJeqwx3H6Jwji9zmZ2isYF7w8IQBDAO58wi8p Us0mcCq7cFLJPH8AC9ZGD2igjVA4R1KJ04bPpsM4CrNND5iacJT5+wEyucCyxQ== Date: Wed, 20 Apr 2022 15:46:11 +0200 From: Herve Codina To: Rob Herring Cc: Marek Vasut , Yoshihiro Shimoda , Bjorn Helgaas , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , Lorenzo Pieralisi , Krzysztof =?UTF-8?B?V2lsY3p5xYRz?= =?UTF-8?B?a2k=?= , linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, 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: <20220420154611.7dd34c24@bootlin.com> In-Reply-To: References: <20220414074011.500533-1-herve.codina@bootlin.com> <20220414074011.500533-3-herve.codina@bootlin.com> <20220420144411.2d369b49@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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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 Rob, On Wed, 20 Apr 2022 08:18:50 -0500 Rob Herring wrote: ... > > > > + bus-range: > > > > + description: | > > > > + The PCI bus number range; as this is a single bus, the range > > > > + should be specified as the same value twice. =20 > > >=20 > > > items: > > > const: 0 =20 > >=20 > > Well, some other values are present in some dtsi files such as > > 'bus_range =3D <1 1>;' or 'bus_range =3D <2 2>;' in r8a7742.dtsi. > >=20 > > The constraint is to have the same value twice. Is there a way > > to specify this constraint ? =20 >=20 > Yes, but probably not worthwhile. Just drop it as pci-bus.yaml already=20 > defines it. Instead of fully dropping the property, don't you think that keeping the given description here can be a way to express that the same value is needed twice ? >=20 > > > > + > > > > + "#address-cells": > > > > + const: 3 > > > > + > > > > + "#size-cells": > > > > + const: 2 > > > > + > > > > + "#interrupt-cells": > > > > + const: 1 =20 > > >=20 > > > All these are defined by pci-bus.yaml =20 > >=20 > > Right. > > Replaced by: > >=20 > > "#address-cells": true > > "#size-cells": true > > "#interrupt-cells": true > >=20 > > Is that correct ? =20 >=20 > You can just drop them completely. Ok for #address-cells and #size-cells but not for #interrupt-cells. Dropping #interrupt-cells makes 'make dtbindings_check' unhappy: --- 8< --- $ make dt_binding_check DT_SCHEMA_FILES=3Drenesas,pci-rcar-gen2.yaml LINT Documentation/devicetree/bindings CHKDT Documentation/devicetree/bindings/processed-schema.json /home/hcodina/xxx/Documentation/devicetree/bindings/pci/renesas,pci-rcar-ge= n2.yaml: properties: '#interrupt-cells' is a dependency of 'interrupt-map' from schema $id: http://devicetree.org/meta-schemas/interrupts.yaml# SCHEMA Documentation/devicetree/bindings/processed-schema.json /home/hcodina/xxx/Documentation/devicetree/bindings/pci/renesas,pci-rcar-ge= n2.yaml: ignoring, error in schema: properties DTEX Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.examp= le.dts DTC Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.examp= le.dtb CHECK Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.examp= le.dtb $=20 --- 8< --- So I keep=20 "#interrupt-cells": true Regards, Herv=C3=A9 --=20 Herv=C3=A9 Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com