Re: [PATCH v10 1/2] dt-bindings: iio: Add bindings for sx9310 sensor

From: Stephen Boyd
Date: Thu Jul 23 2020 - 15:29:37 EST


Quoting Daniel Campello (2020-04-14 13:36:07)
> Adds device tree bandings for sx9310 sensor.
>
> Signed-off-by: Daniel Campello <campello@xxxxxxxxxxxx>
> Reviewed-by: Rob Herring <robh@xxxxxxxxxx>
> ---

I don't see this picked up anywhere in linux-next. Can we squash in this
change? Typically the voltage regulator names match the data sheet, and
in this case the datasheet names them vdd and svdd. Also, they're not
strictly necessary to be in the binding if they're always on supplies so
we can remove them from the required section and DT files can omit them
if they don't care to actively power manage them.

---8<---
diff --git a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml
index b52ffdac678b..ba734ee868c7 100644
--- a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml
+++ b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml
@@ -31,12 +31,15 @@ properties:
available or that a close/far proximity event has happened.
maxItems: 1

- power-supply: true
+ vdd-supply:
+ description: Main power supply
+
+ svdd-supply:
+ description: Host interface power supply

required:
- compatible
- reg
- - power-supply

additionalProperties: false

@@ -51,6 +54,7 @@ examples:
reg = <0x28>;
interrupt-parent = <&pio>;
interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>;
- power-supply = <...>;
+ vdd-supply = <&pp3300_a>;
+ svdd-supply = <&pp1800_prox>;
};
};