Message ID | 20220429220144.1476049-6-gwendal@chromium.org (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | iio: sx9324/9360: Add settings for precharge, gain and internal resistor | expand |
On Fri, 29 Apr 2022 15:01:39 -0700 Gwendal Grignou <gwendal@chromium.org> wrote: > Allow setting the internal resistor used for compensation. > > Signed-off-by: Gwendal Grignou <gwendal@chromium.org> > Reviewed-by: Stephen Boyd <swboyd@chromium.org> > Acked-by: Rob Herring <robh@kernel.org> Applied. > --- > Changes since v4: > - no changes > > Changes since v3: > - Added Review tags. > > Changes since v2: > - no changes > > Changes since v1: > - no changes > > .../bindings/iio/proximity/semtech,sx9324.yaml | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml > index d689b2bab71b4..0be87ac05b97a 100644 > --- a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml > +++ b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml > @@ -126,6 +126,15 @@ properties: > UINT_MAX (4294967295) represents infinite. Other values > represent 1-1/N. > > + semtech,int-comp-resistor: > + description: > + Internal resistor setting for compensation. > + enum: > + - lowest > + - low > + - high > + - highest > + > semtech,input-precharge-resistor-ohms: > default: 4000 > multipleOf: 2000 > @@ -165,6 +174,7 @@ examples: > semtech,ph01-proxraw-strength = <2>; > semtech,ph23-proxraw-strength = <2>; > semtech,avg-pos-strength = <64>; > + semtech,int-comp-resistor = "lowest"; > semtech,input-precharge-resistor-ohms = <2000>; > }; > };
diff --git a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml index d689b2bab71b4..0be87ac05b97a 100644 --- a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml +++ b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9324.yaml @@ -126,6 +126,15 @@ properties: UINT_MAX (4294967295) represents infinite. Other values represent 1-1/N. + semtech,int-comp-resistor: + description: + Internal resistor setting for compensation. + enum: + - lowest + - low + - high + - highest + semtech,input-precharge-resistor-ohms: default: 4000 multipleOf: 2000 @@ -165,6 +174,7 @@ examples: semtech,ph01-proxraw-strength = <2>; semtech,ph23-proxraw-strength = <2>; semtech,avg-pos-strength = <64>; + semtech,int-comp-resistor = "lowest"; semtech,input-precharge-resistor-ohms = <2000>; }; };