From patchwork Thu Apr 13 06:00:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 1768330 X-Patchwork-Delegate: twarren@nvidia.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=JEJ5CXzF; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PxpqJ3XzNz1yXv for ; Thu, 13 Apr 2023 16:01:16 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1826E85AEC; Thu, 13 Apr 2023 08:00:56 +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="JEJ5CXzF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B937085DA9; Thu, 13 Apr 2023 08:00:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) (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 A3044859B4 for ; Thu, 13 Apr 2023 08:00:46 +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=clamor95@gmail.com Received: by mail-lf1-x136.google.com with SMTP id a23so18179016lfk.4 for ; Wed, 12 Apr 2023 23:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681365646; x=1683957646; 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=ST5qRdKktW3HR3GzmI5qrgSRR8zWS09YeqKKywDUdKM=; b=JEJ5CXzF20NPp75FAGFszGFpf/5C0inpHMmeNUiG+8MODFP8JTHw16I5qK37O4YhWI Q/sNdywJaLcXeXFQmjxhgBic7AdnbERyldVw32Y8t6YT8LRfYvRikXKfDW4qbZkq4YFT 50L526x91vzUBfmapwnVnfvN2fGoYqJVUG2lyInWtqxUgYW7wPxEbwEtWihwrCl8iRg6 hEF3dKhNe/qb1KDr+gTyX2Wa51R9H7UReaIxieVIzg8Xos1GRgf8Jt9oTKJOjWYtF/dq HZLiIy2Tx87B8s3iZHaMLofYoKUcvojtbRg6pYpn6E8wJtXM9UP9lVJbzE7McAD05BA2 vqHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681365646; x=1683957646; 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=ST5qRdKktW3HR3GzmI5qrgSRR8zWS09YeqKKywDUdKM=; b=FQs6/aoiv1oOoHCrhdXnfEjLUEEONmWrbl1vhVgftVmIY6BIaiVCNfHe6O6CtC2v8O WE+0gmS1MtzVu8/uMmlo7jKZjr5dQfaiU66oHFWkth5TxHgFbpZXYOkzjSBdM6PbCw86 qsXERzoNZa4WEraZX/eYYUurBGw0JaaK3+idtGDZ9PHMc7H6kBnfzukKGNJGY51ymTi7 ogT0T8djkB66qGQRvv+bi79c0ghCBZ2TQkDn8L199LsqXf7W0acA+eJfHCqjp6uwYLfM 2rHKok+VuG+Q80uN1TA8zDKt134NoUKifBOHwJIc0dTpyRwr+/uLiNR1xWq1TR0Gjk3y Wj2g== X-Gm-Message-State: AAQBX9eiAWip3eCeo9lZOLBfClH09YtYPuI2eyEl0YpZRIb0KT51IGTP nKZ59eEYJaDD9UAldpmJdUM= X-Google-Smtp-Source: AKy350aoiJ2g4vUtVADyMziVzfBFW1fI8QUJN9o98gLHVb7ueisN4TYfL8LIhqdodUPfvy2WAHFCgQ== X-Received: by 2002:ac2:5487:0:b0:4e9:d378:ef99 with SMTP id t7-20020ac25487000000b004e9d378ef99mr500543lfk.47.1681365645617; Wed, 12 Apr 2023 23:00:45 -0700 (PDT) Received: from xeon.. ([188.163.112.59]) by smtp.gmail.com with ESMTPSA id d1-20020ac25441000000b004e1b880ba20sm150829lfn.292.2023.04.12.23.00.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 23:00:45 -0700 (PDT) From: Svyatoslav Ryhel To: Tom Warren , Svyatoslav Ryhel , Marek Vasut , Philippe Reynes , Marcel Ziswiler , Fabio Estevam , Simon Glass , =?utf-8?q?Jonas_Schw=C3=B6bel?= Cc: u-boot@lists.denx.de Subject: [PATCH v2 1/4] configs: tegra-common-post: add GPIO keyboard as STDIN device Date: Thu, 13 Apr 2023 09:00:23 +0300 Message-Id: <20230413060026.30823-2-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230413060026.30823-1-clamor95@gmail.com> References: <20230413060026.30823-1-clamor95@gmail.com> MIME-Version: 1.0 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 GPIO keyboard is used on many newly upstreamed devices. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Svyatoslav Ryhel --- include/configs/tegra-common-post.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h index 991ffbb7df..2d5095639a 100644 --- a/include/configs/tegra-common-post.h +++ b/include/configs/tegra-common-post.h @@ -35,6 +35,12 @@ #define STDIN_KBD_USB "" #endif +#ifdef CONFIG_BUTTON_KEYBOARD +#define STDIN_BTN_KBD ",button-kbd" +#else +#define STDIN_BTN_KBD "" +#endif + #ifdef CONFIG_VIDEO #define STDOUT_VIDEO ",vidconsole" #else @@ -48,7 +54,7 @@ #endif #define TEGRA_DEVICE_SETTINGS \ - "stdin=serial" STDIN_KBD_KBC STDIN_KBD_USB STDOUT_CROS_EC "\0" \ + "stdin=serial" STDIN_KBD_KBC STDIN_KBD_USB STDOUT_CROS_EC STDIN_BTN_KBD "\0" \ "stdout=serial" STDOUT_VIDEO "\0" \ "stderr=serial" STDOUT_VIDEO "\0" \ ""