From 5f8d59d69f6789ff67eaacb9f1d4e4d0a3869708 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Mon, 12 Dec 2022 12:33:01 +0100 Subject: [PATCH] boards: npm6001_ek: add regulator entries Add entries for the BUCK0/1/2/3 and LDO0/1 regulators. Note that voltage min/max limits have been set to the hardware limits. They can be adjusted using overlays in applications, depending on the consumer circuit constraints. Signed-off-by: Gerard Marull-Paretas --- boards/shields/npm6001_ek/Kconfig.defconfig | 3 ++ boards/shields/npm6001_ek/npm6001_ek.overlay | 36 ++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/boards/shields/npm6001_ek/Kconfig.defconfig b/boards/shields/npm6001_ek/Kconfig.defconfig index c372e861f4e..2260fc36a99 100644 --- a/boards/shields/npm6001_ek/Kconfig.defconfig +++ b/boards/shields/npm6001_ek/Kconfig.defconfig @@ -6,6 +6,9 @@ if SHIELD_NPM6001_EK config GPIO default y +config REGULATOR + default y + config WATCHDOG default y diff --git a/boards/shields/npm6001_ek/npm6001_ek.overlay b/boards/shields/npm6001_ek/npm6001_ek.overlay index 769dfcbefc9..62e8a1d3e7c 100644 --- a/boards/shields/npm6001_ek/npm6001_ek.overlay +++ b/boards/shields/npm6001_ek/npm6001_ek.overlay @@ -18,5 +18,41 @@ npm6001_ek_wdt: watchdog { compatible = "nordic,npm6001-wdt"; }; + + regulators { + compatible = "nordic,npm6001-regulator"; + + /* limits are set to min/max allowed values */ + + npm6001_ek_buck0: BUCK0 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + npm6001_ek_buck1: BUCK1 { + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1400000>; + }; + + npm6001_ek_buck2: BUCK2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1400000>; + }; + + npm6001_ek_buck3: BUCK3 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3300000>; + }; + + npm6001_ek_ldo0: LDO0 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + npm6001_ek_ldo1: LDO1 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + }; }; };