From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 05050C6FD1D for ; Sat, 1 Apr 2023 09:29:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 468AB85935; Sat, 1 Apr 2023 11:29:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="e4FMAy54"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6B40C85480; Sat, 1 Apr 2023 11:28:55 +0200 (CEST) Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C8B7F85801 for ; Sat, 1 Apr 2023 11:28:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dsankouski@gmail.com Received: by mail-wr1-x42c.google.com with SMTP id d17so24670620wrb.11 for ; Sat, 01 Apr 2023 02:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680341331; 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=KH+ZtXi9Z1dvj76i9RSyx3AgIcd1RfT/QXCXpRamBK4=; b=e4FMAy54XlMy7kJnMt2KNuo4W3JtlYe+gWw34n4G54cLBEclQV0zUe3ce5IM5u40hm ueemW4gvDHIw/iFoOsYRVYQmb9EttqJ07qsdnGpdV1Eshg4sfjeKl0PzsctcIB5wGS6U +DXUqjLAVfvmPfYvI7G9iOdwq8wgi8PjWCEbWIlSFPE2JlrX/ujoTUseIIxpad+7WSpd 6crGVBxAkXkXFq9BqRzqXTY5qvaaiSiOJjHUmsZUET14BumCIUIcvDswRd+JPINxZFVl VU2RqlhXCwrj8BUC9odBa8hcMSi96oLVJfilYabNi8vbnOH5biM0m3zCt3niBotJUphv xAzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680341331; 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=KH+ZtXi9Z1dvj76i9RSyx3AgIcd1RfT/QXCXpRamBK4=; b=JDiBUzOR8jjksOb9JhW03k0FcZHs4HrNTEZB06t8INK1D2Be7OzaMW0k9skw5O6cp+ hTOJdQsVmqM5v4knGpIqPKVkCdnwXvkr+9BAi9uZ3gDXZQvUpIYZmJHw6I01tpaMTEXC Fv0mjQ8DQv05sHzcd4GUxm80GVI16dnYIaBth5Q1Hxax8xco9XAh6SwuvuJA76jA5cgY RlcM5WznOUtJqAnM+I1v/QfrWmwmCSlRuF32H3X8wKfWmdiMZNrzMzxrYUfFlV4oNJVa CjlDa/qLfHtdU8+b9scQ66lvj3U7HMS6Gu/tAiunXBGYeWQRfpMZwlXYtsldBGPPDH/d +QqA== X-Gm-Message-State: AAQBX9dFey757d94Iezr7bG08yON6dN70OBztqHJXmXRudf13+qdY31N Z/BKhj1zEpuCFhiFtec76F2J+hywjWc= X-Google-Smtp-Source: AKy350ZA3pmZcpfx8mxR53QKIM7ISR1D2cot8Bumsnc+9P6B5zfvmi9ugCNt8ealFPgT8NK7anAo8g== X-Received: by 2002:a5d:66ca:0:b0:2d3:bde8:9ff with SMTP id k10-20020a5d66ca000000b002d3bde809ffmr24826331wrw.34.1680341330909; Sat, 01 Apr 2023 02:28:50 -0700 (PDT) Received: from localhost.localdomain ([46.216.17.104]) by smtp.googlemail.com with ESMTPSA id v8-20020a5d4a48000000b002c557f82e27sm4370977wrs.99.2023.04.01.02.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Apr 2023 02:28:50 -0700 (PDT) From: Dzmitry Sankouski To: u-boot@lists.denx.de Cc: Dzmitry Sankouski , Peng Fan , Ramon Fried , Simon Glass , Sumit Garg Subject: [PATCH 2/3] starqltechn: use button keyboard driver Date: Sat, 1 Apr 2023 12:28:43 +0300 Message-Id: <20230401092844.269532-3-dsankouski@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230401092844.269532-1-dsankouski@gmail.com> References: <20230401092844.269532-1-dsankouski@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Button keyboard driver used to navigate bootmenu entries. Add gpio buttons, button keyboard driver. Add gpio keys dts bindings. Signed-off-by: Dzmitry Sankouski --- arch/arm/dts/starqltechn.dts | 18 ++++++++++++++++++ configs/starqltechn_defconfig | 3 +++ include/configs/sdm845.h | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/starqltechn.dts b/arch/arm/dts/starqltechn.dts index 34a4f59cbd..6c90447362 100644 --- a/arch/arm/dts/starqltechn.dts +++ b/arch/arm/dts/starqltechn.dts @@ -9,6 +9,8 @@ /dts-v1/; #include "sdm845.dtsi" +#include +#include / { model = "Samsung S9 (SM-G9600)"; @@ -43,6 +45,22 @@ format = "a8r8g8b8"; }; + gpio-keys { + compatible = "gpio-keys"; + + key-pwr { + label = "Power"; + linux,code = ; + gpios = <&pm8998_pon 0 GPIO_ACTIVE_LOW>; + }; + + key-vol-down { + label = "Volume Down"; + linux,code = ; + gpios = <&pm8998_pon 1 GPIO_ACTIVE_LOW>; + }; + }; + soc: soc { serial@a84000 { status = "okay"; diff --git a/configs/starqltechn_defconfig b/configs/starqltechn_defconfig index 599d926058..92e7254c73 100644 --- a/configs/starqltechn_defconfig +++ b/configs/starqltechn_defconfig @@ -20,9 +20,12 @@ CONFIG_SYS_PBSIZE=532 CONFIG_CMD_GPIO=y CONFIG_CMD_BMP=y # CONFIG_NET is not set +CONFIG_BUTTON=y CONFIG_CLK=y CONFIG_MSM_GPIO=y CONFIG_QCOM_PMIC_GPIO=y +CONFIG_DM_KEYBOARD=y +CONFIG_BUTTON_KEYBOARD=y CONFIG_PINCTRL=y CONFIG_DM_PMIC=y CONFIG_PMIC_QCOM=y diff --git a/include/configs/sdm845.h b/include/configs/sdm845.h index 2211751b54..673268dca9 100644 --- a/include/configs/sdm845.h +++ b/include/configs/sdm845.h @@ -16,7 +16,7 @@ #define CFG_EXTRA_ENV_SETTINGS \ "bootm_size=0x4000000\0" \ "bootm_low=0x80000000\0" \ - "stdin=serial\0" \ + "stdin=serial,button-kbd\0" \ "stdout=serial,vidconsole\0" \ "stderr=serial,vidconsole\0" \ "preboot=source $prevbl_initrd_start_addr:prebootscript\0" \ -- 2.30.2