From: "Heiko Stübner" <heiko@sntech.de>
To: linux-kernel@vger.kernel.org,
Detlev Casanova <detlev.casanova@collabora.com>
Cc: Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Elaine Zhang <zhangqing@rock-chips.com>,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org,
Sugar Zhang <sugar.zhang@rock-chips.com>,
Detlev Casanova <detlev.casanova@collabora.com>
Subject: Re: [PATCH 2/3] clk: rockchip: Add dt-binding header for rk3576
Date: Fri, 02 Aug 2024 16:34:07 +0200 [thread overview]
Message-ID: <4084310.iTQEcLzFEP@diego> (raw)
In-Reply-To: <20240802141816.288337-3-detlev.casanova@collabora.com>
Hi Detlev,
Am Freitag, 2. August 2024, 16:12:49 CEST schrieb Detlev Casanova:
> From: Elaine Zhang <zhangqing@rock-chips.com>
>
> Add the dt-bindings header for the rk3576, that gets shared between
> the clock controller and the clock references in the dts.
>
> Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
> Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
> Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
> ---
> .../dt-bindings/clock/rockchip,rk3576-cru.h | 1149 +++++++++++++++++
> 1 file changed, 1149 insertions(+)
> create mode 100644 include/dt-bindings/clock/rockchip,rk3576-cru.h
>
> diff --git a/include/dt-bindings/clock/rockchip,rk3576-cru.h b/include/dt-bindings/clock/rockchip,rk3576-cru.h
> new file mode 100644
> index 0000000000000..19d25f082dc57
> --- /dev/null
> +++ b/include/dt-bindings/clock/rockchip,rk3576-cru.h
> @@ -0,0 +1,1149 @@
> +#define CLK_NR_CLKS (ACLK_KLAD + 1)
this needs to go please. Take a look at how Sebastian got rid of needed
that max-constant for rk3588.
[...]
> +#define SRST_H_VEPU1 1267
> +#define SRST_A_VEPU1 1268
> +#define SRST_VEPU1_CORE 1269
> +
> +/********Name=PHPPHYSOFTRST_CON00,Offset=0x8A00********/
> +#define SRST_P_PHPPHY_CRU 131073
> +#define SRST_P_APB2ASB_SLV_CHIP_TOP 131075
> +#define SRST_P_PCIE2_COMBOPHY0 131077
> +#define SRST_P_PCIE2_COMBOPHY0_GRF 131078
> +#define SRST_P_PCIE2_COMBOPHY1 131079
> +#define SRST_P_PCIE2_COMBOPHY1_GRF 131080
this seems to lump together different components and with that creates
these gaps. I.e. I really don't think the phpphy in these registers is part
of the core CRU.
That huge memory length of 0x5c000 in your dt-binding is also a good
indicator that this needs to have more separation and not span multiple
devices.
> +/********Name=PHPPHYSOFTRST_CON01,Offset=0x8A04********/
> +#define SRST_PCIE0_PIPE_PHY 131093
> +#define SRST_PCIE1_PIPE_PHY 131096
> +
> +/********Name=SECURENSSOFTRST_CON00,Offset=0x10A00********/
> +#define SRST_H_CRYPTO_NS 262147
> +#define SRST_H_TRNG_NS 262148
> +#define SRST_P_OTPC_NS 262152
> +#define SRST_OTPC_NS 262153
> +
> +/********Name=PMU1SOFTRST_CON00,Offset=0x20A00********/
> +#define SRST_P_HDPTX_GRF 524288
same here, that is also most likely not part of the CRU but a different block.
Other socs already implement separate clock controllers for different
parts, so please take a look there.
Thanks
Heiko
next prev parent reply other threads:[~2024-08-02 14:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-02 14:12 [PATCH 0/3] Add CRU support for rk3576 SoC Detlev Casanova
2024-08-02 14:12 ` [PATCH 1/3] dt-bindings: clock: add rk3576 cru bindings Detlev Casanova
2024-08-02 14:12 ` [PATCH 2/3] clk: rockchip: Add dt-binding header for rk3576 Detlev Casanova
2024-08-02 14:34 ` Heiko Stübner [this message]
2024-08-02 21:11 ` Detlev Casanova
2024-08-02 14:12 ` [PATCH 3/3] clk: rockchip: Add clock controller for the RK3576 Detlev Casanova
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=4084310.iTQEcLzFEP@diego \
--to=heiko@sntech.de \
--cc=conor+dt@kernel.org \
--cc=detlev.casanova@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mturquette@baylibre.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=sugar.zhang@rock-chips.com \
--cc=zhangqing@rock-chips.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox