diff options
author | Nick Winans <nick@winans.codes> | 2021-07-15 17:34:00 -0500 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2021-07-15 18:52:28 -0400 |
commit | edb3ff1bb15cc2ad800010bd2819a9fe4aec548f (patch) | |
tree | 310bb6cf0a9ef9066b3c34e9905dd21a36dea87e /app/boards/arm/nice_nano/nice_nano_v2.dts | |
parent | fc014b2506be1e819e4e0c48a7e318f9d7ea6860 (diff) |
feat(boards): Add nice!nano v2
Diffstat (limited to 'app/boards/arm/nice_nano/nice_nano_v2.dts')
-rw-r--r-- | app/boards/arm/nice_nano/nice_nano_v2.dts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app/boards/arm/nice_nano/nice_nano_v2.dts b/app/boards/arm/nice_nano/nice_nano_v2.dts new file mode 100644 index 0000000..7c044b4 --- /dev/null +++ b/app/boards/arm/nice_nano/nice_nano_v2.dts @@ -0,0 +1,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>; + }; +}; |