From: Rob Herring <robh@kernel.org>
To: "Nuno Sá" <nuno.sa@analog.com>
Cc: linux-hwmon@vger.kernel.org, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-doc@vger.kernel.org, Lee Jones <lee@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jean Delvare <jdelvare@suse.com>,
Guenter Roeck <linux@roeck-us.net>,
Jonathan Corbet <corbet@lwn.net>,
Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <brgl@bgdev.pl>
Subject: Re: [PATCH 1/6] dt-binbings: mfd: Add bindings for the LTC4283 Swap Controller
Date: Thu, 14 Aug 2025 16:57:24 -0500 [thread overview]
Message-ID: <20250814215724.GA3975144-robh@kernel.org> (raw)
In-Reply-To: <20250814-ltc4283-support-v1-1-88b2cef773f2@analog.com>
On Thu, Aug 14, 2025 at 11:52:23AM +0100, Nuno Sá wrote:
> The LTC4283 is a negative voltage hot swap controller that drives an
> external N-channel MOSFET to allow a board to be safely inserted and
> removed from a live backplane.
What's a binbing?
When you fix that, don't say 'bindings' twice in the subject. Subject
space is precious.
>
> Main usage is as an Hardware Monitoring device. However, it has up to 8
> pins that can be configured and used as GPIOs and hence, the device can
> also be a GPIO controller.
>
> Signed-off-by: Nuno Sá <nuno.sa@analog.com>
> ---
> .../devicetree/bindings/mfd/adi,ltc4283.yaml | 85 ++++++++++++++++++++++
> MAINTAINERS | 7 ++
> 2 files changed, 92 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/mfd/adi,ltc4283.yaml b/Documentation/devicetree/bindings/mfd/adi,ltc4283.yaml
> new file mode 100644
> index 0000000000000000000000000000000000000000..c5e8aec887d9cfad9052a7c28783396efd6804a9
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/adi,ltc4283.yaml
> @@ -0,0 +1,85 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/adi,ltc4283.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: LTC4283 I2C Negative Voltage Hot Swap Controller
> +
> +maintainers:
> + - Nuno Sá <nuno.sa@analog.com>
> +
> +description: |
> + The LTC4283 negative voltage hot swap controller drives an external N-channel
> + MOSFET to allow a board to be safely inserted and removed from a live
> + backplane.
> +
> + https://www.analog.com/media/en/technical-documentation/data-sheets/ltc4283.pdf
> +
> +properties:
> + compatible:
> + enum:
> + - adi,ltc4283
> +
> + reg:
> + maxItems: 1
> +
> + gpio:
> + $ref: /schemas/gpio/adi,ltc4283.yaml
> + hwmon:
> + $ref: /schemas/hwmon/adi,ltc4283.yaml
This patch has to come after these are added. However...
> +
> + adi,gpio-pins:
> + description:
> + The pins to use as GPIOs. The device has 4 ADIO and 4 PGIO
> + pins than can be used as GPIOs. The ADIO pins are numbered from 0 to 3
> + and the PGIO pins are numbered from 4 to 7.
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> + minItems: 1
> + maxItems: 8
> + items:
> + minimum: 0
> + maximum: 7
> +
> +dependencies:
> + gpio:
> + - adi,gpio-pins
> +
> +required:
> + - compatible
> + - reg
> + - hwmon
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + swap-controller@15 {
> + compatible = "adi,ltc4283";
> + reg = <0x15>;
> +
> + /* pgio1 to pgio4 as gpios */
> + adi,gpio-pins = <0 1 2 3>;
> +
> + gpio {
> + compatible = "adi,ltc4283-gpio";
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +
> + hwmon {
> + compatible = "adi,ltc4283-hwmon";
> +
> + adi,rsense-nano-ohms = <500>;
Seems like a current sense resistor might be a common thing.
> + adi,current-limit-sense-microvolt = <25000>;
> + adi,current-limit-foldback-factor = <10>;
> + adi,cooling-delay-ms = <8190>;
> + adi,fet-bad-timer-delay-ms = <512>;
All these child node properties can be moved to the parent node.
> + };
> + };
> + };
> +...
> diff --git a/MAINTAINERS b/MAINTAINERS
> index e90710a9b40d7b32c151472a9ac3b02efd95f346..413bb77d5eebe2b51aa9c3af86e7cfd5ab142044 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -14500,6 +14500,13 @@ F: Documentation/devicetree/bindings/hwmon/adi,ltc4282.yaml
> F: Documentation/hwmon/ltc4282.rst
> F: drivers/hwmon/ltc4282.c
>
> +lTC4283 HARDWARE MONITOR AND GPIO DRIVER
> +M: Nuno Sá <nuno.sa@analog.com>
> +L: linux-hwmon@vger.kernel.org
> +L: linux-gpio@vger.kernel.org
> +S: Supported
> +F: Documentation/devicetree/bindings/mfd/adi,ltc4283.yaml
> +
> LTC4286 HARDWARE MONITOR DRIVER
> M: Delphine CC Chiu <Delphine_CC_Chiu@Wiwynn.com>
> L: linux-hwmon@vger.kernel.org
>
> --
> 2.50.1
>
next prev parent reply other threads:[~2025-08-14 21:57 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-14 10:52 [PATCH 0/6] mfd: Add support for the LTC4283 Hot Swap Controller Nuno Sá
2025-08-14 10:52 ` Nuno Sá via B4 Relay
2025-08-14 10:52 ` [PATCH 1/6] dt-binbings: mfd: Add bindings for the LTC4283 " Nuno Sá
2025-08-14 10:52 ` Nuno Sá via B4 Relay
2025-08-14 14:40 ` Rob Herring (Arm)
2025-08-14 21:57 ` Rob Herring [this message]
2025-08-25 9:11 ` Nuno Sá
2025-08-14 10:52 ` [PATCH 2/6] mfd: ltc4283: Add support " Nuno Sá
2025-08-14 10:52 ` Nuno Sá via B4 Relay
2025-09-02 15:53 ` Lee Jones
2025-08-14 10:52 ` [PATCH 3/6] dt-binbings: hwmon: Add bindings " Nuno Sá
2025-08-14 10:52 ` Nuno Sá via B4 Relay
2025-08-14 10:52 ` [PATCH 4/6] hwmon: ltc4283-hwmon: Add support " Nuno Sá
2025-08-14 10:52 ` Nuno Sá via B4 Relay
2025-08-16 0:35 ` kernel test robot
2025-08-14 10:52 ` [PATCH 5/6] dt-binbings: gpio: Add bindings " Nuno Sá
2025-08-14 10:52 ` Nuno Sá via B4 Relay
2025-08-19 12:07 ` Linus Walleij
2025-08-14 10:52 ` [PATCH 6/6] gpio: gpio-ltc4283: Add support " Nuno Sá
2025-08-14 10:52 ` Nuno Sá via B4 Relay
2025-08-19 12:12 ` Linus Walleij
2025-08-25 9:13 ` Nuno Sá
2025-08-14 12:54 ` [PATCH 0/6] mfd: Add support for the LTC4283 Hot " Guenter Roeck
2025-08-14 14:15 ` Nuno Sá
2025-08-14 21:57 ` Guenter Roeck
2025-08-20 20:03 ` Rob Herring
2025-08-25 9:07 ` Nuno Sá
2025-08-19 12:36 ` Linus Walleij
2025-08-19 16:10 ` Guenter Roeck
2025-08-21 12:06 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250814215724.GA3975144-robh@kernel.org \
--to=robh@kernel.org \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=jdelvare@suse.com \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=nuno.sa@analog.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.