linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Dzmitry Sankouski <dsankouski@gmail.com>,
	Sebastian Reichel <sre@kernel.org>,
	Chanwoo Choi <cw00.choi@samsung.com>, Lee Jones <lee@kernel.org>,
	Rob Herring <robh@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Pavel Machek <pavel@ucw.cz>, Hans de Goede <hdegoede@redhat.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>,
	Purism Kernel Team <kernel@puri.sm>
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, linux-input@vger.kernel.org,
	linux-leds@vger.kernel.org
Subject: Re: [PATCH v9 9/9] leds: max77705: Add LEDs support
Date: Mon, 2 Dec 2024 11:29:54 +0100	[thread overview]
Message-ID: <b7e4162a-a7f7-462d-9dde-121eeb59d148@kernel.org> (raw)
In-Reply-To: <20241202-starqltechn_integration_upstream-v9-9-a1adc3bae2b8@gmail.com>

On 02/12/2024 10:48, Dzmitry Sankouski wrote:
> This adds basic support for LEDs for the max77705 PMIC.
> 
> Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
> 
> ---
> Changes for v8:
> - join line where possible to fit in 100 chars


Coding style asks for 80. checkpatch is not a coding style, unless this
came from maintainer's review.

> - change comment style C++ -> C
> 

> Changes for v6:
> - change compatible suffix to 'rgb'
> - remove I2C dependency in Kconfig
> - remove copyright and author from 'based on' header statement
> - replace MFD abbreviation with PMIC
> - MAINTAINERS: alphabetic order
> - max77705_rgb_blink: replace ternary operators with if..else if sequence
> - max77705_rgb_blink: move hardcoded numbers to constants
> - max77705_led_brightness_set: move ret to the bottom
> - s/map/regmap
> - replace device_for_each_child_node with scoped version
> - s/rv/ret
> Changes for v5:
> - use same hardware name in Kconfig and module descriptions
> - remove copyrighter owner from module authors
> 
> Changes in v4:
> - inline BLINK_(ON|OFF) macro
> - remove camel case
> - drop backwards compatibility(new driver)
> - drop module alias
> ---
>  MAINTAINERS                          |   1 +
>  drivers/leds/Kconfig                 |   6 ++++++
>  drivers/leds/Makefile                |   1 +
>  drivers/leds/leds-max77705.c         | 167 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  include/linux/mfd/max77705-private.h |  18 ++++++++++++++++
>  5 files changed, 193 insertions(+)
> 
> diff --git a/MAINTAINERS b/MAINTAINERS


...

> diff --git a/include/linux/mfd/max77705-private.h b/include/linux/mfd/max77705-private.h
> index be781a0f9802..2140693ce747 100644
> --- a/include/linux/mfd/max77705-private.h
> +++ b/include/linux/mfd/max77705-private.h
> @@ -35,6 +35,24 @@
>  #define MAX77705_SYSTEM_IRQ_SYSOVLO_INT	BIT(5)
>  #define MAX77705_SYSTEM_IRQ_TSHDN_INT	BIT(6)
>  #define MAX77705_SYSTEM_IRQ_TM_INT	BIT(7)
> +/* MAX77705_RGBLED_REG_LEDEN register */
> +#define MAX77705_RGBLED_EN_WIDTH	2
> +/* MAX77705_RGBLED_REG_LEDBLNK register */
> +#define MAX77705_RGB_DELAY_100_STEP_LIM 500
> +#define MAX77705_RGB_DELAY_100_STEP_COUNT 4
> +#define MAX77705_RGB_DELAY_100_STEP 100
> +#define MAX77705_RGB_DELAY_250_STEP_LIM 3250
> +#define MAX77705_RGB_DELAY_250_STEP 250
> +#define MAX77705_RGB_DELAY_500_STEP 500
> +#define MAX77705_RGB_DELAY_500_STEP_COUNT 10
> +#define MAX77705_RGB_DELAY_500_STEP_LIM 5000
> +#define MAX77705_RGB_DELAY_1000_STEP_LIM 8000
> +#define MAX77705_RGB_DELAY_1000_STEP_COUNT 13
> +#define MAX77705_RGB_DELAY_1000_STEP 1000
> +#define MAX77705_RGB_DELAY_2000_STEP 2000
> +#define MAX77705_RGB_DELAY_2000_STEP_COUNT 13
> +#define MAX77705_RGB_DELAY_2000_STEP_LIM 12000
> +
>  

No need for multiple line breaks.

Best regards,
Krzysztof

  reply	other threads:[~2024-12-02 10:30 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-02  9:47 [PATCH v9 0/9] Add support for Maxim Integrated MAX77705 PMIC Dzmitry Sankouski
2024-12-02  9:47 ` [PATCH v9 1/9] power: supply: add undervoltage health status property Dzmitry Sankouski
2024-12-02  9:47 ` [PATCH v9 2/9] dt-bindings: power: supply: max17042: add max77705 support Dzmitry Sankouski
2024-12-02 10:16   ` Krzysztof Kozlowski
2024-12-02  9:47 ` [PATCH v9 3/9] dt-bindings: power: supply: max17042: remove reg from required Dzmitry Sankouski
2024-12-02 10:18   ` Krzysztof Kozlowski
2024-12-02  9:47 ` [PATCH v9 4/9] dt-bindings: mfd: add maxim,max77705 Dzmitry Sankouski
2024-12-02 18:34   ` Jacek Anaszewski
2024-12-02  9:47 ` [PATCH v9 5/9] power: supply: max17042: add max77705 fuel gauge support Dzmitry Sankouski
2024-12-02 10:18   ` Krzysztof Kozlowski
2024-12-02  9:47 ` [PATCH v9 6/9] mfd: Add new driver for MAX77705 PMIC Dzmitry Sankouski
2024-12-02 10:23   ` Krzysztof Kozlowski
2024-12-03 11:28     ` Dzmitry Sankouski
2024-12-02  9:48 ` [PATCH v9 7/9] input: max77693: add max77705 haptic support Dzmitry Sankouski
2024-12-02  9:48 ` [PATCH v9 8/9] power: supply: max77705: Add charger driver for Maxim 77705 Dzmitry Sankouski
2024-12-02 10:28   ` Krzysztof Kozlowski
2024-12-02  9:48 ` [PATCH v9 9/9] leds: max77705: Add LEDs support Dzmitry Sankouski
2024-12-02 10:29   ` Krzysztof Kozlowski [this message]
2024-12-03 12:21     ` Dzmitry Sankouski
2024-12-05 16:42       ` Lee Jones

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=b7e4162a-a7f7-462d-9dde-121eeb59d148@kernel.org \
    --to=krzk@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=cw00.choi@samsung.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=dsankouski@gmail.com \
    --cc=hdegoede@redhat.com \
    --cc=kernel@puri.sm \
    --cc=lee@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=pavel@ucw.cz \
    --cc=robh@kernel.org \
    --cc=sebastian.krzyszkowiak@puri.sm \
    --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;
as well as URLs for NNTP newsgroup(s).