From c7295aa6a60a5bb1a1e1d065b43c8fe4ba8707e9 Mon Sep 17 00:00:00 2001 From: Jan Zyczkowski Date: Fri, 21 Jan 2022 15:31:05 +0100 Subject: [PATCH] board: thingy53_nrf5340: Add option to set PMIC to PWM mode Add dts node for thingy53 board to forcibly set PMIC to PWM mode by setting GPIO pin high. Signed-off-by: Jan Zyczkowski --- boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dts b/boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dts index 7409631e079..ac63ff571ef 100644 --- a/boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dts +++ b/boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dts @@ -59,6 +59,15 @@ }; }; + npm1100_force_pwm_mode: npm1100_force_pwm_mode { + compatible = "regulator-fixed-sync", "regulator-fixed"; + label = "npm1100_force_pwm_mode"; + regulator-name = "npm1100_force_pwm_mode"; + enable-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + status = "disabled"; + regulator-boot-on; + }; + vbatt { compatible = "voltage-divider"; io-channels = <&adc 2>;