74 lines
1.8 KiB
Text
74 lines
1.8 KiB
Text
/*
|
|
* Copyright (c) 2025 eden ariel and ember ana
|
|
* SPDX-License-Identifier: EUPL-1.2
|
|
*/
|
|
|
|
#include "coquette_nrf5340_cpuapp_nightingale-pinctrl.dtsi"
|
|
#include "coquette_nightingale_common.dtsi"
|
|
#include "coquette_nrf5340_cpuapp_common.dtsi"
|
|
|
|
/ {
|
|
chosen {
|
|
skji,battery = &vbatt;
|
|
skji,birdsong-powerpath = &bq25186;
|
|
skji,charger = &bq25186;
|
|
};
|
|
vbatt: vbatt {
|
|
status = "okay";
|
|
compatible = "voltage-divider";
|
|
io-channels = <&adc 6>;
|
|
output-ohms = <7500000>;
|
|
full-ohms = <(10000000 + 7500000)>;
|
|
};
|
|
};
|
|
|
|
&led_strip {
|
|
chain-length = <14>;
|
|
};
|
|
&adc {
|
|
status = "okay";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
channel@6 {
|
|
reg = <6>;
|
|
zephyr,gain = "ADC_GAIN_1_4";
|
|
zephyr,reference = "ADC_REF_INTERNAL";
|
|
zephyr,vref-mv = <600>;
|
|
zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 3)>;
|
|
zephyr,input-positive = <NRF_SAADC_AIN6>;
|
|
zephyr,resolution = <12>;
|
|
zephyr,oversampling = <2>;
|
|
};
|
|
};
|
|
&i2c0 {
|
|
status = "okay";
|
|
compatible = "nordic,nrf-twim";
|
|
label = "i2c0";
|
|
pinctrl-0 = <&i2c0_default>;
|
|
pinctrl-1 = <&i2c0_sleep>;
|
|
pinctrl-names = "default", "sleep";
|
|
bq25186: bq25186@6a {
|
|
compatible = "ti,bq25186";
|
|
reg = <0x6a>;
|
|
status = "okay";
|
|
stat-interrupt-gpios = <&gpio1 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
|
power-good-gpios = <&gpio1 7 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
|
constant-charge-current-max-microamp = <240000>;
|
|
device-chemistry = "lithium-ion-polymer";
|
|
constant-charge-voltage-max-microvolt = <4200000>;
|
|
re-charge-voltage-microvolt = <4000000>;
|
|
regulator-vsys = <0x7>;
|
|
input-current-limit = <0x5>;
|
|
button-long-press-time = <0x0>;
|
|
battery-discharge-limit = <0x0>;
|
|
};
|
|
};
|
|
|
|
&i2c1 {
|
|
compatible = "nordic,nrf-twim";
|
|
status = "disabled";
|
|
label = "i2c1";
|
|
pinctrl-0 = <&i2c1_default>;
|
|
pinctrl-1 = <&i2c1_sleep>;
|
|
pinctrl-names = "default", "sleep";
|
|
};
|