Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4154235rwb; Mon, 16 Jan 2023 19:10:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXslSnr49V6vZlmwnAckwCdDRRal+wtCUkUySXFuNqg+nQiIvJrO9hdTlkdhoz5q41oLdKDx X-Received: by 2002:a17:907:d490:b0:870:8e31:7e33 with SMTP id vj16-20020a170907d49000b008708e317e33mr1268769ejc.15.1673924999757; Mon, 16 Jan 2023 19:09:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673924999; cv=none; d=google.com; s=arc-20160816; b=L82OfZvNCnotwdC1pYEe1TthxoF1jcnE5ETaVuHeiDMR3IJRt6t1lrT5IihlP77nSw jUXNP8V5S5bDC37UQxEt0HWK0kFK1ZqaHVVDdJPAjm44gIrjiXqrBIcgQ9LI+izQc++J QBOrCl1iN88qzJ1Shp1R2rqUAJyIkv9d5eei7gyP2etdRSainC9VxP0p8NAjQiJlx7Ll 3gTqCvrBQw8sD6rOoaeHxnY19WmTBt0CmQrMEV7Get15/CJ3gp7329fbrcgWT17YmGHM KZG/+jaefJNgU1xL/ArrY/+FEcMsTczUYDZLWdx4R6GedFSm+W3ZsvEl2VckNdR3IwlG u44g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XCZtLSeYxlaylMMqCjkYeGrkxr3IGAiBffdyUXZtj3g=; b=OvnEXzfzXFWu/TmnEBNrF1gzD/8ZKWHgN1Z/oI7fNRSGs5F0lzFrWU0FaO4/hnrWzE aao8AOn8N0q/gyGeiHx46njKwRlrHCdcy4B9bQsZxv8jZNBwchS5K9pAZrgDwBluziMg 5m44XX9zuvTIYB4SLF1nhY3CHOa2lO5DE0qz2VaVQBPty0wAtGiwrchT39wrI70s5biz vV1NNTLRpIW4M+Bmc0QbPRytJJXCDl6TLm0O8AnKdoz88cr9DxFQRxFo/0/WmoFFtKUz IXIcaATqgZQwqnyzscuQRYy7Pp0NJYXwXORwZf0D42+fn6dfGWklAH0BmPpFim8cNAqt mgzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cRB0EMXo; 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 hs6-20020a1709073e8600b007c0f2d1f654si34852247ejc.20.2023.01.16.19.09.48; Mon, 16 Jan 2023 19:09:59 -0800 (PST) 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=cRB0EMXo; 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 S235235AbjAQCxF (ORCPT + 49 others); Mon, 16 Jan 2023 21:53:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235239AbjAQCwe (ORCPT ); Mon, 16 Jan 2023 21:52:34 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE294303E8 for ; Mon, 16 Jan 2023 18:48:53 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id h12-20020a05600c314c00b003da50afcb33so4877894wmo.4 for ; Mon, 16 Jan 2023 18:48:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XCZtLSeYxlaylMMqCjkYeGrkxr3IGAiBffdyUXZtj3g=; b=cRB0EMXo9umVjDVxUdWP9ZfoBeFzSpu+Gg2VOP9H6V0dX+XKKRh972Cwwuf4IUKX7B XD89Xhta2vj7Sq6BZ2qI1sk/A9P5tkcc3dYREjlqeDWWQQ6+euH02VbkcvBXFztzxx8C OKkEMxZyMXMhJtSY8T5yLDIbpJb2IuyZ22WxsTpku6/i+YmyeUfd8b2NY+7EJ+7967kQ ahiHRrmaVHbTvz9NJuGrrX3oZyv53TUQh/AD/rFSKy0RTfp9wtx9mJopPPG3z9WV+2Tg DXv2D0EGiDmCkE3/VSrBO9sYl7pBilLIBwUG5emi7SzsZgIST0XdE1AvG8PYKeH2SBv0 bJ6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XCZtLSeYxlaylMMqCjkYeGrkxr3IGAiBffdyUXZtj3g=; b=BrIhQD+hnPZs0GXSV2qGsnRREVOk4ReStcmFv2NSa/KknxW88D7y9sBfNdOVqHjwSM wQEIGbtEQjIOy2QSn6Qi4YWfsXJitEUMtVmCjRl+ttjD6auvFFUgTegj12Wmu3rygRa/ b2qwpRRJLkALoeyELznDRVIw0F/TazpB9yO5B/MPgpEXYElZ4SvMT8zmIeeZSQaPPcI9 nOcv0NV+9k+2MINdPiUeRtLlGdRphs7jCp/CJo3NGqviBM5FKqqyJaRM7/8c4sghiarU IfjSslXY8qnkVxoFkry2OmzNK+LtT7+x8WdJ40QCytuI7VHsEMyDvJa8rbKlHN5aK95w VPzg== X-Gm-Message-State: AFqh2krzp+OAdkSuhcSuPCKeS/e1I+nEnpZszfjY5Vah+CkZGtVr63Lv hjsdvVC6ISjGWnyB20nCCjVNLA== X-Received: by 2002:a05:600c:2309:b0:3da:fb90:3ca4 with SMTP id 9-20020a05600c230900b003dafb903ca4mr1409000wmo.21.1673923732524; Mon, 16 Jan 2023 18:48:52 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id n7-20020a05600c4f8700b003c6bd12ac27sm39482660wmq.37.2023.01.16.18.48.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 18:48:52 -0800 (PST) From: Bryan O'Donoghue To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, djakov@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: bryan.odonoghue@linaro.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, benl@squareup.com, shawn.guo@linaro.org, fabien.parent@linaro.org, leo.yan@linaro.org, dmitry.baryshkov@linaro.org Subject: [PATCH v3 3/8] dt-bindings: interconnect: Exclude all non msm8939 from snoc-mm Date: Tue, 17 Jan 2023 02:48:41 +0000 Message-Id: <20230117024846.1367794-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230117024846.1367794-1-bryan.odonoghue@linaro.org> References: <20230117024846.1367794-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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,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 New properties should be defined before the allOf. Move the patternProperties definition to before the additionalProperties: false in this file. Exclude all non msm8939 compats from containing a matching patternProperties. Signed-off-by: Bryan O'Donoghue --- .../bindings/interconnect/qcom,rpm.yaml | 73 +++++++++++-------- 1 file changed, 42 insertions(+), 31 deletions(-) diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml index 5e6be4e79201e..d9d243c5514b5 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml @@ -62,6 +62,37 @@ properties: power-domains: maxItems: 1 +# Child node's properties +patternProperties: + '^interconnect-[a-z0-9]+$': + type: object + description: + snoc-mm is a child of snoc, sharing snoc's register address space. + + properties: + compatible: + enum: + - qcom,msm8939-snoc-mm + + '#interconnect-cells': + const: 1 + + clock-names: + items: + - const: bus + - const: bus_a + + clocks: + items: + - description: Bus Clock + - description: Bus A Clock + + required: + - compatible + - '#interconnect-cells' + - clock-names + - clocks + required: - compatible - reg @@ -108,37 +139,6 @@ allOf: - description: Bus Clock - description: Bus A Clock - # Child node's properties - patternProperties: - '^interconnect-[a-z0-9]+$': - type: object - description: - snoc-mm is a child of snoc, sharing snoc's register address space. - - properties: - compatible: - enum: - - qcom,msm8939-snoc-mm - - '#interconnect-cells': - const: 1 - - clock-names: - items: - - const: bus - - const: bus_a - - clocks: - items: - - description: Bus Clock - - description: Bus A Clock - - required: - - compatible - - '#interconnect-cells' - - clock-names - - clocks - - if: properties: compatible: @@ -237,6 +237,17 @@ allOf: - description: Aggregate2 USB3 AXI Clock. - description: Config NoC USB2 AXI Clock. + - if: + not: + properties: + compatible: + contains: + enum: + - qcom,msm8939-snoc + then: + patternProperties: + '^interconnect-[a-z0-9]+$': false + examples: - | #include -- 2.38.1