18677233eSRayyan Ansari// SPDX-License-Identifier: BSD-3-Clause 28677233eSRayyan Ansari/* 38677233eSRayyan Ansari * Copyright (c) 2023, Jack Matthews <jm5112356@gmail.com> 48677233eSRayyan Ansari * Copyright (c) 2023, Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com> 58677233eSRayyan Ansari * Copyright (c) 2023, Dominik Kobinski <dominikkobinski314@gmail.com> 68677233eSRayyan Ansari * Copyright (c) 2023, Rayyan Ansari <rayyan@ansari.sh> 78677233eSRayyan Ansari */ 88677233eSRayyan Ansari 98677233eSRayyan Ansari/dts-v1/; 108677233eSRayyan Ansari 118677233eSRayyan Ansari#include "qcom-msm8226-microsoft-common.dtsi" 128677233eSRayyan Ansari 138677233eSRayyan Ansari/* This device has touchscreen on i2c1 instead */ 148677233eSRayyan Ansari/delete-node/ &touchscreen; 158677233eSRayyan Ansari 16*18042ad9SRayyan Ansari/* The magnetometer used on this device is currently unknown */ 17*18042ad9SRayyan Ansari/delete-node/ &magnetometer; 18*18042ad9SRayyan Ansari 198677233eSRayyan Ansari/ { 208677233eSRayyan Ansari model = "Nokia Lumia 830"; 218677233eSRayyan Ansari compatible = "microsoft,tesla", "qcom,msm8926", "qcom,msm8226"; 228677233eSRayyan Ansari chassis-type = "handset"; 238677233eSRayyan Ansari}; 248677233eSRayyan Ansari 258677233eSRayyan Ansari&blsp1_i2c1 { 268677233eSRayyan Ansari status = "okay"; 278677233eSRayyan Ansari 288677233eSRayyan Ansari touchscreen: touchscreen@4b { 298677233eSRayyan Ansari compatible = "syna,rmi4-i2c"; 308677233eSRayyan Ansari reg = <0x4b>; 318677233eSRayyan Ansari 328677233eSRayyan Ansari interrupts-extended = <&tlmm 17 IRQ_TYPE_EDGE_FALLING>; 338677233eSRayyan Ansari vdd-supply = <&pm8226_l15>; 348677233eSRayyan Ansari vio-supply = <&pm8226_l6>; 358677233eSRayyan Ansari 368677233eSRayyan Ansari pinctrl-0 = <&touchscreen_default>; 378677233eSRayyan Ansari pinctrl-names = "default"; 388677233eSRayyan Ansari 398677233eSRayyan Ansari #address-cells = <1>; 408677233eSRayyan Ansari #size-cells = <0>; 418677233eSRayyan Ansari 428677233eSRayyan Ansari rmi4-f01@1 { 438677233eSRayyan Ansari reg = <0x01>; 448677233eSRayyan Ansari syna,nosleep-mode = <1>; 458677233eSRayyan Ansari }; 468677233eSRayyan Ansari 478677233eSRayyan Ansari rmi4-f12@12 { 488677233eSRayyan Ansari reg = <0x12>; 498677233eSRayyan Ansari syna,sensor-type = <1>; 508677233eSRayyan Ansari }; 518677233eSRayyan Ansari }; 528677233eSRayyan Ansari}; 538677233eSRayyan Ansari 548677233eSRayyan Ansari&blsp1_i2c5 { 558677233eSRayyan Ansari status = "disabled"; 568677233eSRayyan Ansari}; 578677233eSRayyan Ansari 588677233eSRayyan Ansari&gpio_keys { 598677233eSRayyan Ansari key-camera-snapshot { 608677233eSRayyan Ansari label = "Camera Snapshot"; 618677233eSRayyan Ansari gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; 628677233eSRayyan Ansari linux,code = <KEY_CAMERA>; 638677233eSRayyan Ansari }; 648677233eSRayyan Ansari 658677233eSRayyan Ansari key-camera-focus { 668677233eSRayyan Ansari label = "Camera Focus"; 678677233eSRayyan Ansari gpios = <&tlmm 108 GPIO_ACTIVE_LOW>; 688677233eSRayyan Ansari linux,code = <KEY_CAMERA_FOCUS>; 698677233eSRayyan Ansari }; 708677233eSRayyan Ansari}; 71