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] [day] [month] [year] [list]
Message-ID: <8e4fa5ae-9547-83b3-d2f6-3a7b7ad32cbf@roeck-us.net>
Date:   Tue, 30 Apr 2019 16:28:57 -0700
From:   Guenter Roeck <linux@...ck-us.net>
To:     Rob Herring <robh@...nel.org>
Cc:     Andrey Smirnov <andrew.smirnov@...il.com>,
        linux-pm@...r.kernel.org,
        Enric Balletbo Serra <enric.balletbo@...labora.com>,
        Chris Healy <cphealy@...il.com>,
        Lucas Stach <l.stach@...gutronix.de>,
        Fabio Estevam <fabio.estevam@....com>,
        devicetree@...r.kernel.org, Sebastian Reichel <sre@...nel.org>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 3/3] dt-bindings: power: supply: Add bindings for
 Microchip UCS1002

On 4/30/19 3:32 PM, Rob Herring wrote:
> On Tue, Apr 30, 2019 at 09:15:42AM -0700, Guenter Roeck wrote:
>> On Mon, Apr 29, 2019 at 11:45:57PM -0700, Andrey Smirnov wrote:
>>> Add bindings for Microchip UCS1002 Programmable USB Port Power
>>> Controller with Charger Emulation.
>>>
>>> Signed-off-by: Andrey Smirnov <andrew.smirnov@...il.com>
>>> Cc: Enric Balletbo Serra <enric.balletbo@...labora.com>
>>> Cc: Chris Healy <cphealy@...il.com>
>>> Cc: Lucas Stach <l.stach@...gutronix.de>
>>> Cc: Fabio Estevam <fabio.estevam@....com>
>>> Cc: Guenter Roeck <linux@...ck-us.net>
>>> Cc: Rob Herring <robh+dt@...nel.org>
>>> Cc: devicetree@...r.kernel.org
>>> Cc: Sebastian Reichel <sre@...nel.org>
>>> Cc: linux-kernel@...r.kernel.org
>>> Cc: linux-pm@...r.kernel.org
>>> ---
>>>   .../power/supply/microchip,ucs1002.txt        | 27 +++++++++++++++++++
>>>   1 file changed, 27 insertions(+)
>>>   create mode 100644 Documentation/devicetree/bindings/power/supply/microchip,ucs1002.txt
>>>
>>> diff --git a/Documentation/devicetree/bindings/power/supply/microchip,ucs1002.txt b/Documentation/devicetree/bindings/power/supply/microchip,ucs1002.txt
>>> new file mode 100644
>>> index 000000000000..021fd7aba75e
>>> --- /dev/null
>>> +++ b/Documentation/devicetree/bindings/power/supply/microchip,ucs1002.txt
>>> @@ -0,0 +1,27 @@
>>> +Microchip UCS1002 USB Port Power Controller
>>> +
>>> +Required properties:
>>> +- compatible		: Should be "microchip,ucs1002";
>>> +- reg			: I2C slave address
>>> +
>>> +Optional properties:
>>> +- interrupts-extended	: A list of interrupts lines present (could be either
>>> +			  corresponding to A_DET# pin, ALERT# pin, or both)
> 
> Just make this 'interrupts'. Support for 'interrupts-extended' is
> implied.
> 
> With that,
> 
> Reviewed-by: Rob Herring <robh@...nel.org>
> 
>>> +- interrupt-names	: A list of interrupt names. Should contain (if
>>> +			  present):
>>> +			  - "a_det" for line connected to A_DET# pin
>>> +			  - "alert" for line connected to ALERT# pin
>>> +			  Both are expected to be IRQ_TYPE_EDGE_BOTH
>>> +Example:
>>> +
>>> +&i2c3 {
>>> +	charger@32 {
>>> +		compatible = "microchip,ucs1002";
>>> +		pinctrl-names = "default";
>>> +		pinctrl-0 = <&pinctrl_ucs1002_pins>;
>>
>> Document the above ? Or is that optional ?
> 
> I would have said to document this, but recently we had some discussion
> about allowing this to be implied when there's only a 'default' entry.
> We'll add it automatically for schemas.
> 

Good to know. Thanks for the information!

Guenter

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ