aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/top/e31x/dts/e31x-pmu.dtsi
diff options
context:
space:
mode:
Diffstat (limited to 'fpga/usrp3/top/e31x/dts/e31x-pmu.dtsi')
-rw-r--r--fpga/usrp3/top/e31x/dts/e31x-pmu.dtsi29
1 files changed, 29 insertions, 0 deletions
diff --git a/fpga/usrp3/top/e31x/dts/e31x-pmu.dtsi b/fpga/usrp3/top/e31x/dts/e31x-pmu.dtsi
new file mode 100644
index 000000000..f85c09816
--- /dev/null
+++ b/fpga/usrp3/top/e31x/dts/e31x-pmu.dtsi
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2018 National Instruments Corp
+ *
+ * SPDX-License-Identifier: GPL-2.0 OR X11
+ */
+
+&fpga_full {
+ devctrl: devctrl@40000000 {
+ compatible = "syscon";
+ reg = <0x40000000 0x24>;
+ };
+ poweroff {
+ compatible = "syscon-poweroff";
+ regmap = <&devctrl>;
+ offset = <0x0>;
+ mask = <0x7a>;
+ };
+ pmu {
+ compatible = "ni,e31x-pmu";
+ regmap = <&devctrl>;
+ status = "okay";
+ charger: charger@0{
+ compatible = "ni,e31x-charger";
+ };
+ battery: battery@1{
+ compatible = "ni,e31x-battery";
+ };
+ };
+};