mirror of https://github.com/zmkfirmware/zmk.git
30 lines
644 B
Plaintext
30 lines
644 B
Plaintext
/*
|
|
* Copyright (c) 2026 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <../boards/keycapsss/puchi_ble/puchi_ble.dts>
|
|
#include <common/nordic/nrf52840_uf2_boot_mode.dtsi>
|
|
|
|
|
|
/ {
|
|
chosen {
|
|
zmk,battery = &vbatt;
|
|
};
|
|
|
|
// Node name must match original "EXT_POWER" label to preserve user settings.
|
|
EXT_POWER {
|
|
compatible = "zmk,ext-power-generic";
|
|
control-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
vbatt: vbatt {
|
|
compatible = "zmk,battery-voltage-divider";
|
|
io-channels = <&adc 2>;
|
|
output-ohms = <2000000>;
|
|
full-ohms = <(2000000 + 820000)>;
|
|
};
|
|
};
|
|
|