Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2089531rdg; Sun, 13 Aug 2023 08:48:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxML9D0wFADwJmwVgWo4MrEK6NCTimT9nCNMSZZmGgd9qJtY+v9Vt/vANanZRFupjsP22I X-Received: by 2002:a17:902:a58c:b0:1b8:16c7:a786 with SMTP id az12-20020a170902a58c00b001b816c7a786mr7977821plb.4.1691941705688; Sun, 13 Aug 2023 08:48:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691941705; cv=none; d=google.com; s=arc-20160816; b=zn3CscASknlBfh2fhajdD0rzzS1i97783zxCAZgRzYvZAk/tKHN2zSsCFlb7MbBnoJ p3qs5Tl+z9BEjLi4ti93Wqjj43zYG6X3XCz2/ETkTDTvodL/ILfZ1ugbhIBqN45j4woZ kQJ3pVy4+UfgYB7KHiGskdH7W22MvtaBNAhIOajZicrllwUSmoZ3i17BcblUhYgHxDBM rneKr97fW8CGxdfc/HFTjTd7KqhL/jtpbivFIM9nn0sH91yHsf0T6oA1g2m3BK+43/ni HiQfVyzNFbl1z/T541QxZS89bOrLFwIGiXbvJw3HWOSmFx+ZexMvojgEmRek7s2nBPLo EZVA== 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=IIuwhn3i6+/moKJjJktNoI5iLw0p9vrOyKGlGtABqcM=; fh=KrYDZcI+YRB2cHke6fAZF3RwEKDQBNKhacKcee+Q3XE=; b=dqHDdFrn7T4mjCZ1RQ2N9flt+SfFu8dEWNYYI26LN2XoBumCU+fWB9q6GkwB53hCtd S7xzrmSUBBPNL6TlHMjiOYUR1kE0dSWJy4vmKj3P6XdSyW0osPXKq0fXPrnU/3pbfMse lv1jNngM5a211/W1weIKTp6HCAuJc6qPl9ic6ncOwd9lbXL9ZGsIarJ3R4Wk3Q1hP0OT CdOgXtcWkI8aYqZPFBGqeSol53tMy+uxhSFKIeX86ouFLUaf2tbE27smlRdNhaDw5C2d FEBV05n1naESSfIbmyeXu7z+Jhi+zlyFAQez1X4J2CnHFatqpDG7W/PLf0Kc/QEZTQ/u siUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ansari.sh header.s=key1 header.b=hHyLgu67; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ij29-20020a170902ab5d00b001bdd4210363si1723714plb.10.2023.08.13.08.48.13; Sun, 13 Aug 2023 08:48:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ansari.sh header.s=key1 header.b=hHyLgu67; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ansari.sh Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229905AbjHMP1h (ORCPT + 99 others); Sun, 13 Aug 2023 11:27:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231459AbjHMP1g (ORCPT ); Sun, 13 Aug 2023 11:27:36 -0400 Received: from out-126.mta1.migadu.com (out-126.mta1.migadu.com [95.215.58.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3F0819B1 for ; Sun, 13 Aug 2023 08:27:20 -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=1691940438; 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=IIuwhn3i6+/moKJjJktNoI5iLw0p9vrOyKGlGtABqcM=; b=hHyLgu67rxl8wMDv5jSrJUbu4vLN4iwC8c7ssqveDMNb19aSAJOpV7TfrjAh4MvUUE3k0A baSBrmo4yWYfE9yYR/r3PCEgJ+fBIEfFaAAc00G53SZTPXH6gsX+rhmpgh7hpM+wR3HO/k HpDDqzPKkpHYt13V9Tt9HwGD7+/8H8A= 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 v2 6/6] ARM: dts: qcom: add device tree for Nokia Lumia 830 Date: Sun, 13 Aug 2023 16:23:15 +0100 Message-ID: <20230813152623.64989-7-rayyan@ansari.sh> In-Reply-To: <20230813152623.64989-1-rayyan@ansari.sh> References: <20230813152623.64989-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=ham 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 Add an initial device tree for the Nokia Lumia 830, codenamed "tesla". Co-authored-by: Dominik Kobinski Co-authored-by: Ivaylo Ivanov Co-authored-by: Jack Matthews Signed-off-by: Dominik Kobinski Signed-off-by: Ivaylo Ivanov Signed-off-by: Jack Matthews Signed-off-by: Rayyan Ansari --- arch/arm/boot/dts/qcom/Makefile | 1 + .../dts/qcom/qcom-msm8926-microsoft-tesla.dts | 66 +++++++++++++++++++ 2 files changed, 67 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..6979c09d4a0f --- /dev/null +++ b/arch/arm/boot/dts/qcom/qcom-msm8926-microsoft-tesla.dts @@ -0,0 +1,66 @@ +// 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" + +/ { + model = "Nokia Lumia 830"; + compatible = "microsoft,tesla", "qcom,msm8926", "qcom,msm8226"; + chassis-type = "handset"; +}; + +&blsp1_i2c1 { + status = "okay"; + + 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"; + + /delete-node/ touchscreen@4b; +}; + +&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.41.0