summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi
diff options
context:
space:
mode:
authorMartin Kepplinger <martin.kepplinger@puri.sm>2021-11-04 14:22:10 +0100
committerShawn Guo <shawnguo@kernel.org>2021-11-22 09:10:10 +0800
commitb43e6c03a85423db959f88d96ddd682e5c09f8fd (patch)
treea176f48c08d39ad3b97b3fdda024dbd6a7a00434 /arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi
parente3f775070e06bb9b5c29c499a98de95cb5cad7cf (diff)
downloadlinux-b43e6c03a85423db959f88d96ddd682e5c09f8fd.tar.bz2
arm64: dts: split out a shared imx8mq-librem5-r3.dtsi description
The Librem 5 r3 ("Dogwood") and r4 ("Evergreen") revisions are quite similar. Add a shared imx8mq-librem5-r3.dtsi description to be included in r3 and later dts files in order to avoid duplication. This is no change in the descriptions but only refactoring. Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi')
-rw-r--r--arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi32
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi
new file mode 100644
index 000000000000..e872eb4b1cf9
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+// Copyright (C) 2021 Purism SPC <kernel@puri.sm>
+
+/dts-v1/;
+
+/*
+ * This file describes hardware that is shared among r3 ("Dogwood") and
+ * later revisions of the Librem 5 so it has to be included in dts there.
+ */
+
+#include "imx8mq-librem5.dtsi"
+
+/ {
+ model = "Purism Librem 5r3";
+ compatible = "purism,librem5r3", "purism,librem5", "fsl,imx8mq";
+};
+
+&accel_gyro {
+ mount-matrix = "1", "0", "0",
+ "0", "1", "0",
+ "0", "0", "-1";
+};
+
+&bq25895 {
+ ti,battery-regulation-voltage = <4200000>; /* uV */
+ ti,charge-current = <1500000>; /* uA */
+ ti,termination-current = <144000>; /* uA */
+};
+
+&proximity {
+ proximity-near-level = <25>;
+};