Skip to content

Commit

Permalink
arm64: dts: rockchip: add nanopi-adc-power to NanoPi 5/6 boards
Browse files Browse the repository at this point in the history
  • Loading branch information
efectn committed Oct 8, 2024
1 parent 5ad9d50 commit bf308cd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/rockchip/rk3568-nanopi5-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@
voltage-min-design-microvolt = <4500000>;
};

simple_vin: simple-vin {
compatible = "simple-adc-power-v1";
nanopi_adc_vin: nanopi-adc-vin {
compatible = "nanopi-adc-power-v1";
io-channels = <&saradc 2>;
io-channel-names = "voltage";
monitored-battery = <&simple_bat>;
Expand Down
13 changes: 13 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,19 @@
vin-supply = <&vcc5v0_usb>;
};

simple_bat: battery {
compatible = "simple-battery";
voltage-max-design-microvolt = <21000000>;
voltage-min-design-microvolt = <4500000>;
};

nanopi_adc_vin: nanopi-adc-vin {
compatible = "nanopi-adc-power-v2";
io-channels = <&saradc 2>;
io-channel-names = "voltage";
monitored-battery = <&simple_bat>;
};

test-power {
status = "okay";
};
Expand Down

0 comments on commit bf308cd

Please sign in to comment.