Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp73294lqb; Fri, 15 Mar 2024 15:54:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRopqyRn+6gXAD7Y1Gia9hoQBNqVQwZ+2yozIgchu6g+FcNNuKJw0A5R7iuuMlL1I6H1eBEm65mTyljAoKrsSlJ5qs8tbzxSOXSNAgBg== X-Google-Smtp-Source: AGHT+IE3jvmmT+mDcWfF2wK9LtFsG3EkGmJkAQ/nQN6y7yKHHmPyMxiIABahHtRwFpo8RzoQKfDt X-Received: by 2002:a17:903:25c2:b0:1dd:d88f:c79b with SMTP id jc2-20020a17090325c200b001ddd88fc79bmr3971967plb.49.1710543276723; Fri, 15 Mar 2024 15:54:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710543276; cv=pass; d=google.com; s=arc-20160816; b=u5E9qYLgRveTW/2tO5ZfISpya/rJqLKrgklopgcxDTZI4dE9XimyGbTI71ob4LnZKu 8wFhwaI9cW4CYIq+iauJFsjKCEV6/1KRXfJqCAoxEDuVNQQw0ystT5OjyCp56FzHImfW LFh1+bYET2ZS5lNhaPIwJBz6LrEEL1j3/i9ylLZZ5bL7XfEqF9gtob5AGqcCVVmpvokM j+yloC4a73xlWGyZHoZf+N1ALafvrRJDlM1SsVJabz/dyyqYlNXCbg7A3aJQt4FSoof1 eigQLedV1hO3S8C4D9JFmT2eqyaWAkD7dioTJDqJkJzVPBNHVE4EPhGoizN18DGDEyQG /k5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=BffdgIC9VwE8nkcnGF1pRjS9hTsQXpAKbIIJIWsqqjY=; fh=T3G0a3oRp96eob1DWWQ2QhiSPNYgfVp7yGVjms/3BtE=; b=zwDG3EvomfR7dCwJ9d4wAZdOpW1307wvX6xZAi51Fc3RGyE6oiZt9yVH7RvgrsPq30 76Aw0c4U3cO/ODojCGgjRsJu0ff5XNsM8z37cYAGJm3XHhvVNLemD8t6jRiPxS7gqqlY iCOKsw7jcU9QEusfIK2RPg7lZJHTPLcHp4DUTAsq/LgBPWaC5RG51NzzcCd/1DKOychs jZOKfPXHt6fHZ9JIrw+GdZhoLHL9bCJ92tmz8tniHC60qvfrqeS3gBXfzBAm3jYxyAIE cke0UNgrupe+vlnH4EUYOn2FKvA4yzAAZyZfF+qGBZDCi4cIXwOil6CZNN7xeVHpP5AP Y/DA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sraa.de); spf=pass (google.com: domain of linux-kernel+bounces-104972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104972-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lm8-20020a170903298800b001dd772f0246si4377829plb.169.2024.03.15.15.54.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 15:54:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sraa.de); spf=pass (google.com: domain of linux-kernel+bounces-104972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104972-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7E650B21265 for ; Fri, 15 Mar 2024 22:54:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5BB15A103; Fri, 15 Mar 2024 22:54:24 +0000 (UTC) Received: from sraa.de (sraa.de [85.214.240.192]) (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 508A05786D; Fri, 15 Mar 2024 22:54:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.240.192 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710543264; cv=none; b=UJFxCvKDZF0ssapCL3Cu82KCGDgi2N6yDga8LBeXGzVNe613+ffqJDgas9RXTh/aTbtwgTVhut2Fa5JxL3++gZhxp+6GBnNpCG5S8XQLMjYpCl3taQTwpleqUlMT2gRByOghVRporIkzIqGqic3g6pZ9FGeX91bD7P7zn1v6Y4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710543264; c=relaxed/simple; bh=6hR05NJk+lMVNR9EfuXcSOG743yQJzWU6Wr45bCwm/0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=logEDm5CdaS3iBeagUuyWVRV6KOxxgr3IPCMOyyKZUmMn2tX402rUo/+262KVimw3SRz2dO/ZvQnEpWSajX/znt3ZwO7AI4u/Cyv7ig0l6Unt60yq4lPQOMmqjpgHGnrn3e+41PKx97w0fGfVoDZR4Omj9w3/5h4xXy7XWkx6uQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sraa.de; spf=pass smtp.mailfrom=sraa.de; arc=none smtp.client-ip=85.214.240.192 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sraa.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sraa.de Received: from c-bda170d5.017-30-6c756e3.bbcust.telenor.se ([213.112.161.189] helo=senor0lunlx0336.fritz.box) by sraa.de with esmtpa (Exim 4.94.2) (envelope-from ) id 1rlGRG-006eh0-AX; Fri, 15 Mar 2024 23:54:09 +0100 From: Sebastian Raase To: linux@sraa.de Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: msm8998-yoshino: fix volume-up key Date: Fri, 15 Mar 2024 23:52:29 +0100 Message-ID: <20240315225237.1616550-1-linux@sraa.de> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: basti@sraa.de The volume-up key is connected to gpio6 on yoshino. Fix button node ordering while at it. Disable pm8998_resin, since it is now unused. Tested on maple and lilac. Fixes: 390883af89d2e ("arm64: dts: qcom: msm8998: Introduce support for Sony Yoshino platform") Signed-off-by: Sebastian Raase --- .../dts/qcom/msm8998-sony-xperia-yoshino.dtsi | 44 +++++++++++-------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino.dtsi b/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino.dtsi index 876c6921ddf0..fdd3953938d9 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino.dtsi @@ -98,30 +98,35 @@ extcon_usb: extcon-usb { gpio-keys { compatible = "gpio-keys"; label = "Side buttons"; + pinctrl-0 = <&focus_n &snapshot_n &vol_down_n &vol_up_n>; pinctrl-names = "default"; - pinctrl-0 = <&vol_down_n &focus_n &snapshot_n>; - button-vol-down { - label = "Volume Down"; - gpios = <&pm8998_gpios 5 GPIO_ACTIVE_LOW>; - linux,input-type = ; - linux,code = ; - wakeup-source; + button-camera-focus { + label = "Camera Focus"; + gpios = <&pm8998_gpios 8 GPIO_ACTIVE_LOW>; + linux,code = ; debounce-interval = <15>; }; button-camera-snapshot { label = "Camera Snapshot"; gpios = <&pm8998_gpios 7 GPIO_ACTIVE_LOW>; - linux,input-type = ; linux,code = ; debounce-interval = <15>; }; - button-camera-focus { - label = "Camera Focus"; - gpios = <&pm8998_gpios 8 GPIO_ACTIVE_LOW>; - linux,input-type = ; - linux,code = ; + button-vol-down { + label = "Volume Down"; + gpios = <&pm8998_gpios 5 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; + + button-vol-up { + label = "Volume Up"; + gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; debounce-interval = <15>; }; }; @@ -345,6 +350,14 @@ vol_down_n: vol-down-n-state { qcom,drive-strength = ; }; + vol_up_n: vol-up-n-state { + pins = "gpio6"; + function = PMIC_GPIO_FUNC_NORMAL; + bias-pull-up; + input-enable; + qcom,drive-strength = ; + }; + focus_n: focus-n-state { pins = "gpio7"; function = PMIC_GPIO_FUNC_NORMAL; @@ -405,11 +418,6 @@ vib_ldo_en: vib-ldo-en-state { }; }; -&pm8998_resin { - linux,code = ; - status = "okay"; -}; - &qusb2phy { status = "okay"; -- 2.42.0