xref: /freebsd/sys/contrib/device-tree/src/arm/qcom/qcom-msm8926-microsoft-tesla.dts (revision 8c2f6c3be0125142d3c1782e4b0ee0634c584b9e)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2023, Jack Matthews <jm5112356@gmail.com>
4 * Copyright (c) 2023, Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
5 * Copyright (c) 2023, Dominik Kobinski <dominikkobinski314@gmail.com>
6 * Copyright (c) 2023, Rayyan Ansari <rayyan@ansari.sh>
7 */
8
9/dts-v1/;
10
11#include "qcom-msm8226-microsoft-common.dtsi"
12
13/* This device has touchscreen on i2c1 instead */
14/delete-node/ &touchscreen;
15
16/ {
17	model = "Nokia Lumia 830";
18	compatible = "microsoft,tesla", "qcom,msm8926", "qcom,msm8226";
19	chassis-type = "handset";
20};
21
22&blsp1_i2c1 {
23	status = "okay";
24
25	touchscreen: touchscreen@4b {
26		compatible = "syna,rmi4-i2c";
27		reg = <0x4b>;
28
29		interrupts-extended = <&tlmm 17 IRQ_TYPE_EDGE_FALLING>;
30		vdd-supply = <&pm8226_l15>;
31		vio-supply = <&pm8226_l6>;
32
33		pinctrl-0 = <&touchscreen_default>;
34		pinctrl-names = "default";
35
36		#address-cells = <1>;
37		#size-cells = <0>;
38
39		rmi4-f01@1 {
40			reg = <0x01>;
41			syna,nosleep-mode = <1>;
42		};
43
44		rmi4-f12@12 {
45			reg = <0x12>;
46			syna,sensor-type = <1>;
47		};
48	};
49};
50
51&blsp1_i2c5 {
52	status = "disabled";
53};
54
55&gpio_keys {
56	key-camera-snapshot {
57		label = "Camera Snapshot";
58		gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
59		linux,code = <KEY_CAMERA>;
60	};
61
62	key-camera-focus {
63		label = "Camera Focus";
64		gpios = <&tlmm 108 GPIO_ACTIVE_LOW>;
65		linux,code = <KEY_CAMERA_FOCUS>;
66	};
67};
68