All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] dt-bindings: power: reset: add yaml bindings for LinkStation power off
@ 2020-04-25  1:01 Daniel González Cabanelas
  2020-04-29 22:43 ` Sebastian Reichel
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel González Cabanelas @ 2020-04-25  1:01 UTC (permalink / raw)
  To: linux-pm

Add Linkstation poweroff bindings documentation. 

Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
---
 .../power/reset/linkstation-poweroff.yaml     | 42 +++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/reset/linkstation-poweroff.yaml

diff --git a/Documentation/devicetree/bindings/power/reset/linkstation-poweroff.yaml b/Documentation/devicetree/bindings/power/reset/linkstation-poweroff.yaml
new file mode 100644
index 0000000000..b647baecf3
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/reset/linkstation-poweroff.yaml
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/reset/linkstation-poweroff.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Buffalo Linkstation poweroff driver
+
+maintainers:
+  - Daniel González Cabanelas <dgcbueu@gmail.com>
+
+description: |
+  This driver is used to add the power off function to some Buffalo 
+  LinkStations (ARM MVEBU boards). They use a LED output pin at the 
+  ethernet PHY to inform the board if the power off operation must be
+  performed after restarting.
+
+  When the power-off handler is called, the ethernet PHY LED2 ouptut is
+  set to OFF. If the restart command is executed then the PHY LED2 output
+  is asserted to ON.
+
+properties:
+  compatible:
+    const: linkstation,power-off
+
+  phy-handle,led:
+    description: Phandle to a node of the ethernet PHY used for the power 
+      function. If this optional property is not specified, then the first
+      PHY found in the MDIO bus will be used.
+    $ref: /schemas/types.yaml#/definitions/phandle
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    poweroff {
+        compatible = "linkstation,power-off";
+        phy-handle,led = <&ethphy0>;
+    };
-- 
2.26.2





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

* Re: [PATCH 2/2] dt-bindings: power: reset: add yaml bindings for LinkStation power off
  2020-04-25  1:01 [PATCH 2/2] dt-bindings: power: reset: add yaml bindings for LinkStation power off Daniel González Cabanelas
@ 2020-04-29 22:43 ` Sebastian Reichel
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2020-04-29 22:43 UTC (permalink / raw)
  To: Daniel González Cabanelas; +Cc: linux-pm

[-- Attachment #1: Type: text/plain, Size: 2393 bytes --]

Hi,

On Sat, Apr 25, 2020 at 03:01:01AM +0200, Daniel González Cabanelas wrote:
> Add Linkstation poweroff bindings documentation. 
> 
> Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
> ---

Thanks for the patch.

DT bindings need to be CC'd to devicetree@vger.kernel.org and to
Rob Herring. Also please Cc me (sre@kernel.org). I will not merge
this without an explicit Acked-by from Rob.

-- Sebastian

>  .../power/reset/linkstation-poweroff.yaml     | 42 +++++++++++++++++++
>  1 file changed, 42 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/power/reset/linkstation-poweroff.yaml
> 
> diff --git a/Documentation/devicetree/bindings/power/reset/linkstation-poweroff.yaml b/Documentation/devicetree/bindings/power/reset/linkstation-poweroff.yaml
> new file mode 100644
> index 0000000000..b647baecf3
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/reset/linkstation-poweroff.yaml
> @@ -0,0 +1,42 @@
> +# SPDX-License-Identifier: GPL-2.0
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/power/reset/linkstation-poweroff.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Buffalo Linkstation poweroff driver
> +
> +maintainers:
> +  - Daniel González Cabanelas <dgcbueu@gmail.com>
> +
> +description: |
> +  This driver is used to add the power off function to some Buffalo 
> +  LinkStations (ARM MVEBU boards). They use a LED output pin at the 
> +  ethernet PHY to inform the board if the power off operation must be
> +  performed after restarting.
> +
> +  When the power-off handler is called, the ethernet PHY LED2 ouptut is
> +  set to OFF. If the restart command is executed then the PHY LED2 output
> +  is asserted to ON.
> +
> +properties:
> +  compatible:
> +    const: linkstation,power-off
> +
> +  phy-handle,led:
> +    description: Phandle to a node of the ethernet PHY used for the power 
> +      function. If this optional property is not specified, then the first
> +      PHY found in the MDIO bus will be used.
> +    $ref: /schemas/types.yaml#/definitions/phandle
> +
> +required:
> +  - compatible
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    poweroff {
> +        compatible = "linkstation,power-off";
> +        phy-handle,led = <&ethphy0>;
> +    };
> -- 
> 2.26.2
> 
> 
> 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2020-04-29 22:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-25  1:01 [PATCH 2/2] dt-bindings: power: reset: add yaml bindings for LinkStation power off Daniel González Cabanelas
2020-04-29 22:43 ` Sebastian Reichel

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.