Skip to content

Commit

Permalink
dt-bindings: hwmon: adi,max31827: add MAX31875
Browse files Browse the repository at this point in the history
Add max31875 to documentation for devicetree bindings

Signed-off-by: John Erasmus Mari Geronimo <[email protected]>
  • Loading branch information
jemfgeronimo committed Oct 27, 2024
1 parent ff26ad5 commit d64a908
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -22,6 +25,7 @@ properties:
- enum:
- adi,max31828
- adi,max31829
- adi,max31875
- const: adi,max31827

reg:
Expand Down Expand Up @@ -52,7 +56,7 @@ properties:
overtemperature or undertemperature faults are indicated in the
corresponding status bits.
$ref: /schemas/types.yaml#/definitions/uint32
enum: [1, 2, 4, 8]
enum: [1, 2, 4, 6, 8]

adi,timeout-enable:
description:
Expand Down Expand Up @@ -93,6 +97,21 @@ allOf:
adi,fault-q:
default: 4

- if:
properties:
compatible:
contains:
const: adi,max31875

then:
properties:
adi,fault-q:
enum: [1, 2, 4, 6]

else:
properties:
adi,fault-q:
enum: [1, 2, 4, 8]

required:
- compatible
Expand Down

0 comments on commit d64a908

Please sign in to comment.