[PATCH 0/2] regulator: add support for SGMicro SGM3804

Alexandre Hamamdjian via B4 Relay posted 2 patches 1 month ago
.../bindings/regulator/sgmicro,sgm3804.yaml        |  60 ++++++++
MAINTAINERS                                        |   7 +
drivers/regulator/Kconfig                          |  11 ++
drivers/regulator/Makefile                         |   1 +
drivers/regulator/sgm3804-regulator.c              | 164 +++++++++++++++++++++
5 files changed, 243 insertions(+)
[PATCH 0/2] regulator: add support for SGMicro SGM3804
Posted by Alexandre Hamamdjian via B4 Relay 1 month ago
This series adds support for the SGMicro SGM3804, an I2C-controlled
positive/negative output charge-pump regulator. The chip is used to
generate the AVDD/AVEE rails for display panels and is present on the
Ayaneo Pocket DS handheld, where it powers the panel and is required
before any panel driver can light up the display.

The Ayaneo Pocket DS device tree, posted as a separate series, depends
on the binding introduced here to describe its panel power supply, so
this series is a prerequisite for that work and for any subsequent
panel-related patches targeting the same board.

Signed-off-by: Alexandre Hamamdjian <azkali.limited@gmail.com>
---
Alexandre Hamamdjian (2):
      dt-bindings: regulator: add SGMicro SGM3804
      regulator: sgm3804: add SGMicro SGM3804 charge-pump regulator driver

 .../bindings/regulator/sgmicro,sgm3804.yaml        |  60 ++++++++
 MAINTAINERS                                        |   7 +
 drivers/regulator/Kconfig                          |  11 ++
 drivers/regulator/Makefile                         |   1 +
 drivers/regulator/sgm3804-regulator.c              | 164 +++++++++++++++++++++
 5 files changed, 243 insertions(+)
---
base-commit: e98d21c170b01ddef366f023bbfcf6b31509fa83
change-id: 20260510-sgm3804-c37a0ae6d7f3

Best regards,
--  
Alexandre Hamamdjian <azkali.limited@gmail.com>
Re: [PATCH 0/2] regulator: add support for SGMicro SGM3804
Posted by Mark Brown 1 month ago
On Sun, May 10, 2026 at 11:45:25PM +0700, Alexandre Hamamdjian via B4 Relay wrote:
> This series adds support for the SGMicro SGM3804, an I2C-controlled
> positive/negative output charge-pump regulator. The chip is used to
> generate the AVDD/AVEE rails for display panels and is present on the
> Ayaneo Pocket DS handheld, where it powers the panel and is required
> before any panel driver can light up the display.

There is a separate series from Neil Armstrong (Cced) already in review
for the same part.  Please sort out what to do about this between
yourselves.

> 
> The Ayaneo Pocket DS device tree, posted as a separate series, depends
> on the binding introduced here to describe its panel power supply, so
> this series is a prerequisite for that work and for any subsequent
> panel-related patches targeting the same board.
> 
> Signed-off-by: Alexandre Hamamdjian <azkali.limited@gmail.com>
> ---
> Alexandre Hamamdjian (2):
>       dt-bindings: regulator: add SGMicro SGM3804
>       regulator: sgm3804: add SGMicro SGM3804 charge-pump regulator driver
> 
>  .../bindings/regulator/sgmicro,sgm3804.yaml        |  60 ++++++++
>  MAINTAINERS                                        |   7 +
>  drivers/regulator/Kconfig                          |  11 ++
>  drivers/regulator/Makefile                         |   1 +
>  drivers/regulator/sgm3804-regulator.c              | 164 +++++++++++++++++++++
>  5 files changed, 243 insertions(+)
> ---
> base-commit: e98d21c170b01ddef366f023bbfcf6b31509fa83
> change-id: 20260510-sgm3804-c37a0ae6d7f3
> 
> Best regards,
> --  
> Alexandre Hamamdjian <azkali.limited@gmail.com>
> 
> 
Re: [PATCH 0/2] regulator: add support for SGMicro SGM3804
Posted by Neil Armstrong 1 month ago
Hi Alwexandre,

On 5/11/26 02:51, Mark Brown wrote:
> On Sun, May 10, 2026 at 11:45:25PM +0700, Alexandre Hamamdjian via B4 Relay wrote:
>> This series adds support for the SGMicro SGM3804, an I2C-controlled
>> positive/negative output charge-pump regulator. The chip is used to
>> generate the AVDD/AVEE rails for display panels and is present on the
>> Ayaneo Pocket DS handheld, where it powers the panel and is required
>> before any panel driver can light up the display.
> 
> There is a separate series from Neil Armstrong (Cced) already in review
> for the same part.  Please sort out what to do about this between
> yourselves.

Please find the patchset at https://lore.kernel.org/all/20260506-topic-sm8650-ayaneo-pocket-s2-sgm3804-v4-0-7495e7905693@linaro.org/
it implements full support for the SGM3804 with voltage control on both
rails.

I guess most Ayaneo boards uses common components, I also sent patches for:
- https://lore.kernel.org/all/20260430-topic-sm8650-ayaneo-pocket-s2-sy7758-v2-0-308140640de9@linaro.org/
- https://lore.kernel.org/all/20260504-topic-sm8650-ayaneo-pocket-s2-r63419-v3-0-9f61cf24aebf@linaro.org/
- Display DT https://lore.kernel.org/all/20260428-topic-sm8650-ayaneo-pocket-s2-display-dt-v1-1-ff132c00d076@linaro.org/

Neil

> 
>>
>> The Ayaneo Pocket DS device tree, posted as a separate series, depends
>> on the binding introduced here to describe its panel power supply, so
>> this series is a prerequisite for that work and for any subsequent
>> panel-related patches targeting the same board.
>>
>> Signed-off-by: Alexandre Hamamdjian <azkali.limited@gmail.com>
>> ---
>> Alexandre Hamamdjian (2):
>>        dt-bindings: regulator: add SGMicro SGM3804
>>        regulator: sgm3804: add SGMicro SGM3804 charge-pump regulator driver
>>
>>   .../bindings/regulator/sgmicro,sgm3804.yaml        |  60 ++++++++
>>   MAINTAINERS                                        |   7 +
>>   drivers/regulator/Kconfig                          |  11 ++
>>   drivers/regulator/Makefile                         |   1 +
>>   drivers/regulator/sgm3804-regulator.c              | 164 +++++++++++++++++++++
>>   5 files changed, 243 insertions(+)
>> ---
>> base-commit: e98d21c170b01ddef366f023bbfcf6b31509fa83
>> change-id: 20260510-sgm3804-c37a0ae6d7f3
>>
>> Best regards,
>> --
>> Alexandre Hamamdjian <azkali.limited@gmail.com>
>>
>>