Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: hwmon: Add possible new properties to max31827 bindings

These modify the corresponding bits in the configuration register.

adi,comp-int is a hardware property, because it affects the behavior
of the interrupt signal and whatever it is connected to.

adi,timeout-enable is a hardware property, because it affects i2c
bus operation.

Signed-off-by: Daniel Matyas <daniel.matyas@analog.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230919093456.10592-3-daniel.matyas@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Daniel Matyas and committed by
Guenter Roeck
6632b456 88245570

+66
+66
Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
··· 32 32 Must have values in the interval (1.6V; 3.6V) in order for the device to 33 33 function correctly. 34 34 35 + adi,comp-int: 36 + description: 37 + If present interrupt mode is used. If not present comparator mode is used 38 + (default). 39 + type: boolean 40 + 41 + adi,alarm-pol: 42 + description: 43 + Sets the alarms active state. 44 + - 0 = active low 45 + - 1 = active high 46 + $ref: /schemas/types.yaml#/definitions/uint32 47 + enum: [0, 1] 48 + 49 + adi,fault-q: 50 + description: 51 + Select how many consecutive temperature faults must occur before 52 + overtemperature or undertemperature faults are indicated in the 53 + corresponding status bits. 54 + $ref: /schemas/types.yaml#/definitions/uint32 55 + enum: [1, 2, 4, 8] 56 + 57 + adi,timeout-enable: 58 + description: 59 + Enables timeout. Bus timeout resets the I2C-compatible interface when SCL 60 + is low for more than 30ms (nominal). 61 + type: boolean 62 + 63 + allOf: 64 + - if: 65 + properties: 66 + compatible: 67 + contains: 68 + const: adi,max31829 69 + 70 + then: 71 + properties: 72 + adi,alarm-pol: 73 + default: 1 74 + 75 + else: 76 + properties: 77 + adi,alarm-pol: 78 + default: 0 79 + 80 + - if: 81 + properties: 82 + compatible: 83 + contains: 84 + const: adi,max31827 85 + 86 + then: 87 + properties: 88 + adi,fault-q: 89 + default: 1 90 + 91 + else: 92 + properties: 93 + adi,fault-q: 94 + default: 4 95 + 96 + 35 97 required: 36 98 - compatible 37 99 - reg ··· 111 49 compatible = "adi,max31827"; 112 50 reg = <0x42>; 113 51 vref-supply = <&reg_vdd>; 52 + adi,comp-int; 53 + adi,alarm-pol = <0>; 54 + adi,fault-q = <1>; 55 + adi,timeout-enable; 114 56 }; 115 57 }; 116 58 ...