From patchwork Tue Feb 15 20:15:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 542814 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 BF42CC4332F for ; Tue, 15 Feb 2022 20:16:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244063AbiBOURE (ORCPT ); Tue, 15 Feb 2022 15:17:04 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240454AbiBOUPx (ORCPT ); Tue, 15 Feb 2022 15:15:53 -0500 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0737AEB169 for ; Tue, 15 Feb 2022 12:15:43 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id b38so125603ljr.12 for ; Tue, 15 Feb 2022 12:15:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6GT01Bt5rwCOjSLQQeIHh7n+6HZ2KwW6Q5RymmBrtD0=; b=f6iP67siNjcx4yf58aS3d+F/7nqamMQ2Iv7Kh7Vgbpv2r5Q+9GKaajMbWxgruvrZE4 TqQ0Kk2KDAtlddqhBnQvKeevoTL/MtmDEvjs422N7FtzwtMdLeEAujye4R/QwbKP0Yr9 +bJKuCae7HBTp/U9v3AyGY3ILnQLMkNnIGu18Y0K1gxL1VlCLn4IRrMaaiXFzQOtvB6r qeLXC0RRiJHuWajGSOARzYciIH1tFm5QhpS/QQLmeEyF3QNM46h1QEKbCcQYouBvPd0E 4ouxj8aMjaVa/tWL2MPIR96Man72HZi/YbcqGaSJIY9XK53o0/E6AECsrcQ5HvxnjguB 7aAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6GT01Bt5rwCOjSLQQeIHh7n+6HZ2KwW6Q5RymmBrtD0=; b=oK1RQ1G6iQZK8uFTJW0iOzSghvjDmljxKkF5QNQbdXphmkZEpZT3rZ6sbu9ZwskRa7 +FPV6LswKsgwt4anL6HFciegvKqQ3T3qtUwr43TrojUuNCFjwyBjfRUxHEZjo7vF07/d D1btlgAmuUiQf3WQ6pIHgvNKUpOsacn7XbvJzQ2QIsVxH9XZ2BsiMjCNoQS58gEyHuGZ 3ieLUIUQbnX0ldMnVZfbHoqgcVRk1k+pnwgTk+s+mOdP+ePMEM9PhTh/yDKTRzYqjNqr iAtdWpRDyW64c2RHkbPXo8CN0BaUVLZ6sdm1dLPbxbtUHX9D/cD/0ejzKFDngF/Qr/nM 4w9w== X-Gm-Message-State: AOAM531MKlT6ZvK2KvL/Hnz1lm5mnzvC0wd9sJo8iscjfgq/BIWifD3B LhY/PihdCBIOa+JnxOeVXUxBpg== X-Google-Smtp-Source: ABdhPJxH77Emm6xQMmIH2ZeTSqzn+PQxjFppSlngq/qMnP22VuzonAHWZrrMyjop5tWdjKU6LntBkg== X-Received: by 2002:a2e:bf1b:: with SMTP id c27mr505719ljr.67.1644956141367; Tue, 15 Feb 2022 12:15:41 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id k16sm4548419ljg.111.2022.02.15.12.15.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 12:15:40 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Stephen Boyd , Michael Turquette , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/5] dt-bindings: clocks: convert SDM845 Camera CC bindings to YAML Date: Tue, 15 Feb 2022 23:15:35 +0300 Message-Id: <20220215201539.3970459-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220215201539.3970459-1-dmitry.baryshkov@linaro.org> References: <20220215201539.3970459-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Convert clock/qcom,camcc.txt to clock/qcom,sdm845-camcc.yaml. Signed-off-by: Dmitry Baryshkov Reviewed-by: Stephen Boyd --- .../devicetree/bindings/clock/qcom,camcc.txt | 18 ------ .../bindings/clock/qcom,sdm845-camcc.yaml | 63 +++++++++++++++++++ 2 files changed, 63 insertions(+), 18 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/qcom,camcc.txt create mode 100644 Documentation/devicetree/bindings/clock/qcom,sdm845-camcc.yaml diff --git a/Documentation/devicetree/bindings/clock/qcom,camcc.txt b/Documentation/devicetree/bindings/clock/qcom,camcc.txt deleted file mode 100644 index c5eb6694fda9..000000000000 --- a/Documentation/devicetree/bindings/clock/qcom,camcc.txt +++ /dev/null @@ -1,18 +0,0 @@ -Qualcomm Camera Clock & Reset Controller Binding ------------------------------------------------- - -Required properties : -- compatible : shall contain "qcom,sdm845-camcc". -- reg : shall contain base register location and length. -- #clock-cells : from common clock binding, shall contain 1. -- #reset-cells : from common reset binding, shall contain 1. -- #power-domain-cells : from generic power domain binding, shall contain 1. - -Example: - camcc: clock-controller@ad00000 { - compatible = "qcom,sdm845-camcc"; - reg = <0xad00000 0x10000>; - #clock-cells = <1>; - #reset-cells = <1>; - #power-domain-cells = <1>; - }; diff --git a/Documentation/devicetree/bindings/clock/qcom,sdm845-camcc.yaml b/Documentation/devicetree/bindings/clock/qcom,sdm845-camcc.yaml new file mode 100644 index 000000000000..c61314caf692 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,sdm845-camcc.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,sdm845-camcc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Camera Clock & Reset Controller Binding for SDM845 + +maintainers: + - Bjorn Andersson + +description: | + Qualcomm camera clock control module which supports the clocks, resets and + power domains on SDM845. + + See also dt-bindings/clock/qcom,camcc-sm845.h + +properties: + compatible: + const: qcom,sdm845-camcc + + clocks: + items: + - description: Board XO source + + clock-names: + items: + - const: bi_tcxo + + '#clock-cells': + const: 1 + + '#reset-cells': + const: 1 + + '#power-domain-cells': + const: 1 + + reg: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - '#clock-cells' + - '#reset-cells' + - '#power-domain-cells' + +additionalProperties: false + +examples: + - | + #include + clock-controller@ad00000 { + compatible = "qcom,sdm845-camcc"; + reg = <0x0ad00000 0x10000>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; +... From patchwork Tue Feb 15 20:15:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 543799 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 61B2FC35276 for ; Tue, 15 Feb 2022 20:16:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243981AbiBOURH (ORCPT ); Tue, 15 Feb 2022 15:17:07 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230355AbiBOURB (ORCPT ); Tue, 15 Feb 2022 15:17:01 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9410EB17A for ; Tue, 15 Feb 2022 12:15:43 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id u16so196221ljk.2 for ; Tue, 15 Feb 2022 12:15:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=m9NbJtEvv0ukMJBaopDs5ubGBPdRqOGbN+OGXiRZPTY=; b=MPqP9JnBGs3iOr+qashv95B4yvxgsK2DsKqkPCvh3mgaz72zoU9ki8uYx7p08a5aHA eNTfHpMYgDEesp1q1G/M2IYVfgeevtYKDxA8c6zCLN7Km8DeiXk0Xxj7EKJeMFRrQV3F gIPlI/KdWYQoCsKbVTVjL+aRF0dsfvropn+lH/QsDdM70FD/yVNtiv8KPL3YM9ypvI8M 3QD+uKrfDRlK3GMH0jk+6IgGOXrFs4eczTbyYEFOAwq4+fO9H76Z8RAJLilQ/T40Bu9w O5QPsz9brHqJS7RK0P1FNQAKTouDpHEpJwIF/70EAAJa6PPvE2BS2U+rTKyamjHJTMvC vHFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=m9NbJtEvv0ukMJBaopDs5ubGBPdRqOGbN+OGXiRZPTY=; b=BzHcrNaG2G4Y1dC9rA9u6VTRAS/YyzG8znoE8QWaTfG2DF9PejTf4OyfTjVs+3Pq9E i1o4dpOlZWEuXTZaTJljnOU91BjYftm3ABh2VbAdFcIc11BR2ePZ5+yDvu2YWNbJloGd lvWA0BoTcvDtIJt/ZfXP+vgBbNhdLr9GNytdkwvl6v5QuSC5jzabG2PQYhM0W8x+ZmfG 7SMdpJ+St1a0jI/t8f1fj7Ancp/gySs8bEdo4u0EPtsi61AlrAxfWiRY4NSbfOglcN20 rcusEPm0QnmMMKAn++5nTdvHIMvwl+2adWszTu+Unqq+cJiVgYdkqgzsH0f4hE81lsAj 5a4A== X-Gm-Message-State: AOAM531TrXIRMlGGHN+fTSNhCCFnVNsRxywTprj/c+WNgqtmKs865IrA K61ztDVTCrab6SB+txDl9RGpmw== X-Google-Smtp-Source: ABdhPJxaRI/+wZH1B7MIjCeyOlSNzv2Yf30wRAMvNNzhlVclgrEwkjKIEQjWYAOE2oypjLfsX7qZWw== X-Received: by 2002:a2e:9c04:: with SMTP id s4mr494486lji.431.1644956142095; Tue, 15 Feb 2022 12:15:42 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id k16sm4548419ljg.111.2022.02.15.12.15.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 12:15:41 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Stephen Boyd , Michael Turquette , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/5] dt-bindings: clocks: qcom,sdm845-camcc: add clocks/clock-names Date: Tue, 15 Feb 2022 23:15:36 +0300 Message-Id: <20220215201539.3970459-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220215201539.3970459-1-dmitry.baryshkov@linaro.org> References: <20220215201539.3970459-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The driver can parse bi-tcxo clock from the clocks passed in the device tree. Specify it in schema. Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/clock/qcom,sdm845-camcc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,sdm845-camcc.yaml b/Documentation/devicetree/bindings/clock/qcom,sdm845-camcc.yaml index c61314caf692..d4239ccae917 100644 --- a/Documentation/devicetree/bindings/clock/qcom,sdm845-camcc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,sdm845-camcc.yaml @@ -56,6 +56,8 @@ examples: clock-controller@ad00000 { compatible = "qcom,sdm845-camcc"; reg = <0x0ad00000 0x10000>; + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "bi_tcxo"; #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>; From patchwork Tue Feb 15 20:15:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 543801 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 1B671C4167B for ; Tue, 15 Feb 2022 20:16:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240454AbiBOURE (ORCPT ); Tue, 15 Feb 2022 15:17:04 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242713AbiBOURD (ORCPT ); Tue, 15 Feb 2022 15:17:03 -0500 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C910EB328 for ; Tue, 15 Feb 2022 12:15:44 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id bn33so170350ljb.6 for ; Tue, 15 Feb 2022 12:15:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Th2VzxKA5njhVR7C6q0Seii6kGVYOgIuJRxukrhBkgQ=; b=jVDYQhALWivot1jBnBvcoyYcVd5SLvZKGd4ue9SRYEZRNU3V67F+nEcyISvPjwyRZt e/sb096n882re8IahjbMNoWrgQ7ZG9tVbuwmWOf4kz6lTCgxlbP7artQMDSWEvW5oTz+ mWBtfCacT+n50WGH8COe4AXe+rjyg36BJo07j5cPiVFlLnRAw6uqjjbswQ9zJELUAoc8 Tf/UMXfmLY8Yf8tPUhLcFbNRiU4dAEZ32R6v2ESx4Ec0tKZYUCYbnK+WJQKoCaY5VD+y e1dnK2NtltN5C3aOwuPaM3arDvVfAsWECtDk0m/WIjSehB50Wz4dSO7IoWubUMTYUIEo BrsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Th2VzxKA5njhVR7C6q0Seii6kGVYOgIuJRxukrhBkgQ=; b=ypPWGXVooAZ8GMSN/f3a6/VA1lvPf352aE8crzuTotJ2soWJgGVId8E1E8jjAPSEmF x/tF/y4rL5owxcn1PRc6wJ0sJiI1dHcSt3FAD2yBX+6cGFTsmJ8ZLzs9FxBqTEo1nmzq fNSglbhIjipPgTmgVHaFtEsWg9TYBfuENEGuGFDNOxCxHvRlBDWAkSaX92UQd7ZEyWKo VhCJ/VyRd3FuJievqHWpok9ckRKn5Eh97vIH6QdSSougrprR2N1HvqXq4cwRtohC6k1y 9eFv2YrmSzn94ZEE/JWdPe0Z+Tn8hdDi5J/XzGPpq5re0A3IP4f36zN6/elkRBatDQsm 3taQ== X-Gm-Message-State: AOAM533E8ICQaNrgs/24ohexe3SWlpLtWEuLnlsInZzrxQwl5/F73c0v fJoBYuXEL2bH/6/3BzY2pQ3Ehw== X-Google-Smtp-Source: ABdhPJyJzRz3LwsbW2JO7/ugaMGb55TgHovMgFBeG8ndCSD7iqVy6oMb2rwTj1pbePh020cZVO+8pg== X-Received: by 2002:a2e:7f14:: with SMTP id a20mr501557ljd.320.1644956142858; Tue, 15 Feb 2022 12:15:42 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id k16sm4548419ljg.111.2022.02.15.12.15.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 12:15:42 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Stephen Boyd , Michael Turquette , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/5] arm64: dts: qcom: sdm845: add bi_tcxo to camcc Date: Tue, 15 Feb 2022 23:15:37 +0300 Message-Id: <20220215201539.3970459-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220215201539.3970459-1-dmitry.baryshkov@linaro.org> References: <20220215201539.3970459-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Declare TCXO clock used for the Camera Clock Controller on SDM845. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index cfdeaa81f1bb..9288bcd3475b 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -4139,6 +4139,8 @@ clock_camcc: clock-controller@ad00000 { #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>; + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "bi_tcxo"; }; dsi_opp_table: dsi-opp-table { From patchwork Tue Feb 15 20:15:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 543800 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 50BECC35272 for ; Tue, 15 Feb 2022 20:16:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242649AbiBOURF (ORCPT ); Tue, 15 Feb 2022 15:17:05 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243473AbiBOURD (ORCPT ); Tue, 15 Feb 2022 15:17:03 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 874EFEB335 for ; Tue, 15 Feb 2022 12:15:45 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id j15so16183596lfe.11 for ; Tue, 15 Feb 2022 12:15:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=289/KRcXVcnS1cCQf6Ylol+IbGt3fnLTiUWFx0ZifHU=; b=KzYHgYSUpFP3q5+s3QyhWqexkkOlfiRzO73vnK/LoLeOfoqJ/HIFz4agRS5YWTLk7v NevGSZ32B6WWyOlzDbtPoPQyMd5k3xXdD0TuC3jnt6aEKyh4YlGg5OUJLdTUAr0v7ibe wDb9MxZSi3JFxu04HmNfkBK5F1SinPs06sLGVI9JwoFHv/YRugMrHJkKfGnq3eFYXIdM 5zVej9lK0lgq+LT70nixO/ZSL5I/X4aeOMwPiHc18BE6sDmo1X2qSOoazT3jRegwyF6h XE/Qxkm32qDxlP8TIIW1rGGQ0u+gkh9UC7DjKZ6itiHuLbiI4EW9zqlyHaUkdcukGmi4 1T1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=289/KRcXVcnS1cCQf6Ylol+IbGt3fnLTiUWFx0ZifHU=; b=4cDjFPwnH8/Hvk0jAVfQO/I1FCmo2NeHm8XlThlnPbLQuFjFhfIt4Vbj7xkZTIxpvN AE/eC5tqeUmEv+8QdEVJ1YqKQQWiw3dQKu5Alz2FmCzG5Z0Wu+ZgHcdxXsTmGKucTDH1 BGTmmX6LvGZv5g/XoQzuGWdaSUmWMkiWu2jgURL3hzOIZufPF8PJT4xnBgEzIM3Xvlii NPS6Wm/UlMxKh2uT6FxLRENrepLTYDEkHhwtkHzTbCwI1pWqLJEvo2WCd/ZiEAC0+k6n 0i0Wk0man+9ql2YbjG1AfBY9MZvpc590t1tH0fq7T+lmjHg2PzICLOudSwcIlaxs7/vF lAzw== X-Gm-Message-State: AOAM532w2SE/UJHeZoSpXlptoFKMCus/WtzxkY/gxcTZUc3QLMkgZgOM qHzXL3Guhwms5NMeT0+qmEh0uw== X-Google-Smtp-Source: ABdhPJyIEQrGOXrpemV0qqsQDBWBeeEye1u1Iumt5gTShQ0bbEzhs5uLX3H/tZ8L4yUaMOsDm1Mjsg== X-Received: by 2002:a05:6512:3087:: with SMTP id z7mr566466lfd.446.1644956143839; Tue, 15 Feb 2022 12:15:43 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id k16sm4548419ljg.111.2022.02.15.12.15.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 12:15:43 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Stephen Boyd , Michael Turquette , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 4/5] arm64: dts: qcom: msm8996: add cxo and sleep-clk to gcc node Date: Tue, 15 Feb 2022 23:15:38 +0300 Message-Id: <20220215201539.3970459-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220215201539.3970459-1-dmitry.baryshkov@linaro.org> References: <20220215201539.3970459-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Supply proper cxo (RPM_SMD_BB_CLK1) and sleep_clk to the gcc clock controller node. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 91bc974aeb0a..7a46f0f67cbb 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -679,8 +679,10 @@ gcc: clock-controller@300000 { #power-domain-cells = <1>; reg = <0x00300000 0x90000>; - clocks = <&rpmcc RPM_SMD_LN_BB_CLK>; - clock-names = "cxo2"; + clocks = <&rpmcc RPM_SMD_BB_CLK1>, + <&rpmcc RPM_SMD_LN_BB_CLK>, + <&sleep_clk>; + clock-names = "cxo", "cxo2", "sleep_clk"; }; tsens0: thermal-sensor@4a9000 { From patchwork Tue Feb 15 20:15:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 542812 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 EC45CC35275 for ; Tue, 15 Feb 2022 20:16:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244021AbiBOURG (ORCPT ); Tue, 15 Feb 2022 15:17:06 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243992AbiBOURD (ORCPT ); Tue, 15 Feb 2022 15:17:03 -0500 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62AD5EBAC8 for ; Tue, 15 Feb 2022 12:15:46 -0800 (PST) Received: by mail-lj1-x22d.google.com with SMTP id e17so176348ljk.5 for ; Tue, 15 Feb 2022 12:15:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=T2+DDOdrcGPnlAZTACHXV/AJiHKfc3Ic3cTglmWdDWE=; b=ydYV9zG2iFm+pJ4khvAGMrd/aSo++Tqsib0wOG+sW86UpRfWodrilh1PlbjFliOlzu lKbyE3MXUU8N8BxxvnEvAJ7c7fnVY7haE5YfrIOJY0BlCk4XSwv+77o0TRbbqRF1eYq5 3r35IydfamM/GoTe292eZyB8KBjp/80bGRNu/pDs2kogMiMAzsG0Dc3eOWZtWPWXXzaC nxK8XUDHe6CFr/VzuzvSXtOqePVtesjaNXB1gG7CCND+FImywbJ1D9iHfI5dmFeAaLGk awK6Rn//QzTY4Zw7KafFf9GwnqmAg1phpspfLnB1fxBB9SjPtwgOG9Jdx+VybSDzJgJj JfmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=T2+DDOdrcGPnlAZTACHXV/AJiHKfc3Ic3cTglmWdDWE=; b=FqjIEq9ISnKdjQjyh87OHZRhA6QskHzd/XPK/nnk2ANfUXVh6XmXP/1UP32jR6PtD3 6oKbX7ektNmdKMRobTxj7Ht3rzAuzpzmBo0Ygi6X2iFkejxCprirFmbNi+zx7AucorTK 30hpGMVHNg6KU1jogD24eBazTOhdfUEUUzcxmKI2SDihPkHX9an1aNzdSd/IsT+Np1Q4 H1VaJ6HKhie3VdowJ2+Eske6mz5hodw0inxg//BtdRJSBFF6FforHYOKobd3WXTzrXCl Ere2vOyZBJdodDNOwoLONW5PlVn+4R5gIFA5tqb0F+wjVqJIi/FBswHzsm7z7mqYbT7a avGg== X-Gm-Message-State: AOAM531osaR8cd9i36MgIpmvU79d+/EDlRlEqt4WuZoq2dfAioZLB4Ac uADK1isEFvOISgEcoYeAt05SAA== X-Google-Smtp-Source: ABdhPJypqsFAyrOnR8xEC6MM8SQuEZzuDqR+1Zeo2EqZaF8sNUubmMsB0CZsfn8bft97IXkDDE+gEg== X-Received: by 2002:a2e:bf16:: with SMTP id c22mr537905ljr.416.1644956144764; Tue, 15 Feb 2022 12:15:44 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id k16sm4548419ljg.111.2022.02.15.12.15.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 12:15:44 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Stephen Boyd , Michael Turquette , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 5/5] arm64: dts: qcom: msm8996: convert xo_board to RPM_SMD_BB_CLK1 Date: Tue, 15 Feb 2022 23:15:39 +0300 Message-Id: <20220215201539.3970459-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220215201539.3970459-1-dmitry.baryshkov@linaro.org> References: <20220215201539.3970459-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Convert all device tree xo_board users to the RPM_SMD_BB_CLK1 clock. Note, that xo_board can not be removed (yet), as clk-smd-rpm uses xo_board internally as the parent for all the clocks. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 7a46f0f67cbb..598dbaab1d1c 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -889,7 +889,7 @@ dsi0_phy: dsi-phy@994400 { #clock-cells = <1>; #phy-cells = <0>; - clocks = <&mmcc MDSS_AHB_CLK>, <&xo_board>; + clocks = <&mmcc MDSS_AHB_CLK>, <&rpmcc RPM_SMD_BB_CLK1>; clock-names = "iface", "ref"; status = "disabled"; }; @@ -2595,7 +2595,7 @@ kryocc: clock-controller@6400000 { reg = <0x06400000 0x90000>; clock-names = "xo"; - clocks = <&xo_board>; + clocks = <&rpmcc RPM_SMD_BB_CLK1>; #clock-cells = <1>; }; @@ -2706,7 +2706,7 @@ sdhc1: sdhci@7464900 { clock-names = "iface", "core", "xo"; clocks = <&gcc GCC_SDCC1_AHB_CLK>, <&gcc GCC_SDCC1_APPS_CLK>, - <&xo_board>; + <&rpmcc RPM_SMD_BB_CLK1>; pinctrl-names = "default", "sleep"; pinctrl-0 = <&sdc1_state_on>; @@ -2729,7 +2729,7 @@ sdhc2: sdhci@74a4900 { clock-names = "iface", "core", "xo"; clocks = <&gcc GCC_SDCC2_AHB_CLK>, <&gcc GCC_SDCC2_APPS_CLK>, - <&xo_board>; + <&rpmcc RPM_SMD_BB_CLK1>; pinctrl-names = "default", "sleep"; pinctrl-0 = <&sdc2_state_on>; @@ -3030,7 +3030,7 @@ adsp_pil: remoteproc@9300000 { interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; - clocks = <&xo_board>; + clocks = <&rpmcc RPM_SMD_BB_CLK1>; clock-names = "xo"; memory-region = <&adsp_region>;