From patchwork Tue May 16 10:52:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 683082 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 3ECA6C77B7A for ; Tue, 16 May 2023 10:52:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232447AbjEPKwu (ORCPT ); Tue, 16 May 2023 06:52:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232220AbjEPKwt (ORCPT ); Tue, 16 May 2023 06:52:49 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E14951B6 for ; Tue, 16 May 2023 03:52:47 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-96aa0cab88dso785820766b.1 for ; Tue, 16 May 2023 03:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684234366; x=1686826366; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9EHv3ysgWqpDvJne4zzetbniLNKwuwcftVNB7lMePiI=; b=yJFrK6Auu1WAYPkKLNAjoCY6y5xTy6C0ggygP803Nt4uVP5fd9LfYcTmvDZrDCEBIe I0lSjd8j061/YMDDxpHsc140w2KOVlUNPFKhkERsu5ByVoz+Ngv5+dvfQoLVm5WsaNBD KqbgwF+AIslhMZWTJCDa02JaWg0UPc3PZ9jK/nos2lUQmFS+9WqEs1KYHwyMNG05f4lo EEY9DUvG54jRGg5XvG53OaA/wsC+MiUfQiSAfmB8nGER5hf/LVvfCpznRP6gS72Da5Z6 q+nQCoLnBs4KGH3UcYfiDkJCZhH60JRGHkioq6mziR5dn3i9UFIVE5a+EH2P57f4ow9/ U00Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684234366; x=1686826366; 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=9EHv3ysgWqpDvJne4zzetbniLNKwuwcftVNB7lMePiI=; b=X/Serdfs4saZEEjCh1fqZvREVlSWnBXE4Slw9cR6s9K2cdoNU22XkbknT/9+bNjGij HBQnNPB0uuVA01W2iXYr8c2cOMhl+adtRtqxx4o5PqeOneG6FY4yhJCxIEn0tmG97SoE LbzojxcxbmGw6q21BJZ06ni33Mc7YIvCRe8uYpYWtBmNWr+M88PROyxJUOmkj4DvjgBe Cd5cafz/r4NGGVmo7EPU5IslebjDu9a0Aiha4x/p/6cztmHk7z79vniXTbK1IZ4YFDaQ CP2eN0AilvAk/AEGqS8lj3Vd60ArXRa3addLpLlq0Ws+nBAdZ7xmVMFJMIH9GWxBEnFi ALuw== X-Gm-Message-State: AC+VfDwnRqIIx90uPcgWZnL8oxOwJ+nzn23F26CrPrUIWuAWEl30FAaK gFebWZd/NVLoej5vDV5owIiwXg== X-Google-Smtp-Source: ACHHUZ5Uh/dzH5jYCI5KzhaC6eCeKzNAtH8Ml/nK7r5kIuoHaiMfgqythN4HHaJcZq2CpDu1nfe8oQ== X-Received: by 2002:a17:907:97ce:b0:96a:4bca:8408 with SMTP id js14-20020a17090797ce00b0096a4bca8408mr20224189ejc.60.1684234366295; Tue, 16 May 2023 03:52:46 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:77d1:16a1:abe1:84fc]) by smtp.gmail.com with ESMTPSA id d1-20020a1709067a0100b0096b0e93193asm3679019ejo.90.2023.05.16.03.52.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 03:52:45 -0700 (PDT) From: Krzysztof Kozlowski To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Taniya Das , Venkata Narendra Kumar Gutta , Vinod Koul , "Bryan O'Donoghue" , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring Subject: [PATCH v2 1/3] dt-bindings: clock: qcom,gcc-sm8250: add missing bi_tcxo_ao clock Date: Tue, 16 May 2023 12:52:39 +0200 Message-Id: <20230516105241.30091-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 The initial SM8250 GCC driver added in commit 3e5770921a88 ("clk: qcom: gcc: Add global clock controller driver for SM8250") already consumed it on the clock. This fixes warnings like: sm8250-xiaomi-elish-csot.dtb: clock-controller@100000: clock-names: ['bi_tcxo', 'bi_tcxo_ao', 'sleep_clk'] is too long Fixes: 98394efb48f5 ("dt-bindings: clock: Add SM8250 GCC clock bindings") Reviewed-by: Konrad Dybcio Acked-by: Rob Herring Reviewed-by: Stephen Boyd Signed-off-by: Krzysztof Kozlowski --- Changes in v2: 1. Re-word commit msg and fixes tag (Konrad) 2. Add tags --- Documentation/devicetree/bindings/clock/qcom,gcc-sm8250.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-sm8250.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-sm8250.yaml index b752542ee20c..ead6665b9a45 100644 --- a/Documentation/devicetree/bindings/clock/qcom,gcc-sm8250.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-sm8250.yaml @@ -23,11 +23,13 @@ properties: clocks: items: - description: Board XO source + - description: Board active XO source - description: Sleep clock source clock-names: items: - const: bi_tcxo + - const: bi_tcxo_ao - const: sleep_clk required: @@ -47,8 +49,9 @@ examples: compatible = "qcom,gcc-sm8250"; reg = <0x00100000 0x1f0000>; clocks = <&rpmhcc RPMH_CXO_CLK>, + <&rpmhcc RPMH_CXO_CLK_A>, <&sleep_clk>; - clock-names = "bi_tcxo", "sleep_clk"; + clock-names = "bi_tcxo", "bi_tcxo_ao", "sleep_clk"; #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>; From patchwork Tue May 16 10:52:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 682519 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 75DD6C7EE2D for ; Tue, 16 May 2023 10:52:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232460AbjEPKww (ORCPT ); Tue, 16 May 2023 06:52:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232453AbjEPKwv (ORCPT ); Tue, 16 May 2023 06:52:51 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E6E91FEF for ; Tue, 16 May 2023 03:52:49 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-96adcb66f37so710091266b.1 for ; Tue, 16 May 2023 03:52:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684234367; x=1686826367; 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=HpFcS6/U9h/RuUhlPguO2VViFIPJnqooFYL21zecDWc=; b=oSwt8ld8+bVPwcINZk+d5vBEei0mVDF0WO/J6YM7l5ysuBQvGHgKIXSd3W1NTAhgu9 06XkGhYdkyewpOZkUUmE7Va9dC+PjzAwflNxd3VPu9zyGe9pesszAYKPsimh0f2whMpn WUkyh/qpp5ygRQVkVWsuDVqaDI7R++cimIYYyL17PuI/fKwCZhk7ydYqxa52j+VzFE+L /k4CEqYTuyLTc91kyamhimmfQUVAuMtmhRscbb04CW7DZwC1wcJaFJ2yZLgop48dn5++ picHH5Z9j9hw+Cjkufhup3hIw8EQEA0x1VpPVDpUncqsIVGrf+r7T/LaZtms3kWV6nuC JYZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684234367; x=1686826367; 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=HpFcS6/U9h/RuUhlPguO2VViFIPJnqooFYL21zecDWc=; b=Rky8Rre3B2OV+HRL1+xQ56LqzpIATGHB3pnZy/1ppqf/vU45AcsnjN+LfoA+nQbvOH YmvF/CrBcU76/eXfOz4+P6/oM190WqzOg/Mie8vukzX7YAx7y8hOqWziFOBkMQ+/yuUz G1QUaUJwNMLxAblU9yBziV4mbkwNrh7IAkooIpW+/QIk7NHKxbVe216CFMlm3wZXQf3e 06A2G5tz+Vi4pqsvzy8DTCSxD9QG8JOLM1pnUHaEeT1TWmDrlNtLvjiHCC3kQ2NyWRNe 2MfVU73sXchBX9Oo1U/7Ui+xARWMliaDvEldJLb2LpIcQeBbdW/6dqVqTv3tUAqyGKn3 PjtA== X-Gm-Message-State: AC+VfDyWB+AvZBteuikJMh+cYXAqsZmWH5Yyq11iH4dIpw0rtNIJDsK5 r+z38aNnZWco1L7bOA53e8c7GA== X-Google-Smtp-Source: ACHHUZ4WIw3zHChy/kqbDEGUphyZGJjoFdQUKQslKtrGgvitcaudx5Cg32uWGTNUi43IpRsUm7pY/w== X-Received: by 2002:a17:907:6d23:b0:96a:349a:6c91 with SMTP id sa35-20020a1709076d2300b0096a349a6c91mr20924070ejc.23.1684234367633; Tue, 16 May 2023 03:52:47 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:77d1:16a1:abe1:84fc]) by smtp.gmail.com with ESMTPSA id d1-20020a1709067a0100b0096b0e93193asm3679019ejo.90.2023.05.16.03.52.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 03:52:47 -0700 (PDT) From: Krzysztof Kozlowski To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Taniya Das , Venkata Narendra Kumar Gutta , Vinod Koul , "Bryan O'Donoghue" , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring Subject: [PATCH v2 2/3] dt-bindings: clock: qcom, gcc-sc7180: document CX power domain Date: Tue, 16 May 2023 12:52:40 +0200 Message-Id: <20230516105241.30091-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230516105241.30091-1-krzysztof.kozlowski@linaro.org> References: <20230516105241.30091-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The GCC clock controller needs CX power domain, at least according to DTS: sc7180-trogdor-pompom-r3.dtb: clock-controller@100000: Unevaluated properties are not allowed ('power-domains' was unexpected) Acked-by: Rob Herring Signed-off-by: Krzysztof Kozlowski --- Changes in v2: 1. Add tags --- .../devicetree/bindings/clock/qcom,gcc-sc7180.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml index 06dce0c6b7d0..8bf9b6f49550 100644 --- a/Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml @@ -32,6 +32,10 @@ properties: - const: bi_tcxo_ao - const: sleep_clk + power-domains: + items: + - description: CX domain + required: - compatible - clocks @@ -45,6 +49,8 @@ unevaluatedProperties: false examples: - | #include + #include + clock-controller@100000 { compatible = "qcom,gcc-sc7180"; reg = <0x00100000 0x1f0000>; @@ -52,6 +58,7 @@ examples: <&rpmhcc RPMH_CXO_CLK_A>, <&sleep_clk>; clock-names = "bi_tcxo", "bi_tcxo_ao", "sleep_clk"; + power-domains = <&rpmhpd SC7180_CX>; #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>; From patchwork Tue May 16 10:52:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 683081 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 89ED7C7EE23 for ; Tue, 16 May 2023 10:52:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232452AbjEPKww (ORCPT ); Tue, 16 May 2023 06:52:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232455AbjEPKwv (ORCPT ); Tue, 16 May 2023 06:52:51 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 717221B6 for ; Tue, 16 May 2023 03:52:50 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-953343581a4so2188816366b.3 for ; Tue, 16 May 2023 03:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684234369; x=1686826369; 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=hF51UpgXYYq6zOrvaemkFFkj4jV0bZfFI3phEQ7J+70=; b=KcpQ7OOlvZ3QBwGOV4qt4YegK0tdde4lYGzpKBgCHp8hVukZ0J2v+/KQXEG4SjfVq0 8HGZe+cxJGmmw7qzuD1aJvPb6eg5rgiAU4NzNplf3AgudGxUIOiOF9pvO6Dgv8UkyM9p y1LsG/0S0a72DNAfcrD6dQZsNPRL2cOknmvGdNPRZv2h4ebdOj7VarABTAbGyxX2qzsl KpVu1wWk5ImS1yx/KCmRBLF0WXEVd/VGuqMhgxcMu7qzcoO+FQJ410AV30xT67wQ96BS MT9K99VSuer1ygp5x1bIMeEpQMg9B9EQPm/XH/7MVTx9JRMj1Q99TGC4DrmlOkeICF3v Pkdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684234369; x=1686826369; 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=hF51UpgXYYq6zOrvaemkFFkj4jV0bZfFI3phEQ7J+70=; b=eZweIR4uw+Nx4CwTUuT8h52ogV+Q3JVmTynDOsD8l29WI8VhUvEF2Z58TYcZgf1gmO z7Tivu2PtO7le6Eu0/F2X/saHPjhWzPDWvQgvtR3bujiSlGea1B+WZzUBJo+8pQc00nn ohxAMRKMUk1eagO4iwC6m1Tqx7qj/xk4UoQwb8JrtR0mmkIHPptLPpitS7yh7m8cKXSG 1g9RZHAT/BeJs8PbcTq3QA+7+DHvWRiaC3X1zN2/c6FuqADQRxi4gYKIGEmNGeECK9CF u9UEmhLP5/jNEq1DAzr0HzMoaEQUYnj9JDD/32Z3XAf8hhR0Vmxu/1sYS5sLpf430Zxg 4EYA== X-Gm-Message-State: AC+VfDyDXo5Nerqm7kBUOUYb2NRPBuHUAYt7BxyDtmnCzzz0UM19m/kc tihZKE8nZ32VfSyKgVIZcb8hFA== X-Google-Smtp-Source: ACHHUZ52EQ6KF6tJIdMYLES2qCnQbPEYBFEgWdMCmPqFzcahNpu23hDoTCwtUoRRZYFqZPCciw9ExA== X-Received: by 2002:a17:906:ef0d:b0:94e:ed5d:c864 with SMTP id f13-20020a170906ef0d00b0094eed5dc864mr36254964ejs.19.1684234368991; Tue, 16 May 2023 03:52:48 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:77d1:16a1:abe1:84fc]) by smtp.gmail.com with ESMTPSA id d1-20020a1709067a0100b0096b0e93193asm3679019ejo.90.2023.05.16.03.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 03:52:48 -0700 (PDT) From: Krzysztof Kozlowski To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Taniya Das , Venkata Narendra Kumar Gutta , Vinod Koul , "Bryan O'Donoghue" , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring Subject: [PATCH v2 3/3] dt-bindings: clock: qcom, gcc-sc7280: document CX power domain Date: Tue, 16 May 2023 12:52:41 +0200 Message-Id: <20230516105241.30091-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230516105241.30091-1-krzysztof.kozlowski@linaro.org> References: <20230516105241.30091-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The GCC clock controller needs CX power domain, at least according to DTS: sc7280-herobrine-crd-pro.dtb: clock-controller@100000: Unevaluated properties are not allowed ('power-domains' was unexpected) Acked-by: Rob Herring Signed-off-by: Krzysztof Kozlowski --- Changes in v2: 1. Add tags --- .../devicetree/bindings/clock/qcom,gcc-sc7280.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-sc7280.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-sc7280.yaml index 947b47168cec..ff0b18bbb0fc 100644 --- a/Documentation/devicetree/bindings/clock/qcom,gcc-sc7280.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-sc7280.yaml @@ -43,6 +43,10 @@ properties: - const: ufs_phy_tx_symbol_0_clk - const: usb3_phy_wrapper_gcc_usb30_pipe_clk + power-domains: + items: + - description: CX domain + required: - compatible - clocks @@ -56,6 +60,8 @@ unevaluatedProperties: false examples: - | #include + #include + clock-controller@100000 { compatible = "qcom,gcc-sc7280"; reg = <0x00100000 0x1f0000>; @@ -71,6 +77,7 @@ examples: "pcie_1_pipe_clk", "ufs_phy_rx_symbol_0_clk", "ufs_phy_rx_symbol_1_clk", "ufs_phy_tx_symbol_0_clk", "usb3_phy_wrapper_gcc_usb30_pipe_clk"; + power-domains = <&rpmhpd SC7280_CX>; #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>;