All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] regulator: mt6360: Add optional mediatek.power-off-sequence in bindings document
@ 2021-06-02  6:54 ` cy_huang
  0 siblings, 0 replies; 21+ messages in thread
From: cy_huang @ 2021-06-02  6:54 UTC (permalink / raw)
  To: lgirdwood, broonie, matthias.bgg, robh+dt, gene_chen
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, devicetree,
	cy_huang, gene.chen.richtek

From: ChiYuan Huang <cy_huang@richtek.com>

Add optional mediatek.power-off-sequence in bindings document.

Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
---
Hi,

Originally, we think it must write in platform dependent code like as bootloader.
But after the evaluation, it must write only when system normal HALT or POWER_OFF.
For the other cases, just follow HW immediate off by default.
---
 .../devicetree/bindings/regulator/mt6360-regulator.yaml       | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Documentation/devicetree/bindings/regulator/mt6360-regulator.yaml b/Documentation/devicetree/bindings/regulator/mt6360-regulator.yaml
index a462d99..eaf36e2 100644
--- a/Documentation/devicetree/bindings/regulator/mt6360-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/mt6360-regulator.yaml
@@ -24,6 +24,16 @@ properties:
   LDO_VIN3-supply:
     description: Input supply phandle(s) for LDO6/7
 
+  mediatek,power-off-sequence:
+    description: |
+      Power off sequence time selection for BUCK1/BUCK2/LDO7/LDO6, respetively.
+      Cause these regulators are all default-on power. Each value from 0 to 63,
+      and step is 1. Each step means 2 millisecond delay.
+      Therefore, the power off sequence delay time range is from 0ms to 126ms.
+    $ref: "/schemas/types.yaml#/definitions/uint8-array"
+    minItems: 4
+    maxItems: 4
+
 patternProperties:
   "^buck[12]$":
     $ref: "regulator.yaml#"
@@ -42,6 +52,7 @@ examples:
     #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
     regulator {
       compatible = "mediatek,mt6360-regulator";
+      mediatek,power-off-sequence = /bits/ 8 <0 0 0 0>;
       LDO_VIN3-supply = <&BUCK2>;
       buck1 {
         regulator-compatible = "BUCK1";
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2021-06-18  3:30 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-02  6:54 [PATCH 1/2] regulator: mt6360: Add optional mediatek.power-off-sequence in bindings document cy_huang
2021-06-02  6:54 ` cy_huang
2021-06-02  6:54 ` cy_huang
2021-06-02  6:54 ` [PATCH 2/2] regulator: mt6360: Add power off sequence config for default-on power cy_huang
2021-06-02  6:54   ` cy_huang
2021-06-02  6:54   ` cy_huang
2021-06-11 20:16 ` [PATCH 1/2] regulator: mt6360: Add optional mediatek.power-off-sequence in bindings document Rob Herring
2021-06-11 20:16   ` Rob Herring
2021-06-11 20:16   ` Rob Herring
2021-06-14 15:04   ` ChiYuan Huang
2021-06-14 15:04     ` ChiYuan Huang
2021-06-14 15:04     ` ChiYuan Huang
2021-06-17 16:29     ` Mark Brown
2021-06-17 16:29       ` Mark Brown
2021-06-17 16:29       ` Mark Brown
2021-06-18  3:28       ` ChiYuan Huang
2021-06-18  3:28         ` ChiYuan Huang
2021-06-18  3:28         ` ChiYuan Huang
2021-06-17 16:24   ` Mark Brown
2021-06-17 16:24     ` Mark Brown
2021-06-17 16:24     ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.