Linux clock framework development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jisheng Zhang" <jszhang@kernel.org>
Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
	linux-gpio@vger.kernel.org, mfd@lists.linux.dev, robh@kernel.org,
	conor+dt@kernel.org, lee@kernel.org
Subject: Re: [PATCH v4 12/13] arm64: dts: synaptics: add SL2610 family SoCs
Date: Fri, 04 Dec 2026 18:05:47 +0000	[thread overview]
Message-ID: <sashiko-outbox-250368@kernel.org> (raw)
In-Reply-To: <20261204140732.31223-13-jszhang@kernel.org>

Thank you for your contribution! Sashiko AI review found 7 potential
issues to consider:
- [Medium] arm64: dts: synaptics: missing clock-output-names on
  clock-osc node
- [Medium] arm64: dts: synaptics: missing sticky resets on SL2610 MCU
  UART nodes
- [Low] arm64: dts: synaptics: optee node placed under root instead of
  /firmware
- [Low] arm64: dts: synaptics: 4-CPU PPI mask used on 1-core and 2-core
  SL2610 SoCs
- [Low] arm64: dts: synaptics: non-generic sm-bus node name in
  sl2611.dtsi
- [Low] arm64: dts: synaptics: duplicated cpu1 and pmu nodes in
  sl2615/17/19.dtsi
- [Low] arm64: dts: synaptics: missing root compatible property in
  sl2619.dtsi
--

commit 9e9c29c7ff9d5fff145a2b154951b9695d30488a
Author: Jisheng Zhang <jszhang@kernel.org>

arm64: dts: synaptics: add SL2610 family SoCs

This commit adds Devicetree source files for the Synaptics SL2610 family
SoCs (SL2611, SL2613, SL2615, SL2617, and SL2619), describing their
CPUs, GIC, system controllers, and on-chip peripherals.

> diff --git a/arch/arm64/boot/dts/synaptics/sl2611.dtsi b/arch/arm64/boot/dts/synaptics/sl2611.dtsi
> new file mode 100644
> index 0000000000000..03859bae07bda
> --- /dev/null
> +++ b/arch/arm64/boot/dts/synaptics/sl2611.dtsi
> @@ -0,0 +1,466 @@

[ ... ]

> +	osc: clock-osc {
> +		compatible = "fixed-clock";
> +		#clock-cells = <0>;
> +	};

[Severity: Medium]
Does this node need clock-output-names = "osc"?

Without clock-output-names, _of_fixed_clk_setup() registers the clock
under the node name ("clock-osc"), because the DTS label is discarded by
dtc.

In drivers/clk/berlin/clk-sl2610.c, ge_ptp_refclk_parent_names[] looks
up parent index 0 by the literal name "osc".  Without a matching clock
name, CLK_GE0_PTP_REF and CLK_GE1_PTP_REF remain orphaned at 0 Hz and
sl_clk_determine_rate() returns -EINVAL when parent 0 is selected.

[ ... ]

> +	optee {
> +		compatible = "linaro,optee-tz";
> +		method = "smc";
> +	};

[Severity: Low]
Should this optee node live under a /firmware container node instead of
directly under the root node?

Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.yaml
places optee under /firmware, and of_platform_default_populate_init()
populates /firmware children ahead of general root devices.

[ ... ]

> +		sm-bus {
> +			compatible = "simple-bus";
> +			ranges;
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +			dma-ranges = <0xa0000000 0x00000000 0x10000000>;

[Severity: Low]
This isn't a bug, but Devicetree convention prefers generic node names
such as bus (for example sm_bus: bus) rather than subsystem-prefixed
names like sm-bus.

[ ... ]

> +			sm_uart0: serial@e5030000 {
> +				compatible = "syna,sl2610-uart", "snps,dw-apb-uart";
> +				reg = <0xe5030000 0x100>;
> +				clocks = <&sm_clk CLK_SER_UART0>, <&sm_clk CLK_CFG_UART0>;
> +				clock-names = "baudclk", "apb_pclk";
> +				interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
> +				reg-shift = <2>;
> +
> +				status = "disabled";
> +			};

[Severity: Medium]
Are sm_uart0 through sm_uart3 missing their resets properties for the
sticky PRST and SRST lines in sm_rst?

drivers/reset/reset-sl2610.c defines RST_SM_UART{0..3}PRST and SRST in
SL2610_SMGBL_STICKYRST0, and commit ac04a6daa030 ("dt-bindings: serial:
snps-dw-apb-uart: Add Synaptics sl2610 uart") allowed two resets for
syna,sl2610-uart.  Sibling sm_i3c0 also declares its pair from sm_rst.

Without resets, dw8250_probe() cannot deassert them, so any MCU UART
left asserted in reset by hardware defaults or firmware (such as
non-console ports like sm_uart1) will fail to operate or fault on
register access.

[ ... ]

> +		gic: interrupt-controller@f7e59000 {
> +			compatible = "arm,gic-400";
> +			reg = <0xf7e59000 0x1000>,
> +			      <0xf7e5a000 0x2000>,
> +			      <0xf7e5c000 0x2000>,
> +			      <0xf7e5e000 0x2000>;
> +			#interrupt-cells = <3>;
> +			interrupt-controller;
> +			interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
> +		};

[ ... ]

> +	timer {
> +		compatible = "arm,armv8-timer";
> +		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
> +			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
> +			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
> +			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
> +	};

[Severity: Low]
Should these PPI interrupts use GIC_CPU_MASK_SIMPLE(1) here and
GIC_CPU_MASK_SIMPLE(2) in the dual-core SoC files instead of a 4-CPU
mask?

sl2611 and sl2613 are single-core SoCs and sl2615, sl2617, and sl2619
are dual-core.  While Linux masks off bits [15:8] in
gic_irq_domain_translate(), other DT consumers receive an inaccurate
4-CPU PPI mask.

[ ... ]

> diff --git a/arch/arm64/boot/dts/synaptics/sl2617.dtsi b/arch/arm64/boot/dts/synaptics/sl2617.dtsi
> new file mode 100644
> index 0000000000000..17f8ea9f2a44b
> --- /dev/null
> +++ b/arch/arm64/boot/dts/synaptics/sl2617.dtsi
> @@ -0,0 +1,46 @@

[ ... ]

> +	cpus {
> +		cpu1: cpu@100 {
> +			device_type = "cpu";
> +			compatible = "arm,cortex-a55";
> +			reg = <0x100>;
> +			cpu-idle-states = <&cpu_sleep_0>;
> +			d-cache-line-size = <64>;
> +			d-cache-sets = <128>;
> +			d-cache-size = <32768>;
> +			enable-method = "psci";
> +			i-cache-line-size = <64>;
> +			i-cache-sets = <128>;
> +			i-cache-size = <32768>;
> +			next-level-cache = <&l2_1>;
> +
> +			l2_1: l2-cache {
> +				compatible = "cache";
> +				cache-level = <2>;
> +				cache-line-size = <64>;
> +				cache-sets = <256>;
> +				cache-size = <65536>;
> +				cache-unified;
> +				next-level-cache = <&l3>;
> +			};
> +		};
> +	};
> +
> +	pmu {
> +		interrupt-affinity = <&cpu0>,
> +				     <&cpu1>;
> +		interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
> +			     <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
> +	};

[Severity: Low]
Can sl2617.dtsi and sl2619.dtsi include sl2615.dtsi (or a shared
dual-core dtsi) and override only the root compatible property, the way
sl2613.dtsi includes sl2611.dtsi?

Right now the same cpu1, l2_1, and pmu definitions are duplicated
verbatim across sl2615.dtsi, sl2617.dtsi, and sl2619.dtsi.

> diff --git a/arch/arm64/boot/dts/synaptics/sl2619.dtsi b/arch/arm64/boot/dts/synaptics/sl2619.dtsi
> new file mode 100644
> index 0000000000000..6539c5a3dce04
> --- /dev/null
> +++ b/arch/arm64/boot/dts/synaptics/sl2619.dtsi
> @@ -0,0 +1,44 @@

[ ... ]

> +#include "sl2613.dtsi"
> +
> +/ {
> +	cpus {

[Severity: Low]
Is compatible = "syna,sl2619" missing from the root node here?

Because sl2619.dtsi includes sl2613.dtsi without overriding compatible,
it inherits "syna,sl2613" instead of "syna,sl2619", unlike sl2615.dtsi
and sl2617.dtsi.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204140732.31223-1-jszhang@kernel.org?part=12

  reply	other threads:[~2026-12-04 18:05 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 14:07 [PATCH v4 00/13] arm64: add Synaptics SL2610 SoCs and RDK boards Jisheng Zhang
2026-12-04 14:07 ` [PATCH v4 01/13] arm64: kconfig: let ARCH_BERLIN cover Synaptics arm64 SoCs Jisheng Zhang
2026-12-04 14:07 ` [PATCH v4 02/13] pinctrl: berlin: use u16 instead of u8 for the offset Jisheng Zhang
2026-12-04 14:07 ` [PATCH v4 03/13] pinctrl: berlin: enable module build support Jisheng Zhang
2026-12-04 15:03   ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 04/13] pinctrl: berlin: add optional pinconf support Jisheng Zhang
2026-12-04 15:22   ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 05/13] dt-bindings: soc: synaptics: add SL2610 system controllers Jisheng Zhang
2026-12-04 15:41   ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 06/13] mfd: synaptics: add SL2610 system controller support Jisheng Zhang
2026-12-04 15:58   ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 07/13] reset: add Synaptics SL2610 reset " Jisheng Zhang
2026-12-04 16:24   ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 08/13] pinctrl: berlin: add Synaptics SL2610 pin " Jisheng Zhang
2026-12-04 16:51   ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 09/13] clk: berlin: add Synaptics clock controller helpers Jisheng Zhang
2026-12-04 17:13   ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 10/13] clk: berlin: add Synaptics SL2610 clocks and PLLs Jisheng Zhang
2026-12-04 17:39   ` sashiko-bot
2026-12-04 14:07 ` [PATCH v4 11/13] dt-bindings: arm: berlin: add Synaptics SL2610 SoCs and RDK boards Jisheng Zhang
2026-12-04 14:07 ` [PATCH v4 12/13] arm64: dts: synaptics: add SL2610 family SoCs Jisheng Zhang
2026-12-04 18:05   ` sashiko-bot [this message]
2026-12-04 14:07 ` [PATCH v4 13/13] arm64: dts: synaptics: add SL2610 family RDK boards Jisheng Zhang
2026-12-04 18:19   ` 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=sashiko-outbox-250368@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jszhang@kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=mfd@lists.linux.dev \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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