Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp520351rwi; Wed, 2 Nov 2022 14:55:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6W4Iw8TQBwUoZg0rnmrMRTtLW3Zpmc8pfbfIuFyiHWW5C671KbdYjeHARqv1g/eJY3J8WU X-Received: by 2002:a17:907:6eab:b0:78d:4c16:a687 with SMTP id sh43-20020a1709076eab00b0078d4c16a687mr25799648ejc.392.1667426102259; Wed, 02 Nov 2022 14:55:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667426102; cv=none; d=google.com; s=arc-20160816; b=WM+KJ9hOfo5dZ4SJu80AI8lQpESCI0CGcXdxvag1aM5BlqapQ76iOyUdhDb5/vYMTR KPCEl96KExCMhyVKpiI1LxOBS01kzdgnrwo/zKluT/dx2SiYXeSnoGtPcCjBo1+CV+L1 L3NUTbVIyh+BbxpuADppu5HGOsEDATbzvMEaLi+QifnmYfAT69aSHxGDj6doD2EgZS4C qU5GpomFAQn+YdTFw8pNCJxyZ8wcuBhFaYTXmzqqqLclorYuCJBJQRRLetShRcQ+mmbY tAjZP3CFrENgo8ICBT7vghYSdXhugpeT6elipV6Ju5T8C4VT5Ug1jrsnqxeMDoPcOPSk m3tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=SMdd6W9zqTykplxA9atF92tm5CBcUP1U7yvf5vUxJ94=; b=otMtpqe6lCdTKGQbe2PMo1WvZiihoRjx+fabGEA74g+gus5icBui6ZEAiKjxgQDCr8 llCCmKugSDolbIkMaqxlIoovo8fW7zXAXLV4kfdYndZA7o6d9Kt4tJqmpbO/Tb776xZm jJmDXlsNpH1GcrCfb+C/6wpfn6TI9dEZof+1QsLwd22OgbmvuHercGbK7m1XZFWCZvXf iRSMNjyS9bRMV12ZtH/tIZdyUEu1HjLNISW3SRDoSFquyJz7C0fLY2iU8hdsZQUsyh8f IctRqSFoIz/jeHVUjskmfNzADbowaKuMIiHmLzAGjowDWK1dmG6M96h8M01RoKbsoY1q OZ5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qB3heRME; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a50e60c000000b0045bdff8a884si14488306edm.268.2022.11.02.14.54.13; Wed, 02 Nov 2022 14:55:02 -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=@linaro.org header.s=google header.b=qB3heRME; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230495AbiKBVLl (ORCPT + 97 others); Wed, 2 Nov 2022 17:11:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231288AbiKBVLk (ORCPT ); Wed, 2 Nov 2022 17:11:40 -0400 Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93D2EDFDD for ; Wed, 2 Nov 2022 14:11:38 -0700 (PDT) Received: by mail-qk1-x729.google.com with SMTP id g10so6110198qkl.6 for ; Wed, 02 Nov 2022 14:11:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=SMdd6W9zqTykplxA9atF92tm5CBcUP1U7yvf5vUxJ94=; b=qB3heRMEENXq8LFOVv7rITGt3zC5JeYlR5KthvYqttf4k6cy+wq7eT+G5PU0Y1gk+T hIDyJ8EDJGC4oefNczl6sxRZJYwkHx7zYy0szk3EL69mVeSGtEEgYnxqWp1eJAqGUtDD FzvCzCNYtJKaplARHRsXpCDCC/UuQgXbAqcA45tzUMB+KOnfLMBtdvJCUfKBMUfT+F1r C6yUhosIbNAemIdWXHBCwCI1WMUJo/j4cJyUvfJvPQZrBI1zf/cBQehcdITcpYrDiyeD L6tOkEedAVUpFSq63IEZskKrZ/HwskotE8pb/OT0LprAO9P7dw5nUXd7C51ynN90uOQQ cqMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SMdd6W9zqTykplxA9atF92tm5CBcUP1U7yvf5vUxJ94=; b=eRc7AGTbttZsvp4X8xhFmdXQg4pfUfptaVER5vtN4hgNQRnnzUoSeE4AS7a4Te1//G 7mHdoWZ97Y28EUMFjnxLRWEVf2X1IreLjNGAVZ9NhpN53kLkKXxpj0LNpPfT0w6ozKBr ye4i4+JkfDoL2nHI4FHQ826sDcJcXAxz7Gp82NKatMKJB5SLaa6ZRelS9HX33EEEVZQm bS4X9dw0QNXBGeJWClUuElfw6pjS2VQmrcgRAgodL0X7XbZOf4TwZBXtZsS6051v7muw 6UR4OCCxIXsJqSSNB5o3VWCyeYOj63fGNxX0jr0vLd47KyfsjfEpSsADuHUTuaYlarYx GZiA== X-Gm-Message-State: ACrzQf0bRh/zF3u9OXSaS1D3kPbnf+kvmtbcOHVkT6kjGQczoBIc4Qrn XKg7h7k9pHg5+lC/ON/oP+5j2574aShAGQ== X-Received: by 2002:a37:ef05:0:b0:6fa:630:2b4f with SMTP id j5-20020a37ef05000000b006fa06302b4fmr19416018qkk.41.1667423497764; Wed, 02 Nov 2022 14:11:37 -0700 (PDT) Received: from ?IPV6:2601:586:5000:570:28d9:4790:bc16:cc93? ([2601:586:5000:570:28d9:4790:bc16:cc93]) by smtp.gmail.com with ESMTPSA id h10-20020ac846ca000000b0039853b7b771sm7139821qto.80.2022.11.02.14.11.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Nov 2022 14:11:37 -0700 (PDT) Message-ID: <1a7fd1fd-4f0d-bec3-ddd5-7c6a99a2ab01@linaro.org> Date: Wed, 2 Nov 2022 17:11:35 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH v3 1/3] dt-bindings: interconnect: Remove required reg field Content-Language: en-US To: Melody Olvera , Andy Gross , Bjorn Andersson , Georgi Djakov , Rob Herring , Krzysztof Kozlowski Cc: Odelu Kukatla , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221026190520.4004264-1-quic_molvera@quicinc.com> <20221026190520.4004264-2-quic_molvera@quicinc.com> <64d0e5ef-fd36-6f25-2c39-00e8e1346af7@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <64d0e5ef-fd36-6f25-2c39-00e8e1346af7@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 31/10/2022 19:29, Melody Olvera wrote: > > > On 10/27/2022 8:29 AM, Krzysztof Kozlowski wrote: >> On 26/10/2022 15:05, Melody Olvera wrote: >>> Many of the *-virt compatible devices do not have a reg field >>> so remove it as required from the bindings. >> and some virt have it... This should be probably separate binding or if >> the list is small - allOf:if:then. > I attempted this; however I'm still seeing failures in dtb_check. I've added this > to the binding; does this look correct? >  allOf: >    - $ref: qcom,rpmh-common.yaml# > +  - if: > +      properties: > +        compatible: > +          contains: > +            enum: > +              - qcom,qdu1000-clk-virt > +              - qcom,qdu1000-mc-virt > + > +    then: > +      required: > +        - compatible No, because we talk about reg, not compatible. You should not require reg instead for some compatibles... but then the schema is getting complicated. It's difficult to give you recommendation because I do not know what are all these "virt" interconnects. Why some have unit address, why some do not? Best regards, Krzysztof