Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp655646rdb; Sat, 30 Sep 2023 22:46:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGl7rj3DtJmvVYu7a19c+pjU2bmz9ItXmXTauoGJNjB8dO9yhE74wRdjUDeUeY7/4mNSsWN X-Received: by 2002:a17:90a:394e:b0:279:675:32b6 with SMTP id n14-20020a17090a394e00b00279067532b6mr8122805pjf.38.1696139192265; Sat, 30 Sep 2023 22:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696139192; cv=none; d=google.com; s=arc-20160816; b=GQE6ww4D4SoqDQngolhh/RhNTT93PtD2NZ3WOXkZssC+bgR0J9b6Hb3aUHt1Ffd4fZ PZCgpNPWJ/8a2DnNFEI10xImS3wQyEPCr3VGQGhRaW5N98nLql5ddZsiwM8Jw5azOZEr enBH/UnTvdXr4HbPBMhK8ar2X0eudHI1V+R7gS1ZsJXG82IvsILjN7t4hwaxjL62wdMU fWyOJuoud+jCE1jE9oOns9Dfpmk2XQX+uG9ORQ2FbDnkyCt7i9+jKXJHZNEVJBR9C5UU Uj11Au65G+uVgBHOrNbLPzI845i4xkPEATkVeFqNKXzJuHoWXVAZt2l9FMCzTUdzb94d 8qHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=K8PpjHqxnCO1TKXu1Y9W7JM/e8rCQ40nYFn9Vma7VkA=; fh=HbPAFkuNdvbVf03HkMDbTks4CaggM5DuO++/CT2Kwzg=; b=Hs9ce/Wz7HhdsxkcMvISsQqVLjYcTQ1xONchw7boocEHMe+V4ket84MFNdVb9ezAkp XPbaCQW71pgki/YdSGVb56mqYLqn9ROzOKD9y6ZHfdMxOQDy/O8MztfVADcSJWADXQaC UyfgXhg0etEkJwIyH20VhNAf3gnoQ42wJMB3pao45u3Ut7PoocA08SZY/v7pbWxiBg0e W84HfeUbf/TmjwDYjhPs93+49k33Sbpn/4DW/Zbw1tWCfUJr1kd40KDSgbWpLOhR/xDq sPjE7UYsmd0ADc7XSiRHHrmlMG1/lfPV83avMjebwSDTlDI1pj3FginJbVCLcTwnQAie essg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ansari.sh header.s=key1 header.b=Eo1bP8bu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ansari.sh Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id lk16-20020a17090b33d000b00274e16f797csi5368470pjb.20.2023.09.30.22.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 22:46:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@ansari.sh header.s=key1 header.b=Eo1bP8bu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ansari.sh Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9803B82CFA4E; Sat, 30 Sep 2023 15:19:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234090AbjI3WTl (ORCPT + 99 others); Sat, 30 Sep 2023 18:19:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233564AbjI3WTe (ORCPT ); Sat, 30 Sep 2023 18:19:34 -0400 Received: from out-197.mta0.migadu.com (out-197.mta0.migadu.com [91.218.175.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFADDF1 for ; Sat, 30 Sep 2023 15:19:31 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=key1; t=1696112058; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=K8PpjHqxnCO1TKXu1Y9W7JM/e8rCQ40nYFn9Vma7VkA=; b=Eo1bP8butstNCjYbF5824tVmBdlxK1L+zWcxpuGOH2akC+y1XzzMDmIjElV+S8Lf4RUEww 9FMqdLjOdTDUHdbKrQgQbKk4CJ+ELrBRzfexuEWGgIB2kbTJ99HBK34h6vGV6cAvz5sGlw 5UMnXSN6/LSGiMC9U0Q09REDJe6rI7k= From: Rayyan Ansari To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, Rayyan Ansari , Dominik Kobinski , Ivaylo Ivanov , Jack Matthews , Andy Gross , Bjorn Andersson , Conor Dooley , devicetree@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, Rob Herring Subject: [PATCH v3 6/6] ARM: dts: qcom: add device tree for Nokia Lumia 830 Date: Sat, 30 Sep 2023 23:08:01 +0100 Message-ID: <20230930221323.101289-7-rayyan@ansari.sh> In-Reply-To: <20230930221323.101289-1-rayyan@ansari.sh> References: <20230930221323.101289-1-rayyan@ansari.sh> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 30 Sep 2023 15:19:47 -0700 (PDT) Add an initial device tree for the Nokia Lumia 830, codenamed "tesla". Co-developed-by: Dominik Kobinski Signed-off-by: Dominik Kobinski Co-developed-by: Ivaylo Ivanov Signed-off-by: Ivaylo Ivanov Co-developed-by: Jack Matthews Signed-off-by: Jack Matthews Signed-off-by: Rayyan Ansari --- arch/arm/boot/dts/qcom/Makefile | 1 + .../dts/qcom/qcom-msm8926-microsoft-tesla.dts | 67 +++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-tesla.dts diff --git a/arch/arm/boot/dts/qcom/Makefile b/arch/arm/boot/dts/qcom/Makefile index 7982620ec9f9..a3d293e40820 100644 --- a/arch/arm/boot/dts/qcom/Makefile +++ b/arch/arm/boot/dts/qcom/Makefile @@ -33,6 +33,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-msm8916-samsung-grandmax.dtb \ qcom-msm8916-samsung-serranove.dtb \ qcom-msm8926-microsoft-superman-lte.dtb \ + qcom-msm8926-microsoft-tesla.dtb \ qcom-msm8960-cdp.dtb \ qcom-msm8960-samsung-expressatt.dtb \ qcom-msm8974-lge-nexus5-hammerhead.dtb \ diff --git a/arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-tesla.dts b/arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-tesla.dts new file mode 100644 index 000000000000..53a6d4e85959 --- /dev/null +++ b/arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-tesla.dts @@ -0,0 +1,67 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023, Jack Matthews + * Copyright (c) 2023, Ivaylo Ivanov + * Copyright (c) 2023, Dominik Kobinski + * Copyright (c) 2023, Rayyan Ansari + */ + +/dts-v1/; + +#include "qcom-msm8226-microsoft-common.dtsi" + +/* This device has touchscreen on i2c1 instead */ +/delete-node/ &touchscreen; + +/ { + model = "Nokia Lumia 830"; + compatible = "microsoft,tesla", "qcom,msm8926", "qcom,msm8226"; + chassis-type = "handset"; +}; + +&blsp1_i2c1 { + status = "okay"; + + touchscreen: touchscreen@4b { + compatible = "syna,rmi4-i2c"; + reg = <0x4b>; + + interrupts-extended = <&tlmm 17 IRQ_TYPE_EDGE_FALLING>; + vdd-supply = <&pm8226_l15>; + vio-supply = <&pm8226_l6>; + + pinctrl-0 = <&touchscreen_default>; + pinctrl-names = "default"; + + #address-cells = <1>; + #size-cells = <0>; + + rmi4-f01@1 { + reg = <0x01>; + syna,nosleep-mode = <1>; + }; + + rmi4-f12@12 { + reg = <0x12>; + syna,sensor-type = <1>; + }; + }; +}; + +&blsp1_i2c5 { + status = "disabled"; +}; + +&gpio_keys { + key-camera-snapshot { + label = "Camera Snapshot"; + gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + key-camera-focus { + label = "Camera Focus"; + gpios = <&tlmm 108 GPIO_ACTIVE_LOW>; + linux,code = ; + }; +}; -- 2.42.0