From: Heiko Stuebner <heiko@sntech.de>
To: Jagan Teki <jagan@edgeble.ai>
Cc: Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Kever Yang <kever.yang@rock-chips.com>,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org,
linux-clk@vger.kernel.org,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Finley Xiao <finley.xiao@rock-chips.com>
Subject: Re: [PATCH v5 4/6] clk: rockchip: Add clock controller support for RV1126 SoC.
Date: Sat, 17 Sep 2022 16:25:20 +0200 [thread overview]
Message-ID: <1760564.3VsfAaAtOV@phil> (raw)
In-Reply-To: <CA+VMnFxy5QsoQ=0=qDxhPE=9KxDr_OKSWi9_7tONk0EA12NLFQ@mail.gmail.com>
Hi Jagan,
Am Samstag, 17. September 2022, 13:58:43 CEST schrieben Sie:
> On Sat, 17 Sept 2022 at 12:25, Heiko Stuebner <heiko@sntech.de> wrote:
> >
> > Am Donnerstag, 15. September 2022, 18:39:45 CEST schrieb Jagan Teki:
> > > Clock & Reset Unit (CRU) in RV1126 support clocks for CRU
> > > and CRU_PMU blocks.
> > >
> > > This patch is trying to add minimal Clock-Architecture Diagram's
> > > inferred from [1] authored by Finley Xiao.
> > >
> > > [1] https://github.com/rockchip-linux/kernel/blob/develop-4.19/drivers/clk/rockchip/clk-rv1126.c
> > >
> > > Cc: linux-clk@vger.kernel.org
> > > Cc: Michael Turquette <mturquette@baylibre.com>
> > > Cc: Stephen Boyd <sboyd@kernel.org>
> > > Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
> > > Signed-off-by: Jagan Teki <jagan@edgeble.ai>
> > > ---
> > > Changes for v5:
> > > - add platform-drivers
> >
> > [...]
> >
> > > +static void __init rv1126_pmu_clk_init(struct device_node *np)
> > > +{
> > > + struct rockchip_clk_provider *ctx;
> > > + void __iomem *reg_base;
> > > +
> > > + reg_base = of_iomap(np, 0);
> > > + if (!reg_base) {
> > > + pr_err("%s: could not map cru pmu region\n", __func__);
> > > + return;
> > > + }
> > > +
> > > + ctx = rockchip_clk_init(np, reg_base, CLKPMU_NR_CLKS);
> > > + if (IS_ERR(ctx)) {
> > > + pr_err("%s: rockchip pmu clk init failed\n", __func__);
> > > + return;
> > > + }
> > > +
> > > + rockchip_clk_register_plls(ctx, rv1126_pmu_pll_clks,
> > > + ARRAY_SIZE(rv1126_pmu_pll_clks),
> > > + RV1126_GRF_SOC_STATUS0);
> > > +
> > > + rockchip_clk_register_branches(ctx, rv1126_clk_pmu_branches,
> > > + ARRAY_SIZE(rv1126_clk_pmu_branches));
> > > +
> > > + rockchip_register_softrst(np, 2, reg_base + RV1126_PMU_SOFTRST_CON(0),
> > > + ROCKCHIP_SOFTRST_HIWORD_MASK);
> > > +
> > > + rockchip_clk_of_add_provider(np, ctx);
> > > +}
> > > +
> > > +CLK_OF_DECLARE(rv1126_cru_pmu, "rockchip,rv1126-pmucru", rv1126_pmu_clk_init);
> >
> > this one and the one below should go away I think.
> >
> > Can you check if that is the case, then I can just drop the two
> > CLK_OF_DECLARE lines.
>
> I think these are unneeded, it worked w/o these when I built a static.
great to hear that, then I'll drop those
> but others are still included.
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/clk/rockchip/clk-rk3568.c#n1636
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/clk/rockchip/clk-rk3568.c#n1679
very likely. As I want to test such changes on hardware, I'm not
removing them just now but will try to look at that once I'm back
home from LPC/ELCE.
Heiko
WARNING: multiple messages have this Message-ID (diff)
From: Heiko Stuebner <heiko@sntech.de>
To: Jagan Teki <jagan@edgeble.ai>
Cc: Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Kever Yang <kever.yang@rock-chips.com>,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org,
linux-clk@vger.kernel.org,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Finley Xiao <finley.xiao@rock-chips.com>
Subject: Re: [PATCH v5 4/6] clk: rockchip: Add clock controller support for RV1126 SoC.
Date: Sat, 17 Sep 2022 16:25:20 +0200 [thread overview]
Message-ID: <1760564.3VsfAaAtOV@phil> (raw)
In-Reply-To: <CA+VMnFxy5QsoQ=0=qDxhPE=9KxDr_OKSWi9_7tONk0EA12NLFQ@mail.gmail.com>
Hi Jagan,
Am Samstag, 17. September 2022, 13:58:43 CEST schrieben Sie:
> On Sat, 17 Sept 2022 at 12:25, Heiko Stuebner <heiko@sntech.de> wrote:
> >
> > Am Donnerstag, 15. September 2022, 18:39:45 CEST schrieb Jagan Teki:
> > > Clock & Reset Unit (CRU) in RV1126 support clocks for CRU
> > > and CRU_PMU blocks.
> > >
> > > This patch is trying to add minimal Clock-Architecture Diagram's
> > > inferred from [1] authored by Finley Xiao.
> > >
> > > [1] https://github.com/rockchip-linux/kernel/blob/develop-4.19/drivers/clk/rockchip/clk-rv1126.c
> > >
> > > Cc: linux-clk@vger.kernel.org
> > > Cc: Michael Turquette <mturquette@baylibre.com>
> > > Cc: Stephen Boyd <sboyd@kernel.org>
> > > Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
> > > Signed-off-by: Jagan Teki <jagan@edgeble.ai>
> > > ---
> > > Changes for v5:
> > > - add platform-drivers
> >
> > [...]
> >
> > > +static void __init rv1126_pmu_clk_init(struct device_node *np)
> > > +{
> > > + struct rockchip_clk_provider *ctx;
> > > + void __iomem *reg_base;
> > > +
> > > + reg_base = of_iomap(np, 0);
> > > + if (!reg_base) {
> > > + pr_err("%s: could not map cru pmu region\n", __func__);
> > > + return;
> > > + }
> > > +
> > > + ctx = rockchip_clk_init(np, reg_base, CLKPMU_NR_CLKS);
> > > + if (IS_ERR(ctx)) {
> > > + pr_err("%s: rockchip pmu clk init failed\n", __func__);
> > > + return;
> > > + }
> > > +
> > > + rockchip_clk_register_plls(ctx, rv1126_pmu_pll_clks,
> > > + ARRAY_SIZE(rv1126_pmu_pll_clks),
> > > + RV1126_GRF_SOC_STATUS0);
> > > +
> > > + rockchip_clk_register_branches(ctx, rv1126_clk_pmu_branches,
> > > + ARRAY_SIZE(rv1126_clk_pmu_branches));
> > > +
> > > + rockchip_register_softrst(np, 2, reg_base + RV1126_PMU_SOFTRST_CON(0),
> > > + ROCKCHIP_SOFTRST_HIWORD_MASK);
> > > +
> > > + rockchip_clk_of_add_provider(np, ctx);
> > > +}
> > > +
> > > +CLK_OF_DECLARE(rv1126_cru_pmu, "rockchip,rv1126-pmucru", rv1126_pmu_clk_init);
> >
> > this one and the one below should go away I think.
> >
> > Can you check if that is the case, then I can just drop the two
> > CLK_OF_DECLARE lines.
>
> I think these are unneeded, it worked w/o these when I built a static.
great to hear that, then I'll drop those
> but others are still included.
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/clk/rockchip/clk-rk3568.c#n1636
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/clk/rockchip/clk-rk3568.c#n1679
very likely. As I want to test such changes on hardware, I'm not
removing them just now but will try to look at that once I'm back
home from LPC/ELCE.
Heiko
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
WARNING: multiple messages have this Message-ID (diff)
From: Heiko Stuebner <heiko@sntech.de>
To: Jagan Teki <jagan@edgeble.ai>
Cc: Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Kever Yang <kever.yang@rock-chips.com>,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org,
linux-clk@vger.kernel.org,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Finley Xiao <finley.xiao@rock-chips.com>
Subject: Re: [PATCH v5 4/6] clk: rockchip: Add clock controller support for RV1126 SoC.
Date: Sat, 17 Sep 2022 16:25:20 +0200 [thread overview]
Message-ID: <1760564.3VsfAaAtOV@phil> (raw)
In-Reply-To: <CA+VMnFxy5QsoQ=0=qDxhPE=9KxDr_OKSWi9_7tONk0EA12NLFQ@mail.gmail.com>
Hi Jagan,
Am Samstag, 17. September 2022, 13:58:43 CEST schrieben Sie:
> On Sat, 17 Sept 2022 at 12:25, Heiko Stuebner <heiko@sntech.de> wrote:
> >
> > Am Donnerstag, 15. September 2022, 18:39:45 CEST schrieb Jagan Teki:
> > > Clock & Reset Unit (CRU) in RV1126 support clocks for CRU
> > > and CRU_PMU blocks.
> > >
> > > This patch is trying to add minimal Clock-Architecture Diagram's
> > > inferred from [1] authored by Finley Xiao.
> > >
> > > [1] https://github.com/rockchip-linux/kernel/blob/develop-4.19/drivers/clk/rockchip/clk-rv1126.c
> > >
> > > Cc: linux-clk@vger.kernel.org
> > > Cc: Michael Turquette <mturquette@baylibre.com>
> > > Cc: Stephen Boyd <sboyd@kernel.org>
> > > Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
> > > Signed-off-by: Jagan Teki <jagan@edgeble.ai>
> > > ---
> > > Changes for v5:
> > > - add platform-drivers
> >
> > [...]
> >
> > > +static void __init rv1126_pmu_clk_init(struct device_node *np)
> > > +{
> > > + struct rockchip_clk_provider *ctx;
> > > + void __iomem *reg_base;
> > > +
> > > + reg_base = of_iomap(np, 0);
> > > + if (!reg_base) {
> > > + pr_err("%s: could not map cru pmu region\n", __func__);
> > > + return;
> > > + }
> > > +
> > > + ctx = rockchip_clk_init(np, reg_base, CLKPMU_NR_CLKS);
> > > + if (IS_ERR(ctx)) {
> > > + pr_err("%s: rockchip pmu clk init failed\n", __func__);
> > > + return;
> > > + }
> > > +
> > > + rockchip_clk_register_plls(ctx, rv1126_pmu_pll_clks,
> > > + ARRAY_SIZE(rv1126_pmu_pll_clks),
> > > + RV1126_GRF_SOC_STATUS0);
> > > +
> > > + rockchip_clk_register_branches(ctx, rv1126_clk_pmu_branches,
> > > + ARRAY_SIZE(rv1126_clk_pmu_branches));
> > > +
> > > + rockchip_register_softrst(np, 2, reg_base + RV1126_PMU_SOFTRST_CON(0),
> > > + ROCKCHIP_SOFTRST_HIWORD_MASK);
> > > +
> > > + rockchip_clk_of_add_provider(np, ctx);
> > > +}
> > > +
> > > +CLK_OF_DECLARE(rv1126_cru_pmu, "rockchip,rv1126-pmucru", rv1126_pmu_clk_init);
> >
> > this one and the one below should go away I think.
> >
> > Can you check if that is the case, then I can just drop the two
> > CLK_OF_DECLARE lines.
>
> I think these are unneeded, it worked w/o these when I built a static.
great to hear that, then I'll drop those
> but others are still included.
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/clk/rockchip/clk-rk3568.c#n1636
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/clk/rockchip/clk-rk3568.c#n1679
very likely. As I want to test such changes on hardware, I'm not
removing them just now but will try to look at that once I'm back
home from LPC/ELCE.
Heiko
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-09-17 14:25 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-15 16:39 [PATCH v5 0/6] ARM: Add Rockchip RV1126 support Jagan Teki
2022-09-15 16:39 ` Jagan Teki
2022-09-15 16:39 ` Jagan Teki
2022-09-15 16:39 ` [PATCH v5 1/6] i2c: rk3x: Add rv1126 support Jagan Teki
2022-09-15 16:39 ` Jagan Teki
2022-09-15 16:39 ` Jagan Teki
2022-09-16 19:29 ` Wolfram Sang
2022-09-16 19:29 ` Wolfram Sang
2022-09-16 19:29 ` Wolfram Sang
2022-09-15 16:39 ` [PATCH v5 2/6] clk: rockchip: Add dt-binding header for RV1126 Jagan Teki
2022-09-15 16:39 ` Jagan Teki
2022-09-15 16:39 ` Jagan Teki
2022-09-15 16:39 ` [PATCH v5 3/6] dt-bindings: clock: rockchip: Document RV1126 CRU Jagan Teki
2022-09-15 16:39 ` Jagan Teki
2022-09-15 16:39 ` Jagan Teki
2022-09-15 16:39 ` [PATCH v5 4/6] clk: rockchip: Add clock controller support for RV1126 SoC Jagan Teki
2022-09-15 16:39 ` Jagan Teki
2022-09-15 16:39 ` Jagan Teki
2022-09-17 6:55 ` Heiko Stuebner
2022-09-17 6:55 ` Heiko Stuebner
2022-09-17 6:55 ` Heiko Stuebner
2022-09-17 11:58 ` Jagan Teki
2022-09-17 11:58 ` Jagan Teki
2022-09-17 11:58 ` Jagan Teki
2022-09-17 14:25 ` Heiko Stuebner [this message]
2022-09-17 14:25 ` Heiko Stuebner
2022-09-17 14:25 ` Heiko Stuebner
2022-09-15 16:39 ` [PATCH v5 5/6] ARM: dts: rockchip: Add Rockchip RV1126 pinctrl Jagan Teki
2022-09-15 16:39 ` Jagan Teki
2022-09-15 16:39 ` Jagan Teki
2022-09-17 14:26 ` Heiko Stuebner
2022-09-17 14:26 ` Heiko Stuebner
2022-09-17 14:26 ` Heiko Stuebner
2022-09-17 14:37 ` Jagan Teki
2022-09-17 14:37 ` Jagan Teki
2022-09-17 14:37 ` Jagan Teki
2022-09-18 9:29 ` Heiko Stübner
2022-09-18 9:29 ` Heiko Stübner
2022-09-18 9:29 ` Heiko Stübner
2022-09-15 16:39 ` [PATCH v5 6/6] ARM: dts: rockchip: Add Rockchip RV1126 SoC Jagan Teki
2022-09-15 16:39 ` Jagan Teki
2022-09-15 16:39 ` Jagan Teki
2022-09-23 13:33 ` Heiko Stuebner
2022-09-23 13:33 ` Heiko Stuebner
2022-09-23 13:33 ` Heiko Stuebner
2022-09-23 13:38 ` Jagan Teki
2022-09-23 13:38 ` Jagan Teki
2022-09-23 13:38 ` Jagan Teki
2022-09-18 8:45 ` (subset) [PATCH v5 0/6] ARM: Add Rockchip RV1126 support Heiko Stuebner
2022-09-18 8:45 ` Heiko Stuebner
2022-09-18 8:45 ` Heiko Stuebner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1760564.3VsfAaAtOV@phil \
--to=heiko@sntech.de \
--cc=devicetree@vger.kernel.org \
--cc=finley.xiao@rock-chips.com \
--cc=jagan@edgeble.ai \
--cc=kever.yang@rock-chips.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.