public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: "Daniel González Cabanelas" <dgcbueu@gmail.com>
Cc: linux-pm@vger.kernel.org, sre@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 2/2 v2] dt-bindings: power: reset: add yaml bindings for LinkStation power off
Date: Fri, 12 Jun 2020 16:06:58 -0600	[thread overview]
Message-ID: <20200612220658.GB3888887@bogus> (raw)
In-Reply-To: <2886932.VqVLtP53aq@tool>

On Thu, Jun 11, 2020 at 10:29:22PM +0200, Daniel González Cabanelas wrote:
> Add Linkstation poweroff bindings documentation. 
> 
> Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
> ---
> Changes in v2:
>   - Changed the required properties and description to adjust to the new
>     driver now enabling the WoL feature on the device.
> 
>  .../power/reset/linkstation-poweroff.yaml     | 43 +++++++++++++++++++
>  1 file changed, 43 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..475eab8225
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/reset/linkstation-poweroff.yaml
> @@ -0,0 +1,43 @@
> +# SPDX-License-Identifier: GPL-2.0

Dual license:

(GPL-2.0-only OR BSD-2-Clause)

> +%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

This is a binding for h/w, not a 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 an output pin at the ethernet PHY
> +  (LED2/INTn) to inform the board if the power off operation must be performed
> +  at restart time. This pin is ORed with the power switch and allows the WOL 
> +  function to be also used.
> +
> +  When the power-off handler is called, the ethernet PHY INTn ouptut is set to
> +  LOW state. If the restart command is executed then the PHY INTn output is 
> +  forced to HIGH state.
> +
> +properties:
> +  compatible:
> +    const: linkstation,power-off
> +
> +  phy-handle,intn:

'phy-handle' is not a vendor.

> +    description: Phandle to a node of the ethernet PHY used for the power
> +      function.
> +    $ref: /schemas/types.yaml#/definitions/phandle

Is there more than 1 ethernet phy? If not, then I don't see why you need 
this binding at all. Use the top level compatible and find the ethernet 
phy in the tree.

> +
> +required:
> +  - compatible
> +  - phy-handle,intn
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    poweroff {
> +        compatible = "linkstation,power-off";
> +        phy-handle,intn = <&ethphy0>;
> +    };
> -- 
> 2.27.0
> 
> 
> 
> 

      parent reply	other threads:[~2020-06-12 22:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-11 20:29 [PATCH 2/2 v2] dt-bindings: power: reset: add yaml bindings for LinkStation power off Daniel González Cabanelas
2020-06-12 22:00 ` Rob Herring
2020-06-12 22:06 ` Rob Herring [this message]

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=20200612220658.GB3888887@bogus \
    --to=robh@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dgcbueu@gmail.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=sre@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