From: Pavel Machek <pavel@ucw.cz>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: lee@kernel.org, sean.wang@mediatek.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com,
linux-leds@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
kernel@collabora.com
Subject: Re: [PATCH v2 6/7] leds: leds-mt6323: Add support for MT6331 leds
Date: Thu, 13 Apr 2023 13:01:10 +0200 [thread overview]
Message-ID: <ZDfg9r820Si8SWWm@duo.ucw.cz> (raw)
In-Reply-To: <20230412153310.241046-7-angelogioacchino.delregno@collabora.com>
[-- Attachment #1: Type: text/plain, Size: 1701 bytes --]
Hi!
> Add the register offsets for MT6331. The hwspec is the same as MT6323.
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
> drivers/leds/leds-mt6323.c | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/drivers/leds/leds-mt6323.c b/drivers/leds/leds-mt6323.c
> index 182256ec1924..5d95dbd9a761 100644
> --- a/drivers/leds/leds-mt6323.c
> +++ b/drivers/leds/leds-mt6323.c
> @@ -531,6 +531,17 @@ static const struct mt6323_regs mt6323_registers = {
> .isink_en_ctrl = 0x356,
> };
>
> +static const struct mt6323_regs mt6331_registers = {
> + .top_ckpdn = (const u16[]){ 0x138, 0x13e, 0x144 },
> + .num_top_ckpdn = 3,
> + .top_ckcon = (const u16[]){ 0x14c, 0x14a },
> + .num_top_ckcon = 2,
> + .isink_con = (const u16[]){ 0x40c, 0x40e, 0x410, 0x412, 0x414 },
> + .num_isink_con = 5,
> + .isink_max_regs = 4, /* ISINK[0..3] */
> + .isink_en_ctrl = 0x43a,
> +};
> +
> static const struct mt6323_hwspec mt6323_spec = {
> .max_period = 10000,
> .max_leds = 4,
> @@ -543,8 +554,14 @@ static const struct mt6323_data mt6323_pdata = {
> .spec = &mt6323_spec,
> };
>
> +static const struct mt6323_data mt6331_pdata = {
> + .regs = &mt6331_registers,
> + .spec = &mt6323_spec,
> +};
> +
> static const struct of_device_id mt6323_led_dt_match[] = {
> { .compatible = "mediatek,mt6323-led", .data = &mt6323_pdata},
> + { .compatible = "mediatek,mt6331-led", .data = &mt6331_pdata },
> {},
" " before } is missing.
But that's really detail.
Acked-by: Pavel Machek <pavel@ucw.cz>
Pavel
--
People of Russia, stop Putin before his war on Ukraine escalates.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Pavel Machek <pavel@ucw.cz>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: lee@kernel.org, sean.wang@mediatek.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com,
linux-leds@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
kernel@collabora.com
Subject: Re: [PATCH v2 6/7] leds: leds-mt6323: Add support for MT6331 leds
Date: Thu, 13 Apr 2023 13:01:10 +0200 [thread overview]
Message-ID: <ZDfg9r820Si8SWWm@duo.ucw.cz> (raw)
In-Reply-To: <20230412153310.241046-7-angelogioacchino.delregno@collabora.com>
[-- Attachment #1.1: Type: text/plain, Size: 1701 bytes --]
Hi!
> Add the register offsets for MT6331. The hwspec is the same as MT6323.
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
> drivers/leds/leds-mt6323.c | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/drivers/leds/leds-mt6323.c b/drivers/leds/leds-mt6323.c
> index 182256ec1924..5d95dbd9a761 100644
> --- a/drivers/leds/leds-mt6323.c
> +++ b/drivers/leds/leds-mt6323.c
> @@ -531,6 +531,17 @@ static const struct mt6323_regs mt6323_registers = {
> .isink_en_ctrl = 0x356,
> };
>
> +static const struct mt6323_regs mt6331_registers = {
> + .top_ckpdn = (const u16[]){ 0x138, 0x13e, 0x144 },
> + .num_top_ckpdn = 3,
> + .top_ckcon = (const u16[]){ 0x14c, 0x14a },
> + .num_top_ckcon = 2,
> + .isink_con = (const u16[]){ 0x40c, 0x40e, 0x410, 0x412, 0x414 },
> + .num_isink_con = 5,
> + .isink_max_regs = 4, /* ISINK[0..3] */
> + .isink_en_ctrl = 0x43a,
> +};
> +
> static const struct mt6323_hwspec mt6323_spec = {
> .max_period = 10000,
> .max_leds = 4,
> @@ -543,8 +554,14 @@ static const struct mt6323_data mt6323_pdata = {
> .spec = &mt6323_spec,
> };
>
> +static const struct mt6323_data mt6331_pdata = {
> + .regs = &mt6331_registers,
> + .spec = &mt6323_spec,
> +};
> +
> static const struct of_device_id mt6323_led_dt_match[] = {
> { .compatible = "mediatek,mt6323-led", .data = &mt6323_pdata},
> + { .compatible = "mediatek,mt6331-led", .data = &mt6331_pdata },
> {},
" " before } is missing.
But that's really detail.
Acked-by: Pavel Machek <pavel@ucw.cz>
Pavel
--
People of Russia, stop Putin before his war on Ukraine escalates.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-04-13 11:01 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-12 15:33 [PATCH v2 0/7] Add support for MT6331 and MT6332 LEDs AngeloGioacchino Del Regno
2023-04-12 15:33 ` AngeloGioacchino Del Regno
2023-04-12 15:33 ` [PATCH v2 1/7] dt-bindings: leds: leds-mt6323: Document mt6331 compatible AngeloGioacchino Del Regno
2023-04-12 15:33 ` AngeloGioacchino Del Regno
2023-04-13 8:35 ` Alexandre Mergnat
2023-04-13 8:35 ` Alexandre Mergnat
2023-04-12 15:33 ` [PATCH v2 2/7] dt-bindings: leds: leds-mt6323: Document mt6332 compatible AngeloGioacchino Del Regno
2023-04-12 15:33 ` AngeloGioacchino Del Regno
2023-04-13 8:35 ` Alexandre Mergnat
2023-04-13 8:35 ` Alexandre Mergnat
2023-04-13 10:47 ` Pavel Machek
2023-04-13 10:47 ` Pavel Machek
2023-04-12 15:33 ` [PATCH v2 3/7] leds: leds-mt6323: Specify registers and specs in platform data AngeloGioacchino Del Regno
2023-04-12 15:33 ` AngeloGioacchino Del Regno
2023-04-13 10:11 ` Alexandre Mergnat
2023-04-13 10:11 ` Alexandre Mergnat
2023-04-13 10:57 ` Pavel Machek
2023-04-13 10:57 ` Pavel Machek
2023-04-12 15:33 ` [PATCH v2 4/7] leds: leds-mt6323: Open code and drop MT6323_CAL_HW_DUTY macro AngeloGioacchino Del Regno
2023-04-12 15:33 ` AngeloGioacchino Del Regno
2023-04-13 13:06 ` Alexandre Mergnat
2023-04-13 13:06 ` Alexandre Mergnat
2023-04-12 15:33 ` [PATCH v2 5/7] leds: leds-mt6323: Drop MT6323_ prefix from macros and defines AngeloGioacchino Del Regno
2023-04-12 15:33 ` AngeloGioacchino Del Regno
2023-04-13 10:59 ` Pavel Machek
2023-04-13 10:59 ` Pavel Machek
2023-04-13 13:41 ` Alexandre Mergnat
2023-04-13 13:41 ` Alexandre Mergnat
2023-04-12 15:33 ` [PATCH v2 6/7] leds: leds-mt6323: Add support for MT6331 leds AngeloGioacchino Del Regno
2023-04-12 15:33 ` AngeloGioacchino Del Regno
2023-04-13 11:01 ` Pavel Machek [this message]
2023-04-13 11:01 ` Pavel Machek
2023-04-13 13:19 ` Alexandre Mergnat
2023-04-13 13:19 ` Alexandre Mergnat
2023-04-12 15:33 ` [PATCH v2 7/7] leds: leds-mt6323: Add support for WLEDs and MT6332 AngeloGioacchino Del Regno
2023-04-12 15:33 ` AngeloGioacchino Del Regno
2023-04-13 11:06 ` Pavel Machek
2023-04-13 11:06 ` Pavel Machek
2023-04-13 11:29 ` AngeloGioacchino Del Regno
2023-04-13 11:29 ` AngeloGioacchino Del Regno
2023-04-13 11:32 ` AngeloGioacchino Del Regno
2023-04-13 11:32 ` AngeloGioacchino Del Regno
2023-04-14 7:07 ` Lee Jones
2023-04-14 7:07 ` Lee Jones
2023-04-14 7:09 ` AngeloGioacchino Del Regno
2023-04-14 7:09 ` AngeloGioacchino Del Regno
2023-04-13 14:15 ` Alexandre Mergnat
2023-04-13 14:15 ` Alexandre Mergnat
2023-04-14 10:19 ` AngeloGioacchino Del Regno
2023-04-14 10:19 ` AngeloGioacchino Del Regno
2023-04-13 10:49 ` [PATCH v2 0/7] Add support for MT6331 and MT6332 LEDs Pavel Machek
2023-04-13 10:49 ` Pavel Machek
2023-04-13 11:31 ` AngeloGioacchino Del Regno
2023-04-13 11:31 ` AngeloGioacchino Del Regno
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=ZDfg9r820Si8SWWm@duo.ucw.cz \
--to=pavel@ucw.cz \
--cc=angelogioacchino.delregno@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=kernel@collabora.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=robh+dt@kernel.org \
--cc=sean.wang@mediatek.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.