Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp687353pxj; Wed, 16 Jun 2021 11:13:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrO1V4OKIuzj6/KlMctCtGZumpxiVbvwYCA3l7NP9jHXHCY/uV+AT7VNw44Y23cSnx06We X-Received: by 2002:a17:906:eb88:: with SMTP id mh8mr822467ejb.540.1623867193304; Wed, 16 Jun 2021 11:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623867193; cv=none; d=google.com; s=arc-20160816; b=PQZbAmq59irEbzzc+aH4p3UqcHnCcoVSvqeRh6j6L8xhWnlvMgGRHBnX2eaVp+MfXV tBB8DeN2TojjqJGozP9ZfF4S3awVm8d0ClwjqVbDjr6HvpKiRkrqMWSzw/kggmi+eWGL uDpV2ay2ygt4cEF5B0wUsyicyPDMasEci5BmPYQ6vxfLiBMweyuqslsuAOAkmmRranbd HIscW3ZpX2+PYrlWy6dUSXXDzUc39bDR2m7MmypbUEQFLlVr0GVSSuhHg6sJCpIhAepg IMatX0f5/Q9WSspLP+4kVIAeiNlfIo1V5tr4Rqnxw75XPSpcBBYJiEfMeKfDlHOtB6Hc 8Rxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=6c7NcR2NBmjToydf55cBhsdp2zx/9AYYm67YldmpcJE=; b=c60TKyWt29hBVbYtz8m658lCPES/FZBffgI94mRYf8rftX5g0EgtrEBi+fP8m5QuGF VJEqpwsVCTujF5psZx3kAa+DsG0eIG0Uydb9LDA29c/R0UWGIa05ZKFiIHg2fCFX5h6J FD7Eu6r2nBcfLy63Cqph7tzOIaIzXFZ//tsB/EbJ9l3WAqvOX9bJ8see5p5cfdM6jb6w abXkN7q/nBAjlEPq0MNQOOC9hs0L4y5fOhZ0P9OTysZxtyj26mSZ49/tzJ21mdU/809a 0gXBRudyI5YDSNR3oz9jPEsOA8Cg3KNCtPddqFvjxJ3Bsh+p3Om9n2xniu+leC0V8Zxo w9jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n22si856723ejz.259.2021.06.16.11.12.49; Wed, 16 Jun 2021 11:13:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232858AbhFPM3W (ORCPT + 99 others); Wed, 16 Jun 2021 08:29:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230087AbhFPM3V (ORCPT ); Wed, 16 Jun 2021 08:29:21 -0400 Received: from relay02.th.seeweb.it (relay02.th.seeweb.it [IPv6:2001:4b7a:2000:18::163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6DAAC061574; Wed, 16 Jun 2021 05:27:14 -0700 (PDT) Received: from localhost.localdomain (83.6.168.10.neoplus.adsl.tpnet.pl [83.6.168.10]) by m-r1.th.seeweb.it (Postfix) with ESMTPA id 3787E1FC59; Wed, 16 Jun 2021 14:27:12 +0200 (CEST) From: Konrad Dybcio To: ~postmarketos/upstreaming@lists.sr.ht Cc: martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/6] arm64: dts: qcom: sm8250-edo: Add hardware keys Date: Wed, 16 Jun 2021 14:27:03 +0200 Message-Id: <20210616122708.144770-1-konrad.dybcio@somainline.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Volume Down, GAssist (pdx206 only) and camera keys live on PMIC pins, with the latter kind being broken for now.. Add these and PON-connected Volume Up & PWR. Signed-off-by: Konrad Dybcio --- .../qcom/sm8250-sony-xperia-edo-pdx206.dts | 11 +++++++ .../boot/dts/qcom/sm8250-sony-xperia-edo.dtsi | 30 +++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo-pdx206.dts b/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo-pdx206.dts index 999b662f4679..16c96e838534 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo-pdx206.dts +++ b/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo-pdx206.dts @@ -18,6 +18,17 @@ &framebuffer { stride = <(1080 * 4)>; }; +&gpio_keys { + g-assist-key { + label = "Google Assistant Key"; + linux,code = ; + gpios = <&pm8150_gpios 6 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + linux,can-disable; + gpio-key,wakeup; + }; +}; + &vreg_l2f_1p3 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; diff --git a/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi b/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi index 0db63eb08c60..52ed4b082bd7 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi @@ -47,6 +47,26 @@ framebuffer: framebuffer@9c000000 { }; }; + gpio_keys: gpio-keys { + compatible = "gpio-keys"; + + /* + * Camera focus (light press) and camera snapshot (full press) + * seem not to work properly.. Adding the former one stalls the CPU + * and the latter kills the volume down key for whatever reason. In any + * case, they are both on &pm8150b_gpios: camera focus(2), camera snapshot(1). + */ + + vol-down { + label = "Volume Down"; + linux,code = ; + gpios = <&pm8150_gpios 1 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + linux,can-disable; + gpio-key,wakeup; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; @@ -436,6 +456,16 @@ &i2c15 { /* Richwave RTC6226 FM Radio Receiver @ 64 */ }; +&pon_pwrkey { + status = "okay"; +}; + +&pon_resin { + status = "okay"; + + linux,code = ; +}; + &qupv3_id_0 { status = "okay"; }; -- 2.32.0