From: "Stefan Dösinger" <stefandoesinger@gmail.com>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>,
Lee Jones <lee@kernel.org>, Linus Walleij <linusw@kernel.org>
Cc: Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Brian Masney <bmasney@redhat.com>, Vinod Koul <vkoul@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Russell King <linux@armlinux.org.uk>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Manivannan Sadhasivam <mani@kernel.org>,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-phy@lists.infradead.org, mfd@lists.linux.dev
Subject: Re: [PATCH v11 04/12] ARM: dts: zte: Declare zx297520v3 CRM device nodes
Date: Wed, 02 Sep 2026 13:29:12 +0300 [thread overview]
Message-ID: <rJbfdbXrS62xFUkr8Ld5TQ@gmail.com> (raw)
In-Reply-To: <20260826-zx29clk-v11-4-f8ad59c6426c@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 6731 bytes --]
Hi List, and in particular Krzysztof,
Am Mittwoch, 26. August 2026, 00:24:03 Ostafrikanische Zeit schrieb Stefan
Dösinger:
> This patch adds DT nodes for the main clock and reset controllers on the
> zx297520v3 board. It replaces the temporary placeholder UART clocks with
> the proper clocks exported by topcrm and lspcrm.
>
> Signed-off-by: Stefan Dösinger <stefandoesinger@gmail.com>
>
This patch is the only one of my Z29 Clock and Reset series that has not seen
review comments Did it slip through the cracks?
Linus Walleij added his R-B on the patch that added the mostly stub DSTI file,
so I added him to the mail too.
Cheers,
Stefan
> ---
>
> Version 11: Improved the above the line commit description, removing
> references to "previous patches" that won't make sense when reading it
> in the kernel commit log.
>
> Version 10: Fix issues with dt-check-style --mode=strict in newly added
> code, but left issues in existing nodes alone.
>
> Version 9:
> Sort new nodes by mmio address
> rename syscon-reboot to "reboot"
> adjust to changes in bindings
>
> Version 7:
> Add phy nodes to topcrm
> Remove syscon from matrixclk again
> Adapt remove now-removed extra clk inputs from matrix
> Add reset to LSP
> osc26m -> clock-26m for the fixed rate clocks, likewise for 32k
>
> Version 6:
> Add syscon to matrixclk
>
> Version 5:
> Re-name from *clk to *crm
> Add the syscon-reboot node here because the binding requires it
> Re-add accidentally dropped uart2 IRQ
> ---
> arch/arm/boot/dts/zte/zx297520v3.dtsi | 101
> ++++++++++++++++++++++++++++++---- 1 file changed, 89 insertions(+), 12
> deletions(-)
>
> diff --git a/arch/arm/boot/dts/zte/zx297520v3.dtsi
> b/arch/arm/boot/dts/zte/zx297520v3.dtsi index a16c30a164bb..ebac3cd137df
> 100644
> --- a/arch/arm/boot/dts/zte/zx297520v3.dtsi
> +++ b/arch/arm/boot/dts/zte/zx297520v3.dtsi
> @@ -3,12 +3,26 @@
> * Copyright (c) 2026 Stefan Dösinger <stefandoesinger@gmail.com>
> */
>
> +#include <dt-bindings/clock/zte,zx297520v3-clk.h>
> #include <dt-bindings/interrupt-controller/arm-gic.h>
> +#include <dt-bindings/reset/zte,zx297520v3-reset.h>
>
> / {
> #address-cells = <1>;
> #size-cells = <1>;
>
> + osc26m: clock-26m {
> + compatible = "fixed-clock";
> + #clock-cells = <0>;
> + clock-frequency = <26000000>;
> + };
> +
> + osc32k: clock-32k {
> + compatible = "fixed-clock";
> + #clock-cells = <0>;
> + clock-frequency = <32768>;
> + };
> +
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;
> @@ -20,15 +34,6 @@ cpu@0 {
> };
> };
>
> - /* Base bus clock and default for the UART. It will be replaced once
a
> clock driver has - * been added.
> - */
> - uartclk: uartclk-26000000 {
> - #clock-cells = <0>;
> - compatible = "fixed-clock";
> - clock-frequency = <26000000>;
> - };
> -
> timer {
> compatible = "arm,armv7-timer";
> interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
> @@ -75,18 +80,87 @@ uart0: serial@131000 {
> arm,primecell-periphid = <0x0018c011>;
> reg = <0x00131000 0x1000>;
> interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
> - clocks = <&uartclk>, <&uartclk>;
> + clocks = <&topcrm ZX297520V3_UART0_WCLK>,
> + <&topcrm ZX297520V3_UART0_PCLK>;
> clock-names = "uartclk", "apb_pclk";
> + resets = <&topcrm ZX297520V3_UART0_RESET>;
> +
> status = "disabled";
> };
>
> + topcrm: clock-controller@13b000 {
> + compatible = "zte,zx297520v3-topcrm", "syscon";
> + reg = <0x0013b000 0x400>;
> + #clock-cells = <1>;
> + clocks = <&osc26m>, <&osc32k>;
> + clock-names = "osc26m", "osc32k";
> + interrupts = <GIC_SPI 42 IRQ_TYPE_EDGE_RISING>,
> + <GIC_SPI 43
IRQ_TYPE_EDGE_RISING>,
> + <GIC_SPI 45
IRQ_TYPE_EDGE_RISING>,
> + <GIC_SPI 46
IRQ_TYPE_EDGE_RISING>;
> + interrupt-names = "usb-up", "usb-down",
> + "hsic-up", "hsic-down";
> + #phy-cells = <1>;
> + #reset-cells = <1>;
> +
> + reboot {
> + compatible = "syscon-reboot";
> + mask = <0x1>;
> + offset = <0x0>;
> + value = <0x1>;
> + };
> + };
> +
> + matrixcrm: clock-controller@1306000 {
> + compatible = "zte,zx297520v3-matrixcrm";
> + reg = <0x01306000 0x400>;
> + #clock-cells = <1>;
> + clocks = <&osc26m>, <&osc32k>,
> + <&topcrm ZX297520V3_AHB_PCLK>,
> + <&topcrm ZX297520V3_MPLL>,
> + <&topcrm ZX297520V3_MPLL_D5>,
> + <&topcrm ZX297520V3_DPLL>,
> + <&topcrm ZX297520V3_GPLL>,
> + <&topcrm ZX297520V3_GPLL_D2>,
> + <&topcrm ZX297520V3_GATED_OSC26M>;
> + clock-names = "osc26m", "osc32k", "ahb", "mpll",
> + "mpll-d5", "dpll", "gpll",
"gpll-d2",
> + "wclk-osc26m";
> + #hwlock-cells = <1>;
> + #reset-cells = <1>;
> + };
> +
> + lspcrm: clock-controller@1400000 {
> + compatible = "zte,zx297520v3-lspcrm";
> + reg = <0x01400000 0x100>;
> + #clock-cells = <1>;
> + clocks = <&matrixcrm
ZX297520V3_LSP_MPLL_D5_WCLK>,
> + <&matrixcrm
ZX297520V3_LSP_MPLL_D4_WCLK>,
> + <&matrixcrm
ZX297520V3_LSP_MPLL_D6_WCLK>,
> + <&matrixcrm
ZX297520V3_LSP_MPLL_D8_WCLK>,
> + <&matrixcrm
ZX297520V3_LSP_MPLL_D12_WCLK>,
> + <&matrixcrm
ZX297520V3_LSP_OSC26M_WCLK>,
> + <&matrixcrm
ZX297520V3_LSP_OSC32K_WCLK>,
> + <&matrixcrm ZX297520V3_LSP_PCLK>,
> + <&matrixcrm ZX297520V3_LSP_TDM_WCLK>,
> + <&matrixcrm
ZX297520V3_LSP_DPLL_D4_WCLK>;
> + clock-names = "mpll-d5", "mpll-d4", "mpll-d6",
> + "mpll-d8", "mpll-d12", "osc26m",
"osc32k",
> + "pclk", "tdm-wclk", "dpll-d4";
> + #reset-cells = <1>;
> + resets = <&matrixcrm ZX297520V3_LSP_RESET>;
> + };
> +
> uart1: serial@1408000 {
> compatible = "arm,pl011", "arm,primecell";
> arm,primecell-periphid = <0x0018c011>;
> reg = <0x01408000 0x1000>;
> interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
> - clocks = <&uartclk>, <&uartclk>;
> + clocks = <&lspcrm ZX297520V3_UART1_WCLK>,
> + <&lspcrm ZX297520V3_UART1_PCLK>;
> clock-names = "uartclk", "apb_pclk";
> + resets = <&lspcrm ZX297520V3_UART1_RESET>;
> +
> status = "disabled";
> };
>
> @@ -95,8 +169,11 @@ uart2: serial@140d000 {
> arm,primecell-periphid = <0x0018c011>;
> reg = <0x0140d000 0x1000>;
> interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
> - clocks = <&uartclk>, <&uartclk>;
> + clocks = <&lspcrm ZX297520V3_UART2_WCLK>,
> + <&lspcrm ZX297520V3_UART2_PCLK>;
> clock-names = "uartclk", "apb_pclk";
> + resets = <&lspcrm ZX297520V3_UART2_RESET>;
> +
> status = "disabled";
> };
> };
>
> --
> 2.54.0
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 870 bytes --]
[-- Attachment #2: Type: text/plain, Size: 112 bytes --]
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
next prev parent reply other threads:[~2026-09-02 10:29 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-25 21:23 [PATCH v11 00/12] ZTE zx297520v3 clock bindings and driver Stefan Dösinger
2026-08-25 21:24 ` [PATCH v11 01/12] dt-bindings: clk: zte: Add zx297520v3 top clock and reset controller Stefan Dösinger
2026-08-25 21:27 ` sashiko-bot
2026-08-25 21:24 ` [PATCH v11 02/12] dt-bindings: clk: zte: Add zx297520v3 matrix " Stefan Dösinger
2026-08-25 21:29 ` sashiko-bot
2026-08-25 21:24 ` [PATCH v11 03/12] dt-bindings: clk: zte: Add zx297520v3 LSP " Stefan Dösinger
2026-08-25 21:28 ` sashiko-bot
2026-08-25 21:24 ` [PATCH v11 04/12] ARM: dts: zte: Declare zx297520v3 CRM device nodes Stefan Dösinger
2026-08-25 21:31 ` sashiko-bot
2026-09-02 10:29 ` Stefan Dösinger [this message]
2026-08-25 21:24 ` [PATCH v11 05/12] mfd: zx297520v3: Add a clock and reset MFD driver Stefan Dösinger
2026-08-25 21:31 ` sashiko-bot
2026-08-25 21:24 ` [PATCH v11 06/12] clk: zte: Add Clock registration infrastructure Stefan Dösinger
2026-08-25 21:32 ` sashiko-bot
2026-08-25 21:24 ` [PATCH v11 07/12] clk: zte: Add regmap-based clocks Stefan Dösinger
2026-08-25 21:38 ` sashiko-bot
2026-08-25 21:24 ` [PATCH v11 08/12] clk: zte: Add zx PLL support infrastructure Stefan Dösinger
2026-08-25 21:35 ` sashiko-bot
2026-08-25 21:24 ` [PATCH v11 09/12] clk: zte: Introduce a driver for zx297520v3 top clocks Stefan Dösinger
2026-08-25 21:38 ` sashiko-bot
2026-08-25 21:24 ` [PATCH v11 10/12] clk: zte: Introduce a driver for zx297520v3 matrix clocks Stefan Dösinger
2026-08-25 21:36 ` sashiko-bot
2026-08-25 21:24 ` [PATCH v11 11/12] clk: zte: Introduce a driver for zx297520v3 LSP clocks Stefan Dösinger
2026-08-25 21:34 ` sashiko-bot
2026-08-25 21:24 ` [PATCH v11 12/12] reset: zte: Add a zx297520v3 reset driver Stefan Dösinger
2026-08-25 21:35 ` sashiko-bot
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=rJbfdbXrS62xFUkr8Ld5TQ@gmail.com \
--to=stefandoesinger@gmail.com \
--cc=bmasney+clk@redhat.com \
--cc=bmasney@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet+clk@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=mani@kernel.org \
--cc=mfd@lists.linux.dev \
--cc=mturquette@baylibre.com \
--cc=neil.armstrong@linaro.org \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=vkoul@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox