linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] hwmon: Add support for the LTC4283 Hot Swap Controller
@ 2025-11-04 10:32 Nuno Sá via B4 Relay
  2025-11-04 10:32 ` [PATCH v3 1/3] dt-bindings: hwmon: Document the LTC4283 " Nuno Sá via B4 Relay
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Nuno Sá via B4 Relay @ 2025-11-04 10:32 UTC (permalink / raw)
  To: linux-hwmon, linux-gpio, devicetree, linux-doc
  Cc: Krzysztof Kozlowski, Conor Dooley, Jean Delvare, Guenter Roeck,
	Jonathan Corbet, Linus Walleij, Bartosz Golaszewski,
	Rob Herring (Arm)

This is v3 for the LTC4283 how swap controller. Main change is that I'm
now using the auxiliary bus for adding the GPIO device (done depending
on FW properties).

Similar to the LTC4282 device, we're clearing some fault logs in the
reset_history attributes.

Guenter, in [1] you can find some replies for some questions you had in
v2 that likely you don't remember anymore.

Linus, I did looked into gpio-regmap and even add support for
init_valid_mask but the register layout is just so different that using
the gpio-regmap is not feasible. We could maybe use it for ADIO (if we
used to different gpiochips in the driver) but the drivers is fairly
small anyways so IMO not worth it.

Also note the driver uses some non constant field_prep/get() that should
go away as soon as [2] get's merged (hopefully before this).

[1]: https://lore.kernel.org/linux-hwmon/0765a0b89779331c62a3f136ef030f7f2f40ea47.camel@gmail.com/
[2]: https://lore.kernel.org/linux-iio/cover.1761588465.git.geert+renesas@glider.be/

---
Changes in v3:
- Patch 1:
  * Changed -if conditionals as suggested by Rob;
  * Fixed typo in commit subject.
- Patch 2:
  * Add ltc4283 entry to index.rst;
  * Remove lock under energy_enable read;
  * Make use of the new energy64 standard attribute;
  * Fix always false comparison in __ltc4283_write_in_history();
  * Add missing reset_history for VIN;
  * Remove energy label. Not useful.
- Patch 3:
  * Add AUXBUS menu entry in gpiolib kconfig as suggested by Linus.
- Link to v2: https://lore.kernel.org/r/20250903-ltc4283-support-v2-0-6bce091510bf@analog.com

Changes in v2:
- Link to v1: https://lore.kernel.org/r/20250814-ltc4283-support-v1-0-88b2cef773f2@analog.com

---
Nuno Sá (3):
      dt-bindings: hwmon: Document the LTC4283 Swap Controller
      hwmon: ltc4283: Add support for the LTC4283 Swap Controller
      gpio: gpio-ltc4283: Add support for the LTC4283 Swap Controller

 .../devicetree/bindings/hwmon/adi,ltc4283.yaml     |  272 +++
 Documentation/hwmon/index.rst                      |    1 +
 Documentation/hwmon/ltc4283.rst                    |  266 +++
 MAINTAINERS                                        |    9 +
 drivers/gpio/Kconfig                               |   15 +
 drivers/gpio/Makefile                              |    1 +
 drivers/gpio/gpio-ltc4283.c                        |  217 +++
 drivers/hwmon/Kconfig                              |   12 +
 drivers/hwmon/Makefile                             |    1 +
 drivers/hwmon/ltc4283.c                            | 1749 ++++++++++++++++++++
 10 files changed, 2543 insertions(+)
---
base-commit: 65bc97a5e49ea4174ba7e89afdada3e30e6e39c0
change-id: 20250812-ltc4283-support-27c8c4e69c6b
--

Thanks!
- Nuno Sá



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-11-06 10:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-04 10:32 [PATCH v3 0/3] hwmon: Add support for the LTC4283 Hot Swap Controller Nuno Sá via B4 Relay
2025-11-04 10:32 ` [PATCH v3 1/3] dt-bindings: hwmon: Document the LTC4283 " Nuno Sá via B4 Relay
2025-11-04 10:32 ` [PATCH v3 2/3] hwmon: ltc4283: Add support for " Nuno Sá via B4 Relay
2025-11-06 10:23   ` Nuno Sá
2025-11-04 10:32 ` [PATCH v3 3/3] gpio: gpio-ltc4283: " Nuno Sá via B4 Relay
2025-11-05 11:13   ` Bartosz Golaszewski
2025-11-05 12:12     ` Nuno Sá

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).