From patchwork Tue Nov 22 09:23:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 628030 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8451C43219 for ; Tue, 22 Nov 2022 09:23:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232577AbiKVJXz (ORCPT ); Tue, 22 Nov 2022 04:23:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232753AbiKVJXy (ORCPT ); Tue, 22 Nov 2022 04:23:54 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78F8949B56 for ; Tue, 22 Nov 2022 01:23:52 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id p8so22653841lfu.11 for ; Tue, 22 Nov 2022 01:23:52 -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=M0c8F3pQnElMN2xHZ1SlYuM5B9Kk5rY/ZkP6nm5e5lc=; b=G51+QcNUVp8RdBw9DUif1oIad+gpYHbOn3VC/yZxItAe/z11obzxzv7FiExZRijbbv +2pNbImieqLa2Q0zTYf6R93bsQih8yWPqAGTMRtkx9h8oDAySoW09w6SabpGnjzFQbUb 5BGW9VpfT57c99xjjuRxTeMP9Nt0bg8q4Esk0lMml1CDsKYD4z2wrZ8AJLYKxazAiJAq DsqxDh8FWo3yh7tBkMIwEWvCmsvpvbEydbPDWgt0tiSw+Zd0hVlpp6aljXbXH6DPSApK S/vqslIKIJmqr6NBymTRaDrN6fo6n8cYi8KACxcgIDConsENDlhMZI3kjYl8By4Tbjz5 x69w== 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=M0c8F3pQnElMN2xHZ1SlYuM5B9Kk5rY/ZkP6nm5e5lc=; b=ZaF8tIia0rwvbOlvg//BG9z1EsGpcDlZvmrj2lW8ylSyQRlrYDHYhxOoqUIw8xhmO3 xlTdbfBoDV88XWj01NiEWw+pmURNrW7Heqzuq/FYtKol4898S0ILC1oRnkHYG77c1sKw t+85HP8/El+5yNSM89ChkwpNpFQM5eO3iUq5YWCEr4k+i2w6sO8zLAxb14kKoIyjUoec 0D3VERFMhai1bLqSHQWUYUgnOp8IKPp/fy3oxC5klZJchmpUbJE+HTXsIsPFEPqejlmt rTv/TheMcfqTnMgXyyZrKoYJChopf0Qyc/is38+/rFZvPDwIDSTaDX6MTPwD/Qr1Lj// PXPg== X-Gm-Message-State: ANoB5plxW7+Hi2q4QkDCGUw3fzm16DlwoNviMyNTF0YXu4nc0QDmUCz5 3We+2rp0w9Gdew/HXekhYN6ykw== X-Google-Smtp-Source: AA0mqf5AdJrX8WFVMBoVFTGinA3SdZzsjZQoovSzg0Up+RVmfUzWNY4fnyc8t+WkuDD21nhoSaBqNg== X-Received: by 2002:ac2:5e7a:0:b0:4a2:6238:e7f9 with SMTP id a26-20020ac25e7a000000b004a26238e7f9mr7285472lfr.294.1669109030754; Tue, 22 Nov 2022 01:23:50 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id br31-20020a056512401f00b004b1a5086485sm2405609lfb.2.2022.11.22.01.23.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 01:23:49 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Robert Marko , Das Srinagesh , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Abel Vesa , Sibi Sankar , Melody Olvera Subject: [PATCH 2/2] dt-bindings: firmware: qcom,scm: narrow clocks and interconnects Date: Tue, 22 Nov 2022 10:23:45 +0100 Message-Id: <20221122092345.44369-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221122092345.44369-1-krzysztof.kozlowski@linaro.org> References: <20221122092345.44369-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SCM has clock inputs and interconnects only on some of the SoCs, so disallow them inb other cases, which makes the binding stricter. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Cc: Abel Vesa Cc: Sibi Sankar Cc: Melody Olvera --- .../bindings/firmware/qcom,scm.yaml | 44 ++++++++++++++++--- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml index fc986f2f5d30..8e6e9ebb343d 100644 --- a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml @@ -82,6 +82,32 @@ properties: description: TCSR hardware block allOf: + # Clocks + - if: + properties: + compatible: + contains: + enum: + - qcom,scm-apq8064 + - qcom,scm-apq8084 + - qcom,scm-mdm9607 + - qcom,scm-msm8226 + - qcom,scm-msm8660 + - qcom,scm-msm8916 + - qcom,scm-msm8953 + - qcom,scm-msm8960 + - qcom,scm-msm8974 + - qcom,scm-msm8976 + - qcom,scm-sm6375 + then: + required: + - clocks + - clock-names + else: + properties: + clock-names: false + clocks: false + - if: properties: compatible: @@ -100,10 +126,6 @@ allOf: clocks: maxItems: 1 - required: - - clocks - - clock-names - - if: properties: compatible: @@ -128,9 +150,17 @@ allOf: minItems: 3 maxItems: 3 - required: - - clocks - - clock-names + # Interconnects + - if: + not: + properties: + compatible: + contains: + enum: + - qcom,scm-sm8450 + then: + properties: + interconnects: false required: - compatible