Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp4961260rwp; Sun, 16 Jul 2023 15:31:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlHNrXckU2fp1i7QQSwXdabcNn+NV987zcIdI3fLA/WxDWNidntiXayE3qGjYloS+nCWAFZ/ X-Received: by 2002:a05:651c:2109:b0:2b7:34c0:a03a with SMTP id a9-20020a05651c210900b002b734c0a03amr3063169ljq.3.1689546680852; Sun, 16 Jul 2023 15:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689546680; cv=none; d=google.com; s=arc-20160816; b=NYFp7APze/rNfZ0WkyLF6Rj5nwgN6AUkIfPfK5z8/h8CwDMygW9sXkDu82aD9zmqor 6szxgn2fprxK0qQZfmjhygvfpwrbTi9Ll56WiKCdNCtIKCCKZwrpd7zb7KTCZWhGsdhz MoRbsfetxY+FOBhw6wM1S1jWFQ7+rP9W38xYy5/07SM320j9E+LB/5GdHyGoy4u4fT5w RyfYz9B13CIpwqLCL/A2X2VHmBe0R8Dppk+uDITSsqplmdXizREhWGHkEWeHuaal84MC FTjp4Cku0a2zbnFmDNsmDdsUCMmYieZLA2Dz70GvvlnCPjQQk6M53XFl68eAhlQKZMGQ ONTw== 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 :dkim-signature; bh=iHngaqCrQ0FneY3+XbEOWJuLApZy3bmRMZLz2KpBf1c=; fh=L9rkHmdJ2HM7CiSRaRHi0ZevkH/6O2DXN6Mple64bPs=; b=o5IGqGlpcvl2fyvdTlHcnQRyCYNiuQi7KFcWYvJO4psFKQQY2puEqZPMin89PrQQRB NOIrNkOe2/zYm3qydcN28lqbNUW0jTOo/+mjRjX3J5xwcn63wfDg9IdnNMUp1mDc99SA ri0p/K0FelZzKXW4/wr/VWfHzL7pmhZTM1dvD0UZJv4UQ2CIc91NNioe/AKgzR1atDSx OSgCo5rvaP8Tuh3IhpGtTi4mLroNWSaq1WMdPCmFPmbNsoVUmV5X9BMHRMQjPdSskJNL j7xuRBOm7c2InzhJsQ3/cyBbs5fFjkmUTUocUwnkREnxBHNoqCkqQ1iSO0Z+fw/nA8cq hhUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=L4GI92GU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t27-20020a1709063e5b00b0098f99532db4si12515630eji.664.2023.07.16.15.30.56; Sun, 16 Jul 2023 15:31:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=L4GI92GU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230303AbjGPWIS (ORCPT + 99 others); Sun, 16 Jul 2023 18:08:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231236AbjGPWIF (ORCPT ); Sun, 16 Jul 2023 18:08:05 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94D74DD; Sun, 16 Jul 2023 15:08:04 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2b9338e4695so16638801fa.2; Sun, 16 Jul 2023 15:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689545283; x=1692137283; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iHngaqCrQ0FneY3+XbEOWJuLApZy3bmRMZLz2KpBf1c=; b=L4GI92GU6vM/1ZQXffG1IjEVmcWipHn8WGI40hwXgxkf8kvrWinRd2GroRzEj2qN0c xBuxSiY1Fo8mrcc3Ter7T7tSiuqxQHX5YX3GklL3bCI6z8eN29/rOvtw/0oSzv+XHg5h kcHxTN/flFBRJAM/w0HDVncdHSz7snH42641QDKTt3fAW77sQxIFWU9z0jsaBPwflaQU 2l4lZT7TSpTBq2QWh6Zj2FOSTP3jJl+Q+tR0j1XizpLMSgk6Y55leg4xEcO3dx5sfvcx XzmTGx6+U/BmAfqSYorOSPLZVF1NNt5peOAZ7OGi84VK3SyNVSNgV2UXynPSsvnpEGc/ 5Rrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689545283; x=1692137283; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iHngaqCrQ0FneY3+XbEOWJuLApZy3bmRMZLz2KpBf1c=; b=OFsiVsZ8REL7LtpYRRvs/N97cz4Jx8vWrLS4drSj1z+6whtOhH4aCkg8yZfCxt4ATX AhSb2Rw5WFZwtBDV2/r08bnt1GsTKX023kQDYnYjYIS2OLxjeDXh+TZp9zX+H+FLAvmY AyMRI6aps6s1RKhIm8JyZ5demhycwCXekJZDKnWGy0V+oBBo2qznaem4lAAfXlZigisD bedbpDcBIHTfxCJUWcuQMAUGA8/srCPJOeDtMW5bDoLRSOQU1I57M8z5+Y6XDTU0+1G9 BomSVwOK5x0e8FoZcLZu90HjtMwFebYl3VEc2+PVqGnFsV4pkqS9/aewuKxexNJBBL/H SR3Q== X-Gm-Message-State: ABy/qLbX9b7BICOOdisSFMWh01tCM3HejIP60QIhzfWCsf9B9ZhZVEt2 ecNKY+aRBedutbL8jW+NwcI= X-Received: by 2002:a05:6512:340b:b0:4fb:9f24:bba9 with SMTP id i11-20020a056512340b00b004fb9f24bba9mr8627430lfr.5.1689545282702; Sun, 16 Jul 2023 15:08:02 -0700 (PDT) Received: from localhost.localdomain ([62.122.67.26]) by smtp.gmail.com with ESMTPSA id h24-20020a197018000000b004fb9c625b4asm2464091lfc.210.2023.07.16.15.08.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jul 2023 15:08:02 -0700 (PDT) From: Markuss Broks To: Krzysztof Kozlowski Cc: Markuss Broks , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/7] ARM: dts: exynos: k3g: Add GPIO keys support Date: Mon, 17 Jul 2023 01:05:04 +0300 Message-ID: <20230716220644.22158-4-markuss.broks@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230716220644.22158-1-markuss.broks@gmail.com> References: <20230716220644.22158-1-markuss.broks@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the four physical buttons support, volume buttons have external pull-up resistors. Signed-off-by: Markuss Broks --- arch/arm/boot/dts/exynos5422-samsung-k3g.dts | 60 ++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts index 1a11a6993ba7..c3e006dc34ea 100644 --- a/arch/arm/boot/dts/exynos5422-samsung-k3g.dts +++ b/arch/arm/boot/dts/exynos5422-samsung-k3g.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include +#include #include #include "exynos5800.dtsi" #include "exynos5422-cpus.dtsi" @@ -21,6 +22,45 @@ / { aliases { mmc0 = &mmc_0; + mmc1 = &mmc_1; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&power_gpio &volume_up_gpio &volume_down_gpio &home_gpio>; + + key-volume-up { + label = "Volume Up"; + gpios = <&gpx0 2 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + debounce-interval = <15>; + }; + + key-volume-down { + label = "Volume Down"; + gpios = <&gpx0 3 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + + key-home { + label = "Home"; + gpios = <&gpx0 5 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; + + key-power { + label = "Power"; + gpios = <&gpx2 2 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; }; memory@20000000 { @@ -641,6 +681,21 @@ &mmc_1 { }; &pinctrl_0 { + volume_up_gpio: volume-up-pins { + samsung,pins = "gpx0-2"; + samsung,pin-pud = ; /* External pull up */ + }; + + volume_down_gpio: volume-down-pins { + samsung,pins = "gpx0-3"; + samsung,pin-pud = ; /* External pull up */ + }; + + home_gpio: home-key-pins { + samsung,pins = "gpx0-5"; + samsung,pin-pud = ; + }; + s2mps11_irq: s2mps11-irq-pins { samsung,pins = "gpx0-7"; samsung,pin-function = ; @@ -653,6 +708,11 @@ touch_irq: touch-irq-pins { samsung,pin-pud = ; }; + power_gpio: power-key-pins { + samsung,pins = "gpx2-2"; + samsung,pin-pud = ; + }; + wlan_reset: wlan-reset { samsung,pins = "gpy7-7"; samsung,pin-pud = ; -- 2.41.0