devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Add support for LTC4282
@ 2023-12-05 15:22 Nuno Sa via B4 Relay
  2023-12-05 15:22 ` [PATCH v3 1/2] dt-bindings: hwmon: Add LTC4282 bindings Nuno Sa via B4 Relay
  2023-12-05 15:22 ` [PATCH v3 2/2] hwmon: ltc4282: add support for the LTC4282 chip Nuno Sa via B4 Relay
  0 siblings, 2 replies; 16+ messages in thread
From: Nuno Sa via B4 Relay @ 2023-12-05 15:22 UTC (permalink / raw)
  To: linux-hwmon, devicetree, linux-doc
  Cc: Jean Delvare, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Jonathan Corbet

v1:
 * https://lore.kernel.org/linux-hwmon/20231110151905.1659873-1-nuno.sa@analog.com/

v2:
 * https://lore.kernel.org/linux-hwmon/20231124-ltc4282-support-v2-0-952bf926f83c@analog.com 

Changes in V3:
- Bindings:
   * Remove 'default' from string types;
   * Update gpios descriptions and removed leftovers from when they were
     integer types.
   * Dropped gpio function. With that, adi,gpio3-mode and adi,gpio-alert were
     dropped.
- Driver:
   * Make all clock ops static;
   * Dropped macro to create debugfs attributes;
   * Dropped GPIO support;
   * Removed regulator consumer header (leftover from v1).

There are still some possible interfaces which are dubious from an hwmon
point view. Namely:

* fet_short_fault
* fet_bad_fault
* power1_good

power1_good and fet_short can be "monitored" with gpio1 and 2
respectively so maybe we could remove the. OTHO, some users might want
the pins free for GPIO usage. fet_bad_fault is a status bit (we also have it in
fault_logs) that might be meaningful to monitor (I think).

Also to note, I'm still seeing the following sparse issue:

"CHECK   drivers/hwmon/ltc4282.c
drivers/hwmon/ltc4282.c:805:34: warning: dubious: x & !y
drivers/hwmon/ltc4282.c:895:34: warning: dubious: x & !y" 

However, this does not look to be directly related with the driver. It's
on FIED_PREP() taking values like !val or !!val.

I'm also removing the GPIO maintainers/reviewers from Cc since there's no
gpiochip support anymore. If not adequate, I'll Cc them again...

---
Nuno Sa (2):
      dt-bindings: hwmon: Add LTC4282 bindings
      hwmon: ltc4282: add support for the LTC4282 chip

 .../devicetree/bindings/hwmon/adi,ltc4282.yaml     |  142 ++
 Documentation/hwmon/index.rst                      |    1 +
 Documentation/hwmon/ltc4282.rst                    |  108 ++
 MAINTAINERS                                        |    8 +
 drivers/hwmon/Kconfig                              |   11 +
 drivers/hwmon/Makefile                             |    1 +
 drivers/hwmon/ltc4282.c                            | 1705 ++++++++++++++++++++
 7 files changed, 1976 insertions(+)
---
base-commit: 44482310b7f8ac4cd8fa7be4cee8c1b260ea5ee9
change-id: 20231124-ltc4282-support-8c1675e31508
--

Thanks!
- Nuno Sá


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

end of thread, other threads:[~2023-12-13 14:44 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-05 15:22 [PATCH v3 0/2] Add support for LTC4282 Nuno Sa via B4 Relay
2023-12-05 15:22 ` [PATCH v3 1/2] dt-bindings: hwmon: Add LTC4282 bindings Nuno Sa via B4 Relay
2023-12-05 16:18   ` Conor Dooley
2023-12-06  8:38     ` Nuno Sá
2023-12-06 15:41       ` Conor Dooley
2023-12-05 15:22 ` [PATCH v3 2/2] hwmon: ltc4282: add support for the LTC4282 chip Nuno Sa via B4 Relay
2023-12-11 15:36   ` Guenter Roeck
2023-12-12 14:28     ` Nuno Sá
2023-12-12 15:14       ` Guenter Roeck
2023-12-12 15:30         ` Nuno Sá
2023-12-12 17:59           ` Guenter Roeck
2023-12-13 10:06             ` Nuno Sá
2023-12-13 14:35               ` Guenter Roeck
2023-12-13 14:44                 ` Nuno Sá
2023-12-11 15:41   ` Guenter Roeck
2023-12-12 13:53     ` 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).