linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel González Cabanelas" <dgcbueu@gmail.com>
To: linux-pm@vger.kernel.org
Subject: [PATCH 2/2] dt-bindings: power: reset: add yaml bindings for LinkStation power off
Date: Sat, 25 Apr 2020 03:01:01 +0200	[thread overview]
Message-ID: <23544181.H47qXO15o3@tool> (raw)

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





             reply	other threads:[~2020-04-25  1:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-25  1:01 Daniel González Cabanelas [this message]
2020-04-29 22:43 ` [PATCH 2/2] dt-bindings: power: reset: add yaml bindings for LinkStation power off Sebastian Reichel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23544181.H47qXO15o3@tool \
    --to=dgcbueu@gmail.com \
    --cc=linux-pm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).