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