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 24596C27C76 for ; Sun, 22 Jan 2023 15:21:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7C27E85698; Sun, 22 Jan 2023 16:21:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (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=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qxZ+V+Ca"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 555CA856A2; Sun, 22 Jan 2023 16:21:38 +0100 (CET) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (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 0DD67850CC for ; Sun, 22 Jan 2023 16:21:36 +0100 (CET) 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-ed1-x531.google.com with SMTP id v30so11871168edb.9 for ; Sun, 22 Jan 2023 07:21:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7iMsC0IgI2lFmBymMOMMZhTuzRE7UJAtp7dflI4lruQ=; b=qxZ+V+CaWlSD80TXNoiJ/LCAmU1X2LxADCLlODtpGvqfhFqBio2hnoQPseO41fERkp MHJ86nwqcSzTNhJiZ5LSmRSJKn6SQRbn+jsB4BXETZuwxeXCjjQabfbTY2xs0eQXCMZl LurZiK/p7+5WAciLVw5T+S+sQmmrGcAA5dTOMoM3Voth1jmGVPkN947d7dKvnGrz4/8i 0Ix79pKlbXyUyAXGazh4LLmdP3iFPpgyr/0llL/xEFGBHaCHuB3UvR6oojNcDtl1ObMT r7NfHwWdDmMTwrIm5e1UnuPTO7OMMuxqyvQWl6xiPA4d69tDgx4IsV3T9rI6L8nB092f PUKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7iMsC0IgI2lFmBymMOMMZhTuzRE7UJAtp7dflI4lruQ=; b=qq8Wyl9AnqmSKXR3QVOX5OKPTLf/u+uaMpV7EPE3i2+kwbg+RUn3eVoQFV3k7UXJ0R XnwLWORnqe+L2081bmBiTsuAXMQjxK0pQNVe++d605lDSbB7oVt659bQSQAnfv9UKF5t G1FcaeahlH3i7uLyqIYcK1/5Q5XJ9zAh8yD5VqoHnyHgOvTcuyXK0kFxZE6iPMdmWLGR iltAeby3t2bcpST82IWpfx1fphnFARIIYqrn65wzZjrGDDk1/XqRH+kGZocrsy525O75 U4FAvlopCgCjTL9F30ExAc3L6juuysANKVnOO05UByzPo0sewDr+DOSCg1fG92a/pesz naHQ== X-Gm-Message-State: AFqh2kqDDvocykocxRwpZbqdBJON0b3Fx0L8L8ILgh7eG/CtHFjkdQ98 0Iom2JavUGI3smtmMvRSHr1CxJSELok= X-Google-Smtp-Source: AMrXdXslnXUjPhQg5wtYNkjVhRZCIwtlBj/dN7bYok02UVa2EkvfbUlV7AX3VNJyGILbnNq6prna4w== X-Received: by 2002:a05:6402:3883:b0:49e:a121:e560 with SMTP id fd3-20020a056402388300b0049ea121e560mr10538702edb.27.1674400895318; Sun, 22 Jan 2023 07:21:35 -0800 (PST) Received: from localhost.localdomain ([46.216.42.4]) by smtp.googlemail.com with ESMTPSA id a8-20020aa7d908000000b0049dfd6bdc25sm11190075edr.84.2023.01.22.07.21.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Jan 2023 07:21:34 -0800 (PST) From: Dzmitry Sankouski To: u-boot@lists.denx.de Cc: Dzmitry Sankouski Subject: [PATCH v3 0/5] dm: input: driver for buttons with linux, code declaration Date: Sun, 22 Jan 2023 18:21:20 +0300 Message-Id: <20230122152125.858085-1-dsankouski@gmail.com> X-Mailer: git-send-email 2.30.2 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.6 at phobos.denx.de X-Virus-Status: Clean Bootmenu requires an input device with arrows and enter key. A common smartphone luckily has power, volume up/down buttons, which may be used for controlling bootmenu. Button keyboard driver relies on button driver - iterates over all button with linux,code, checks state and sends events. Add support for linux,code in button driver. Fix qcom pwr-key gpio driver to work with button driver. Dzmitry Sankouski (5): gpio: qcom: add direction functions for pwrkey dts: add missing linux,code in gpio-keys test: create dedicated fdt node for ofnode_for_each_prop test dm: button: add support for linux_code in button-gpio.c driver dm: input: add button_kbd driver arch/arm/dts/am3517-evm-ui.dtsi | 2 +- .../dts/imx6ul-phytec-segin-peb-eval-01.dtsi | 2 +- arch/arm/dts/rk3288-popmetal.dtsi | 2 + arch/arm/dts/rk3288-tinker.dtsi | 2 + arch/sandbox/dts/sandbox.dtsi | 4 + arch/sandbox/dts/test.dts | 16 +++ drivers/button/button-gpio.c | 17 ++- drivers/button/button-uclass.c | 10 ++ drivers/gpio/qcom_pmic_gpio.c | 16 +++ drivers/input/Kconfig | 9 ++ drivers/input/Makefile | 1 + drivers/input/button_kbd.c | 126 ++++++++++++++++++ include/button.h | 16 +++ test/dm/button.c | 13 ++ test/dm/ofnode.c | 2 +- 15 files changed, 234 insertions(+), 4 deletions(-) create mode 100644 drivers/input/button_kbd.c -- 2.30.2