From patchwork Tue Sep 27 11:38:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 610260 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 774E8C54EE9 for ; Tue, 27 Sep 2022 11:38:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232069AbiI0Liq (ORCPT ); Tue, 27 Sep 2022 07:38:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232054AbiI0Lie (ORCPT ); Tue, 27 Sep 2022 07:38:34 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73B6E14D4AF for ; Tue, 27 Sep 2022 04:38:29 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 10so15291552lfy.5 for ; Tue, 27 Sep 2022 04:38:29 -0700 (PDT) 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; bh=fsvySvv5M9V3xQBXuCnLy2D+B90t0AmGqa1i1Z9WwTg=; b=pgZNPdDlu78web2YSWdRD++2SpRZV4F9J+k5on9NlF8nezvxj85vnvdZ8H1RkEDfna 4J4dmcdUW+akozjb1X/BXwS5HFrrrt7BmSXJmjAW7q90kqfSYn28UftXKJL+sEmDb/2A HnQpOs2IX4Ug2idpJuIeOeM74VwKcKOU61FCnnHA7uIMKHbl7OHlgM1VF0xx3XKscwPx 8hya53+0IzgA4vSuKCv2SLtMe2z6yrOgR1i2LCcPffU8MbTRDryu+YnX5FbI20VO+HuL TVI6EIfJRuK6pFUUBKZmOJRUzXpwu9sjqqncdpq3qq0FYRonAUkBpgTZ5ahb0Jm3agXH AZxw== 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; bh=fsvySvv5M9V3xQBXuCnLy2D+B90t0AmGqa1i1Z9WwTg=; b=UHhOXe+a2zRPhssPAig1X8slwqW57zhOgENVp/HsPzw7I7uqrpBpnGbfnVlSGmJFE2 HElSq38OVKEazSpABZ8bAOTcvbB0fbdYOpbNhkq8kBsSAUd5gdcB56ncV80URuvYUKL3 P1T4IjIsxVFILeeWliLxFljQsqTf525WNNxjU/ChTofx3jjeX89JEby5scBLX1eRb5Zn fBpHftJKTi/k8NNQrVBttvyoN0lUm+BCyi7KFXVznC97pUgVyyyB29KuE/g3JzelgSGG Pwzx1oxEE4hA6+6wwbZE6iJGpgptTbd3avV24MA/3+xWRZ5UanFRZBD1XTPxNMq5kITg a9Og== X-Gm-Message-State: ACrzQf25RaLpTqyXN7cyE/z2oK/cP07oMiOJP3a3wVZpBLBY+eOBm522 XglywNTgGqM5OyULan9oIf4YmQ== X-Google-Smtp-Source: AMsMyM5Y0cLzSNYGobE3uvN1ksI0VMgd/oKeSZsmjeTYz4+W9GO/lE6Bl7v8N0JQ52pdhZfd+VKEkg== X-Received: by 2002:a05:6512:ad0:b0:497:a620:157d with SMTP id n16-20020a0565120ad000b00497a620157dmr11650761lfu.643.1664278708766; Tue, 27 Sep 2022 04:38:28 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id t12-20020a056512208c00b00492dfcc0e58sm142165lfr.53.2022.09.27.04.38.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 04:38:28 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Christian Marangi Subject: [PATCH v2 1/3] dt-bindings: clock: qcom, gcc-ipq8064: add pll4 to used clocks Date: Tue, 27 Sep 2022 14:38:24 +0300 Message-Id: <20220927113826.246241-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220927113826.246241-1-dmitry.baryshkov@linaro.org> References: <20220927113826.246241-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On IPQ8064 (and related platforms) the GCC uses PLL4 clock provided by the LCC clock controller. Mention this in the bindings. To remain compatible with older bindings, make it optional, as the driver will fallback to getting the `pll4' clock from the system clocks list. Signed-off-by: Dmitry Baryshkov Acked-by: Rob Herring --- .../devicetree/bindings/clock/qcom,gcc-ipq8064.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-ipq8064.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-ipq8064.yaml index 9eb91dd22557..d1f93ee9ff69 100644 --- a/Documentation/devicetree/bindings/clock/qcom,gcc-ipq8064.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-ipq8064.yaml @@ -27,14 +27,18 @@ properties: - const: syscon clocks: + minItems: 2 items: - description: PXO source - description: CXO source + - description: PLL4 from LCC clock-names: + minItems: 2 items: - const: pxo - const: cxo + - const: pll4 thermal-sensor: type: object @@ -51,13 +55,14 @@ unevaluatedProperties: false examples: - | + #include #include gcc: clock-controller@900000 { compatible = "qcom,gcc-ipq8064", "syscon"; reg = <0x00900000 0x4000>; - clocks = <&pxo_board>, <&cxo_board>; - clock-names = "pxo", "cxo"; + clocks = <&pxo_board>, <&cxo_board>, <&lcc PLL4>; + clock-names = "pxo", "cxo", "pll4"; #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>; From patchwork Tue Sep 27 11:38:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 610261 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 30F74C6FA92 for ; Tue, 27 Sep 2022 11:38:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231890AbiI0Lip (ORCPT ); Tue, 27 Sep 2022 07:38:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232125AbiI0Lih (ORCPT ); Tue, 27 Sep 2022 07:38:37 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BB4214F818 for ; Tue, 27 Sep 2022 04:38:31 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id z25so15302094lfr.2 for ; Tue, 27 Sep 2022 04:38:31 -0700 (PDT) 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; bh=Gr5CEgDVOE5rYe54LqDlFWEZZi0bLxgPcprD1LhFhqg=; b=oO3qAwWRsfRO8Tq9lg2LEI4+frhgojlVy8Ke4i7Wwsp2Xr1bgANp/uarnxob+oHLrO zBt2etJ0Q9esEW2LS//IGuZpKzJ4HxDC/43JZltOX5M/SBaGWPiBtscgWUGD5WStjSPa ZGoyzaL6s6c1SsUNvAIrEGKXfgI8tOYT/UNgOq9MDNDzIt4GVHIk//LK2D/GikNpg13p iVjiOtI78umfgYq91U2kxRs9OxzNFohJPKhRnJC+SvwbJrdgB+Z7idJ+O9PqVhgiWxht ZZ+xE3kOaDAQh3ujEJoZeW3VCvPqdDDDiRvcdUtlciJK5gLkQ2TSqQa+D6jQxG+b5t4F p7pA== 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; bh=Gr5CEgDVOE5rYe54LqDlFWEZZi0bLxgPcprD1LhFhqg=; b=um5ggFNfn0b7CXsRk7XHXebfLHjoEhRifbQoBF8t8U0JJHybXU5MpW6jVSkzu0w+CE 68iNyWKgVPl+DmN0THvS+mDQRQgxBP3qRVqz7lOE2mv1UtROvfTnGqZYOpVskKKb09wb 0dcdiZHgTw1Y2+geuxFuRWQO7CVRz9jxTeL4KqDv2vNxwCU2vdV+LVxBvn0vNfO/Pzf3 ehMw0ywvNaiWdCqzipVeCb6/TnDmpPsi6gTpJYDkKW4LfVHyrTtuznXz3Ke2k9GIMzhx m0xDfTkAeRCcchPHOo3x+t2VTpNDtbu0OPw1I1c4tOMulkzKwdhs8ExMhnUofaJ5pU8j PTpw== X-Gm-Message-State: ACrzQf3b16s0vnsePFpIBt2xk/7XsuHVQqkHyuoNW6t4ekbm2SVdDI4b ti5Dgua+lPaWwz0s6mozIvv5Jg== X-Google-Smtp-Source: AMsMyM5IqnHIXXTzsqi0PpNYabfJQJD8Z7/CNouCVgSwtAjqsgkihlSd+urh6QohEIkvpck1nV5shg== X-Received: by 2002:a05:6512:3d07:b0:498:f201:5679 with SMTP id d7-20020a0565123d0700b00498f2015679mr12134111lfv.161.1664278709573; Tue, 27 Sep 2022 04:38:29 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id t12-20020a056512208c00b00492dfcc0e58sm142165lfr.53.2022.09.27.04.38.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 04:38:29 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Christian Marangi Subject: [PATCH v2 2/3] clk: qcom: gcc-ipq806x: use parent_data for the last remaining entry Date: Tue, 27 Sep 2022 14:38:25 +0300 Message-Id: <20220927113826.246241-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220927113826.246241-1-dmitry.baryshkov@linaro.org> References: <20220927113826.246241-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Use parent_data for the last remaining entry (pll4). This clock is provided by the lcc device. Fixes: cb02866f9a74 ("clk: qcom: gcc-ipq806x: convert parent_names to parent_data") Signed-off-by: Dmitry Baryshkov --- drivers/clk/qcom/gcc-ipq806x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers/clk/qcom/gcc-ipq806x.c index 718de17a1e60..6447f3e81b55 100644 --- a/drivers/clk/qcom/gcc-ipq806x.c +++ b/drivers/clk/qcom/gcc-ipq806x.c @@ -79,7 +79,9 @@ static struct clk_regmap pll4_vote = { .enable_mask = BIT(4), .hw.init = &(struct clk_init_data){ .name = "pll4_vote", - .parent_names = (const char *[]){ "pll4" }, + .parent_data = &(const struct clk_parent_data){ + .fw_name = "pll4", .name = "pll4", + }, .num_parents = 1, .ops = &clk_pll_vote_ops, }, From patchwork Tue Sep 27 11:38:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 609673 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 7A13CC6FA82 for ; Tue, 27 Sep 2022 11:38:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230397AbiI0Lip (ORCPT ); Tue, 27 Sep 2022 07:38:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232131AbiI0Lih (ORCPT ); Tue, 27 Sep 2022 07:38:37 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F91214F828 for ; Tue, 27 Sep 2022 04:38:32 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id a3so15238830lfk.9 for ; Tue, 27 Sep 2022 04:38:32 -0700 (PDT) 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; bh=8UKJY8RyS4lQdg21YinKMfTR+7LOBGKmECIZxWxaq8o=; b=h02PDj7bsZWURO5IIye96OQXZvYWPPWMA2hxzXRZERaKTCsrXY4tDKYsdO14yh63L6 wfTPQs8YH/a1kRreeyo4azd1g1inkYlBQq58zl2W655Vl2D+ZHtSPPlOfi/dFxj0c4Hc N/dvR1SShXpWnpcltxXrhP030PJIgmFkaMvthvN+wgfwf6VjukszO+Op3n8zNgVzdtAT 0T19EhFY+5lQDaHlzW2PJSxSkykjEkKu+bx1S3LJgobfNuU3VAR8VesthNkIOZ/rjHu7 rGm1ea1XyMbbqedZEvN1EGZfiCZ9ExqWt59o/c3j2ga84mhhrrX+wsFc+tVXSGm4UIWG lzSg== 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; bh=8UKJY8RyS4lQdg21YinKMfTR+7LOBGKmECIZxWxaq8o=; b=5StbN/SgmeVEyycxWkPNWeZ/+WG7PpTSBumFkahTQX3uR82yJWeEW67edNXWZfpcrn dgqiTcGHZBYPil2BQd0yc2LLwjuygTtaJul6Ue/CyVNsGqSRxSu6Lwy/5beMauVscjUr MNUiabh0+U87jx4rNBrbbPCpBKulgAm7D0+X/cDxIk1w2eYuvY7G2y1HDK473z+qUfw9 uG4QuM+YWrdD6VAXZnSfPKz0Ca3kYsjmP9424r09zC+utDVUkzZOVfydAPTEq9xPDfgT 1YlFq8tqjm2OdhZ9zBjMve5IcWMAVPlz/QzhrFWjZA/h7yUi2FpKI05dO3TW7nKYdDvf +tnw== X-Gm-Message-State: ACrzQf2OjyxG6PXxg/lXeHHXSP5jHYcypMYhBgZTjmTB3evIS/BjfBa3 7FtV1MvdBW1qo14yxJ9hKGzjdQ== X-Google-Smtp-Source: AMsMyM79cjLI+aMRih7aOtZOjF5MIuUswYUSkAxq8R07lkKW7PC1hu3pWHNRyEVueygPIV7bTuHxsA== X-Received: by 2002:a05:6512:c1:b0:497:acd3:10cf with SMTP id c1-20020a05651200c100b00497acd310cfmr11355141lfp.484.1664278710503; Tue, 27 Sep 2022 04:38:30 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id t12-20020a056512208c00b00492dfcc0e58sm142165lfr.53.2022.09.27.04.38.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 04:38:29 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Christian Marangi Subject: [PATCH v2 3/3] ARM: dts: qcom-ipq8064: use pll4 clock for the gcc device Date: Tue, 27 Sep 2022 14:38:26 +0300 Message-Id: <20220927113826.246241-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220927113826.246241-1-dmitry.baryshkov@linaro.org> References: <20220927113826.246241-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a link to LCC's PLL4 clock to the GCC device node following the bindings (and driver needs). Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index 90c08b51680a..a79f8b5fe12d 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -513,8 +513,8 @@ mux { gcc: clock-controller@900000 { compatible = "qcom,gcc-ipq8064", "syscon"; - clocks = <&pxo_board>, <&cxo_board>; - clock-names = "pxo", "cxo"; + clocks = <&pxo_board>, <&cxo_board>, <&lcc PLL4>; + clock-names = "pxo", "cxo", "pll4"; reg = <0x00900000 0x4000>; #clock-cells = <1>; #reset-cells = <1>;