xref: /freebsd/sys/contrib/device-tree/src/arm64/freescale/imx8mq-librem5-r3.dtsi (revision b197d4b893974c9eb4d7b38704c6d5c486235d6f)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2// Copyright (C) 2021 Purism SPC <kernel@puri.sm>
3
4/dts-v1/;
5
6/*
7 * This file describes hardware that is shared among r3 ("Dogwood") and
8 * later revisions of the Librem 5 so it has to be included in dts there.
9 */
10
11#include "imx8mq-librem5.dtsi"
12
13/ {
14	model = "Purism Librem 5r3";
15	compatible = "purism,librem5r3", "purism,librem5", "fsl,imx8mq";
16};
17
18&accel_gyro {
19	mount-matrix =  "1",  "0",  "0",
20			"0",  "1",  "0",
21			"0",  "0", "-1";
22};
23
24&bq25895 {
25	ti,battery-regulation-voltage = <4200000>; /* uV */
26	ti,charge-current = <1500000>; /* uA */
27	ti,termination-current = <144000>;  /* uA */
28};
29
30&camera_front {
31	pinctrl-0 = <&pinctrl_csi1>, <&pinctrl_r3_camera_pwr>;
32	shutdown-gpios = <&gpio5 4 GPIO_ACTIVE_LOW>;
33};
34
35&iomuxc {
36	pinctrl_r3_camera_pwr: r3camerapwrgrp {
37		fsl,pins = <
38			MX8MQ_IOMUXC_SPDIF_RX_GPIO5_IO4		0x83
39		>;
40	};
41};
42
43&proximity {
44	proximity-near-level = <25>;
45};
46