xref: /linux/scripts/dtc/include-prefixes/arm/qcom/qcom-msm8926-microsoft-tesla.dts (revision 77b679453d3364688ff3e5153c0be5b2b52672b7)
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/* The magnetometer used on this device is currently unknown */
17/delete-node/ &magnetometer;
18
19/ {
20	model = "Nokia Lumia 830";
21	compatible = "microsoft,tesla", "qcom,msm8926", "qcom,msm8226";
22	chassis-type = "handset";
23};
24
25&blsp1_i2c1 {
26	status = "okay";
27
28	touchscreen: touchscreen@4b {
29		compatible = "syna,rmi4-i2c";
30		reg = <0x4b>;
31
32		interrupts-extended = <&tlmm 17 IRQ_TYPE_EDGE_FALLING>;
33		vdd-supply = <&pm8226_l15>;
34		vio-supply = <&pm8226_l6>;
35
36		pinctrl-0 = <&touchscreen_default>;
37		pinctrl-names = "default";
38
39		#address-cells = <1>;
40		#size-cells = <0>;
41
42		rmi4-f01@1 {
43			reg = <0x01>;
44			syna,nosleep-mode = <1>;
45		};
46
47		rmi4-f12@12 {
48			reg = <0x12>;
49			syna,sensor-type = <1>;
50		};
51	};
52};
53
54&blsp1_i2c5 {
55	status = "disabled";
56};
57
58&gpio_keys {
59	key-camera-snapshot {
60		label = "Camera Snapshot";
61		gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
62		linux,code = <KEY_CAMERA>;
63	};
64
65	key-camera-focus {
66		label = "Camera Focus";
67		gpios = <&tlmm 108 GPIO_ACTIVE_LOW>;
68		linux,code = <KEY_CAMERA_FOCUS>;
69	};
70};
71