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";