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: 13738769 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>; + }; +}; From patchwork Mon Jul 22 11:57:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13738768 Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 ED4BB16D32B for ; Mon, 22 Jul 2024 11:57:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721649461; cv=none; b=QugMLEIKRhZSx1KRVOxdCs+93cRgZtQ29Fllw5Z1EEPtXna7tKteAfyu2XC5jkd5UwVkFvndAis3VrvmeyGMCf046NARnkwtUaXbSUPTWkIEc2RIqZlyRlTVm1LHDrO/zoOX8DeV9EyWZnGPmrpL8Gza2MKQn9VxVo0h9U9f77Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721649461; c=relaxed/simple; bh=F1orDjEHJakOsOgrw2A5ldW8NfRAdatIOug2faLipeo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GLNdKXNwm749dTwwiKsdS9eqHizyD078Yv3oVnyfJGgEN24/FNbRajUHibOpvhZouduP0ycDmb1cPw2TGO2NEEOuK/xoIX2hg39a67eyLKrqrG1PqkcroauKfrYhQVg0pRh7ux1AQTwdlXLaDXckZgxamh8hyOIrDEv4SoLAmhE= 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=vXFHiCQq; arc=none smtp.client-ip=209.85.208.170 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="vXFHiCQq" Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2ef25511ba9so12344851fa.0 for ; Mon, 22 Jul 2024 04:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721649458; x=1722254258; 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=3Bjn7qNFQ5oOeozmGDZXaVGqpmfLng3wHRltiFh+ERI=; b=vXFHiCQqtl9qx0vrMmrTWehuPunAU+ZOzN/IsXmYdNYPrVSSMluN+NUo0bEJyGoLh3 BGnPjvnoN84lEmIM3A3uTUs1TzpSg3+o9jhWR4n2NukuZwCDhdEywAL9whkSMJBr8eOI tC0WaBmq+nLV6LE/QIlcYADymVrpQJysn7/zpFh3oJUa68MMg9WrZuVnhF43ibTtrJYU hu3snAi2ks1s64iumesbw2UAp7lrmf1zxPS/7DvaXEyMZy4Exjusmy5cU1fhZKRcZWEX XVLbDPWbTBrrFH+FpD8SEGd0FSGf49Pva3nGLXTn7sseN4KLwKjNB4mQbfL8N0H+Ibv3 30eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721649458; x=1722254258; 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=3Bjn7qNFQ5oOeozmGDZXaVGqpmfLng3wHRltiFh+ERI=; b=rHHAG77EsDabRuMqGtF4XLRyVMq/xkaveUyuTbI3brnanacbj1XXhjRoSVXZPATQOV Snk/+n57htXA7rDMI4s3DGG4+KrVuDEp5VhBh8MjQDeXIFVdkbfFFvqP/gZBu8hgmSeI oeT51IcoZvkpGsxbCflgW1wbXZmyZ7QvOqGYd8S7jotGr2vKnJB8JuDHBTj2uU59/dYR lErZwyUFmNPXdsvJUyuTg60vekylEO0tUFEY6f9Sjvq1c9CaG5FefjP9B/ZBDAr8inBx K6z1lXNienz/S19XtQbNt+UIf67EjXFZ12YZeZ+9ZfuImOuATKdtjw/4dEug9Tk3kGD7 GZ+A== X-Forwarded-Encrypted: i=1; AJvYcCXstGouiG20RVulIjbyPT24ZgoHqTT0YUBjTOjMrTxRHjrfRJY8JcNcse/RERpe5cDqF3PP92ZNsiTikyagAUlUEbO6m+mYHE1qAUUsNQ== X-Gm-Message-State: AOJu0YxQLcBhKc0Cd1ZjcFMsJta75w0Gg3btFMPnl4yK08l3Oo/TcYP9 k7yDlnIU0sdGsyd8KpFeu++j8Wzyo1+XK1iiq2imr/AymxXYpbAO2iZJIQr0KPc= X-Google-Smtp-Source: AGHT+IEoJZveHNlW6BoNfTUsmFUXMg26XuREkYO7fdjHYz/fVX6nh/0A4mt/R8GJDWyh/V3WgR7N8Q== X-Received: by 2002:a05:651c:a05:b0:2ef:32b5:1de0 with SMTP id 38308e7fff4ca-2ef32b51f02mr8457431fa.7.1721649458166; Mon, 22 Jul 2024 04:57:38 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 04:57:37 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 22 Jul 2024 14:57:19 +0300 Subject: [PATCH 2/4] arm64: dts: qcom: msm8998-lenovo-miix-630: enable aDSP and SLPI 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-2-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=1010; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=F1orDjEHJakOsOgrw2A5ldW8NfRAdatIOug2faLipeo=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmnkkv/zDr0Np1G1zO7lTZor58Ds5KUbRa4mpgu 1UeoC3y0yqJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZp5JLwAKCRCLPIo+Aiko 1WhOCACyJP/TZvG3FLEBfAJjE7tosLyXoMHqaz+vums7JB+RZO3ieavZ+mIf/PQquevDTIKAjwH gDaC3uTBk/zGWos/Db0KM1L1GEVUaGUW2Tg0jYrroakplBTN21xECemZax8S2L6Vdahf+DKWG7w MDLWX6ux8a43vivWsKSNufnWCO25qsrrXah00aIh9RmIjBxpPrfG1Jye1LeElwMakZs9a7WjxNX bDB58k+wwonZojiCR2WVmUv7L2M855B8cNa4cfKRsVAXRUO7UeM0oQguK47Tri9E3J0RR4KReuy MMN4tFYytRgvyYA77fv0YIwU7xlp0F/LwujIFamJ+SSd9XkT X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Enable two other DSP instances on this platofm, aDSP and SLPI. Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts | 10 ++++++++++ 1 file changed, 10 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 118c55f5bcfd..f585bc8ba2ce 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts +++ b/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts @@ -45,11 +45,21 @@ keyboard@3a { }; }; +&remoteproc_adsp { + firmware-name = "qcom/msm8998/LENOVO/81F1/qcadsp8998.mbn"; + status = "okay"; +}; + &remoteproc_mss { firmware-name = "qcom/msm8998/LENOVO/81F1/qcdsp1v28998.mbn", "qcom/msm8998/LENOVO/81F1/qcdsp28998.mbn"; }; +&remoteproc_slpi { + firmware-name = "qcom/msm8998/LENOVO/81F1/qcslpi8998.mbn"; + status = "okay"; +}; + &sdhc2 { cd-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>; }; From patchwork Mon Jul 22 11:57:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13738770 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 C4A3A16D4C5 for ; Mon, 22 Jul 2024 11:57:40 +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=1721649462; cv=none; b=pSu56F7EiJlZ8wPYrzejVO4KDwXnG5a1/4rtxj33ZO3mBhxOCVmZf2mo3G0QLqwfkbh5ROvP5i2quzBr2wsnV99gjrdtdf3j7X5hUkaPgy6SQJH72zmJkw2H2hTPsbBcyXWMWvDP9k+DoRlwiyjpDVDdLiQ+soXr0XshzKEkkaw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721649462; c=relaxed/simple; bh=65PyLSBpiaNeTDfZNz0O65PLI+c0PdBCHqYf5aTIRpY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tFCYQxjjcqBHMsFnPZjUlP75RYBl9ff8NJl60lz4VPnO3AR+o63lONkAC7aE1/BfhDOiF8A5cUd8I2aksZeRJa6bp+XGnCBCLb6kiQa2Wbmm4Bb5WNRNoisIPjgTTVI6mCDsGfKoFuK0TuLmCnPBUBVIcS9aImFr2srDqPC6JY8= 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=pxr3wQE4; 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="pxr3wQE4" Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2ee9b098bd5so54777121fa.0 for ; Mon, 22 Jul 2024 04:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721649459; x=1722254259; 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=xqvhj+qMhyZfOAH67003wNl8OKNkSRS5rpgVLzYzc2c=; b=pxr3wQE4NIOO9+K/nTbhx68zHtFGMBtpL/nY+HcWCxbUhI7OrbJ09L2Kw6xKFdd4Jq dto6dzxgDt5VfokYDndwb03rq7Y+5V7AtcLlnB3m6K/grN89XqwKnFuivE4VJdLdySbj bBpB7H9baVcuHl31OEPA2bexsS4B+Mo6c6CACldcsVRJ6wQ+ptRpxyxbwBRwD19LK8b5 nImSMx9qKscfObO6bP9RjRstfKHvbA6+UJZ0EKFubco+VUFTiQ39V1tpNBamFwshpeK3 7tGw+d8V2ebaSJEih1QwcE0/wzQFsi+ps8Z5+PTohb+TxGDcxO8pygIAOfPUkEZSM2T6 my2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721649459; x=1722254259; 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=xqvhj+qMhyZfOAH67003wNl8OKNkSRS5rpgVLzYzc2c=; b=o9StyUFcaIpber9H8uF48UTr8oK82nLorAdrDK0y/i1egpSBszMPmWDMY2+Jim9KV3 kyGr3J+REMAVYXA4ZFEfBETGr6EkpHt48avf7CXtxK5fpsaUN3/z160HZxWTpzbd6cCh 1sfbj4PBqw07sDDz/AvajkUf1IXrrp32ly+9Cl2hsqiCZG0daFQCZgDEPaEGCWhzXUvI 26hIH2m8RTWK4vVmAH3e+X1N+VaKwyed6+uPIweCTAswsHdN0RDOvRqLfzEnh5qfwJpq 84s2eHRk4AvyxEm4rqWFi/gGoDmdsCO67rTJ8N/tlxt7us9OGXOh3avbuxSp8yMClDyY IJqg== X-Forwarded-Encrypted: i=1; AJvYcCVD/0uqOowKvAi0SEoaENZnX1Pu6jX9NQyvXeOgLollWRZ/OqUzXNHgajPNzxrsp2eYMoHqtrEvR5okwFJ4Q8rNyZooTjSWtgeI93z8LQ== X-Gm-Message-State: AOJu0YyFmpQGndvqdOlVxlrPZs+us5PlLSnPIyFzb+6q5py8LRIn7gEV /d+eckF8T6nmuxjBHTIUVQDNi37Hk5B4aPxdi/P6fP4pp9F/pq92B4vVouh3T2Vt4uFMoFImvnr 2 X-Google-Smtp-Source: AGHT+IE/ny8tUH6mP6jdGMZsIr+Mn8V+MYLbUJ4BAP2qqfNiF92XD6zyQeHNLMtH93ZNcO1fqSKefw== X-Received: by 2002:a2e:9811:0:b0:2ee:8c72:36d8 with SMTP id 38308e7fff4ca-2ef1685dfcdmr49230191fa.49.1721649459116; Mon, 22 Jul 2024 04:57:39 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 04:57:38 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 22 Jul 2024 14:57:20 +0300 Subject: [PATCH 3/4] arm64: dts: qcom: msm8998-lenovo-miix-630: enable VolumeUp button 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-3-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=1449; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=65PyLSBpiaNeTDfZNz0O65PLI+c0PdBCHqYf5aTIRpY=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmnkkvJKXzztfFqa65RT6QOZKsipXphRR5J/ETv XLjAOb0wZmJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZp5JLwAKCRCLPIo+Aiko 1fofCACr5K4Ll1dsx+nFBh69IgXhzSzxiI7ZCutdL7qo2mb6WiXz6b5Dp9+kvz0x5D2kpB5j/54 9ef6UH2oJxpLfVXoruzemy5R4RLVqTgo/O1vCS1ODu392aUsCn1b0j1xwvlfOozAEG+NaxhOtJp y1RQzWYAarATaaxG4mlMkt1Utb9D/I7sLM2CFvAGInBUuXHU4MbnuMFWp7n5FZwwe+ra2lC0/mZ eTZzJGSEGCHpNlye77mddooH3dZAmbmhGfHIAUNzPJzPWe0Ch1Yg4JR3ZJgiIz8QB2gSy/CwKyK oZM83+8+atu088NokYAPwSujVioRVNap84586kLxMKzMgGVt X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Add gpio-keys device, responsible for a single button: Volume Up. Signed-off-by: Dmitry Baryshkov --- .../boot/dts/qcom/msm8998-lenovo-miix-630.dts | 25 ++++++++++++++++++++++ 1 file changed, 25 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 f585bc8ba2ce..bca309ac0cb8 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts +++ b/arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts @@ -3,12 +3,27 @@ /dts-v1/; +#include #include "msm8998-clamshell.dtsi" / { model = "Lenovo Miix 630"; compatible = "lenovo,miix-630", "qcom,msm8998"; chassis-type = "convertible"; + + gpio-keys { + compatible = "gpio-keys"; + autorepeat; + + pinctrl-names = "default"; + pinctrl-0 = <&vol_up_pin_a>; + + key-vol-up { + label = "Volume Up"; + linux,code = ; + gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>; + }; + }; }; &blsp1_i2c5 { @@ -45,6 +60,16 @@ keyboard@3a { }; }; +&pm8998_gpios { + vol_up_pin_a: vol-up-active-state { + pins = "gpio6"; + function = "normal"; + input-enable; + bias-pull-up; + qcom,drive-strength = ; + }; +}; + &remoteproc_adsp { firmware-name = "qcom/msm8998/LENOVO/81F1/qcadsp8998.mbn"; status = "okay"; From patchwork Mon Jul 22 11:57:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13738771 Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 8892F16D4D8 for ; Mon, 22 Jul 2024 11:57:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721649463; cv=none; b=p3omO2gZ9Vj1i8O9ssX2w1as1/WUghan3RXpvHIeQsePeFUNm48ZQxGma6SFYMKWVXn+yu7QSNyV8uvwbygvpWppqY9+vsF6EqXztTE+JvF6c/TSd96qHLt83TSRrVM00u4IK7hoFaeg4GD7vRHI8ehkfJsX56uULmKtDs95IaI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721649463; c=relaxed/simple; bh=TVA5iDz4vhPZfTCtMOCIDSxjofuZeK4umEsrUAFB8fI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ax/k7z9njLSmgIjkacSz5APGRT2N6/NkpZF99MTLLFa43aSV5WAiiHNDf3/crhl6CHfyjcSUTxJD/jll3k2YeC5SIoFmUuElrolk7Q+3KOXZVp4kmEqiz9DCtPmitgL5jORh9oXe7ZYrTF9bA/NyC7EuWmxmZMpEKcEiKZ9wDFA= 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=aArrBnZo; arc=none smtp.client-ip=209.85.208.181 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="aArrBnZo" Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2eecd2c6432so61836651fa.3 for ; Mon, 22 Jul 2024 04:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721649460; x=1722254260; 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=ADJBSEjOH+Qk6LiwSQ4vw+VA93bzd1Yz6Ubhzq0lJlU=; b=aArrBnZoc1hpFiyPJ0sKxiJZarj28yPP25KzfFkgmsXsh7IsmJYrM+IszK1RKZYr+o AzScIyoqe4vUpNQrk9vzD8Y6hmNpFqgRbCipEeV2m1RzDu4Q1XLhOqxG2m7QM1uYx2s9 6OEPZ+wZsL1EZtr3pxkeIQLiImC4vjC8Db/hM5eYQ6MIKc/uUac9UHMT+UNnW0xpouQD 6v/pdPM1b/rBmel23QmD3Ybai1I9FlP5s9e3ow+LUyy7yvX30eFTYr44ZvuTNIVEVO0d aYjFtl5U63EHwXFL4p6a/A+pshIEmgnoqFRL/2QmqjiaFa1LYPRBfuATi3JoTKUvrkzM OJcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721649460; x=1722254260; 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=ADJBSEjOH+Qk6LiwSQ4vw+VA93bzd1Yz6Ubhzq0lJlU=; b=qAsyna3A5l4JDJMRLbkm40a4R2NbcoxQQ40A6lMUMqdWQYeeGDTzUkXYd6GW8mHl31 HC1SiZOmDfZ8sJrSYltjH2wiLCF4Rtxs+T3M4F2dm1cRnZrL5co1hVFG0SzhZwwEzgWV AztpcPnAqPf6cnA6wO8ycljd5fIqTpbyJChPMfpvGPTSpfuCmsnWY7hhn3YyIQe24jcN iR85ykJ3xqqy/TsQ7+YO1HFGXYBS2mRTThfBGoAxLO9pFS9PZtu5lNTiyRnFF+QKm0nj G057TnTT4jT/L+jheXr5HD5fhfk1wpC3M6Mdu23yw/XcCNwujXLwS7sPHZjXTkvj/Lxj zJ9Q== X-Forwarded-Encrypted: i=1; AJvYcCVw1lYUZJ8qctY8yaeFQdtcUoJY0v0Jr9xWJVrd4AmfFkpnlolHvlJ1YLn5RHwbA09mPXdAcSrK5k2ua/6Sn79V3EzxZ2M0I+jNEYZ/DQ== X-Gm-Message-State: AOJu0YxWQOMQYYehVpO1YlpvsmqlCPv+GIhGVfcgMtL/HiMlV6TEgc3y 3vH5jJQJAq8436zmFobbGaZ2k240kJ5gww3sDcg+dVHVfxRJmFwi40uiZ9673TQ= X-Google-Smtp-Source: AGHT+IEF/cdIHk+JfiILx4OtjTwZodyr63Ix2pmkn+A9wQKQP7lJ7NSN1iMBgU1bHdBbjmiiUtO4sQ== X-Received: by 2002:a2e:90d1:0:b0:2ef:32bb:5368 with SMTP id 38308e7fff4ca-2ef32bb5806mr17916891fa.11.1721649459847; Mon, 22 Jul 2024 04:57:39 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 04:57:39 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 22 Jul 2024 14:57:21 +0300 Subject: [PATCH 4/4] arm64: dts: qcom: msm8998-clamshell: enable resin/VolDown 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-4-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=681; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=TVA5iDz4vhPZfTCtMOCIDSxjofuZeK4umEsrUAFB8fI=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmnkkv3DVObavWjjq7QKMiHR4ZVNZYQ6EJmzq29 wKJoKJB7aKJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZp5JLwAKCRCLPIo+Aiko 1fgLB/492GA0uy+LDnhQKSnMLTFxskDg+jgojfvRoyWutBEPmV6xKy9NuMNwBbyu9q5qdyi1n81 zyCoh49Zop0GWEzQk4V906ZPFdzdMkxASp7n0l9vBo+QD3n5ynGT1mKPq8fcWlAdaM7AhxQf/8n EH/eSOsfq6cbtjzzR47ihhvbj5TBGTe+8YDEzw6E45pes0ifteOb4JrfvwuuqP0F5f7GsXkxpfD 1bEiGQnfvPvAX4jd8GK3pOOi3d8pBiJsYbYrL/iOB4hWsY53EOo4Sodf8jTSoH4N40AjaoPs3w/ hyQ9ipEu7cEUNAbDhuwtwmvTdRfC0Fle69R2mB2dY3REFkDO X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Let resin device generate the VolumeDown key. Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi b/arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi index 3b7172aa4037..75958c4013b4 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi @@ -128,6 +128,11 @@ pm8005_s1: s1 { /* VDD_GFX supply */ }; }; +&pm8998_resin { + linux,code = ; + status = "okay"; +}; + &qusb2phy { status = "okay";