From patchwork Tue Jan 30 02:43:07 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: 193815 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp962461dyb; Mon, 29 Jan 2024 18:45:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IGiNDjHzDf4D554mVQzGxetbkBcGL2I/E13XWvc06SO/badCzCDSWtwKD5N5mOnvlfEjCtu X-Received: by 2002:a05:6a20:37a4:b0:19c:991e:a201 with SMTP id q36-20020a056a2037a400b0019c991ea201mr384330pze.18.1706582706188; Mon, 29 Jan 2024 18:45:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706582706; cv=pass; d=google.com; s=arc-20160816; b=h4h5Uy/3GMT0HTOQ7GEfPbGLiv2TYIAEolQUqYfXan+XPaienBEWmzVwhRWn4G+lU7 jDDJYIZV7ZW3lLYq9xv+89xRfpAec0AglvKDdo8IN+NimkQUmz9/rS4e6EfgYEU2jJn4 hn4D8qdnvAxqlkYJyMPbrBRyo7sTnyEsnpYvjTUoILtlA/Q9+bE7AYzKajK75W8zfeD8 v/Gm8pERaOVXKfHu6McKhSWCZlBQ5fjxPj332LWWKaq0qXD4132dC89bHVFfklQJW0dN 0kLNytlOoCu6Xv9CNX1hSn0A44UBtYaCIvMwWrkkQOWj0AMOGHWgbGMwGewEbSGsM7Nj ZkmA== 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=UB8/fwBhD5SFjLUdd9l/OclZkm6Dg+6NywJkgaI/eSU=; b=RPIUy6+mInFMFm9LOlrPr4/Djnv5ssJ1EWBqkqINwoATNt86XeYVu8YB0z7RroSTot DKJ8oDAdhioj2vQCxWH+cDMKvpK/nMBLa3aXiUHqXnGu/h88BtA+2x47/5e4uQrIWJVS p9oeILRdvgMf8lrtM5z8NALPmFauqKd8QQpUc0JFoSdQ/Et0+IctnVYgLlST3kn4HBxb t/fKOPQUElApUIJg3oGV1YIzPRpjtGt/yIOSo5E4UFUDb7eAQkOX6qmC3Z1PmcTGBmtk RmpHgPD+0YDYl7qzMAoelSqzCUqFPZzWKTnl+KSYL8EMz+6x1lCHK/Qy0ltPXVdQWFHV q5Fw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e5MrxK81; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-43846-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43846-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o28-20020a637e5c000000b005ce087e004esi6776887pgn.785.2024.01.29.18.45.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 18:45:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43846-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e5MrxK81; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-43846-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43846-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 60D5228A336 for ; Tue, 30 Jan 2024 02:43:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F2D0376FA; Tue, 30 Jan 2024 02:43:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="e5MrxK81" 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 51CA7364C6; Tue, 30 Jan 2024 02:43:07 +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=1706582587; cv=none; b=RZDIZOKceeDCuzcdZPYB+PulrX1LDKx3GJHikc2oDOy9A+LKvdFmWGBPy/caddlfelez6nfRix5M13brmtvkQpS48UMvXDVosy19tDwfAHZ9XRodKvJBb8ekv/f2jbi3BkCA7qLcxVFrb92CUUe/D4Bslk4s5Hr1iRSYlu4XLBI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706582587; c=relaxed/simple; bh=QlP98aSQSqBpclGKVx9/GrrG73fSHvaxlFUeCcBcyCM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ogA2ToRUjDxTq9eA43gtKKGUHwJ/f93lZWfTmINnF/3tU44fiXc24mn3/PUIZ2tGG7MqrG9qrKmp2dhofxW07xjr+5SIqHE7wD8qqRM7Nqbsk6AayQ221v92lbGs7e8vLcTJS+3QZ/3y11Zad6bADTHu7yGj5hoVLy3ZKmfOuOE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=e5MrxK81; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id D5EA7C43390; Tue, 30 Jan 2024 02:43:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706582586; bh=QlP98aSQSqBpclGKVx9/GrrG73fSHvaxlFUeCcBcyCM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=e5MrxK81lePY5Kev89+qPYsObInOnXJTN/ByIyW5q5hQUha9pPeOjZxLTq+WJ6ENs N22i8FkszyHKOTKxk9RZjD9qv/l5lw1CbBajAWtGb6QALPgveJOtDjoeONxZXBi6e/ GqMIC0C7x4MUyWhe9TZVbyiVBY9M3qp6MryGw0DWlFIOV/QQ2vuzzApFO/ZlCFd0hs XkjMoPislaeZ37/ilcEXocZ+gMDYXh/kI9Z8jzPBLeUEqrnqJc9XR39aFO4s6IXh6W cWKvMbEd31qHDQmMZ8s13Vrqqbt5ACYms1o8Wa6VrSWoN2d9BFSd9aGd35+04NU9mT 5xH6cBPVJ6tLQ== 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 BC8C2C47DB3; Tue, 30 Jan 2024 02:43:06 +0000 (UTC) From: Rudraksha Gupta via B4 Relay Date: Mon, 29 Jan 2024 18:43:07 -0800 Subject: [PATCH 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: <20240129-expressatt_mxt224s_touchscreen-v1-2-fb8552e1c32c@gmail.com> References: <20240129-expressatt_mxt224s_touchscreen-v1-0-fb8552e1c32c@gmail.com> In-Reply-To: <20240129-expressatt_mxt224s_touchscreen-v1-0-fb8552e1c32c@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=1706582586; l=1620; i=guptarud@gmail.com; s=20240120; h=from:subject:message-id; bh=4Gi3ILnitkF34hh7B1r4k2VP7IMCG7Hjj/6AwpaU750=; b=glGc0tlN1FYtvPmVUQWslsCsjE5EMGR/UNEHeqUB2jpo5OOSQO5qq9wIE5HbwMCkwH2BzXEJs H7KAFnIl4ahC7MfYyk65Voe0WfqTNP70P9KSDCsySRwDT6Coc1/JoRf 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: 1789481667632818748 X-GMAIL-MSGID: 1789481667632818748 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; };