boards: shields: npm1300_ek: Settings moved to board overlay

The existing npm1300_ek shield overlay has several example
voltage and gpio settings.  For many use cases these are
invalid and need to be overridden, or removed with
delete-property.

These example configurations have been moved to a board
specific overlay.

Signed-off-by: Andy Sinclair <andy.sinclair@nordicsemi.no>
This commit is contained in:
Andy Sinclair 2023-11-06 15:49:26 +00:00 committed by Carles Cufí
commit 39564cdf20
2 changed files with 21 additions and 12 deletions

View file

@ -23,32 +23,23 @@
/* limits are set to min/max allowed values */
npm1300_ek_buck1: BUCK1 {
regulator-min-microvolt = <1800000>;
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <3300000>;
};
npm1300_ek_buck2: BUCK2 {
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <3300000>;
regulator-init-microvolt = <3300000>;
retention-microvolt = <2500000>;
enable-gpios = <&npm1300_ek_gpio 1 GPIO_ACTIVE_LOW>;
retention-gpios = <&npm1300_ek_gpio 2 GPIO_ACTIVE_HIGH>;
pwm-gpios = <&npm1300_ek_gpio 2 GPIO_ACTIVE_LOW>;
};
npm1300_ek_ldo1: LDO1 {
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <3300000>;
regulator-initial-mode = <NPM1300_LDSW_MODE_LDO>;
enable-gpios = <&npm1300_ek_gpio 2 GPIO_ACTIVE_LOW>;
};
npm1300_ek_ldo2: LDO2 {
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <3300000>;
regulator-initial-mode = <NPM1300_LDSW_MODE_LDSW>;
enable-gpios = <&npm1300_ek_gpio 2 GPIO_ACTIVE_LOW>;
};
};

View file

@ -9,14 +9,32 @@
};
&npm1300_ek_regulators {
dvs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>,
<&gpio0 18 GPIO_ACTIVE_LOW>;
dvs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>,
<&gpio0 18 GPIO_ACTIVE_LOW>;
};
&npm1300_ek_buck1 {
regulator-init-microvolt = <2000000>;
};
&npm1300_ek_buck2 {
regulator-init-microvolt = <3300000>;
retention-microvolt = <2500000>;
enable-gpios = <&npm1300_ek_gpio 1 GPIO_ACTIVE_LOW>;
retention-gpios = <&npm1300_ek_gpio 2 GPIO_ACTIVE_HIGH>;
pwm-gpios = <&npm1300_ek_gpio 2 GPIO_ACTIVE_LOW>;
};
&npm1300_ek_ldo1 {
regulator-initial-mode = <NPM1300_LDSW_MODE_LDO>;
enable-gpios = <&npm1300_ek_gpio 2 GPIO_ACTIVE_LOW>;
};
&npm1300_ek_ldo2 {
regulator-initial-mode = <NPM1300_LDSW_MODE_LDSW>;
enable-gpios = <&npm1300_ek_gpio 2 GPIO_ACTIVE_LOW>;
};
&npm1300_ek_pmic {
host-int-gpios = <&gpio0 22 0>;
pmic-int-pin = <3>;