Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp730550pxb; Fri, 22 Apr 2022 10:01:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4OEpANavVn+XU7HOCxq4YFKIjYzI4tMi5w9Qpge54nahgQcjPAZnUiBSh+E2Ttzn1jjh6 X-Received: by 2002:a05:6e02:148c:b0:2cc:169d:87d5 with SMTP id n12-20020a056e02148c00b002cc169d87d5mr2445617ilk.214.1650646884949; Fri, 22 Apr 2022 10:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650646884; cv=none; d=google.com; s=arc-20160816; b=Jr4spHQZ7wgeUCl76kHvGC4q1+c2j6vh5e6AiUPI9m0fKysMXHCRt5yuClP5EIAmGc 8kTVJ+S3FoSYBM3yLIdKPt/CgfUJ2Z5RcPLQGBHpwkHjsHlxRGMPkFuIxesMQIWPrkjk hhkM81M3tHgC0/UR3PXR22zSWam0RP3fqw6MSfF08NN1AhJ1ESu/C3XHvLZ/sLiqVLsC WZyQGqJw2yXvBmk4SZicm8vSEedj+uY2s3RmvVj1hFJ6xkQ9F1VtxCXBRb8AZZN2zWca FPFGwTd52z/FVAWrVeQmYCSF5PfAtxQM1S4SnUMNQz+Yx5i0+H9LDdjzMFAl0TUyoNVT 49kQ== 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; bh=t4s+i9BdWcasHydBitg8Y8XSjODVgS+jeiuoMRAUa0g=; b=Wm5hWG9di/hnkNRbmjhFvwlUZAKEI3HwkaVupKj+SRybjrrWjz6LhnhW2VX523xI4y qLQfXA8BeIos2nNFVognseVnDHxVNMSJkaWV0o8+6x8c4JuYrD2KX7rxrab7Dvtzgofb AFidjxDV86gnQdbvAL1w8+4Dgb0ILd/g+E9VKUeTf4GXmywV7I+HwEeieT9hRM3AkUYY 1d6AR/aDL18c5etVQef8pABcYO5KBOK+rLo0JFCd4EOHmeVny4Uaoxk/KJKTPTydAp7p G99lW0lUSMmIBh2/yRqgoiIG+7KDsCuH/7QnUUCss2daJbe5g4/eFmXfXJI9yEHXP5aq J7cQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n21-20020a056638265500b0032a715e5833si3864205jat.37.2022.04.22.10.01.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:01:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6120269722; Fri, 22 Apr 2022 10:01:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382559AbiDTVkv (ORCPT + 99 others); Wed, 20 Apr 2022 17:40:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356105AbiDTVks (ORCPT ); Wed, 20 Apr 2022 17:40:48 -0400 Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 232C1369F6; Wed, 20 Apr 2022 14:38:01 -0700 (PDT) Received: by mail-oi1-f178.google.com with SMTP id w127so3540322oig.10; Wed, 20 Apr 2022 14:38:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=t4s+i9BdWcasHydBitg8Y8XSjODVgS+jeiuoMRAUa0g=; b=Q6k7shlhp11hY+lXT6vDvUtN4tcjqTfDKWNs1bAu/5i48KFTKWr/+uQv7eXsBgrKfs jJCprKnQfkZsycyFjUGtV0/wtNhL9+5VqesXQXq0DsJEpDhYBtbrAHdjkjPEPUfyiXL+ qvAHgXSV7q7IuLVEpC9JUow9zw3U+8NcUjvsONytud22BNh5c3JaB5L0IgGFPq+TmuGn ft7+lvXgPc6T1wcxYHRf5cueGqRSBLLXJ4OQbCEdUOGXXhWluSPDCX43E9pM72e30uSM uaonzreKzahU8AU/u9Q3Wh6mq0hL74l15xphWdFPXfeeuRiGRogQMlBIPvdwsNqv5aHg O9tw== X-Gm-Message-State: AOAM5329Fw9flsZH7xMsBCa1NW4vl8uC7AYeSSmbGCtLNFRwRHdILD8r rqrxODaMonTEGmhFBRzIfg== X-Received: by 2002:a05:6808:23c1:b0:322:7334:e447 with SMTP id bq1-20020a05680823c100b003227334e447mr2626853oib.288.1650490680412; Wed, 20 Apr 2022 14:38:00 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id bk35-20020a0568081a2300b003226178fe7bsm5205483oib.33.2022.04.20.14.37.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 14:37:59 -0700 (PDT) Received: (nullmailer pid 1894112 invoked by uid 1000); Wed, 20 Apr 2022 21:37:59 -0000 Date: Wed, 20 Apr 2022 16:37:59 -0500 From: Rob Herring To: Herve Codina Cc: Marek Vasut , Yoshihiro Shimoda , Bjorn Helgaas , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , 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: References: <20220414074011.500533-1-herve.codina@bootlin.com> <20220414074011.500533-3-herve.codina@bootlin.com> <20220420144411.2d369b49@bootlin.com> <20220420154611.7dd34c24@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220420154611.7dd34c24@bootlin.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE autolearn=no 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 On Wed, Apr 20, 2022 at 03:46:11PM +0200, Herve Codina wrote: > 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. > > > > > > > > items: > > > > const: 0 > > > > > > Well, some other values are present in some dtsi files such as > > > 'bus_range = <1 1>;' or 'bus_range = <2 2>;' in r8a7742.dtsi. > > > > > > The constraint is to have the same value twice. Is there a way > > > to specify this constraint ? > > > > Yes, but probably not worthwhile. Just drop it as pci-bus.yaml already > > 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 ? Yeah, that's fine. > > > > > + "#address-cells": > > > > > + const: 3 > > > > > + > > > > > + "#size-cells": > > > > > + const: 2 > > > > > + > > > > > + "#interrupt-cells": > > > > > + const: 1 > > > > > > > > All these are defined by pci-bus.yaml > > > > > > Right. > > > Replaced by: > > > > > > "#address-cells": true > > > "#size-cells": true > > > "#interrupt-cells": true > > > > > > Is that correct ? > > > > 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=renesas,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-gen2.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-gen2.yaml: ignoring, error in schema: properties > DTEX Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.example.dts > DTC Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.example.dtb > CHECK Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.example.dtb > $ > --- 8< --- > > So I keep > "#interrupt-cells": true You should also drop 'interrupt-map' and 'interrupt-map-mask'. Rob