[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8faae2a3-6758-979c-e7b0-1d4b18ae1a5b@linaro.org>
Date: Sun, 19 Jun 2022 13:12:43 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Aidan MacDonald <aidanmacdonald.0x0@...il.com>,
linus.walleij@...aro.org, brgl@...ev.pl, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, wens@...e.org, jic23@...nel.org,
lee.jones@...aro.org, sre@...nel.org, broonie@...nel.org,
gregkh@...uxfoundation.org, lgirdwood@...il.com
Cc: lars@...afoo.de, rafael@...nel.org, quic_gurus@...cinc.com,
sebastian.reichel@...labora.com, andy.shevchenko@...il.com,
michael@...le.cc, linux-gpio@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-iio@...r.kernel.org, linux-pm@...r.kernel.org
Subject: Re: [PATCH v3 06/16] dt-bindings: gpio: Add AXP192 GPIO bindings
On 18/06/2022 23:39, Aidan MacDonald wrote:
> The AXP192 PMIC is different enough from the PMICs supported by
> the AXP20x GPIO driver to warrant a separate driver. The AXP192
> driver also supports interrupts and pinconf settings.
>
> Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@...il.com>
> ---
> .../bindings/gpio/x-powers,axp192-gpio.yaml | 68 +++++++++++++++++++
> 1 file changed, 68 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/gpio/x-powers,axp192-gpio.yaml
>
> diff --git a/Documentation/devicetree/bindings/gpio/x-powers,axp192-gpio.yaml b/Documentation/devicetree/bindings/gpio/x-powers,axp192-gpio.yaml
> new file mode 100644
> index 000000000000..1e368cac9d3a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/x-powers,axp192-gpio.yaml
> @@ -0,0 +1,68 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: "http://devicetree.org/schemas/gpio/x-powers,axp192-gpio.yaml#"
> +$schema: "http://devicetree.org/meta-schemas/core.yaml#"
> +
> +title: X-Powers AXP192 GPIO Device Tree Bindings
> +
> +maintainers:
> + - Chen-Yu Tsai <wens@...e.org>
> +
> +properties:
> + compatible:
> + const: x-powers,axp192-gpio
> +
> + gpio-controller: true
> +
> + "#gpio-cells":
> + const: 2
> + description: >
> + The first cell is the pin number and the second is the GPIO flags.
> +
> + gpio-ranges:
> + maxItems: 1
> +
> +patternProperties:
> + "-pins$":
> + $ref: /schemas/pinctrl/pinmux-node.yaml#
> +
> + properties:
> + pins:
> + items:
> + enum:
> + - GPIO0
> + - GPIO1
> + - GPIO2
> + - GPIO3
> + - GPIO4
> + - N_RSTO
> +
> + function:
> + enum:
> + - output
> + - input
> + - ldo
> + - pwm
> + - adc
> + - low_output
> + - floating
> + - ext_chg_ctl
> + - ldo_status
> +
> +required:
> + - compatible
> + - "#gpio-cells"
> + - gpio-controller
> + - gpio-ranges
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + pinctrl0: gpio@0 {
Unit address without reg, that's not a valid DTS.
> + compatible = "x-powers,axp192-gpio";
> + gpio-controller;
> + #gpio-cells = <2>;
> + gpio-ranges = <&pinctrl0 0 0 6>;
> + };
Best regards,
Krzysztof
Powered by blists - more mailing lists