dt-bindings: power: reset: qcom: Add resin binding
authorVinod Koul <vkoul@kernel.org>
Thu, 28 Jun 2018 15:08:49 +0000 (20:38 +0530)
committerSebastian Reichel <sre@kernel.org>
Sat, 7 Jul 2018 20:22:23 +0000 (22:22 +0200)
Resin is similar to pwrkey, add the description and example
for resin bindings

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt
Documentation/devicetree/bindings/power/reset/qcom,pon.txt

index 07bf55f..98a2027 100644 (file)
@@ -7,6 +7,7 @@ PROPERTIES
        Value type: <string>
        Definition: must be one of:
                    "qcom,pm8941-pwrkey"
+                   "qcom,pm8941-resin"
 
 - reg:
        Usage: required
index f32cdd3..651491b 100644 (file)
@@ -1,9 +1,9 @@
 Qualcomm PON Device
 
 The Power On device for Qualcomm PM8xxx is MFD supporting pwrkey
-along with the Android reboot-mode.
+and resin along with the Android reboot-mode.
 
-This DT node has pwrkey as sub node.
+This DT node has pwrkey and resin as sub nodes.
 
 Required Properties:
 -compatible: "qcom,pm8916-pon"
@@ -12,6 +12,8 @@ Required Properties:
 Optional subnode:
 -pwrkey: Specifies the subnode pwrkey and should follow the
  qcom,pm8941-pwrkey.txt description.
+-resin: Specifies the subnode resin and should follow the
+ qcom,pm8xxx-pwrkey.txt description.
 
 The rest of the properties should follow the generic reboot-mode description
 found in reboot-mode.txt
@@ -32,4 +34,12 @@ Example:
                        bias-pull-up;
                        linux,code = <KEY_POWER>;
                };
+
+               resin {
+                       compatible = "qcom,pm8941-resin";
+                       interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
+                       debounce = <15625>;
+                       bias-pull-up;
+                       linux,code = <KEY_VOLUMEDOWN>;
+               };
        };