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