lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220721070920.dymqnh25dtqysooe@blmsp>
Date:   Thu, 21 Jul 2022 09:09:20 +0200
From:   Markus Schneider-Pargmann <msp@...libre.com>
To:     Rob Herring <robh@...nel.org>
Cc:     Jerome Neanne <jneanne@...libre.com>, lgirdwood@...il.com,
        broonie@...nel.org, nm@...com, kristo@...nel.org,
        khilman@...libre.com, narmstrong@...libre.com, j-keerthy@...c,
        lee.jones@...aro.org, linux-kernel@...r.kernel.org,
        devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v1 04/14] regulator: dt-bindings: tps65219: Add
 power-button property

Hi Rob,

On Wed, Jul 20, 2022 at 05:39:06PM -0600, Rob Herring wrote:
> On Tue, Jul 19, 2022 at 11:17:32AM +0200, Jerome Neanne wrote:
> > From: Markus Schneider-Pargmann <msp@...libre.com>
> > 
> > Add a power-button property to configure the EN/PB/VSENSE pin as a
> > powerbutton.
> 
> Belongs in the first binding patch.
> 
> > 
> > Signed-off-by: Markus Schneider-Pargmann <msp@...libre.com>
> > Signed-off-by: Jerome Neanne <jneanne@...libre.com>
> > ---
> >  Documentation/devicetree/bindings/regulator/ti,tps65219.yaml | 5 +++++
> >  1 file changed, 5 insertions(+)
> > 
> > diff --git a/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml b/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml
> > index 6a60e62a313c..3f7f4c0280c3 100644
> > --- a/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml
> > +++ b/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml
> > @@ -36,6 +36,11 @@ properties:
> >        include/dt-bindings/interrupt-controller/irq.h
> >      const: 1
> >  
> > +  power-button:
> 
> ti,power-button
> 
> Though doesn't 'system-power-controller' imply this?

No, there is a difference between system-power-controller and
power-button. If you ask, my description is probably not clear enough.
Let me try a new one:

TPS65219 has a multipurpose pin called EN/PB/VSENSE that can be either
EN in which case it functions as an enable pin. It can be VSENSE which
compares the voltages and triggers an automatic on/off request. And it
can be PB in which case it can be configured to trigger an interrupt to
the SoC. ti,power-button reflects exactly the last one of those options
where the board has a button wired to the pin and triggers an interrupt
on pressing it.

I hope that answers your question. We will fix the description in v2.

Thanks,
Markus

> 
> > +    type: boolean
> > +    description: Optional property that sets the EN/PB/VSENSE pin to be a
> > +      power-button.
> > +
> >  patternProperties:
> >    "^buck[1-3]-supply$":
> >      description: Input supply phandle of one regulator.
> > -- 
> > 2.17.1
> > 
> > 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ