From patchwork Tue Nov 22 09:23:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 627591 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 92017C433FE for ; Tue, 22 Nov 2022 09:23:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232667AbiKVJXx (ORCPT ); Tue, 22 Nov 2022 04:23:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231773AbiKVJXv (ORCPT ); Tue, 22 Nov 2022 04:23:51 -0500 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9F5C25EBA for ; Tue, 22 Nov 2022 01:23:50 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id h12so17245241ljg.9 for ; Tue, 22 Nov 2022 01:23:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0U8XxawDGWCZzhMqQukKmwsffMYQ51SkEqy9nNuVT0c=; b=h0FsqIthkC8HTEetRPlBsWqyafaJq6Lm0EVShqc7hdQcLBOakjcQK/WU4rp1Pa0uLT LMLwe0hz/Ysn1euiYBVyZpMmtKYPqbksUk8GtjoHnzOiqyztpvPLyc6uQBcDyFdYm7hy Gu1UvMfRWaSOrbUotzzAi8r6vOJM6GIh07AEByviNnR1z0Ng6OFSHq3rZJlzzCMK/hM+ QcQWWXkP9Lp87ehDHmSiKNkKk9RR1FpwkeU+/7HY3MG6R46gX8Tvm6DEle/WAAt6de6v Uw5NOMb6xluufDEHg/JfNoiQYaKt3mpleFpAuqezx7cqaInRLE5bTNGANVOS36Acf96Q 9h2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0U8XxawDGWCZzhMqQukKmwsffMYQ51SkEqy9nNuVT0c=; b=uHTndRr0WsRyDw189gkIZV3GbE9Ued+d7zWnTmD9BEL2M0LG67PvUyzhSyX+ExCHQ7 mz5a0+vAbeckBT0HmtIFeOpNOTPImSnEc2hKUIpIrFLHH8GS7K9yS6TurdnrUEjNuyVh AB117cS4gId0NOc7PhwXKbxa9TugSUgCSmfWJJntPwaWfCTOxnexviyM5r95PkQZoX2R COY33ZDOF9zJjtgoPMQpxzTRulUUXU0fhACUbdPbCYNAfJkZWxYJwqgWRYAZ1faAW7ZN NkVZZeaK8EwQKO5aOFBu+YpgjjgtyUKfIDTsF6HLISzM7oqT0eDJT8pJ50JJTm9eMrkw 3JBQ== X-Gm-Message-State: ANoB5pkRevru8vtmDU1cHkFS5vbD5gvp4ImHsftWgctN9EEqYFEBMfNU 66+NqGnV6YFW8rVlUu20WAmLOQ== X-Google-Smtp-Source: AA0mqf6vgG7Plae1Er/CfRBduDzg0qcvzJd7Hj0Nhl71bndZ4HSmKfVtly3r5rgY9vjTEkAz3tEFzQ== X-Received: by 2002:a05:651c:1101:b0:279:73ba:8719 with SMTP id e1-20020a05651c110100b0027973ba8719mr6266ljo.294.1669109029052; Tue, 22 Nov 2022 01:23:49 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 01:23:48 -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 1/2] dt-bindings: firmware: qcom,scm: document MSM8226 clocks Date: Tue, 22 Nov 2022 10:23:44 +0100 Message-Id: <20221122092345.44369-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document the clocks (core, bus and iface) used on MSM8226 SCM. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Cc: Abel Vesa Cc: Sibi Sankar Cc: Melody Olvera --- Documentation/devicetree/bindings/firmware/qcom,scm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml index 25688571ee7c..fc986f2f5d30 100644 --- a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml @@ -111,6 +111,7 @@ allOf: enum: - qcom,scm-apq8084 - qcom,scm-mdm9607 + - qcom,scm-msm8226 - qcom,scm-msm8916 - qcom,scm-msm8953 - qcom,scm-msm8974 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