Linux GPIO subsystem 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 05/13] dt-bindings: soc: synaptics: add SL2610 system controllers
Date: Fri, 04 Dec 2026 15:41:22 +0000	[thread overview]
Message-ID: <sashiko-outbox-250125@kernel.org> (raw)
In-Reply-To: <20261204140732.31223-6-jszhang@kernel.org>

Thank you for your contribution! Sashiko AI review found 5 potential
issues to consider:
- [Medium] dt-bindings: soc: synaptics: omit #clock-cells in
  syna,sl2610-avio-syscon
- [Medium] dt-bindings: soc: synaptics: overly permissive pinconf
  subnode schemas
- [Medium] dt-bindings: synaptics: redefine bias-pull-up/down Ohm arg as
  0/1 toggle
- [Low] dt-bindings: clock: sl2610: driver-internal MAX count macros in
  ABI header
- [Low] dt-bindings: soc: synaptics: place CPU and AVIO clock bindings
  under clock/
--

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

dt-bindings: soc: synaptics: add SL2610 system controllers

This commit adds Device Tree binding schemas for the Synaptics SL2610 AVIO,
CPU, MCU, and SoC system control blocks, along with their clock and reset ID
headers.

> diff --git a/Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-avio-syscon.yaml b/Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-avio-syscon.yaml
> new file mode 100644
> index 0000000000000..92e64f53524cc
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-avio-syscon.yaml
> @@ -0,0 +1,44 @@

[ ... ]

> +description: |
> +  The SL2610 AVIO system control block contains the audio PLLs. The
> +  external reference clock supplies the PLL input. This binding does not
> +  expose clock specifiers for this block.

[ ... ]

> +additionalProperties: false

[Severity: Medium]
Should this binding expose #clock-cells for the audio PLL outputs?

This block takes an external reference clock and provides audio PLLs, yet
#clock-cells is omitted and forbidden by additionalProperties: false.
Without it, DT consumers cannot reference the PLLs via clocks phandles,
which forces hardcoded clock names and creates DT ABI churn later.

> diff --git a/Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-cpu-syscon.yaml b/Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-cpu-syscon.yaml
> new file mode 100644
> index 0000000000000..25af41f158e0e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-cpu-syscon.yaml
> @@ -0,0 +1,58 @@

[ ... ]

> +$id: http://devicetree.org/schemas/soc/synaptics/syna,sl2610-cpu-syscon.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Synaptics SL2610 CPU clock controller

[Severity: Low]
As reported by Krzysztof Kozlowski on v2 [1], should
syna,sl2610-cpu-syscon.yaml and syna,sl2610-avio-syscon.yaml be placed
under Documentation/devicetree/bindings/clock/ instead of bindings/soc/?

Unlike the multi-function SoC and MCU syscon bindings, both schemas describe
dedicated clock/PLL controllers.  Moving them to bindings/clock/ (or
documenting any non-clock syscon roles in their titles and descriptions)
avoids path and $id churn later.

> diff --git a/Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-mcu-syscon.yaml b/Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-mcu-syscon.yaml
> new file mode 100644
> index 0000000000000..9902908a57988
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/synaptics/syna,sl2610-mcu-syscon.yaml
> @@ -0,0 +1,97 @@

[ ... ]

> +patternProperties:
> +  '-(pmux|pins)$':
> +    type: object
> +    description: Pin group mux and electrical configuration.
> +    allOf:
> +      - $ref: /schemas/pinctrl/pinmux-node.yaml#
> +      - $ref: /schemas/pinctrl/pincfg-node.yaml#
> +    properties:
> +      groups:
> +        $ref: /schemas/types.yaml#/definitions/string-array
> +      function:
> +        $ref: /schemas/types.yaml#/definitions/string
> +      bias-pull-up:
> +        description: |
> +          Enable the default pull-up with a boolean or 1, or disable it with 0.
> +          Pull resistance is not selectable.
> +        oneOf:
> +          - type: boolean
> +          - $ref: /schemas/types.yaml#/definitions/uint32
> +            enum: [0, 1]
> +      bias-pull-down:
> +        description: |
> +          Enable the default pull-down with a boolean or 1, or disable it with 0.
> +          Pull resistance is not selectable.
> +        oneOf:
> +          - type: boolean
> +          - $ref: /schemas/types.yaml#/definitions/uint32
> +            enum: [0, 1]

[Severity: Medium]
Should bias-pull-up and bias-pull-down be restricted to type: boolean here
and in syna,sl2610-soc-syscon.yaml (including dropping bias-pull-up = <1>
from its example)?

In pincfg-node.yaml, the optional uint32 argument specifies pull resistance
in Ohms on hardware that supports selectable resistance, while disabling
bias uses bias-disable.

Both pincfg-node.yaml and parse_fw_cfg() also treat all bias properties as
mutually exclusive regardless of value, so redefining 0/1 as a toggle
conflicts with generic DT semantics and fails if combined with another bias
property.

> +    required:
> +      - groups
> +      - function
> +    unevaluatedProperties: false

[Severity: Medium]
Can this pin configuration subnode (and the identical one in
syna,sl2610-soc-syscon.yaml) list only the supported properties with
additionalProperties: false instead of unevaluatedProperties: false?

Using unevaluatedProperties: false against pinmux-node.yaml and
pincfg-node.yaml lets dtbs_check silently accept unsupported properties that
berlin_pinconf_group_set() rejects with -EOPNOTSUPP, while leaving supported
pad properties like drive-strength and slew-rate unconstrained.

Also, groups and function redundantly restate $ref types already inherited
from pinmux-node.yaml.

[ ... ]

> diff --git a/include/dt-bindings/clock/syna,sl2610.h b/include/dt-bindings/clock/syna,sl2610.h
> new file mode 100644
> index 0000000000000..c563a2b5ed064
> --- /dev/null
> +++ b/include/dt-bindings/clock/syna,sl2610.h
> @@ -0,0 +1,131 @@

[ ... ]

> +#define CLK_APBDMA		62
> +#define SL2610_CLK_MAX		63
> +
> +/* cpuss */
> +#define CLK_CPU0		0
> +#define CLK_CPU1		1
> +#define CLK_DSU			2
> +#define SL2610_CPU_CLK_MAX	3

[Severity: Low]
Should SL2610_CLK_MAX and SL2610_CPU_CLK_MAX be dropped from this DT binding
header and kept internal to the clock driver?

Neither macro is a hardware clock specifier ID, and exposing driver array
sizes in the binding header means adding any clock ID later breaks the
stable DT ABI.

[1] https://lore.kernel.org/r/20261123-bold-neat-albatross-e92a2b@quoll

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

  reply	other threads:[~2026-12-04 15:41 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 [this message]
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
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-250125@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