Skip to content

Commit

Permalink
dt-bindings: hwmon: Document adt7475 bypass-attenuator property
Browse files Browse the repository at this point in the history
Add documentation for the bypass-attenuator-in[0-4] property.

Signed-off-by: Logan Shaw <logan.shaw@alliedtelesis.co.nz>
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Logan Shaw authored and Guenter Roeck committed Mar 9, 2020
1 parent b56400b commit f8372ec
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Documentation/devicetree/bindings/hwmon/adt7475.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -52,6 +63,8 @@ examples:
hwmon@2e {
compatible = "adi,adt7476";
reg = <0x2e>;
adi,bypass-attenuator-in0 = <1>;
adi,bypass-attenuator-in1 = <0>;
};
};

0 comments on commit f8372ec

Please sign in to comment.