[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240716211117.GA387758-robh@kernel.org>
Date: Tue, 16 Jul 2024 15:11:17 -0600
From: Rob Herring <robh@...nel.org>
To: Frank Li <Frank.Li@....com>
Cc: Lee Jones <lee@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Uwe Kleine-König <ukleinek@...nel.org>,
Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-gpio@...r.kernel.org,
linux-pwm@...r.kernel.org, imx@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 1/6] dt-bindings: mfd: Add i2c device adi5585
On Tue, Jul 16, 2024 at 03:28:24PM -0400, Frank Li wrote:
> Add adi5585, which provide gpio, pwm and keypad controller.
>
> Signed-off-by: Frank Li <Frank.Li@....com>
> ---
> .../devicetree/bindings/mfd/adi,adp5585.yaml | 83 ++++++++++++++++++++++
> 1 file changed, 83 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml b/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml
> new file mode 100644
> index 0000000000000..03c4760242ddd
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml
> @@ -0,0 +1,83 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/adi,adp5585.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: ADI adp5585 GPIO, PWM, keypad controller
> +
> +maintainers:
> + - Frank Li <Frank.Li@....com>
> +
> +description:
> + adp5585 is a multifunctional device that can provide GPIO, PWM and keypad.
> +
> +properties:
> + compatible:
> + const: adi,adp5585
> +
> + reg:
> + items:
> + description: I2C device address.
> +
> + gpio:
> + type: object
> + properties:
> + compatible:
> + const: adp5585-gpio
> +
> + gpio-controller: true
> +
> + "#gpio-cells":
> + const: 2
> +
> + required:
> + - compatible
> + - gpio-controller
> + - "#gpio-cells"
> +
> + additionalProperties: false
> +
> + pwm:
> + $ref: /schemas/pwm/pwm.yaml
> + properties:
> + compatible:
> + const: adp5585-pwm
> +
> + "#pwm-cells":
> + const: 3
> +
> + required:
> + - compatible
> + - "#pwm-cells"
> +
> + unevaluatedProperties: false
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + mfd@34 {
> + compatible = "adi,adp5585";
> + reg = <0x34>;
> +
> + gpio {
> + compatible = "adp5585-gpio";
Missing vendor prefix. However, ...
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +
> + pwm {
> + compatible = "adp5585-pwm";
> + #pwm-cells = <3>;
> + };
There's no need for these child nodes. This can be just:
mfd@34 {
compatible = "adi,adp5585";
reg = <0x34>;
gpio-controller;
#gpio-cells = <2>;
#pwm-cells = <3>;
};
Rob
Powered by blists - more mailing lists