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 1BA2EC46467 for ; Wed, 11 Jan 2023 10:19:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 96DF08541F; Wed, 11 Jan 2023 11:19:42 +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="QNxozSQ3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 25F2385463; Wed, 11 Jan 2023 11:19:39 +0100 (CET) Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (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 9F8D3853EC for ; Wed, 11 Jan 2023 11:19: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-ej1-x629.google.com with SMTP id az20so16544414ejc.1 for ; Wed, 11 Jan 2023 02:19: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=rGNYasBzGy6x2js2dq9EKVccXSTJzEG7h/S1hsi8FfQ=; b=QNxozSQ31cyUJHKwM6v6zqSCytMYlGnGq9oPZZofkbBL8lVP69ecu4AVEQ3rdP6VyU RUGUCNtgGTN6RZR9UzqUemRdEH6IXdfT5p+U2gCvMYb6SdZiS/mxRGk7bF0mWjmUhA4i QUUozyrrOTuB7wgKDCNXPGAw9vJkcPnoj5dFSTfRxfTxvSz2sZIeCIdeHKpkUtetsir5 a7TaJ9iDi2yQMouZegPQaYUuMnS1fsOnyY8q3zp53gbyL0NQlWf/89B36cdkT/aTbR5Q dCEKsHhmyGmSygJ9y5F2PDW+XekVPctNhNw9ToCFmzXXJSdhj6OJn4s712OhkQA32nxa 2Hnw== 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=rGNYasBzGy6x2js2dq9EKVccXSTJzEG7h/S1hsi8FfQ=; b=CmKT1l8kYGP31TLN1zZQ3CA6kXTDd0ML7EBt2v7oD/I5jAn4YujhoFCdHB2OSlmMQQ YilmJnSs8xDHuqpcPJv6kbrNldhMZszGWWVQ/Ec6sf07E4+98jNft0ZqVsjcvIf2Rgry kP7l6hXo2QIgTZZ85+iWHh5suwfFsmjmgxlf/fLqiCxKO37iWjw3wNlMEt5wMTF6b1u1 4Qqs37CgcBWbU+WzWYfoneo8BVngiFbh+lxKsaMx1n6+bM2wERNo5KberpJFy5DpAoa6 ERcGzrsPx52/+E4Af99MkXI4FIQkNlLWDYtJXwVD0YeuZNa3UNa3LJYR+FZgpMoVhgb6 sOAA== X-Gm-Message-State: AFqh2kpDadJ5pVDr3TOhZyAeaqVgwlwJPKba2vyg0zFQ8Lt5ZtFvdOcC fn2+fPVwjm/8keJq+0XuGVYtA+2ZVVk= X-Google-Smtp-Source: AMrXdXuqnQd9Td1DIys3W30WhztkoThjtLMhDHr1chnd+K6+w65P2CjcwqAOqEdPAvk8eEE9zztWxQ== X-Received: by 2002:a17:907:c712:b0:7bd:6372:fdb4 with SMTP id ty18-20020a170907c71200b007bd6372fdb4mr83799917ejc.41.1673432375870; Wed, 11 Jan 2023 02:19:35 -0800 (PST) Received: from localhost.localdomain ([46.216.42.4]) by smtp.googlemail.com with ESMTPSA id w5-20020a50fa85000000b00491c819d6d2sm5903764edr.44.2023.01.11.02.19.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jan 2023 02:19:35 -0800 (PST) From: Dzmitry Sankouski To: u-boot@lists.denx.de Cc: Dzmitry Sankouski Subject: [PATCH 0/3] dm: input: driver for buttons with linux, code declaration Date: Wed, 11 Jan 2023 13:19:28 +0300 Message-Id: <20230111101931.342454-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 (3): gpio: qcom: add direction functions for pwrkey dm: button: add support for linux_code in button-gpio.c driver dm: input: add button_kbd driver drivers/button/button-gpio.c | 20 ++++++ drivers/button/button-uclass.c | 10 +++ drivers/gpio/qcom_pmic_gpio.c | 15 ++++ drivers/input/Kconfig | 9 +++ drivers/input/Makefile | 1 + drivers/input/button_kbd.c | 123 +++++++++++++++++++++++++++++++++ include/button.h | 16 +++++ 7 files changed, 194 insertions(+) create mode 100644 drivers/input/button_kbd.c -- 2.30.2