From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH 1/2] dt-bindings: leds: Add binding for ubnt-spi LED. References: <20190504122825.11883-1-list@c-mauderer.de> <4889e87a-5c7a-da74-bff6-c20fd07ea0f4@gmail.com> <0175bf00-f2eb-98c7-ce0b-d9a2858872e7@c-mauderer.de> From: Jacek Anaszewski Message-ID: <5cc8907f-5cb4-e8b4-7309-cc446ef5bde7@gmail.com> Date: Sat, 4 May 2019 22:01:54 +0200 MIME-Version: 1.0 In-Reply-To: <0175bf00-f2eb-98c7-ce0b-d9a2858872e7@c-mauderer.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit To: Christian Mauderer , oss@c-mauderer.de, linux-leds@vger.kernel.org, devicetree@vger.kernel.org Cc: Pavel Machek , Dan Murphy , Rob Herring , Mark Rutland List-ID: On 5/4/19 9:48 PM, Christian Mauderer wrote: > On 04/05/2019 21:34, Jacek Anaszewski wrote: >> Hi Christian, >> >> Thank you for the patch. > > Hello Jacek, > > thank you for your time to review it. You're welcome. >> >> On 5/4/19 2:28 PM, list@c-mauderer.de wrote: >>> From: Christian Mauderer >>> >>> This patch adds the binding documentation for the LED controller found >>> in Ubiquity airCube ISP devices. >>> >>> Signed-off-by: Christian Mauderer >>> --- >>> >>> I tested the patches with a 4.14 and a 4.19 kernel on the current >>> OpenWRT. >>> Although I didn't get the kernel running due to file system problems >>> they build >>> fine with a 5.1-rc7. >>> >>> I shortly described the protocol of the controller in a comment in the >>> driver >>> file in the second patch. >>> >>> Checkpatch gives the following warning for both patches: >>> >>>    WARNING: added, moved or deleted file(s), does MAINTAINERS need >>> updating? >>> >>> To be honest: I don't know what to do with it. Please excuse my >>> ignorance here. >>> It's the first driver that I want to add to the Linux kernel. >> >> You can add yourself as a maintainer of this driver, but it is customary >> rather for more complex drivers. > > I would like to follow the best practice here. So if you say that for > this simple driver it's not usual, I won't add me. Except if you think > it is useful to have someone to blame for it ;-) People will always have your email in the driver, so I'd ignore that warning as Pavel already proposed. >>> Please point me to some documentation if I did miss some big points for >>> submitting patches. >>> >>> >>>   .../bindings/leds/leds-ubnt-spi.txt           | 49 +++++++++++++++++++ >>>   1 file changed, 49 insertions(+) >>>   create mode 100644 >>> Documentation/devicetree/bindings/leds/leds-ubnt-spi.txt >>> >>> diff --git a/Documentation/devicetree/bindings/leds/leds-ubnt-spi.txt >>> b/Documentation/devicetree/bindings/leds/leds-ubnt-spi.txt >>> new file mode 100644 >>> index 000000000000..ab1478cdc139 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/leds/leds-ubnt-spi.txt >>> @@ -0,0 +1,49 @@ >>> +Binding for the controller based LED found in Ubiquity airCube ISP >>> and most >>> +likely some other Ubiquity devices. >>> + >>> +The protocol of the controller is quite simple. Only one byte will be >>> sent. The >>> +value of the byte can be between the ubnt-spi,off_bright value and the >>> +ubnt-spi,max_bright value. >>> + >>> +The driver maybe can be used for other devices with a similar >>> protocol too. >>> + >>> +Required properties: >>> +- compatible:        Should be "ubnt,spi-led". >>> +- spi-max-frequency:    Should be <100000> for this device. >>> + >>> +Optional sub-node properties: >>> +- ubnt-spi,off_bright:    The value that will be sent if the LED >>> should be >>> +            switched off. Default value is 0. >>> +- ubnt-spi,max_bright:    Value for the maximum brightness. Default >>> value for that >>> +            is 63. >>> +- label:        A label for the LED. If one is given, the LED will be >>> +            named "ubnt-spi: