Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752237AbcJJJl7 (ORCPT ); Mon, 10 Oct 2016 05:41:59 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:44175 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751970AbcJJJly (ORCPT ); Mon, 10 Oct 2016 05:41:54 -0400 X-AuditID: cbfec7f2-f79556d000002c42-a6-57fb625c566e Subject: Re: [PATCH 08/10] leds: Add binding for Juniper's I2CS FPGA To: Pantelis Antoniou , Lee Jones Cc: Linus Walleij , Alexandre Courbot , Rob Herring , Mark Rutland , Frank Rowand , Wolfram Sang , Richard Purdie , Jean Delvare , Peter Rosin , Avirup Banerjee , Georgi Vlaev , Guenter Roeck , JawaharBalaji Thirumalaisamy , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-leds@vger.kernel.org, linux-hwmon@vger.kernel.org From: Jacek Anaszewski Message-id: <36af086b-ffae-8f69-ee32-6a2956822bc6@samsung.com> Date: Mon, 10 Oct 2016 11:41:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-version: 1.0 In-reply-to: <1475853669-22480-9-git-send-email-pantelis.antoniou@konsulko.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01SaUhUURjlzlvmaU1cn1ZftlhDRUhZ0nbLsIR+vPrTYqRlWWM+nHKZmJfS Bg5DlhqFZusUTZs6TaLkmLiCiGlmiqFmq0lZyZiVmY5jizXzJvDfuedbzjkfl6P4Ecaf2590 SNQnaRLUrDddWu9sWbQr5mfEkszXwcRof8UQc10LQ658HmNJi/0dTS5YLiuIY7QHkeasLeTt 0ENEzv/KVxCb+Rcip/oeIJL++wcibRXXWPLgcyEiPTefKEhu51MFeXgxnybVtW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MXucefaHjaPnd8b2D32zP/B6rF+y1UWj5OnnrB4 fN4kF8AT5WaTkZqYklqkkJqXnJ+SmZduqxQa4qZroaSQl5ibaqsUoesbEqSkUJaYUwrkGRmg AQfnAPdgJX27BLeM+Z+/MxV8Fay4/u0HYwPjAb4uRk4OCQETiRXvepkhbDGJC/fWs3UxcnEI CSxhlOg7/YMdwnnGKNH+ZgsrSJWwgIvEihc/gTo4OEQEoiRO7hSGqHnOKLHmbT9YA7PAKlaJ XTdOMII0sAkYSvx88ZoJpIFXwE6ioykJJMwioCrxYvkxsM2iAhESt1Z9BCvnFRCU+DH5HguI zSngL/F4VxOYzSxgK7Hg/TooW15i85q3zBMYBWYhaZmFpGwWkrIFjMyrGEVSS4tz03OLjfSK E3OLS/PS9ZLzczcxApPFtmM/t+xg7HoXfIhRgINRiYf3ZeWvcCHWxLLiytxDjBIczEoivEpx v8OFeFMSK6tSi/Lji0pzUosPMZoCPTGRWUo0OR+YyPJK4g1NDM0tDY2MLSzMjYyUxHmnfrgS LiSQnliSmp2aWpBaBNPHxMEp1cAo13655HqpOMM3lkc1uqmnXn4JNfoe91D/QfDOvu9vpP+/ ZzKz8Fbsy7l2u+/i/oU3TSUuhWgve31idtWWaZP2yknOF+/beYvpZa362aUfNUtatrffq91t tNLU8+gMh2XMwZ+dPV4HWRwwm/Xj3c/bPz76KN5xX1NruoVHNOSp7+aqcKlnZ58nKbEUZyQa ajEXFScCAPqIeuQsAwAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161010094148eucas1p24cd6bfcf2cb7d02d23f4de5613fe9daf X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?UTF-8?B?SmFjZWsgQW5hc3pld3NraRtTUlBPTC1TeXN0ZW0gRlcgIChN?= =?UTF-8?B?Qikb7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?SmFjZWsgQW5hc3pld3NraRtTUlBPTC1TeXN0ZW0gRlcgIChN?= =?UTF-8?B?QikbU2Ftc3VuZyBFbGVjdHJvbmljcxtTZW5pb3IgU29mdHdhcmUgRW5naW5l?= =?UTF-8?B?ZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjc1MjY=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20161007152351eucas1p1685ee4ca39b4b8845ae5076a023445d5 X-RootMTR: 20161007152351eucas1p1685ee4ca39b4b8845ae5076a023445d5 References: <1475853669-22480-1-git-send-email-pantelis.antoniou@konsulko.com> <1475853669-22480-9-git-send-email-pantelis.antoniou@konsulko.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2210 Lines: 83 Hi Pantelis, On 10/07/2016 05:21 PM, Pantelis Antoniou wrote: > From: Georgi Vlaev > > Document bindings for the I2CS FPGA leds. > > Signed-off-by: Georgi Vlaev > [Ported from Juniper kernel] > Signed-off-by: Pantelis Antoniou > --- > .../devicetree/bindings/leds/leds-i2cs.txt | 34 ++++++++++++++++++++++ > 1 file changed, 34 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/leds-i2cs.txt > > diff --git a/Documentation/devicetree/bindings/leds/leds-i2cs.txt b/Documentation/devicetree/bindings/leds/leds-i2cs.txt > new file mode 100644 > index 0000000..100e584 > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/leds-i2cs.txt > @@ -0,0 +1,34 @@ > +Juniper I2CS LED driver. > + > +This is present in Juniper platforms that use a I2CS Slave FPGA. > + > +Required properties: > + - compatible: must be "jnx,leds-i2cs" s/compatible:/compatible :/ Also treat the description as a regular sentence, i.e. begin it with a capital letter and put a dot at the end. > + - #address-cells : must be 1. > + - #size-cells : must be 0. s/must/Must/ > +Each led is represented as a sub-node of the jnx,leds-i2cs device. > + > +LED sub-node properties: > +- label : (optional) see Documentation/devicetree/bindings/leds/common.txt > +- reg : number of LED > +- linux,default-trigger : (optional) > + see Documentation/devicetree/bindings/leds/common.txt Driver uses also "hw-blink" property. Please document it here, but add also a prefix: jnx,hw-blink Also "jnx" entry should be added to Documentation/devicetree/bindings/vendor-prefixes.txt. > +Example: > + > +leds_fpc0: leds-jnx-i2cs { > + compatible = "jnx,leds-i2cs"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + fpc0-fail { > + reg = <1>; It would be good to provide also an example of "label" property to suggest LED class device name according to the LED class device naming convention. See Documentation/leds/leds-class.txt for details. > + linux,default-trigger = "fpc0-fail"; > + }; > + > + fpc0-ok { > + reg = <2>; > + linux,default-trigger = "fpc0-ok"; > + }; > +}; > -- Best regards, Jacek Anaszewski