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: 13538997 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uwOxeAPh" 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-arm-msm@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: 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"