From patchwork Wed Jan 31 09:04:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rudraksha Gupta via B4 Relay X-Patchwork-Id: 194625 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1763178dyb; Wed, 31 Jan 2024 01:12:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9Km14eF9lUt2jWzB/a6ubPzD/ohQYvmtXM2riveilc0d6MjZx9VVyJAHiTWt8hNbZ71OS X-Received: by 2002:a05:6402:71a:b0:55e:acb4:45ac with SMTP id w26-20020a056402071a00b0055eacb445acmr593212edx.11.1706692320280; Wed, 31 Jan 2024 01:12:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706692320; cv=pass; d=google.com; s=arc-20160816; b=AwwzSDzyvxmRifIAWMJjd5hKi2aiBF2YbrinFBi/cVwJUcCi1f4bpz3BKHN6LlrndU IJoP23C6v4ClHr1P9mhl5ol0Q1jZR4utf/lOk9EjQJHJB4QAltNb2SOsFKlTIExYKxnT ZnU6ILjd/KUiw/6DGGNgWyW5y1jW52OEtn/BWW5oHr+BEQnDreHD3sIMDCvj9r1lVIQq gvC46+hDOJtPOdlOl6QPWthf+WfY4e0oqEm9LWiaJyC5KYTaANfbRSHDHIUAI9wK74ru frGleTjNIOpHMHi5BpCnjVsf3S0pfeSU4vKgqqby68A4JfzxxMJZ6EwJ9uWZvOnji0Bh UBjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=fXvkVsoBGOO83rUdHEbDFARNEx2HrYvZ1CAVgckFxA0=; fh=qiEXjrtGc11d79PCoJzt+QoZ1+D//qPyZVkAZtrm/4g=; b=KRd2Fgc8J8WMQhq4HHXxZgKp9F0YbuOKfjdHS2hwp6B7KRayagyFi4VGwQbbuyPNPB NOD1NsBUPfN5EMXh4mWiv4Sco0Q+fpS7g9vuXgRU81W2iLmw8O2BMvtIfLY2CTyBvRZt RNN4UA2Mt5zy58Vn7mJ7bi+9a+go9uJ6f6HhiwjDu2QKgZBSGVwIpk8C2B6gC3LGWTV1 FGzQjkrWV2L/M/OaAWtHGRyQgk6A6nu5Wo2kmkK6JZ/Rz1gZKws0blSN7c+ersHM/Cnd ANsuP/JLw4tSdE6iA5up8KkiTcqLI00yMK4tTNutko1PMgKBrRApDU3qoBunCi6VAaJ3 LA1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uwOxeAPh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-46099-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46099-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCXRmd4YZF/AOXlVer0M6xJUbKPkzMJG6dfbjVN8RSB81GaeMs+XfmUl/h38Tuog++4UEbHmk6EZV1CaPmAIuWy98kcoqw== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ds8-20020a0564021cc800b005581b9ede20si5470657edb.44.2024.01.31.01.12.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 01:12:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46099-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uwOxeAPh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-46099-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46099-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id ECA9D1F2D317 for ; Wed, 31 Jan 2024 09:09:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EE9A69949; Wed, 31 Jan 2024 09:04:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uwOxeAPh" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A55863FB30; Wed, 31 Jan 2024 09:04:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706691887; cv=none; b=glgv01KjDz0pTT4nZB7fU4EIKklH9CcFFYMoVA/ITiYLhj1eczjgjbAlBd4x15aJi5+UCxV2CljPXuy8zDem2y3mrzYeAINVybH7DkPH9An6LrhbaVB9mfH9Kh4zISJ8S1Nd4ZeV/e3SA53P5TRxkJfQDE4mESEf3Q9CJ8oGhrA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706691887; c=relaxed/simple; bh=ZbYXhjXWvoG2xDHKAPM5zoanyvcH1F57GIo4k0O2Kbo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HSRaseb33w+G6p2BKlxgGGpgEAj6LxP7l7x562OjuxoENTVToQpRYm7VgRC/TkcKtMdg9neCpYpJeuKrP7RuF6BsUqfKF08BN+wpEVM6Z3NuggqMaGY76NC2osioIOpZ0dYQFsXE/G5OvTuwoNI+4T8s41TQZJGcZkF2ZGE7bls= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uwOxeAPh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 28AA1C433F1; Wed, 31 Jan 2024 09:04:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706691887; bh=ZbYXhjXWvoG2xDHKAPM5zoanyvcH1F57GIo4k0O2Kbo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=uwOxeAPhkzEr97hEhwDUhB+el3jF0xxMUZixm9MFJbHKYtYnbBogtmk30Ghls2wd9 y+U7MU/r9BML9IV8L0LpxGpMRq+pky3R5JKbk1DEohwnuzPeXwogVOMRGcALlZH5NM BHXlVcOAuFxqsd5GbIHTCsVM4zNFc5v7ukligRZpY7CHtXMon1R8t7OUeOCXJktMZq To4oG6TDmvsQsWsPTSlHNCJ/uIvLrNh1pkCN84w+jMmNraU7Wk0MEzsmF54Lnf3oB9 T2Ej2baiuVx6HfYykYtq3D9JQelSB/8kiDO4tj1QiMWgXC6HbVH8mCo4itJVgqqDLG Oow+qMUahv06A== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 171F9C47DDF; Wed, 31 Jan 2024 09:04:47 +0000 (UTC) From: Rudraksha Gupta via B4 Relay Date: Wed, 31 Jan 2024 01:04:46 -0800 Subject: [PATCH v2 1/2] ARM: dts: qcom: msm8960: Add gsbi3 node Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240131-expressatt_mxt224s_touchscreen-v2-1-4463ae0414b5@gmail.com> References: <20240131-expressatt_mxt224s_touchscreen-v2-0-4463ae0414b5@gmail.com> In-Reply-To: <20240131-expressatt_mxt224s_touchscreen-v2-0-4463ae0414b5@gmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rudraksha Gupta X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706691886; l=2107; i=guptarud@gmail.com; s=20240120; h=from:subject:message-id; bh=G6XPs19Hk+i3uuDKqNqjvb4ePyJrYWEvOCZGE4iK36g=; b=01IhAm1m43JwSoG5qVDfjpK8EYKpRI+iitc0eh5r8bOoHY63CcTmbb+icdnyO8w6DpwEG2+9h MKJA/e9ZOBMC/McxNWDd0JY00M+xsKWcXn+e7C9iU3zQYOWdu2t+XwZ X-Developer-Key: i=guptarud@gmail.com; a=ed25519; pk=RGmug3GRHS4XYTXDcT2VrlTGXlEF2gY4L9/swGIU1ko= X-Endpoint-Received: by B4 Relay for guptarud@gmail.com/20240120 with auth_id=114 X-Original-From: Rudraksha Gupta Reply-To: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789596606639956974 X-GMAIL-MSGID: 1789596606639956974 From: Rudraksha Gupta Copy gsbi3 node from qcom-apq8064.dtsi and set appropriate properties Signed-off-by: Rudraksha Gupta --- arch/arm/boot/dts/qcom/qcom-msm8960-pins.dtsi | 21 ++++++++++++++++++++ arch/arm/boot/dts/qcom/qcom-msm8960.dtsi | 28 +++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8960-pins.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8960-pins.dtsi new file mode 100644 index 000000000000..4fa982771288 --- /dev/null +++ b/arch/arm/boot/dts/qcom/qcom-msm8960-pins.dtsi @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0-only + +&msmgpio { + i2c3_default_state: i2c3-default-state { + i2c3-pins { + pins = "gpio16", "gpio17"; + function = "gsbi3"; + drive-strength = <8>; + bias-disable; + }; + }; + + i2c3_sleep_state: i2c3-sleep-state { + i2c3-pins { + pins = "gpio16", "gpio17"; + function = "gpio"; + drive-strength = <2>; + bias-bus-hold; + }; + }; +}; diff --git a/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi index f420740e068e..93365298c5ae 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi @@ -359,5 +359,33 @@ usb_hs1_phy: phy { }; }; }; + + gsbi3: gsbi@16200000 { + compatible = "qcom,gsbi-v1.0.0"; + reg = <0x16200000 0x100>; + ranges; + cell-index = <3>; + clocks = <&gcc GSBI3_H_CLK>; + clock-names = "iface"; + #address-cells = <1>; + #size-cells = <1>; + status = "disabled"; + + gsbi3_i2c: i2c@16280000 { + compatible = "qcom,i2c-qup-v1.1.1"; + reg = <0x16280000 0x1000>; + pinctrl-0 = <&i2c3_default_state>; + pinctrl-1 = <&i2c3_sleep_state>; + pinctrl-names = "default", "sleep"; + interrupts = ; + clocks = <&gcc GSBI3_QUP_CLK>, + <&gcc GSBI3_H_CLK>; + clock-names = "core", "iface"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + }; }; }; +#include "qcom-msm8960-pins.dtsi" From patchwork Wed Jan 31 09:04:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rudraksha Gupta via B4 Relay X-Patchwork-Id: 194637 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1773933dyb; Wed, 31 Jan 2024 01:39:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXk1jwgObElyMZ6dxnS62L2EowJtbh3lYq83GCOErUBCnLY7XOe+aj1KvxTHq6jRXejAWX X-Received: by 2002:a17:903:2443:b0:1d9:a15:615d with SMTP id l3-20020a170903244300b001d90a15615dmr1104055pls.1.1706693992177; Wed, 31 Jan 2024 01:39:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706693992; cv=pass; d=google.com; s=arc-20160816; b=sqQjzzMke9ZHIiMQRcu5givsSt5nl0scYkel7GmLXi2EhiJo76wRWX5p5LuHiaQEQ4 IGDxwrfO4C1LtNQVLV/JLSzWhQYQm6GDBztPquWnihUHywYnSEZzCFJMtJnvgJP3NgoG opIX6abNzyGwrWkYlG4DtnG69+GYWleCc0MuciP6cVFzOmENQG1kF5AE1sgRQwB/ACHf 61sraGYCPNZ5upr6qmRSUAv+XvRW+R6QMOHuXSnwddc7x+xGxVJQY59qpzGSwdw3eXRw naCSlhWxSbrOyiWJfCOfgv0A4X/zKZDdMCo/4h5y9nkpu2gI6K3DM5L0Nfca97W6TUNy LVtQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=cHrlckGREssyE+E+tcBaYwfq7at7hcI5jH2k2nMd3NI=; fh=uzWdajymxjIyo/EBV80AK1x8AUJUTRTaxzv8p0Ezn7U=; b=yiBUQHjkyOTdpmi3XR+JK0tcBODCw7l1dPfimnNfRuKcxEhnFjGsqfFqM9SpD92Ru3 fIuZktV/To2dIokEiASNepzJiyN7jOs75eo01UMf74mNTLweRFtv7duMgLs8URoyfW5P 7pRzkIjuDRs6fsVGCXUdzG7FOTSWvpr+tPDZS55EWXNMo6DHAUFF4PSS2tLVInROAPuG ZBj4TugpwA/T1cQRZoYNNZu0XmtyYTnsFLRmH9SFiyYx6fTJBbO+sApD6LrPKJ2m/RwT 0st5wzADoA7ICeRSSyJ1HrVEenVPEwwNI2n73E2zQlwYWlZtdBSxpOE53am5Esggd+nw gNmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O8W6VO2D; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-46101-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46101-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCVWa7m1hcf4xaolofenfxwgwnF3N0tkCfVf7jPZsp0dz8a7qgRW+Qc3DOINVes3LU/CBd3ZhqZoZNVnLDKM1Hh49kDFiA== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l6-20020a170902d34600b001d820ea42a4si5119394plk.185.2024.01.31.01.39.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 01:39:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46101-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O8W6VO2D; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-46101-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46101-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2B0902939B8 for ; Wed, 31 Jan 2024 09:09:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EE5369948; Wed, 31 Jan 2024 09:04:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="O8W6VO2D" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFBC15813B; Wed, 31 Jan 2024 09:04:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706691887; cv=none; b=Ik/InyM8UxePWzF75XNsTX5YLH34asrF2zNLWxf+SqZBwHyyEknhsm4E8VCBcfs/kCA6nRR1CFy8tHx8u0ME8r2dmLDyM8nhhpu1JnHXrKoKmi8t4D4/e/FR53Dnd7mG6Q30ji5lWn/ZHQRmDiovfOlceBwhxZB1g1fzMDD7clQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706691887; c=relaxed/simple; bh=QlP98aSQSqBpclGKVx9/GrrG73fSHvaxlFUeCcBcyCM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kfFFrrvofbHKgTiHcwHMEi93YEPYX9jwL4A2g6238/RFWOr22K5eaYD5WTVyy4NW4rS9/VNWvQ/3Z5CPwpLuS6QDOuvf9IF/XA1fLLabw1gyd+AYC9m/XVGb9gAdzOU2p5jBjM+RQGHAKuU+u78k4qxXo+Nk1PnonneX9nZvetI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=O8W6VO2D; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 36C93C43390; Wed, 31 Jan 2024 09:04:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706691887; bh=QlP98aSQSqBpclGKVx9/GrrG73fSHvaxlFUeCcBcyCM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=O8W6VO2DtjQRTH84AM5vGi+Rkudj9MGURJ6TmVkEF+a175CpOq1jPESfQfOYZVbXK mZirgbsyqAvFtg56GSwrzJWChf4joEPSmT0VquvC7LbEIRBBSiPqmNadjQI3Rs8El3 OqSid/oyMr3pnNC0jCKu68RHWDLv/XKt72/3FhPtv6OvaQ+qi1SxldMGlAsTpSzoOt kzEvfZLBSrAVZ3R1Sz3gEVSPi2N/SPaH9cnc6AaPOfiw/e4jtXdQD8T64dU5PQbmXb mqSM2W8U3NgD2tslfdELDA54CliEyLf00TF7E6hVTS6LpTClbKzTP6RPvI8j1XTIOI qnhFu+9sWCOYQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20B96C48285; Wed, 31 Jan 2024 09:04:47 +0000 (UTC) From: Rudraksha Gupta via B4 Relay Date: Wed, 31 Jan 2024 01:04:47 -0800 Subject: [PATCH v2 2/2] ARM: dts: qcom: msm8960: expressatt: Add mXT224S touchscreen Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240131-expressatt_mxt224s_touchscreen-v2-2-4463ae0414b5@gmail.com> References: <20240131-expressatt_mxt224s_touchscreen-v2-0-4463ae0414b5@gmail.com> In-Reply-To: <20240131-expressatt_mxt224s_touchscreen-v2-0-4463ae0414b5@gmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rudraksha Gupta X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706691886; l=1620; i=guptarud@gmail.com; s=20240120; h=from:subject:message-id; bh=4Gi3ILnitkF34hh7B1r4k2VP7IMCG7Hjj/6AwpaU750=; b=aToJeq7bdKkloeO+pbha6Cimk77XwMqWEyri7P45ecOMZaHTkdN4Cy1Gcpli+x+loyRp/LVf6 SNTmxUSdiqZDmTcl8lGZNOvhSgthxCwy1F5lkuFNrb/xQprQc/fsi0B X-Developer-Key: i=guptarud@gmail.com; a=ed25519; pk=RGmug3GRHS4XYTXDcT2VrlTGXlEF2gY4L9/swGIU1ko= X-Endpoint-Received: by B4 Relay for guptarud@gmail.com/20240120 with auth_id=114 X-Original-From: Rudraksha Gupta Reply-To: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789598359588993537 X-GMAIL-MSGID: 1789598359588993537 From: Rudraksha Gupta Add mXT224S touchscreen Signed-off-by: Rudraksha Gupta --- .../dts/qcom/qcom-msm8960-samsung-expressatt.dts | 31 +++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts b/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts index 47e0e26ad9f0..af6cc6393d74 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts +++ b/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts @@ -85,6 +85,27 @@ &gsbi1_spi { status = "okay"; }; +&gsbi3 { + qcom,mode = ; + status = "okay"; +}; + +&gsbi3_i2c { + status = "okay"; + + // Atmel mXT224S touchscreen + touchscreen@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&msmgpio>; + interrupts = <11 IRQ_TYPE_EDGE_FALLING>; + vdda-supply = <&pm8921_lvs6>; + vdd-supply = <&pm8921_l17>; + pinctrl-names = "default"; + pinctrl-0 = <&touchscreen>; + }; +}; + &msmgpio { spi1_default: spi1-default-state { mosi-pins { @@ -123,6 +144,14 @@ gpio_keys_pin_a: gpio-keys-active-state { drive-strength = <8>; bias-disable; }; + + touchscreen: touchscreen-int-state { + pins = "gpio11"; + function = "gpio"; + output-enable; + bias-disable; + drive-strength = <2>; + }; }; &pm8921 { @@ -285,7 +314,7 @@ pm8921_l16: l16 { }; pm8921_l17: l17 { - regulator-min-microvolt = <1800000>; + regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; bias-pull-down; };