Voltage divider driver initial implementation
This commit is contained in:
parent
ceda57ddfd
commit
844f2c7674
5 changed files with 139 additions and 0 deletions
|
|
@ -29,6 +29,16 @@
|
|||
};
|
||||
};
|
||||
|
||||
vbatt {
|
||||
compatible = "zmk,battery-voltage-divider";
|
||||
io-channels = <&adc 2>;
|
||||
output-ohms = <2000000>;
|
||||
full-ohms = <(2000000 + 806000)>;
|
||||
};
|
||||
};
|
||||
|
||||
&adc {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue