xref: /freebsd/sys/contrib/device-tree/src/arm64/freescale/imx8mq-librem5-r3.dtsi (revision a4e5e0106ac7145f56eb39a691e302cabb4635be)
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,charge-current = <1500000>; /* uA */
26};
27
28&camera_front {
29	pinctrl-0 = <&pinctrl_csi1>, <&pinctrl_r3_camera_pwr>;
30	shutdown-gpios = <&gpio5 4 GPIO_ACTIVE_LOW>;
31};
32
33&iomuxc {
34	pinctrl_r3_camera_pwr: r3camerapwrgrp {
35		fsl,pins = <
36			MX8MQ_IOMUXC_SPDIF_RX_GPIO5_IO4		0x83
37		>;
38	};
39};
40
41&magnetometer {
42	mount-matrix =  "1",  "0",  "0",
43			"0", "-1",  "0",
44			"0",  "0", "-1";
45};
46
47&proximity {
48	proximity-near-level = <10>;
49};
50