dt-bindings: devantech-srf04.yaml: add pm feature
Subsystems (2)
PATCH 1/2 dt-bindings: devantech-srf04.yaml: add pm feature
Add GPIO line and startup time for usage of power management
--- .../bindings/iio/proximity/devantech-srf04.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml +16 -0
@@ -51,6 +51,22 @@ properties: the time between two interrupts is measured in the driver. maxItems: 1 + power-gpios: + description: + Definition of the GPIO for power management of connected peripheral + (output). + This GPIO can be used by the external hardware for power management. + When the device gets suspended it's switched off and when it resumes + it's switched on again. After some period of inactivity the driver + get suspended automatically (autosuspend feature). + maxItems: 1 + + startup-time-ms: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + This is the startup time the device needs after a resume to be up and + running. + required: - compatible - trig-gpios
Signature · 1 line
2.11.0
Rob Herring
maintainerQuoted 16 lines · Andreas Klinger
Add GPIO line and startup time for usage of power management
Signed-off-by Andreas Klinger <[email protected]>--- .../bindings/iio/proximity/devantech-srf04.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml +1
-0@@ -51,6 +51,22 @@ properties: the time between two interrupts is measured in the driver. maxItems: 1 + power-gpios:
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml properties: · line 64
Quoted 10 lines
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml +10
-0+ description: + Definition of the GPIO for power management of connected peripheral + (output). + This GPIO can be used by the external hardware for power management. + When the device gets suspended it's switched off and when it resumes + it's switched on again. After some period of inactivity the driver + get suspended automatically (autosuspend feature). + maxItems: 1 + + startup-time-ms:
Why isn't this implied by the compatible string?
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml properties: · line 65
Quoted 1 line
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml +1
-0+ $ref: /schemas/types.yaml#/definitions/uint32
You can drop this for standard units.
0-2^32 is valid?
Quoted 9 lines
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml +4
-0+ description: + This is the startup time the device needs after a resume to be up and + running. + required: - compatible - trig-gpiosSignature · 1 line
2.11.0
Hi Rob,
see below.
Rob Herring <[email protected]> schrieb am Mi, 08. Jan 10:58:
Quoted 16 lines · Andreas Klinger
Quoted 15 lines
Add GPIO line and startup time for usage of power management
Signed-off-by Andreas Klinger <[email protected]>--- .../bindings/iio/proximity/devantech-srf04.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml +0
-0@@ -51,6 +51,22 @@ properties: the time between two interrupts is measured in the driver. maxItems: 1
Quoted 13 lines
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml properties: · line 64
Quoted 11 lines
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml +11
-0+ power-gpios: + description: + Definition of the GPIO for power management of connected peripheral + (output). + This GPIO can be used by the external hardware for power management. + When the device gets suspended it's switched off and when it resumes + it's switched on again. After some period of inactivity the driver + get suspended automatically (autosuspend feature). + maxItems: 1 + + startup-time-ms:Why isn't this implied by the compatible string?
Under the same trade name "SRF-04" there are many different sensors on the market which are clones of the original one from Devantech. They are equipped with different hardware components and they have a slightly different behavior, such as the startup time.
Quoted 6 lines
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml properties: · line 65
Quoted 2 lines
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml +1
-0+ $ref: /schemas/types.yaml#/definitions/uint32You can drop this for standard units.
0-2^32 is valid?
I can add boundaries here.
Quoted 10 lines
Quoted 10 lines
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml +4
-0+ description: + This is the startup time the device needs after a resume to be up and + running. + required: - compatible - trig-gpiosSignature · 1 line
2.11.0
Andreas