2020-06-12 14:36:54 +10:00
|
|
|
/*
|
2021-07-16 08:34:00 +10:00
|
|
|
* Copyright (c) 2021 The ZMK Contributors
|
2020-06-12 14:36:54 +10:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2021-07-16 08:34:00 +10:00
|
|
|
#include "nice_nano.dtsi"
|
2020-06-12 14:36:54 +10:00
|
|
|
|
|
|
|
/ {
|
2020-10-23 16:57:32 +11:00
|
|
|
ext-power {
|
2020-10-06 18:52:21 +11:00
|
|
|
compatible = "zmk,ext-power-generic";
|
|
|
|
label = "EXT_POWER";
|
|
|
|
control-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2020-06-12 14:36:54 +10:00
|
|
|
|
2020-09-20 10:14:59 +10:00
|
|
|
vbatt {
|
|
|
|
compatible = "zmk,battery-voltage-divider";
|
2020-10-28 07:08:18 +11:00
|
|
|
label = "BATTERY";
|
2020-09-20 10:14:59 +10:00
|
|
|
io-channels = <&adc 2>;
|
|
|
|
output-ohms = <2000000>;
|
|
|
|
full-ohms = <(2000000 + 806000)>;
|
|
|
|
};
|
|
|
|
};
|