Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1256034rdg; Fri, 11 Aug 2023 15:29:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZk1dgaHgkZifSbUYa1y90QqG1gQ+pAQiCcnhWrFevn8LCoIyzJaTTbLhDpzKoGnqzw0wm X-Received: by 2002:a17:907:77cb:b0:993:f744:d230 with SMTP id kz11-20020a17090777cb00b00993f744d230mr2624353ejc.16.1691792958086; Fri, 11 Aug 2023 15:29:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691792958; cv=none; d=google.com; s=arc-20160816; b=FvugCLrQjktDZzeI+es6v4E1nTuzGHS5/5DmjED8Uzn3Xk762jMhNUAg0wczWV4r/6 inF7YWt2Cjsea547jmowm30Qog7jni0MHdHUZtRpQq0IMEpFg2Glo97WvKqV8g2XAQAv pUqndbEQHXympLJzW7FtCtnnyjQ1ITNnlN0ceQIiDAddJybSeWHpz6ZMc4WqPlNAyOU1 gGdytC+XWTlql5yyqMC2SIzMdqQlI9C/QqNClo1m2I/Dxd8WUd6INsobMG/ndFfBT+ZK zHpExn5TDg8mtb7Vzk/8Y3pA8GX9yZ9qLSjGSU6yeJGfmYYDQ9t5vj3CKA5cx7fsoaJe 1snA== 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=Vdd62v8dXhwsWh4srU8BglrgORCo4Dhz1/s8VjQWwbA=; fh=KrYDZcI+YRB2cHke6fAZF3RwEKDQBNKhacKcee+Q3XE=; b=VXM1R6vrkuX8NFjJ6Zaajmzb4vaMRcWfm8Wp0Znhm8umPrE07AOqECZ2xZEL5BREau NU1x2FOpbW7ghg/5AzDD2w8PuUYFYostYJmAh37yWe2H5Yu3IFPQmmUCzg2bn+04lQ1k ldK3imaFTmDBYZZTYMtuogwVnytz6kUybUkiXgPCK0hkut/2xNa2UaGHS6/7E0lrm8M0 0ZxmLNWx6i/LuaAvM1Rk54+tdFUcJ3sCRRCPkVvlwHsVJmGDIq1oB5okQKdZeCcpqyaf k0RgrNyNznV3fRGZnL0FyQk+kiCxgOHrs5i5EI5vYZhBLs1x7zRHcZ1N1YB97qBOM5mC oIeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ansari.sh header.s=key1 header.b=TmNu6WIr; 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 h19-20020a170906585300b009928b4e3b9csi4036141ejs.312.2023.08.11.15.28.53; Fri, 11 Aug 2023 15:29:18 -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=TmNu6WIr; 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 S237071AbjHKVo1 (ORCPT + 99 others); Fri, 11 Aug 2023 17:44:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236896AbjHKVoT (ORCPT ); Fri, 11 Aug 2023 17:44:19 -0400 X-Greylist: delayed 388 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 11 Aug 2023 14:44:17 PDT Received: from out-114.mta0.migadu.com (out-114.mta0.migadu.com [IPv6:2001:41d0:1004:224b::72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 100F92D69 for ; Fri, 11 Aug 2023 14:44:17 -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=1691789922; 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=Vdd62v8dXhwsWh4srU8BglrgORCo4Dhz1/s8VjQWwbA=; b=TmNu6WIrE4wCQ7fCoDhIU2Oy5yLuAwDcQr/SF8h+CTaj5UyR+XE6nlpOFOubJhuCylVN67 0yVMuM3wVj8uW9KIiOqcLk1LgrkZ0biqcpcANZNDBT6irrvH6kgWOQ97Zg2UXMEVcvUzHE YMMpC4gcfgsq+hkUKAeZ325Wr2/glUI= 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 7/7] ARM: dts: qcom: add device tree for Nokia Lumia 830 Date: Fri, 11 Aug 2023 22:35:24 +0100 Message-ID: <20230811213728.23726-8-rayyan@ansari.sh> In-Reply-To: <20230811213728.23726-1-rayyan@ansari.sh> References: <20230811213728.23726-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,URIBL_BLOCKED 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..5a4f4687b895 --- /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"; + 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-names = "default"; + pinctrl-0 = <&touchscreen_on>; + + #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 { + camera-snapshot { + label = "Camera Snapshot"; + gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + camera-focus { + label = "Camera Focus"; + gpios = <&tlmm 108 GPIO_ACTIVE_LOW>; + linux,code = ; + }; +}; -- 2.41.0