linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] Add input voltage suppliers for PMIC MCP16502 regulators
@ 2024-08-02  8:44 Andrei Simion
  2024-08-02  8:44 ` [PATCH 1/6] regulator: mcp16502: Add supplier for regulators Andrei Simion
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Andrei Simion @ 2024-08-02  8:44 UTC (permalink / raw)
  To: broonie, lgirdwood, claudiu.beznea, nicolas.ferre, krzk+dt,
	conor+dt, robh, alexandre.belloni
  Cc: linux-arm-kernel, linux-kernel, devicetree, Andrei Simion

In this series of patches, support for the *-supply property [1]  is added
(correlated with supply_name [2]) from the core regulator.
Link [1]: https://github.com/torvalds/linux/blob/master/drivers/regulator/core.c#L471
Link [2]: https://github.com/torvalds/linux/blob/master/drivers/regulator/core.c#L2064

I modified the mcp16502.c driver and the dts that use this PMIC.
We added these improvements to provide a complete description of the board power scheme.

Snippet (as an example) from /sys/kernel/debug/regulator/regulator_summary
(for at91-sama7g5ek):
# cat regulator_summary
 regulator                      use open bypass  opmode voltage current     min     max
---------------------------------------------------------------------------------------
 regulator-dummy                  1    0      0 unknown     0mV     0mA     0mV     0mV
 5V_MAIN                          6    6      0 unknown  5000mV     0mA  5000mV  5000mV
    VDD_IO                        5    4      0  normal  3300mV     0mA  3300mV  3300mV
       e1208000.mmc-vqmmc         1                                 0mA     0mV     0mV
       e1208000.mmc-vmmc          1                                 0mA  3300mV  3400mV
       e1204000.mmc-vmmc          1                                 0mA  3300mV  3400mV
       VDDOUT25                   3    2      0 unknown  2500mV     0mA  2500mV  2500mV
          e1000000.adc-vref       1                                 0mA     0mV     0mV
          e1000000.adc-vddana     1                                 0mA     0mV     0mV
    VDD_DDR                       1    0      0  normal  1350mV     0mA  1350mV  1350mV
    VDD_CORE                      1    0      0  normal  1150mV     0mA  1150mV  1150mV
    VDD_OTHER                     2    1      0  normal  1050mV     0mA  1050mV  1250mV
       cpu0-cpu                   1                                 0mA  1050mV  1225mV
    LDO1                          2    1      0 unknown  1800mV     0mA  1800mV  1800mV
       e1204000.mmc-vqmmc         1                                 0mA     0mV     0mV
    LDO2

-------------------------------------------------------------------------------------------
Andrei Simion (6):
  regulator: mcp16502: Add supplier for regulators
  ARM: dts: microchip: at91-sama7g5ek: Add reg_5v to supply PMIC nodes
  ARM: dts: microchip: at91-sama7g54_curiosity: Add reg_5v to supply
    PMIC nodes
  ARM: dts: microchip: at91-sama5d2_icp: Add reg_5v to supply PMIC nodes
  ARM: dts: microchip: at91-sama5d27_wlsom1: Add reg_5v to supply PMIC
    nodes
  ARM: dts: microchip: sama5d29_curiosity: Add reg_5v to supply PMIC
    nodes

 .../dts/microchip/at91-sama5d27_wlsom1.dtsi     | 14 ++++++++++++++
 .../dts/microchip/at91-sama5d29_curiosity.dts   | 14 ++++++++++++++
 .../arm/boot/dts/microchip/at91-sama5d2_icp.dts | 14 ++++++++++++++
 .../dts/microchip/at91-sama7g54_curiosity.dts   | 14 ++++++++++++++
 arch/arm/boot/dts/microchip/at91-sama7g5ek.dts  | 14 ++++++++++++++
 drivers/regulator/mcp16502.c                    | 17 +++++++++--------
 6 files changed, 79 insertions(+), 8 deletions(-)


base-commit: f524a5e4dfb75b277c9a5ad819ca5f035f490f14
-- 
2.34.1



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-08-02 17:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-02  8:44 [PATCH 0/6] Add input voltage suppliers for PMIC MCP16502 regulators Andrei Simion
2024-08-02  8:44 ` [PATCH 1/6] regulator: mcp16502: Add supplier for regulators Andrei Simion
2024-08-02 12:56   ` Mark Brown
2024-08-02 14:25     ` Andrei.Simion
2024-08-02 17:58       ` Mark Brown
2024-08-02  8:44 ` [PATCH 2/6] ARM: dts: microchip: at91-sama7g5ek: Add reg_5v to supply PMIC nodes Andrei Simion
2024-08-02  8:44 ` [PATCH 3/6] ARM: dts: microchip: at91-sama7g54_curiosity: " Andrei Simion
2024-08-02  8:44 ` [PATCH 4/6] ARM: dts: microchip: at91-sama5d2_icp: " Andrei Simion
2024-08-02  8:44 ` [PATCH 5/6] ARM: dts: microchip: at91-sama5d27_wlsom1: " Andrei Simion
2024-08-02  8:44 ` [PATCH 6/6] ARM: dts: microchip: sama5d29_curiosity: " Andrei Simion

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).