Skip to contentSkip to conversation

dt-bindings: power: reset: add yaml bindings for LinkStation power off

PATCH Superseded Daniel González Cabanelas 2 participants 2 messages Apr 25, 2020 – Apr 29, 2020

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 dt-bindings: power: reset: add yaml bindings for LinkStation power off

Add Linkstation poweroff bindings documentation.

---
 .../power/reset/linkstation-poweroff.yaml     | 42 +++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/reset/linkstation-poweroff.yaml
Documentation/devicetree/bindings/power/reset/linkstation-poweroff.yaml new file +42 -0
new file mode 100644
index 0000000000..b647baecf3
@@ -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 <[email protected]>
+
+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>;
+    };
Signature · 1 line
2.26.2
#1 lore raw

Hi,

Quoted 4 lines · Daniel González Cabanelas

Add Linkstation poweroff bindings documentation.

---

Thanks for the patch.

DT bindings need to be CC'd to [email protected] and to Rob Herring. Also please Cc me ([email protected]). I will not merge this without an explicit Acked-by from Rob.

-- Sebastian

Quoted 58 lines
 .../power/reset/linkstation-poweroff.yaml     | 42 +++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/reset/linkstation-poweroff.yaml
Documentation/devicetree/bindings/power/reset/linkstation-poweroff.yaml new file +42 -0
new file mode 100644
index 0000000000..b647baecf3
@@ -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 <[email protected]>
+
+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>;
+    };
Signature · 1 line
2.26.2