Re: [PATCH v2 1/5] dt-bindings: soc: ti: ti,j721e-system-controller: Add PCIe ctrl property

From: Rob Herring
Date: Fri Apr 04 2025 - 12:10:34 EST


On Wed, Apr 02, 2025 at 05:01:57PM +0530, Jayesh Choudhary wrote:
> From: Andrew Davis <afd@xxxxxx>
>
> Add a pattern property for pcie-ctrl which can be part of this controller.
>
> Signed-off-by: Andrew Davis <afd@xxxxxx>
> [j-choudhary@xxxxxx: Change description and add example]
> Signed-off-by: Jayesh Choudhary <j-choudhary@xxxxxx>
> ---
> .../bindings/soc/ti/ti,j721e-system-controller.yaml | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml b/Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml
> index 378e9cc5fac2..13b6b6fa5dee 100644
> --- a/Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml
> +++ b/Documentation/devicetree/bindings/soc/ti/ti,j721e-system-controller.yaml
> @@ -68,6 +68,11 @@ patternProperties:
> description:
> The node corresponding to SoC chip identification.
>
> + "^pcie-ctrl@[0-9a-f]+$":
> + type: object
> + description:
> + The node corresponding to PCIe control register.
> +
> required:
> - compatible
> - reg
> @@ -110,5 +115,10 @@ examples:
> compatible = "ti,am654-chipid";
> reg = <0x14 0x4>;
> };
> +
> + pcie0_ctrl: pcie-ctrl@4070 {
> + compatible = "ti,j784s4-pcie-ctrl", "syscon";

If the parent is a syscon, then this shouldn't really be a syscon. You
can just use the parent's regmap.

But I guess that ship has sailed. This is why bindings should be
complete, so we can review the whole block.

Acked-by: Rob Herring (Arm) <robh@xxxxxxxxxx>