summaryrefslogtreecommitdiff
path: root/app/boards/arm
diff options
context:
space:
mode:
authorNick <nick.win999@gmail.com>2020-10-23 00:45:59 -0500
committerNick <nick.win999@gmail.com>2020-10-23 00:45:59 -0500
commit3082455aecc98532807aba3226321a94d2ed4b0c (patch)
tree1ec1ee80363f2b38a282e94b1454381eb72d916c /app/boards/arm
parentf5909f9c265ec1d88ee4fc13d45745873a2ad081 (diff)
Refactor driver to use Sensor API
Diffstat (limited to 'app/boards/arm')
-rw-r--r--app/boards/arm/bluemicro840/bluemicro840_v1.dts8
-rw-r--r--app/boards/arm/nice_nano/nice_nano.dts1
-rw-r--r--app/boards/arm/nrfmicro/nrfmicro_13.dts8
3 files changed, 17 insertions, 0 deletions
diff --git a/app/boards/arm/bluemicro840/bluemicro840_v1.dts b/app/boards/arm/bluemicro840/bluemicro840_v1.dts
index c693662..ac8ba56 100644
--- a/app/boards/arm/bluemicro840/bluemicro840_v1.dts
+++ b/app/boards/arm/bluemicro840/bluemicro840_v1.dts
@@ -29,6 +29,14 @@
};
};
+ vbatt {
+ compatible = "zmk,battery-voltage-divider";
+ label = "VOLTAGE_DIVIDER";
+ io-channels = <&adc 7>;
+ output-ohms = <2000000>;
+ full-ohms = <(2000000 + 806000)>;
+ };
+
};
&gpio0 {
diff --git a/app/boards/arm/nice_nano/nice_nano.dts b/app/boards/arm/nice_nano/nice_nano.dts
index 18312ec..72804e3 100644
--- a/app/boards/arm/nice_nano/nice_nano.dts
+++ b/app/boards/arm/nice_nano/nice_nano.dts
@@ -31,6 +31,7 @@
vbatt {
compatible = "zmk,battery-voltage-divider";
+ label = "VOLTAGE_DIVIDER";
io-channels = <&adc 2>;
output-ohms = <2000000>;
full-ohms = <(2000000 + 806000)>;
diff --git a/app/boards/arm/nrfmicro/nrfmicro_13.dts b/app/boards/arm/nrfmicro/nrfmicro_13.dts
index 95bd8ad..840014a 100644
--- a/app/boards/arm/nrfmicro/nrfmicro_13.dts
+++ b/app/boards/arm/nrfmicro/nrfmicro_13.dts
@@ -26,6 +26,14 @@
};
};
+ vbatt {
+ compatible = "zmk,battery-voltage-divider";
+ label = "VOLTAGE_DIVIDER";
+ io-channels = <&adc 2>;
+ output-ohms = <2000000>;
+ full-ohms = <(2000000 + 820000)>;
+ };
+
};
&gpio0 {