z-module-coquette/boards/skji/coquette/coquette_nrf5340_cpuapp_mariposa.overlay
2025-10-11 02:26:55 +01:00

68 lines
1.5 KiB
Text

/*
* Copyright (c) 2025 eden ariel and ember ana
* SPDX-License-Identifier: EUPL-1.2
*/
#include "coquette_nrf5340_cpuapp_mariposa-pinctrl.dtsi"
#include "coquette_mariposa_common.dtsi"
#include "coquette_nrf5340_cpuapp_common.dtsi"
/ {
chosen {
skji,battery = &vbatt;
};
left_encoder: left_encoder {
a-gpios = <&gpio0 25 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
b-gpios = <&gpio0 26 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
};
right_encoder: right_encoder {
a-gpios = <&gpio0 30 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
b-gpios = <&gpio0 31 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
};
vbatt: vbatt {
status = "okay";
compatible = "voltage-divider";
io-channels = <&adc 7>;
output-ohms = <15000000>;
full-ohms = <(15000000 + 7500000)>;
};
};
&led_strip {
chain-length = <16>;
};
&adc {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
channel@7 {
reg = <7>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,vref-mv = <600>;
zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 5)>;
zephyr,input-positive = <NRF_SAADC_AIN7>;
zephyr,resolution = <12>;
};
};
&i2c0 {
status = "disabled";
compatible = "nordic,nrf-twim";
label = "i2c0";
pinctrl-0 = <&i2c0_default>;
pinctrl-1 = <&i2c0_sleep>;
pinctrl-names = "default", "sleep";
};
&i2c1 {
compatible = "nordic,nrf-twim";
status = "disabled";
label = "i2c1";
pinctrl-0 = <&i2c1_default>;
pinctrl-1 = <&i2c1_sleep>;
pinctrl-names = "default", "sleep";
};