[PATCH 2/8] dt-bindings: clock: Describe CS7542 PCIe gates and resets
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Mon Nov 23 10:49:26 PST 2026
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: clock: virtual child node for parent syscon
clocks and resets
--
commit 9d52d2650fe35dd9a422c99bb705a36a99c1ed9f
Author: Fil Dunsky <filipp.dunsky at gmail.com>
dt-bindings: clock: Describe CS7542 PCIe gates and resets
This commit adds a Devicetree binding for the Cortina Systems CS7542 PCIe
clock gates and resets as a child node of the global control syscon.
> diff --git a/Documentation/devicetree/bindings/clock/cortina,cs7542-pcie-control.yaml b/Documentation/devicetree/bindings/clock/cortina,cs7542-pcie-control.yaml
> new file mode 100644
> index 0000000000000..08e0214d2bb22
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/cortina,cs7542-pcie-control.yaml
> @@ -0,0 +1,47 @@
[ ... ]
> +properties:
> + compatible:
> + const: cortina,cs7542-pcie-control
> +
> + "#clock-cells":
> + const: 1
> +
> + "#reset-cells":
> + const: 1
[ ... ]
> diff --git a/Documentation/devicetree/bindings/soc/cortina/cortina,cs7542-syscon.yaml b/Documentation/devicetree/bindings/soc/cortina/cortina,cs7542-syscon.yaml
> index fb074de870bd4..52597c4e84d20 100644
> --- a/Documentation/devicetree/bindings/soc/cortina/cortina,cs7542-syscon.yaml
> +++ b/Documentation/devicetree/bindings/soc/cortina/cortina,cs7542-syscon.yaml
> @@ -29,6 +29,10 @@ properties:
> "#clock-cells":
> const: 1
>
> + pcie-control:
> + type: object
> + $ref: /schemas/clock/cortina,cs7542-pcie-control.yaml#
[Severity: Medium]
Should the PCIe gate clocks and controller resets be provided directly by
the parent cortina,cs7542-syscon node instead of a resource-less
pcie-control child node?
The parent node already maps the 0x100-byte global control register block
and acts as a clock provider with #clock-cells = <1>. Creating a child
node with no reg property or Devicetree resources of its own puts a
driver split into the Devicetree ABI, contrary to
Documentation/devicetree/bindings/writing-bindings.rst.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-b4-cs7542-pcie-v1-0-4cde5201d404@gmail.com?part=2
More information about the linux-phy
mailing list