summaryrefslogtreecommitdiff
path: root/app/boards/arm/nice_nano/nice_nano_v2.dts
blob: 7c044b4df6c36e3223204ad2c61da84ace85d215 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (c) 2021 The ZMK Contributors
 *
 * SPDX-License-Identifier: MIT
 */

/dts-v1/;
#include "nice_nano.dtsi"

/ {
	ext-power {
		compatible = "zmk,ext-power-generic";
		label = "EXT_POWER";
		control-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
		init-delay-ms = <10>;
	};

	vbatt {
		compatible = "zmk,battery-voltage-divider";
		label = "BATTERY";
		io-channels = <&adc (0x0D - 1)>;
		// Multiply ADC result by 5
		full-ohms = <5>;
		output-ohms = <1>;
	};
};