From patchwork Wed Jul 6 22:53:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 12908754 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 0F5B6CCA481 for ; Wed, 6 Jul 2022 22:54:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234001AbiGFWyb (ORCPT ); Wed, 6 Jul 2022 18:54:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233383AbiGFWy2 (ORCPT ); Wed, 6 Jul 2022 18:54:28 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12D6C2B1BB; Wed, 6 Jul 2022 15:54:27 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id y8so15282290eda.3; Wed, 06 Jul 2022 15:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=c76lu8aPE1RwcHogIfDRm0DW3ySrG+yVI8AYXR7nWWM=; b=L81iNCGhtwD0TrrbQ5e0nxACbAwChG2h7JlpA4psJU7Ix1vOcD3VlSfuLexHq2m5yU TXZk3ml/Qbzq9ZCO4F4GnX18uBFmCt9KfPzEsg6rIBGiJO97eq7SBUKgzioOBuHSXEa4 hNXxBO5L1U1ZxFRHZ5aEiYTe7sTFryf2Og6pAPXIhv1+QHigVQes1pMZ6v+fHIqSaJ8Q 04VWK/wiNf4tURg6OnjGR9Y8FiE5A4ID4vDx3pA3Z9lIm0sweLtGJeeHA88Dv34U1zdb XQE/qH67gJa5KoIM5FMux1UCWmbxyAGe59+8033HI8Gjypbu8A1FBbMV8YOqUhNWkDDr REsg== 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=c76lu8aPE1RwcHogIfDRm0DW3ySrG+yVI8AYXR7nWWM=; b=il0M+Og/uaZtoHNzixE7E0w66a4lnJYjqmcJijqOgPAkYk3uU9w08+pWuR6TZX0YSj b/G9xIc5CvZj97Q6Mj8Rf3oMio724IMglBS3dWlptHkhvkQ94bK6uyDDxNPugjaW5eSE KwshL7rCAmMwcjj5TQXipD6GlMo+hPPY/+ajUU0TNYfx0/0cFCmdedjb61mmR9P/9xRb qcezGlgv1PuWzw/Q68a314WS0HSWppTA1ADw9ODzQQ2hVDgvPnIq2rYO5Y+fTtMya5bQ um9uoMn8Dcw28H5XA6IVqaamgZZKEeh7S1Mh+r2gXc7lIT8I/o35p1tAtiYmNdlv6DCk xC0Q== X-Gm-Message-State: AJIora85h75L3Hy4ewHh5Dd5sAlsgZdng8xfSh2TFI5mla4Si5jJwjNc 1YZKtE5kMziAWd0h3ruj9zs= X-Google-Smtp-Source: AGRyM1ujj4U/Gk0zM7iYxO5qjIjqRe5ZxWywX1JxGHT7sDegURC/HpC9MdKY+YUj7EEm8DLYj2KZkQ== X-Received: by 2002:a05:6402:448c:b0:435:9dcc:b8a5 with SMTP id er12-20020a056402448c00b004359dccb8a5mr57198450edb.287.1657148065550; Wed, 06 Jul 2022 15:54:25 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id d7-20020a170906304700b006fe921fcb2dsm1767637ejd.49.2022.07.06.15.54.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 15:54:25 -0700 (PDT) From: Christian Marangi To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [PATCH v2 1/4] dt-bindings: clock: fix wrong clock documentation for qcom,rpmcc Date: Thu, 7 Jul 2022 00:53:18 +0200 Message-Id: <20220706225321.26215-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220706225321.26215-1-ansuelsmth@gmail.com> References: <20220706225321.26215-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org qcom,rpmcc describe 2 different kind of device. Currently we have definition for rpm-smd based device but we lack Documentation for simple rpm based device. Add the missing clk for ipq806x, apq8060, msm8660 and apq8064 and provide additional example to describe these new simple rpm based devices. Signed-off-by: Christian Marangi Reviewed-by: Rob Herring --- .../devicetree/bindings/clock/qcom,rpmcc.yaml | 85 ++++++++++++++++++- 1 file changed, 83 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml b/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml index 9d296b89a8d0..d63b45ad06e8 100644 --- a/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,rpmcc.yaml @@ -49,15 +49,86 @@ properties: const: 1 clocks: - maxItems: 1 + minItems: 1 + maxItems: 2 clock-names: - const: xo + minItems: 1 + maxItems: 2 required: - compatible - '#clock-cells' +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,rpmcc-apq8060 + - qcom,rpmcc-ipq806x + - qcom,rpmcc-msm8660 + + then: + properties: + clocks: + items: + - description: pxo clock + + clock-names: + items: + - const: pxo + + - if: + properties: + compatible: + contains: + const: qcom,rpmcc-apq8064 + then: + properties: + clocks: + items: + - description: pxo clock + - description: cxo clock + + clock-names: + items: + - const: pxo + - const: cxo + + - if: + properties: + compatible: + contains: + enum: + - qcom,rpmcc-mdm9607 + - qcom,rpmcc-msm8226 + - qcom,rpmcc-msm8916 + - qcom,rpmcc-msm8936 + - qcom,rpmcc-msm8953 + - qcom,rpmcc-msm8974 + - qcom,rpmcc-msm8976 + - qcom,rpmcc-msm8992 + - qcom,rpmcc-msm8994 + - qcom,rpmcc-msm8996 + - qcom,rpmcc-msm8998 + - qcom,rpmcc-qcm2290 + - qcom,rpmcc-qcs404 + - qcom,rpmcc-sdm660 + - qcom,rpmcc-sm6115 + - qcom,rpmcc-sm6125 + + then: + properties: + clocks: + items: + - description: xo clock + + clock-names: + items: + - const: xo + additionalProperties: false examples: @@ -73,3 +144,13 @@ examples: }; }; }; + + - | + rpm { + clock-controller { + compatible = "qcom,rpmcc-ipq806x", "qcom,rpmcc"; + #clock-cells = <1>; + clocks = <&pxo_board>; + clock-names = "pxo"; + }; + }; From patchwork Wed Jul 6 22:53:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 12908755 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 49B5BCCA487 for ; Wed, 6 Jul 2022 22:54:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234056AbiGFWyc (ORCPT ); Wed, 6 Jul 2022 18:54:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233557AbiGFWy3 (ORCPT ); Wed, 6 Jul 2022 18:54:29 -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 2777C2B1BE; Wed, 6 Jul 2022 15:54:28 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id f23so5227959ejc.4; Wed, 06 Jul 2022 15:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=m28VOuBTGpNfCnRFT81/8lTctjXJrlSyC2RBUZE6DTA=; b=qB4XMv9Z9mwRIHcOXaeGCzvqHITF3Rr5WZQvVQHZ55xKR1ErgYbyyrAegfAoAZ8qLU VxtDJY64nyBOIuTDMbzQkhEfH3k4c4bRL/taTZ7KKVt+slfv0ipRXABRvK7hKr6YY4cH LpT4Thh8PbcAtYG438L4GPc7QdhJoVAg32txf/L5F/TorCscqAugUvgj+HAJiSX6o9ZF 8j7vwuYz+TCv8e1uLQ1B7jYpo8g/FyzBdbNRYJBZqfRLr+PF6izT8ZFzlVFInRvzWRbV Hw5geZs8yqbTNuYx0z7tvY4pMKXv+cDaMFcNjGyiOJyZFkmkaQ/oJZq6Kgud9IvocIni iMUQ== 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=m28VOuBTGpNfCnRFT81/8lTctjXJrlSyC2RBUZE6DTA=; b=NSe9j1eCWQHZSg0+NHrzHZ/iubO2gmS7hCuLD+JtR52i7pgPQqyUyl70SjaH4XNzWf oyIR50rJjoTYOX13456RAou2gqGkUJWrHowUgEN3aqxM+5Yy5ErkrcOkwZbbtSTElJ37 WbDl88j9gBEwzcL3afbp6p5Tjoa0MDFmjQfQUnshSVdqB8w5S3udLUeo1YKccx1UWjkj Eu76vyBkOoX/XgJvnnvbCP6xoLkc/LrFSGPRryFJBWcNkmDC9caCXFGc6iZReT0FyM0O NiI7Yp2TEDwONSxMHfHVTCcz7KdfrQOWDvmmgbreEbTC0H8R/NKyDBEl2SWbkxbHt8fS Ub1A== X-Gm-Message-State: AJIora8IXdR/EbDizb5vZmkiAh6WNGXc2QFhrjecfYzGIOZ6iAkDG+0U n93ManjVB0TPRsxB3bEuTm4= X-Google-Smtp-Source: AGRyM1tAISUPgzUk0jqnkPXsXqjqBCW5K0OcYjUxvbGqk7Kziy/5s7SHFSEUD7+BgdkGam0TIVkYnQ== X-Received: by 2002:a17:907:a06e:b0:72a:e777:451c with SMTP id ia14-20020a170907a06e00b0072ae777451cmr10298763ejc.41.1657148066666; Wed, 06 Jul 2022 15:54:26 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id d7-20020a170906304700b006fe921fcb2dsm1767637ejd.49.2022.07.06.15.54.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 15:54:26 -0700 (PDT) From: Christian Marangi To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Dmitry Baryshkov Subject: [PATCH v2 2/4] ARM: DTS: qcom: add rpmcc missing clocks for apq/ipq8064 and msm8660 Date: Thu, 7 Jul 2022 00:53:19 +0200 Message-Id: <20220706225321.26215-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220706225321.26215-1-ansuelsmth@gmail.com> References: <20220706225321.26215-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Add missing rpmcc pxo and cxo clock for apq8064, ipq8064 and msm8660 dtsi. Signed-off-by: Christian Marangi Reviewed-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom-apq8064.dtsi | 2 ++ arch/arm/boot/dts/qcom-ipq8064.dtsi | 2 ++ arch/arm/boot/dts/qcom-msm8660.dtsi | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index 91adcbd54b17..6a88e616ea01 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -853,6 +853,8 @@ rpm@108000 { rpmcc: clock-controller { compatible = "qcom,rpmcc-apq8064", "qcom,rpmcc"; #clock-cells = <1>; + clocks = <&pxo_board>, <&cxo_board>; + clock-names = "pxo", "cxo"; }; regulators { diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index 4b475d98343c..1425a4e4283f 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -773,6 +773,8 @@ rpm: rpm@108000 { rpmcc: clock-controller { compatible = "qcom,rpmcc-ipq806x", "qcom,rpmcc"; #clock-cells = <1>; + clocks = <&pxo_board>; + clock-names = "pxo"; }; }; diff --git a/arch/arm/boot/dts/qcom-msm8660.dtsi b/arch/arm/boot/dts/qcom-msm8660.dtsi index b9cded35b1cc..63a501c63cf8 100644 --- a/arch/arm/boot/dts/qcom-msm8660.dtsi +++ b/arch/arm/boot/dts/qcom-msm8660.dtsi @@ -56,7 +56,7 @@ cxo_board { clock-frequency = <19200000>; }; - pxo_board { + pxo_board: pxo_board { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <27000000>; @@ -411,6 +411,8 @@ rpm: rpm@104000 { rpmcc: clock-controller { compatible = "qcom,rpmcc-msm8660", "qcom,rpmcc"; #clock-cells = <1>; + clocks = <&pxo_board>; + clock-names = "pxo"; }; pm8901-regulators { From patchwork Wed Jul 6 22:53:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 12908757 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 A467ACCA47C for ; Wed, 6 Jul 2022 22:54:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233543AbiGFWyd (ORCPT ); Wed, 6 Jul 2022 18:54:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233961AbiGFWya (ORCPT ); Wed, 6 Jul 2022 18:54:30 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BA0124BEE; Wed, 6 Jul 2022 15:54:29 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id r18so21012905edb.9; Wed, 06 Jul 2022 15:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=70ArcNGj890gaijyE1Qj+S01sRqH0gGAcpKoaVXKgAU=; b=DuUHkzM9LHLiS5jnzorB3uQ5RigZQJfeuxOQkmkMH1VQLeAZ972IS1jOMQUPs7C/Q7 pJ7T2vkpV6P+x3fmhx1uhsEIEof7/5+kMVIgTDqG+X/oXi2mk5khb9YtVnp3RlSq00/l Vqr5+FE+bKlB83ZDUlr4izHeKvI2lZMmSza4A7ouR2IbmXdCXsw/bYeAw2RL/him4S+T fP+UORyHnMvPY9XM5GgHC5TNrdHOnwSDlfu+m5hgM0QXOEQdjGhPRs6fq/HAxNJ4woQd QRZcy4AkGafHL0eRzIEILP6MQ6mVKYuPZg8+bEuKCNmPb6do+o0HrR7iWwsnk9AwBowr TRCw== 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=70ArcNGj890gaijyE1Qj+S01sRqH0gGAcpKoaVXKgAU=; b=dKN57ZIAIdD0To2SRTsqVgUVz+DumncAT21hgAbZplParING9emvPL5ysmB36NQl8q 1NigsY5/FLdx3zycupXncBgCYG+Xxopan8nrBW55+xxmiQ76AYr4I0wVYtJPV37+k7/U mFZGWEmVo2kdZ5N9nUyBLjozd/92Ia6rgXk6xRe1zXCFZnSS9FbpXRfOUQFMJiSv8Ktm 1poNhPSAxMs78m8sxtxba7tN+e1Ye/P0AFHz9ATxvu2Hsy4iOU9pb4dQtGuMbRQTt7A6 Z2iVGbt+N6Rw22AoQzI4/e870iUZlz4ODtrMFIGNSyCYcsX8XzVuTFJhB77CLOZz/H9f deUw== X-Gm-Message-State: AJIora+Nbi62TISIBSZkRPthN8iZi46wmDZGfaO05ao17Fe0V6VB2fSi kfFIYiGKqyJXQ4lXsRyMAnw= X-Google-Smtp-Source: AGRyM1sltlrAA8dGjvSE8ZUVcdb/qq1RxdByeIBvvQSNIQP6m3hSUe9oGyI285/yFiO1TxkbT0GXOw== X-Received: by 2002:a05:6402:5215:b0:43a:8a94:f514 with SMTP id s21-20020a056402521500b0043a8a94f514mr7785957edd.22.1657148067776; Wed, 06 Jul 2022 15:54:27 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id d7-20020a170906304700b006fe921fcb2dsm1767637ejd.49.2022.07.06.15.54.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 15:54:27 -0700 (PDT) From: Christian Marangi To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [PATCH v2 3/4] clk: qcom: clk-rpm: convert to parent_data API Date: Thu, 7 Jul 2022 00:53:20 +0200 Message-Id: <20220706225321.26215-4-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220706225321.26215-1-ansuelsmth@gmail.com> References: <20220706225321.26215-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Convert clk-rpm driver to parent_data API. We keep the old pxo/cxo_board parent naming to keep compatibility with old DT and we use the new pxo/cxo for new implementation where these clock are defined in DTS. Signed-off-by: Christian Marangi --- drivers/clk/qcom/clk-rpm.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/drivers/clk/qcom/clk-rpm.c b/drivers/clk/qcom/clk-rpm.c index a18811c38018..747c473b0b5e 100644 --- a/drivers/clk/qcom/clk-rpm.c +++ b/drivers/clk/qcom/clk-rpm.c @@ -23,6 +23,14 @@ #define QCOM_RPM_SCALING_ENABLE_ID 0x2 #define QCOM_RPM_XO_MODE_ON 0x2 +static const struct clk_parent_data gcc_pxo[] = { + { .fw_name = "pxo", .name = "pxo_board" }, +}; + +static const struct clk_parent_data gcc_cxo[] = { + { .fw_name = "cxo", .name = "cxo_board" }, +}; + #define DEFINE_CLK_RPM(_platform, _name, _active, r_id) \ static struct clk_rpm _platform##_##_active; \ static struct clk_rpm _platform##_##_name = { \ @@ -32,8 +40,8 @@ .hw.init = &(struct clk_init_data){ \ .ops = &clk_rpm_ops, \ .name = #_name, \ - .parent_names = (const char *[]){ "pxo_board" }, \ - .num_parents = 1, \ + .parent_data = gcc_pxo, \ + .num_parents = ARRAY_SIZE(gcc_pxo), \ }, \ }; \ static struct clk_rpm _platform##_##_active = { \ @@ -44,8 +52,8 @@ .hw.init = &(struct clk_init_data){ \ .ops = &clk_rpm_ops, \ .name = #_active, \ - .parent_names = (const char *[]){ "pxo_board" }, \ - .num_parents = 1, \ + .parent_data = gcc_pxo, \ + .num_parents = ARRAY_SIZE(gcc_pxo), \ }, \ } @@ -56,8 +64,8 @@ .hw.init = &(struct clk_init_data){ \ .ops = &clk_rpm_xo_ops, \ .name = #_name, \ - .parent_names = (const char *[]){ "cxo_board" }, \ - .num_parents = 1, \ + .parent_data = gcc_cxo, \ + .num_parents = ARRAY_SIZE(gcc_cxo), \ }, \ } @@ -68,8 +76,8 @@ .hw.init = &(struct clk_init_data){ \ .ops = &clk_rpm_fixed_ops, \ .name = #_name, \ - .parent_names = (const char *[]){ "pxo" }, \ - .num_parents = 1, \ + .parent_data = gcc_pxo, \ + .num_parents = ARRAY_SIZE(gcc_pxo), \ }, \ } From patchwork Wed Jul 6 22:53:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 12908756 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 8DA3CCCA488 for ; Wed, 6 Jul 2022 22:54:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234075AbiGFWyc (ORCPT ); Wed, 6 Jul 2022 18:54:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233881AbiGFWya (ORCPT ); Wed, 6 Jul 2022 18:54:30 -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 5FB922A26C; Wed, 6 Jul 2022 15:54:29 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id f23so5228057ejc.4; Wed, 06 Jul 2022 15:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kUlxRQ1of3eu4XW5c6JjZr01Kt72atQDrgao/HtGT8o=; b=Co0ZfwzJmPPNkFd2X0BmEcNP//YqWh2YVZ82PyFVNjtMPNYgg9gFetMF4Eg472r+dp JNAOiVvs2eRLbDSHhHp2ZUeREgSFQqR6nP51zMN5HBng7oH/H//HWfzvN0Fo1HiiWkeb oHEFGfKrYv12/Ovf4uujxQp9ugT8t/t8G5hsqb/KZhquEp3eT2UPptV1F+JV70SUMHIB 3vwWflMGn2v4EiWOFoOH8xULKpt06+TCBpFrOc7kVHLE4B7s022Ek2NrjbRWu6vWiZiL 4SGBkSJ9Em4sgryn3VLqWBlY6/P5C1UUpI08Eir4w4Q3R91CnWPdr0g5AjLZC7SOg1WD /DjQ== 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=kUlxRQ1of3eu4XW5c6JjZr01Kt72atQDrgao/HtGT8o=; b=oXkkQ6H8LaqVbwD1mTTYiV4uPpv/NFiwfoBD/DqXHW3YSnDUUXP8cUwYFbumwHSaeT OMw6wB60NXaqYZAQpgQtuSVLJshA3Cms+FhCzug7VcOfdrHMmY85oUcOqwC1igatI/h6 XIAvnjJyKJnGZ/U9rRcC89pKdCZeQ4+h7gwoO+jN7wl2MpTcQpzPDpX4zJ4j90gGdaF6 KzsnCLkDRvI1eFFLcdw9Flv3j7BcTrIzuR+pjLDdwjpn2EiLjTqLeeL/N2VgRuMpsThK yMzuKdlqC2U5m5bhvzAtNLyytD+MbI3CEtBoyVgEdBpRiKUpH95040HZhg0V2UTryXI1 7A6g== X-Gm-Message-State: AJIora82LrhmUKUWtQ8mEZ9sj00TwJnrqTXahPAmFhPn4+YE8ipXYDYX egETQFxc8JkrpIvykvXgcEU= X-Google-Smtp-Source: AGRyM1sl3zn7M5HpfENfgEsJmy2imKNBcKqIyJc0owvAEo+ADQh0QqN5BKbz8QTeOfyfAhgLSgEeDA== X-Received: by 2002:a17:907:1608:b0:726:a7b7:cd7a with SMTP id hb8-20020a170907160800b00726a7b7cd7amr40018657ejc.682.1657148068906; Wed, 06 Jul 2022 15:54:28 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id d7-20020a170906304700b006fe921fcb2dsm1767637ejd.49.2022.07.06.15.54.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 15:54:28 -0700 (PDT) From: Christian Marangi To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [PATCH v2 4/4] clk: qcom: gcc-ipq806x: remove cc_register_board for pxo and cxo Date: Thu, 7 Jul 2022 00:53:21 +0200 Message-Id: <20220706225321.26215-5-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220706225321.26215-1-ansuelsmth@gmail.com> References: <20220706225321.26215-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Now that these clock are defined as fixed clk in dts, we can drop the register_board_clk for cxo_board and pxo_board in gcc_ipq806x_probe. Signed-off-by: Christian Marangi --- drivers/clk/qcom/gcc-ipq806x.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers/clk/qcom/gcc-ipq806x.c index 718de17a1e60..883629de2751 100644 --- a/drivers/clk/qcom/gcc-ipq806x.c +++ b/drivers/clk/qcom/gcc-ipq806x.c @@ -3384,14 +3384,6 @@ static int gcc_ipq806x_probe(struct platform_device *pdev) struct regmap *regmap; int ret; - ret = qcom_cc_register_board_clk(dev, "cxo_board", "cxo", 25000000); - if (ret) - return ret; - - ret = qcom_cc_register_board_clk(dev, "pxo_board", "pxo", 25000000); - if (ret) - return ret; - if (of_machine_is_compatible("qcom,ipq8065")) { ubi32_core1_src_clk.freq_tbl = clk_tbl_nss_ipq8065; ubi32_core2_src_clk.freq_tbl = clk_tbl_nss_ipq8065;