Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp494759pxb; Thu, 9 Sep 2021 05:50:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHx9C7TngRSm68IHp2p9U4h9qvNtomxuwAuSPM5mKneZxhKO7twgz/dgl/a4KFpZsY9KoJ X-Received: by 2002:a05:6638:168a:: with SMTP id f10mr2664688jat.121.1631191843278; Thu, 09 Sep 2021 05:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631191843; cv=none; d=google.com; s=arc-20160816; b=RE6bd1UafgYmh6R8YcSy+/POwzJOftu162ZV3Sks/uvW+PEesQk/9nG2Tu957XEAZM DCxqfh7jQdpvcMssOK31u6+QLGbC7st5V7naw2QmBwEeg1Oi1BMDzpr743FGOBiQw+/S JispAOC+wcc/dQBWj5FYwJlVSZAGLw+TID6sTYF8llXm5azEb2c/Vvs+F6GDzhrW687U S9YwG2cXfX+tC8AU4o7EykaLld/Fb/GBAq2o5BxSTkpT3u3WjRB+nkj1WhsTst6kgBGg I/+ncJCWIemsf3Cwog6UEUwKpgNv43CzSZrKqzZ0HrgC7mkLsm9jN9Syl9vpd82P8KRJ fapQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9HXC30lRGx6bT6o3uwPOwDrIqqVgUqoL4vPMqCeu1Sg=; b=daxlimrY7dGGz/0RBylteb7cBGGKGymrTiRLyK0a2qy8d31Shq5Wp1cCLX6gtFAcEn bCS2KKybr77tfiVm3uxyJ1QRCw/lvGCVHS/F8yuPTX+Cwzp/fpU4AI6DP2GVT3jMpqzX 0u1jg3++B5r72v+L1y8CC/NZ1P6Oz2lTTsaI0fyaSWx701F8NxYsapDxtqs46LqHSXye KefWBze89MCyazEm2Q0MZnRFBA8A3PZ1mGomddFsFZVB3GNUFvb4Ka8CE53bQtqNbuGu zWn+n8+jPvYbs2ICFEqFxtQwj0uFQD071STzIT5iab3xDaZmc7mmmTxKtrl61d3J3cGJ qXCQ== 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 m13si1789793ild.27.2021.09.09.05.50.28; Thu, 09 Sep 2021 05:50:43 -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 S1355851AbhIIMt5 (ORCPT + 99 others); Thu, 9 Sep 2021 08:49:57 -0400 Received: from relay03.th.seeweb.it ([5.144.164.164]:35511 "EHLO relay03.th.seeweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354797AbhIIMjj (ORCPT ); Thu, 9 Sep 2021 08:39:39 -0400 Received: from IcarusMOD.eternityproject.eu (unknown [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 024BB1FABE; Thu, 9 Sep 2021 14:38:24 +0200 (CEST) From: AngeloGioacchino Del Regno To: bjorn.andersson@linaro.org Cc: agross@kernel.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, konrad.dybcio@somainline.org, marijn.suijten@somainline.org, martin.botka@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, paul.bouchara@somainline.org, AngeloGioacchino Del Regno Subject: [PATCH v2 4/4] arm64: dts: qcom: msm8998-fxtec-pro1: Add tlmm keyboard keys Date: Thu, 9 Sep 2021 14:38:23 +0200 Message-Id: <20210909123823.368199-4-angelogioacchino.delregno@somainline.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210909123823.368199-1-angelogioacchino.delregno@somainline.org> References: <20210909123823.368199-1-angelogioacchino.delregno@somainline.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This device has a physical matrix keyboard, connected to a GPIO expander, for which there's still no support yet. Though, some of the keys are connected to the MSM8998 GPIOs and not as a matrix, so these can be added. Signed-off-by: AngeloGioacchino Del Regno --- .../boot/dts/qcom/msm8998-fxtec-pro1.dts | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts b/arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts index deabb00758e3..49705fe655ee 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts +++ b/arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts @@ -43,6 +43,62 @@ hall-sensor1 { }; }; + gpio-kb-extra-keys { + compatible = "gpio-keys"; + input-name = "extra-kb-keys"; + label = "Keyboard extra keys"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_kb_pins_extra>; + + home { + label = "Home"; + gpios = <&tlmm 21 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + linux,can-disable; + }; + + super-l { + label = "Super Left"; + gpios = <&tlmm 32 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + linux,can-disable; + }; + + super-r { + label = "Super Right"; + gpios = <&tlmm 33 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + linux,can-disable; + }; + + shift { + label = "Shift"; + gpios = <&tlmm 114 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + linux,can-disable; + }; + + ctrl { + label = "Ctrl"; + gpios = <&tlmm 128 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + linux,can-disable; + }; + + alt { + label = "Alt"; + gpios = <&tlmm 129 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + linux,can-disable; + }; + }; + gpio-keys { compatible = "gpio-keys"; input-name = "side-buttons"; @@ -205,6 +261,14 @@ mdp_vsync_n: mdp-vsync-n { drive-strength = <2>; }; + gpio_kb_pins_extra: gpio-kb-pins-extra { + pins = "gpio21", "gpio32", "gpio33", "gpio114", + "gpio128", "gpio129"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + ts_vio_default: ts-vio-def { pins = "gpio81"; function = "gpio"; -- 2.32.0