Add max31875 to dt-bindings of max31827
MAX31875 is low-power I2C temperature sensor similar to MAX31827
Signed-off-by: John Erasmus Mari Geronimo <johnerasmusmari.geronimo@analog.com>
---
.../bindings/hwmon/adi,max31827.yaml | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
index f60e06ab7..9363fa371 100644
--- a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
+++ b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
@@ -4,16 +4,19 @@
$id: http://devicetree.org/schemas/hwmon/adi,max31827.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
-title: Analog Devices MAX31827, MAX31828, MAX31829 Low-Power Temperature Switch
+title: Analog Devices MAX31827, MAX31828, MAX31829, MAX31875 Low-Power Temperature Switch
maintainers:
- - Daniel Matyas <daniel.matyas@analog.com>
+ - John Erasmus Mari Geronimo <johnerasmusmari.geronimo@analog.com>
description: |
Analog Devices MAX31827, MAX31828, MAX31829 Low-Power Temperature Switch with
I2C Interface
https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31827-MAX31829.pdf
+ Analog Devices MAX31875 Low-Power I2C Temperature Sensor in WLP Package
+ https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31875.pdf
+
properties:
compatible:
oneOf:
@@ -22,6 +25,7 @@ properties:
- enum:
- adi,max31828
- adi,max31829
+ - adi,max31875
- const: adi,max31827
reg:
@@ -93,6 +97,16 @@ allOf:
adi,fault-q:
default: 4
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: adi,max31875
+
+ then:
+ properties:
+ adi,fault-q:
+ enum: [1, 2, 4, 6]
required:
- compatible
--
2.34.1
On 08/01/2025 09:25, John Erasmus Mari Geronimo wrote: > Add max31875 to dt-bindings of max31827 > MAX31875 is low-power I2C temperature sensor similar to MAX31827 > > Signed-off-by: John Erasmus Mari Geronimo <johnerasmusmari.geronimo@analog.com> > --- > .../bindings/hwmon/adi,max31827.yaml | 18 ++++++++++++++++-- > 1 file changed, 16 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml > index f60e06ab7..9363fa371 100644 > --- a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml > +++ b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml > @@ -4,16 +4,19 @@ > $id: http://devicetree.org/schemas/hwmon/adi,max31827.yaml# > $schema: http://devicetree.org/meta-schemas/core.yaml# > > -title: Analog Devices MAX31827, MAX31828, MAX31829 Low-Power Temperature Switch > +title: Analog Devices MAX31827, MAX31828, MAX31829, MAX31875 Low-Power Temperature Switch > > maintainers: > - - Daniel Matyas <daniel.matyas@analog.com> > + - John Erasmus Mari Geronimo <johnerasmusmari.geronimo@analog.com> This needs to be explained in commit msg. > > + - if: > + properties: > + compatible: > + contains: > + const: adi,max31875 > + > + then: > + properties: > + adi,fault-q: > + enum: [1, 2, 4, 6] You need to update top-level property to allow 6. Then narrow the choices for rest of the variants. > > required: > - compatible Best regards, Krzysztof
© 2016 - 2025 Red Hat, Inc.