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