Skip to contentSkip to conversation

dt-bindings: devantech-srf04.yaml: add pm feature

PATCH In review Andreas Klinger 2 participants 2 messages Jan 20, 2020 – Feb 2, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 dt-bindings: devantech-srf04.yaml: add pm feature

Add GPIO line and startup time for usage of power management

---
 .../iio/proximity/devantech-srf04.yaml         | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml +18 -0
index 4e80ea7c1475..8afbac24c34e 100644
@@ -51,6 +51,24 @@ 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:
+    description:
+      This is the startup time the device needs after a resume to be up and
+      running.
+    minimum: 0
+    maximum: 1000
+    default: 100
+
 required:
   - compatible
   - trig-gpios
Signature · 1 line
2.20.1
maintainer
#1 lore raw
Quoted 4 lines · On Mon, 20 Jan 2020 17:44:55 +0100 Andreas Klinger <[email protected]> wrote:

Add GPIO line and startup time for usage of power management

Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to poke at it.

Thanks,

Jonathan

Quoted 33 lines
---
 .../iio/proximity/devantech-srf04.yaml         | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml +18 -0
index 4e80ea7c1475..8afbac24c34e 100644
@@ -51,6 +51,24 @@ 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:
+    description:
+      This is the startup time the device needs after a resume to be up and
+      running.
+    minimum: 0
+    maximum: 1000
+    default: 100
+
 required:
   - compatible
   - trig-gpios