Re: [PATCH 2/8] dt-bindings: gpio: Add AAEON embedded controller GPIO binding

Krzysztof Kozlowski
2025-12-12T08:19:59Z

On 12/12/2025 08:41, Thomas Perrot (Schneider Electric) wrote:
> Add device tree binding documentation for the GPIO controller functionality
> provided by the AAEON embedded controller. This controller provides 7 GPOs
> and 12 GPIOs for a total of 19 GPIO lines.
>
> The GPIO controller is defined as a child node of the AAEON MCU device.
>
> Signed-off-by: Thomas Perrot (Schneider Electric) <thomas.perrot@bootlin.com>
> ---
> .../bindings/gpio/aaeon,srg-imx8pl-gpio.yaml | 54 ++++++++++++++++++++++
> 1 file changed, 54 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/gpio/aaeon,srg-imx8pl-gpio.yaml b/Documentation/devicetree/bindings/gpio/aaeon,srg-imx8pl-gpio.yaml
> new file mode 100644
> index 0000000000000000000000000000000000000000..8040dc0a36ee5650488520c2218f09fd08cdf64a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/aaeon,srg-imx8pl-gpio.yaml
> @@ -0,0 +1,54 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/gpio/aaeon,srg-imx8pl-gpio.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: AAEON Embedded Controller GPIO
> +
> +maintainers:
> + - Jérémie Dautheribes <jeremie.dautheribes@bootlin.com>
> + - Thomas Perrot <thomas.perrot@bootlin.com>
> +
> +description: |
> + GPIO controller functionality provided by the AAEON embedded controller.
> + This controller provides 7 GPOs and 12 GPIOs.
> +
> + The GPIO controller is a sub-device of the AAEON MCU and must be defined
> + as a child node of the MCU device.
> +
> +properties:
> + compatible:
> + const: aaeon,srg-imx8pl-gpio
> +
> + gpio-controller: true

That's not really separate node if you do not have any resources. Fold
it into the parent.

Best regards,
Krzysztof