From patchwork Mon Jul 22 11:57:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 813803 Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4AD816D308 for ; Mon, 22 Jul 2024 11:57:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721649461; cv=none; b=Z6J10YSgprtLktRdwXYPAQqsmYwMF8yYk+ri/apXCTJE7jIreoFg5ZOISVzD4sqYUUSmQDPOVL7Lb+bV7wZyHlMxUgVaz30ah59OkcJ70pkdMfcZ3haGfDF9yLKevb40rZjn2/g8fc01Wr/HN0GLd/S+EcKRvcvUknLouGyD75Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721649461; c=relaxed/simple; bh=yuhOLtQ8azSOnrwILfPnGwWQ9ZZwMjyrixqbSpaOBEU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fYTxbXMl5VTwmmMRhs5zRNHiFBY0Gp7HaGRIXWCfB57hOLHpExotiVWOA2+DlZJOZV9YySM7OFIwOI32P+7Ov38bQ/LVZ36Z8xuVR7QSBrh+GdwvZxrpx/E8bfVeuvIvftx5U6vP6asdcVfEXH1MLtv1pRrNOrydrHrxsYCW7Gk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=MXnvryek; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MXnvryek" Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2eeb1ba040aso60946731fa.1 for ; Mon, 22 Jul 2024 04:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721649457; x=1722254257; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=m21kMMuy+2F+8vobKveqoXY/oSqdQ9zfv1pnAMWi19s=; b=MXnvryekWHYOf+ii4dvKCN0yHwhqhoAujsafJxt8IvhrpkRcsmekRH+ndqtCDrHMcJ bN/mu//acMZLyrvBE/GUSty8E6MGKL6VQZI4gluJnWzegeHG4GlMBWWPWRh0D+04ghkR HJwa0xGYmQOtrY3rU/G9xjfkv55GF/5MnaAHojJFt05Nv9n/ADRgDLdnuI/u+VBpiqw6 Cho4cE85frDtZaiiCKH2FmeVU6rIo53YqdR/JFsrWVNOj/uDgjipE/MS2LE+E9U+XhKo T+Q+9pgzujDZth8LiVPeZ5xkPozZflmxNRSXXyJzY74NIZI+hbUqHwLvq1wAn8zHBsn5 MP1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721649457; x=1722254257; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m21kMMuy+2F+8vobKveqoXY/oSqdQ9zfv1pnAMWi19s=; b=ducMtNpS4dpvrHvDAAlk1ssAHz6B8srKV3GQZEtu7ZFLSEAZvGmx2fw7CjqJ9LyB5d R7WB4Hw8qivvWS9utzh8wizGhL5SbEO7Hi6OmrJBvTn0ISwqYjzW+/u2n7jvBfxY+rtx ZCUKFTWUBJk1FvSjFt8wD10746eewy6R9SqjKXon+SqWkD9+XV1C8qpGoDuvtlV/0GdD 2Zy1zo6/g5Nl7CmIkk93sV2wW5A/vO3sSAGOPy8AfjKlDO+QhLC6fhHi/fsNbj/is7xW IHMsLBuF25v/Cs8x+Z0uyP7RVOdAsB5ubcG2TnOOUjKcRUCR2t2Mzyf2xRFlyVy94InT Wumg== X-Forwarded-Encrypted: i=1; AJvYcCX0n4mGnqDfJXPKN/glgR1F3PARoETulYGdo+BMkA5PCGJzmCCG7T5fQkYWZj4OM4A+hnBGJp74BC5LU6gbHbRviry9P6/k0iO1MhC1tg== X-Gm-Message-State: AOJu0YxBUuyeSkrGzDQhEQ39UnevhvoKhUe97glvyfp+354/zdSijla4 LBbOrMbMhJ5rQDlVLKBP4R8dkBffXGpyFqr3fOymq4wo16EsHONl71k7BWWtDFA= X-Google-Smtp-Source: AGHT+IFHL1Qn7iSnVyYunFSLs5AWD42ZynstiIcEpy7R5to/uqHw1TKkcXbtawLbTGcm8PJL0duxBQ== X-Received: by 2002:a05:651c:19a9:b0:2ef:32fb:6c47 with SMTP id 38308e7fff4ca-2ef32fb6e4cmr14759341fa.1.1721649457250; Mon, 22 Jul 2024 04:57:37 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ef0fd10bffsm12449611fa.134.2024.07.22.04.57.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 04:57:36 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 22 Jul 2024 14:57:18 +0300 Subject: [PATCH 1/4] arm64: dts: qcom: msm8998-lenovo-miix-630: enable touchscreen Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240722-miix630-support-v1-1-a6483cfe8674@linaro.org> References: <20240722-miix630-support-v1-0-a6483cfe8674@linaro.org> In-Reply-To: <20240722-miix630-support-v1-0-a6483cfe8674@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Jeffrey Hugo , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1676; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=yuhOLtQ8azSOnrwILfPnGwWQ9ZZwMjyrixqbSpaOBEU=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmnkkuBrwtxjv6aXeEI6FInkQUOtFio+exo7DSc /iNGWWGF+mJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZp5JLgAKCRCLPIo+Aiko 1WI1B/4rNm4mGGNMH5gRzd7sQDOIb/UTNNFx8Btl1KmD8Hlv36WcD54PlWYaCLPeV63mZCmR0VD MERYmTwo8fqXcmHzNPhz4x9nzzInr1aPSXqauSnbAk2SeRmOV7eCmahBeL4h62g+DGyACjZ9AeP vhwcAs7x/yfacojmBLw9934aB/2JpxrPuVou5mMg/5GIL78N9Jk9wpRZxGX6+KWvi5KDNfpLvW9 O9OcAzoF9bIUMLx0dKW6NSB5TBeE/JJV1btCaIIAVH6EA4DZ0K3Lm4MySMYcbCgx3zE4GKuvsgg usxc3Sjs3Qii6gzSjaNYbq38fJQyQzO7f7qNYLdU1O54saME X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A There is no point in keeping touchscreen disabled, enable corresponding i2c-hid device. 04F3:2608 Touchscreen as /devices/platform/soc@0/c179000.i2c/i2c-0/0-0010/0018:04F3:2608.0001/input/input1 04F3:2608 as /devices/platform/soc@0/c179000.i2c/i2c-0/0-0010/0018:04F3:2608.0001/input/input2 04F3:2608 as /devices/platform/soc@0/c179000.i2c/i2c-0/0-0010/0018:04F3:2608.0001/input/input3 04F3:2608 Stylus as /devices/platform/soc@0/c179000.i2c/i2c-0/0-0010/0018:04F3:2608.0001/input/input4 Signed-off-by: Dmitry Baryshkov --- .../boot/dts/qcom/msm8998-lenovo-miix-630.dts | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts b/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts index a105143bee4a..118c55f5bcfd 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts +++ b/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts @@ -11,6 +11,24 @@ / { chassis-type = "convertible"; }; +&blsp1_i2c5 { + clock-frequency = <400000>; + status = "okay"; + + tsc1: hid@10 { + compatible = "hid-over-i2c"; + reg = <0x10>; + hid-descr-addr = <0x1>; + + interrupts-extended = <&tlmm 125 IRQ_TYPE_LEVEL_LOW>; + + pinctrl-0 = <&i2c5_hid_active>; + pinctrl-names = "default"; + + wakeup-source; + }; +}; + &blsp1_i2c6 { status = "okay"; @@ -35,3 +53,13 @@ &remoteproc_mss { &sdhc2 { cd-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>; }; + +&tlmm { + i2c5_hid_active: i2c5-hid-active-state { + pins = "gpio125"; + function = "gpio"; + + bias-pull-up; + drive-strength = <2>; + }; +};