1/* 2 * Copyright (C) 2023 Nordic Semiconductor ASA 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6#include <dt-bindings/regulator/npm1300.h> 7#include <zephyr/dt-bindings/input/input-event-codes.h> 8 9&arduino_i2c { 10 npm1300_ek_pmic: pmic@6b { 11 compatible = "nordic,npm1300"; 12 reg = <0x6b>; 13 14 npm1300_ek_gpio: gpio-controller { 15 compatible = "nordic,npm1300-gpio"; 16 gpio-controller; 17 #gpio-cells = <2>; 18 ngpios = <5>; 19 }; 20 21 npm1300_ek_regulators: regulators { 22 compatible = "nordic,npm1300-regulator"; 23 24 /* limits are set to min/max allowed values */ 25 npm1300_ek_buck1: BUCK1 { 26 regulator-min-microvolt = <1000000>; 27 regulator-max-microvolt = <3300000>; 28 }; 29 30 npm1300_ek_buck2: BUCK2 { 31 regulator-min-microvolt = <1000000>; 32 regulator-max-microvolt = <3300000>; 33 }; 34 35 npm1300_ek_ldo1: LDO1 { 36 regulator-min-microvolt = <1000000>; 37 regulator-max-microvolt = <3300000>; 38 }; 39 40 npm1300_ek_ldo2: LDO2 { 41 regulator-min-microvolt = <1000000>; 42 regulator-max-microvolt = <3300000>; 43 }; 44 }; 45 46 npm1300_ek_charger: charger { 47 compatible = "nordic,npm1300-charger"; 48 term-microvolt = <4150000>; 49 term-warm-microvolt = <4000000>; 50 current-microamp = <150000>; 51 dischg-limit-microamp = <1000000>; 52 vbus-limit-microamp = <500000>; 53 thermistor-ohms = <10000>; 54 thermistor-beta = <3380>; 55 charging-enable; 56 }; 57 58 npm1300_ek_buttons: buttons { 59 compatible = "gpio-keys"; 60 pmic_button0: pmic_button_0 { 61 gpios = < &npm1300_ek_gpio 0 GPIO_ACTIVE_HIGH>; 62 label = "Pmic button switch 0"; 63 zephyr,code = <INPUT_KEY_0>; 64 }; 65 }; 66 67 npm1300_ek_leds: leds { 68 compatible = "nordic,npm1300-led"; 69 nordic,led0-mode = "error"; 70 nordic,led1-mode = "charging"; 71 nordic,led2-mode = "host"; 72 }; 73 }; 74}; 75