* [PATCH v3 0/2] Add sq24905c support
@ 2025-08-06 22:37 ChiShih Tsai
2025-08-06 22:37 ` [PATCH v3 1/2] dt-bindings: hwmon: adm1275: add " ChiShih Tsai
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: ChiShih Tsai @ 2025-08-06 22:37 UTC (permalink / raw)
To: linux-hwmon, devicetree, linux-kernel, linux-doc
Cc: jdelvare, linux, robh, krzk+dt, conor+dt, corbet, t630619,
ChiShih Tsai
Add sq24905c support
---
v2 -> v3:
- No code changed, included Acked-by tag from v2 review
- Link to v2: https://lore.kernel.org/linux-hwmon/20250805124449.15187-1-tomtsai764@gmail.com/
v1 -> v2:
- Modify devicetree properties ID to silergy,mc09c
- Combine to a single if statement for MFR_ID.
- Add description, SQ24905C compatibility to the ADM1278
- Remove two silergy properties,re-use adi properties
- Link to v1: https://lore.kernel.org/linux-hwmon/20250804124806.540-1-tomtsai764@gmail.com/
ChiShih Tsai (2):
dt-bindings: hwmon: adm1275: add sq24905c support
hwmon: (pmbus/adm1275) add sq24905c support
.../bindings/hwmon/adi,adm1275.yaml | 9 +++++++
Documentation/hwmon/adm1275.rst | 24 ++++++++++++-------
drivers/hwmon/pmbus/Kconfig | 3 ++-
drivers/hwmon/pmbus/adm1275.c | 11 ++++++---
4 files changed, 35 insertions(+), 12 deletions(-)
--
2.43.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v3 1/2] dt-bindings: hwmon: adm1275: add sq24905c support
2025-08-06 22:37 [PATCH v3 0/2] Add sq24905c support ChiShih Tsai
@ 2025-08-06 22:37 ` ChiShih Tsai
2025-08-27 15:51 ` Guenter Roeck
2025-08-06 22:37 ` [PATCH v3 2/2] hwmon: (pmbus/adm1275) " ChiShih Tsai
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: ChiShih Tsai @ 2025-08-06 22:37 UTC (permalink / raw)
To: linux-hwmon, devicetree, linux-kernel, linux-doc
Cc: jdelvare, linux, robh, krzk+dt, conor+dt, corbet, t630619,
ChiShih Tsai, Krzysztof Kozlowski
Add support for sq24905c Hot-Swap Controller and Digital Power Monitor.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: ChiShih Tsai <tomtsai764@gmail.com>
---
v2 -> v3:
- No code changed, included Acked-by tag from v2 review
- Link to v2: https://lore.kernel.org/linux-hwmon/20250805124449.15187-1-tomtsai764@gmail.com/
v1 -> v2:
- Modify devicetree properties ID to silergy,mc09c
- Combine to a single if statement for MFR_ID.
- Add description, SQ24905C compatibility to the ADM1278
- Remove two silergy properties,re-use adi properties
- Link to v1: https://lore.kernel.org/linux-hwmon/20250804124806.540-1-tomtsai764@gmail.com/
Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml b/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml
index ddb72857c846..d6a7517f2a50 100644
--- a/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml
+++ b/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml
@@ -18,6 +18,13 @@ description: |
Datasheets:
https://www.analog.com/en/products/adm1294.html
+ The SQ24905C is also a Hot-swap controller compatibility to the ADM1278,
+ the PMBUS_MFR_MODEL is MC09C
+
+ Datasheets:
+ https://www.silergy.com/
+ download/downloadFile?id=5669&type=product&ftype=note
+
properties:
compatible:
enum:
@@ -30,6 +37,7 @@ properties:
- adi,adm1281
- adi,adm1293
- adi,adm1294
+ - silergy,mc09c
reg:
maxItems: 1
@@ -96,6 +104,7 @@ allOf:
- adi,adm1281
- adi,adm1293
- adi,adm1294
+ - silergy,mc09c
then:
properties:
adi,volt-curr-sample-average:
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v3 2/2] hwmon: (pmbus/adm1275) add sq24905c support
2025-08-06 22:37 [PATCH v3 0/2] Add sq24905c support ChiShih Tsai
2025-08-06 22:37 ` [PATCH v3 1/2] dt-bindings: hwmon: adm1275: add " ChiShih Tsai
@ 2025-08-06 22:37 ` ChiShih Tsai
2025-08-27 15:52 ` Guenter Roeck
2025-08-07 0:22 ` [PATCH v3 0/2] Add " Guenter Roeck
2025-08-07 6:55 ` Krzysztof Kozlowski
3 siblings, 1 reply; 8+ messages in thread
From: ChiShih Tsai @ 2025-08-06 22:37 UTC (permalink / raw)
To: linux-hwmon, devicetree, linux-kernel, linux-doc
Cc: jdelvare, linux, robh, krzk+dt, conor+dt, corbet, t630619,
ChiShih Tsai
Add support for sq24905c which is similar to adm1275 and other chips
of the series.
Signed-off-by: ChiShih Tsai <tomtsai764@gmail.com>
---
Documentation/hwmon/adm1275.rst | 24 ++++++++++++++++--------
drivers/hwmon/pmbus/Kconfig | 3 ++-
drivers/hwmon/pmbus/adm1275.c | 11 ++++++++---
3 files changed, 26 insertions(+), 12 deletions(-)
diff --git a/Documentation/hwmon/adm1275.rst b/Documentation/hwmon/adm1275.rst
index 57bd7a850558..cf923f20fa52 100644
--- a/Documentation/hwmon/adm1275.rst
+++ b/Documentation/hwmon/adm1275.rst
@@ -67,6 +67,14 @@ Supported chips:
Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/ADM1293_1294.pdf
+ * Silergy SQ24905C
+
+ Prefix: 'mc09c'
+
+ Addresses scanned: -
+
+ Datasheet: https://www.silergy.com/download/downloadFile?id=5669&type=product&ftype=note
+
Author: Guenter Roeck <linux@roeck-us.net>
@@ -74,14 +82,14 @@ Description
-----------
This driver supports hardware monitoring for Analog Devices ADM1075, ADM1272,
-ADM1273, ADM1275, ADM1276, ADM1278, ADM1281, ADM1293, and ADM1294 Hot-Swap
-Controller and Digital Power Monitors.
+ADM1273, ADM1275, ADM1276, ADM1278, ADM1281, ADM1293, ADM1294, and SQ24905C
+Hot-Swap Controller and Digital Power Monitors.
-ADM1075, ADM1272, ADM1273, ADM1275, ADM1276, ADM1278, ADM1281, ADM1293, and
-ADM1294 are hot-swap controllers that allow a circuit board to be removed from
-or inserted into a live backplane. They also feature current and voltage
-readback via an integrated 12 bit analog-to-digital converter (ADC), accessed
-using a PMBus interface.
+ADM1075, ADM1272, ADM1273, ADM1275, ADM1276, ADM1278, ADM1281, ADM1293,
+ADM1294 and SQ24905C are hot-swap controllers that allow a circuit board to be
+removed from or inserted into a live backplane. They also feature current and
+voltage readback via an integrated 12 bit analog-to-digital converter (ADC),
+accessed using a PMBus interface.
The driver is a client driver to the core PMBus driver. Please see
Documentation/hwmon/pmbus.rst for details on PMBus client drivers.
@@ -160,5 +168,5 @@ temp1_highest Highest observed temperature.
temp1_reset_history Write any value to reset history.
Temperature attributes are supported on ADM1272,
- ADM1273, ADM1278, and ADM1281.
+ ADM1273, ADM1278, ADM1281 and SQ24905C.
======================= =======================================================
diff --git a/drivers/hwmon/pmbus/Kconfig b/drivers/hwmon/pmbus/Kconfig
index 55e492452ce8..77add0c6ee53 100644
--- a/drivers/hwmon/pmbus/Kconfig
+++ b/drivers/hwmon/pmbus/Kconfig
@@ -52,7 +52,8 @@ config SENSORS_ADM1275
help
If you say yes here you get hardware monitoring support for Analog
Devices ADM1075, ADM1272, ADM1273, ADM1275, ADM1276, ADM1278, ADM1281,
- ADM1293, and ADM1294 Hot-Swap Controller and Digital Power Monitors.
+ ADM1293, ADM1294 and SQ24905C Hot-Swap Controller and
+ Digital Power Monitors.
This driver can also be built as a module. If so, the module will
be called adm1275.
diff --git a/drivers/hwmon/pmbus/adm1275.c b/drivers/hwmon/pmbus/adm1275.c
index 7d175baa5de2..bc2a6a07dc3e 100644
--- a/drivers/hwmon/pmbus/adm1275.c
+++ b/drivers/hwmon/pmbus/adm1275.c
@@ -18,7 +18,8 @@
#include <linux/log2.h>
#include "pmbus.h"
-enum chips { adm1075, adm1272, adm1273, adm1275, adm1276, adm1278, adm1281, adm1293, adm1294 };
+enum chips { adm1075, adm1272, adm1273, adm1275, adm1276, adm1278, adm1281,
+ adm1293, adm1294, sq24905c };
#define ADM1275_MFR_STATUS_IOUT_WARN2 BIT(0)
#define ADM1293_MFR_STATUS_VAUX_UV_WARN BIT(5)
@@ -486,6 +487,7 @@ static const struct i2c_device_id adm1275_id[] = {
{ "adm1281", adm1281 },
{ "adm1293", adm1293 },
{ "adm1294", adm1294 },
+ { "mc09c", sq24905c },
{ }
};
MODULE_DEVICE_TABLE(i2c, adm1275_id);
@@ -532,7 +534,8 @@ static int adm1275_probe(struct i2c_client *client)
dev_err(&client->dev, "Failed to read Manufacturer ID\n");
return ret;
}
- if (ret != 3 || strncmp(block_buffer, "ADI", 3)) {
+ if ((ret != 3 || strncmp(block_buffer, "ADI", 3)) &&
+ (ret != 2 || strncmp(block_buffer, "SY", 2))) {
dev_err(&client->dev, "Unsupported Manufacturer ID\n");
return -ENODEV;
}
@@ -558,7 +561,8 @@ static int adm1275_probe(struct i2c_client *client)
if (mid->driver_data == adm1272 || mid->driver_data == adm1273 ||
mid->driver_data == adm1278 || mid->driver_data == adm1281 ||
- mid->driver_data == adm1293 || mid->driver_data == adm1294)
+ mid->driver_data == adm1293 || mid->driver_data == adm1294 ||
+ mid->driver_data == sq24905c)
config_read_fn = i2c_smbus_read_word_data;
else
config_read_fn = i2c_smbus_read_byte_data;
@@ -708,6 +712,7 @@ static int adm1275_probe(struct i2c_client *client)
break;
case adm1278:
case adm1281:
+ case sq24905c:
data->have_vout = true;
data->have_pin_max = true;
data->have_temp_max = true;
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v3 0/2] Add sq24905c support
2025-08-06 22:37 [PATCH v3 0/2] Add sq24905c support ChiShih Tsai
2025-08-06 22:37 ` [PATCH v3 1/2] dt-bindings: hwmon: adm1275: add " ChiShih Tsai
2025-08-06 22:37 ` [PATCH v3 2/2] hwmon: (pmbus/adm1275) " ChiShih Tsai
@ 2025-08-07 0:22 ` Guenter Roeck
2025-08-18 3:25 ` ChiShih Tsai
2025-08-07 6:55 ` Krzysztof Kozlowski
3 siblings, 1 reply; 8+ messages in thread
From: Guenter Roeck @ 2025-08-07 0:22 UTC (permalink / raw)
To: ChiShih Tsai, linux-hwmon, devicetree, linux-kernel, linux-doc
Cc: jdelvare, robh, krzk+dt, conor+dt, corbet, t630619
On 8/6/25 15:37, ChiShih Tsai wrote:
> Add sq24905c support
>
> ---
> v2 -> v3:
> - No code changed, included Acked-by tag from v2 review
Please refrain from doing that in the future. Patchwork picks up
any Acked-by: and Reviewed-by: tags, so resending a patch series
just for that is pointless. All you do is to create noise.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 0/2] Add sq24905c support
2025-08-06 22:37 [PATCH v3 0/2] Add sq24905c support ChiShih Tsai
` (2 preceding siblings ...)
2025-08-07 0:22 ` [PATCH v3 0/2] Add " Guenter Roeck
@ 2025-08-07 6:55 ` Krzysztof Kozlowski
3 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2025-08-07 6:55 UTC (permalink / raw)
To: ChiShih Tsai, linux-hwmon, devicetree, linux-kernel, linux-doc
Cc: jdelvare, linux, robh, krzk+dt, conor+dt, corbet, t630619
On 07/08/2025 00:37, ChiShih Tsai wrote:
> Add sq24905c support
>
> ---
> v2 -> v3:
> - No code changed, included Acked-by tag from v2 review
I gave you very precise instruction in v2, did you read it? It was not a
coincidence that I wrote that instruction.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 0/2] Add sq24905c support
2025-08-07 0:22 ` [PATCH v3 0/2] Add " Guenter Roeck
@ 2025-08-18 3:25 ` ChiShih Tsai
0 siblings, 0 replies; 8+ messages in thread
From: ChiShih Tsai @ 2025-08-18 3:25 UTC (permalink / raw)
To: linux
Cc: conor+dt, corbet, devicetree, jdelvare, krzk+dt, linux-doc,
linux-hwmon, linux-kernel, robh, t630619
I see, could you review these patches?
Thanks,
ChiShih Tsai
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: hwmon: adm1275: add sq24905c support
2025-08-06 22:37 ` [PATCH v3 1/2] dt-bindings: hwmon: adm1275: add " ChiShih Tsai
@ 2025-08-27 15:51 ` Guenter Roeck
0 siblings, 0 replies; 8+ messages in thread
From: Guenter Roeck @ 2025-08-27 15:51 UTC (permalink / raw)
To: ChiShih Tsai
Cc: linux-hwmon, devicetree, linux-kernel, linux-doc, jdelvare, robh,
krzk+dt, conor+dt, corbet, t630619, Krzysztof Kozlowski
On Thu, Aug 07, 2025 at 06:37:23AM +0800, ChiShih Tsai wrote:
> Add support for sq24905c Hot-Swap Controller and Digital Power Monitor.
>
> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Signed-off-by: ChiShih Tsai <tomtsai764@gmail.com>
Applied.
Guenter
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 2/2] hwmon: (pmbus/adm1275) add sq24905c support
2025-08-06 22:37 ` [PATCH v3 2/2] hwmon: (pmbus/adm1275) " ChiShih Tsai
@ 2025-08-27 15:52 ` Guenter Roeck
0 siblings, 0 replies; 8+ messages in thread
From: Guenter Roeck @ 2025-08-27 15:52 UTC (permalink / raw)
To: ChiShih Tsai
Cc: linux-hwmon, devicetree, linux-kernel, linux-doc, jdelvare, robh,
krzk+dt, conor+dt, corbet, t630619
On Thu, Aug 07, 2025 at 06:37:24AM +0800, ChiShih Tsai wrote:
> Add support for sq24905c which is similar to adm1275 and other chips
> of the series.
>
> Signed-off-by: ChiShih Tsai <tomtsai764@gmail.com>
Applied.
Guenter
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-08-27 15:52 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-06 22:37 [PATCH v3 0/2] Add sq24905c support ChiShih Tsai
2025-08-06 22:37 ` [PATCH v3 1/2] dt-bindings: hwmon: adm1275: add " ChiShih Tsai
2025-08-27 15:51 ` Guenter Roeck
2025-08-06 22:37 ` [PATCH v3 2/2] hwmon: (pmbus/adm1275) " ChiShih Tsai
2025-08-27 15:52 ` Guenter Roeck
2025-08-07 0:22 ` [PATCH v3 0/2] Add " Guenter Roeck
2025-08-18 3:25 ` ChiShih Tsai
2025-08-07 6:55 ` Krzysztof Kozlowski
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).