Skip to content

Add input voltage suppliers for PMIC MCP16502 regulators

Andrei Simion linux-arm-kernel linux-devicetree lkml 2 versions – Applied

Status from this message: Applied to at91-dt, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 4 repliesApplied
  2. v16 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- drop (lvin|pvin[1-4])-supply from each regulators sub-node
- add voltage input supply documentation in the yaml schema
- add lvin-supply, pvin[1-4]-supply to PMIC node

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7regulator: mcp16502: Add supplier for regulatorsdrivers/regulator/mcp16502.c+9 -80 replies
2/7regulator: dt-bindings: microchip,mcp16502: Add voltage input supply documentationDocumentation/devicetree/bindings/regulator/microchip,mcp16502.yaml+20 -01 reply
3/7ARM: dts: microchip: at91-sama7g5ek: Add reg_5v to supply PMIC nodesarch/arm/boot/dts/microchip/at91-sama7g5ek.dts+13 -00 replies
4/7ARM: dts: microchip: at91-sama7g54_curiosity: Add reg_5v to supply PMIC nodesarch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts+13 -00 replies
5/7ARM: dts: microchip: at91-sama5d2_icp: Add reg_5v to supply PMIC nodesarch/arm/boot/dts/microchip/at91-sama5d2_icp.dts+13 -00 replies
6/7ARM: dts: microchip: at91-sama5d27_wlsom1: Add reg_5v to supply PMIC nodesarch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi+13 -00 replies
7/7ARM: dts: microchip: sama5d29_curiosity: Add reg_5v to supply PMIC nodesarch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts+13 -00 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/7
2/7R-b
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] Add input voltage suppliers for PMIC MCP16502 regulators

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

-------------------------------------------------------------------------------------------

Changelog:

v1 -> v2:
- drop (lvin|pvin[1-4])-supply from each regulators sub-node
- add voltage input supply documentation in the yaml schema
- add lvin-supply, pvin[1-4]-supply to PMIC node

Andrei Simion (7):
regulator: mcp16502: Add supplier for regulators
regulator: dt-bindings: microchip,mcp16502: Add voltage input supply
documentation
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

 .../regulator/microchip,mcp16502.yaml         | 20 +++++++++++++++++++
 .../dts/microchip/at91-sama5d27_wlsom1.dtsi   | 13 ++++++++++++
 .../dts/microchip/at91-sama5d29_curiosity.dts | 13 ++++++++++++
 .../boot/dts/microchip/at91-sama5d2_icp.dts   | 13 ++++++++++++
 .../dts/microchip/at91-sama7g54_curiosity.dts | 13 ++++++++++++
 .../arm/boot/dts/microchip/at91-sama7g5ek.dts | 13 ++++++++++++
 drivers/regulator/mcp16502.c                  | 17 ++++++++--------
 7 files changed, 94 insertions(+), 8 deletions(-)

base-commit: 9e6869691724b12e1f43655eeedc35fade38120c

Signature · 1 line
2.34.1