From: Logan Shaw Date: Thu, 27 Feb 2020 08:46:39 +0000 (+1300) Subject: dt-bindings: hwmon: Document adt7475 bypass-attenuator property X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f8372ec4ecdf7bce39f223caa20cacdf5b563e8e;p=linux.git dt-bindings: hwmon: Document adt7475 bypass-attenuator property Add documentation for the bypass-attenuator-in[0-4] property. Signed-off-by: Logan Shaw Signed-off-by: Chris Packham Reviewed-by: Rob Herring Signed-off-by: Guenter Roeck --- diff --git a/Documentation/devicetree/bindings/hwmon/adt7475.yaml b/Documentation/devicetree/bindings/hwmon/adt7475.yaml index 2252499ea201b..e40612ee075f1 100644 --- a/Documentation/devicetree/bindings/hwmon/adt7475.yaml +++ b/Documentation/devicetree/bindings/hwmon/adt7475.yaml @@ -39,6 +39,17 @@ properties: reg: maxItems: 1 +patternProperties: + "^adi,bypass-attenuator-in[0-4]$": + description: | + Configures bypassing the individual voltage input attenuator. If + set to 1 the attenuator is bypassed if set to 0 the attenuator is + not bypassed. If the property is absent then the attenuator + retains it's configuration from the bios/bootloader. + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - enum: [0, 1] + required: - compatible - reg @@ -52,6 +63,8 @@ examples: hwmon@2e { compatible = "adi,adt7476"; reg = <0x2e>; + adi,bypass-attenuator-in0 = <1>; + adi,bypass-attenuator-in1 = <0>; }; };