blob: 37e6961c5fdba4b3b738c82d9ab193d411d00f25 [file] [log] [blame]
/*
* Copyright (C) 2025 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/
#include <dt-bindings/regulator/npm13xx.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
&arduino_i2c {
npm1304_ek_pmic: pmic@6b {
compatible = "nordic,npm1304";
reg = <0x6b>;
npm1304_ek_gpio: gpio-controller {
compatible = "nordic,npm1304-gpio";
gpio-controller;
#gpio-cells = <2>;
ngpios = <5>;
};
npm1304_ek_regulators: regulators {
compatible = "nordic,npm1304-regulator";
/* limits are set to min/max allowed values */
npm1304_ek_buck1: BUCK1 {
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <3300000>;
};
npm1304_ek_buck2: BUCK2 {
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <3300000>;
};
npm1304_ek_ldo1: LDO1 {
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <3300000>;
};
npm1304_ek_ldo2: LDO2 {
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <3300000>;
};
};
npm1304_ek_charger: charger {
compatible = "nordic,npm1304-charger";
term-microvolt = <4150000>;
term-warm-microvolt = <4000000>;
current-microamp = <4000>;
vbus-limit-microamp = <500000>;
thermistor-ohms = <10000>;
thermistor-beta = <3380>;
charging-enable;
};
npm1304_ek_buttons: buttons {
compatible = "gpio-keys";
pmic_button0: pmic_button_0 {
gpios = <&npm1304_ek_gpio 0 GPIO_ACTIVE_LOW>;
label = "Pmic button switch 0";
zephyr,code = <INPUT_KEY_0>;
};
pmic_button1: pmic_button_1 {
gpios = <&npm1304_ek_gpio 1 GPIO_ACTIVE_LOW>;
label = "Pmic button switch 1";
zephyr,code = <INPUT_KEY_1>;
};
pmic_button2: pmic_button_2 {
gpios = <&npm1304_ek_gpio 2 GPIO_ACTIVE_LOW>;
label = "Pmic button switch 2";
zephyr,code = <INPUT_KEY_2>;
};
};
npm1304_ek_leds: leds {
compatible = "nordic,npm1304-led";
nordic,led0-mode = "error";
nordic,led1-mode = "charging";
nordic,led2-mode = "host";
};
};
};