diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-10-26 22:56:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 22:56:54 -0400 |
commit | 8c6862f4ba12697b60b47551c2cde92dd9725d2e (patch) | |
tree | 005e257962fd8ee4e245f01794990ecd95be36ca /app/boards/arm/nrfmicro/nrfmicro_13.dts | |
parent | 85d1a1049038b117fcae809d4e6377f55178c51b (diff) | |
parent | a0087311038e9b21c2a45499e669d1300af16f83 (diff) |
Merge pull request #293 from Nicell/bluetooth/battery-reporting
Add Battery Voltage Divider Driver
Diffstat (limited to 'app/boards/arm/nrfmicro/nrfmicro_13.dts')
-rw-r--r-- | app/boards/arm/nrfmicro/nrfmicro_13.dts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/boards/arm/nrfmicro/nrfmicro_13.dts b/app/boards/arm/nrfmicro/nrfmicro_13.dts index ef43946..5ae11ba 100644 --- a/app/boards/arm/nrfmicro/nrfmicro_13.dts +++ b/app/boards/arm/nrfmicro/nrfmicro_13.dts @@ -31,6 +31,18 @@ label = "EXT_POWER"; control-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; }; + + vbatt { + compatible = "zmk,battery-voltage-divider"; + label = "VOLTAGE_DIVIDER"; + io-channels = <&adc 2>; + output-ohms = <2000000>; + full-ohms = <(2000000 + 820000)>; + }; +}; + +&adc { + status = "okay"; }; &gpio0 { |