From patchwork Tue Jan 30 02:43:06 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: 193814 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp962126dyb; Mon, 29 Jan 2024 18:43:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZ3xxtQceongrqRfPIHvrRbYvYgwpGkkEZ3kP0UFFkOJxb52sx4wS0h7UVzYumsXjfCxkF X-Received: by 2002:a05:6214:268e:b0:686:aa7d:110d with SMTP id gm14-20020a056214268e00b00686aa7d110dmr7103266qvb.75.1706582632197; Mon, 29 Jan 2024 18:43:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706582632; cv=pass; d=google.com; s=arc-20160816; b=A363dbkGD3ES0MsVr+8UodkLHckEm4++pcPysTDrv3trkvP9af4ofJ43uXPIaC21yz yPJWD1cdB7WRWhtZ4Ts+J+zkhCILpbmH0AxASQMecMcv9HF1STFpfcCuyT+L4uYmna2L +qOMBmwcXGkE+VjEjMLaLEo7h8Vp1Xma/zhqLIJQjoWcih+/HOil4e+4+IT+4d/yA1oQ soaSrdLl9d4Cu5X67/+ZJmrGVIWmnbumkmfWeinb6HVp1oqCCd6WPxLJn2FPecYmQPnQ TwW/rXrW6uKbrwAsQedP/0qaF8I5QVDCeFXOcpCGwO6sMY2GnvA4Du+6QFYXkg8Q82zI fhig== 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=/Hq7bh2JNZCXiddSwpZKzCGm8+qJ7g65ztHdjP8ef7M=; fh=UB8/fwBhD5SFjLUdd9l/OclZkm6Dg+6NywJkgaI/eSU=; b=kByrb/Ep6P9cvdDvtflGxrsYXyE7yiulaHSFBZIrAd9dmt5zTBlw9l2oHc4Kly4V8L PNRmjXBo7Wjl7ZEDmQwu4Apqnw3muJKjSIziyLzWJaov5bI51LQsIZ54Zf/ybHCE5HdA 4bgqh9IHFCcMHq1gAq6m1lQXXvfyoFXAsTS7l1VS2cGTk+jKmDKF/pSrOirYe/vVZi5D Qcba8AiUGCj0/FkUhr65Bv5zCBbQWg6cToSjpDVnKoR7MEbf8Cxp0GmYkV6ughZePVB2 rAxO0s17gbrafPsCW4QJL3oGfUZjv04KTUJ6RHXr0pV7EdVi0HW8L9+1Bj3KiOfe2jg/ SgYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I5xdLO+p; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-43847-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43847-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6-20020a05621420c600b0068c42aa6550si6477691qve.223.2024.01.29.18.43.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 18:43:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43847-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I5xdLO+p; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-43847-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43847-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DBD3C1C24EA4 for ; Tue, 30 Jan 2024 02:43:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B2643770D; Tue, 30 Jan 2024 02:43:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="I5xdLO+p" 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 4EECC36B1E; Tue, 30 Jan 2024 02:43:08 +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=1706582588; cv=none; b=sRaoBLjDjTXw4gpn/4aDbPi9DiboxHcQpqwMUewhXAS5dqLb32a+9eYNGmirqj4iGSBaxrq7umQ5aqWNUXzexjyhUeNPMwHEQF1nLYM1lJGrGdV4A4JPe5HVEg0Ciw3q7NgMLSNjsvHI5OylqQicmf2eaH10ZC3WZkD0Sy4jfto= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706582588; c=relaxed/simple; bh=K37aEDqRuJkgbyoKfj6QrsTeE2KT/iqTlg+8d9xGoy8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=j4nSZ0uUVvtU5F5o4awF+ykMOSMzSLbf02X4g/DucjrIYxFUCXs7vZM6AJvBMEs0BicHD/KdCWPiQsbOFgUhVoY8izrw9LG26/H9juUExFYwKfLItkPUhj+hZVb7EDIO8iR66Azl9OomLhJbpLUnvgFkh24xZjZ3smNwhMaa2gM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=I5xdLO+p; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id C6D49C433A6; 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=1706582587; bh=K37aEDqRuJkgbyoKfj6QrsTeE2KT/iqTlg+8d9xGoy8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=I5xdLO+pnMv4FZyZ4hsgFtdTLMWshxxcUBsOdNjdPdShElmmKb2d8hYM9/QyzCpND rie+c3gT4P7ljmY2t3AL+HaM9XNRD4LH2BDYiFB5gerdM1iw5NzwCIzQteuFcrLnGd HFb3bLnj6tmc0j3ydcwTe/dwOnePn17z9ZpMB9ax4SvtRSl5sfh4CDOjOxJTgFpEDm Nf4pvEJdIWYkNywuJajkT4zuhRX7LVa/mXKFcZZdiariyiwEcYi2MmGBu/uUkXPTQy 2QCcsSG4febqqnvHResFW/nyAJ0aX27cuo3MgxQEEhTVRWzX4Q7uURimT2sCEeyID4 WamaHifFuv3Eg== 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 ADEDEC48285; Tue, 30 Jan 2024 02:43:06 +0000 (UTC) From: Rudraksha Gupta via B4 Relay Date: Mon, 29 Jan 2024 18:43:06 -0800 Subject: [PATCH 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: <20240129-expressatt_mxt224s_touchscreen-v1-1-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=2174; i=guptarud@gmail.com; s=20240120; h=from:subject:message-id; bh=71iD1TcYIaHc5nmS/5IyoaavDQDYXrkg8rcaJA80YFE=; b=+YgFjGIGrCn96fSpHtUZX/Eau/zRUk1I3kDEu6G3B/hIxpJgS+376e0e0TsFJMmPnUYU8cO3v nrQuuGBZAzkCAWlmG+vDRL434BGJCgGI43bFp1zjWn7H0UYUzzeP4x1 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: 1789481590058722177 X-GMAIL-MSGID: 1789481590058722177 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 | 29 +++++++++++++++++++++++++++ arch/arm/boot/dts/qcom/qcom-msm8960.dtsi | 27 +++++++++++++++++++++++++ 2 files changed, 56 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..c74c6625d276 --- /dev/null +++ b/arch/arm/boot/dts/qcom/qcom-msm8960-pins.dtsi @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: GPL-2.0-only + +&msmgpio { + i2c3_pins: i2c3 { + mux { + pins = "gpio16", "gpio17"; + function = "gsbi3"; + }; + + pinconf { + pins = "gpio16", "gpio17"; + drive-strength = <8>; + bias-disable; + }; + }; + + i2c3_pins_sleep: i2c3_pins_sleep { + mux { + pins = "gpio16", "gpio17"; + function = "gpio"; + }; + + pinconf { + pins = "gpio16", "gpio17"; + 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..62a5a9622e82 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-msm8960.dtsi @@ -359,5 +359,32 @@ usb_hs1_phy: phy { }; }; }; + + gsbi3: gsbi@16200000 { + status = "disabled"; + compatible = "qcom,gsbi-v1.0.0"; + cell-index = <3>; + reg = <0x16200000 0x100>; + clocks = <&gcc GSBI3_H_CLK>; + clock-names = "iface"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + gsbi3_i2c: i2c@16280000 { + compatible = "qcom,i2c-qup-v1.1.1"; + pinctrl-0 = <&i2c3_pins>; + pinctrl-1 = <&i2c3_pins_sleep>; + pinctrl-names = "default", "sleep"; + reg = <0x16280000 0x1000>; + 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"