From patchwork Wed Aug 5 23:09:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Smedegaard X-Patchwork-Id: 1341450 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jones.dk Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BMS4k6QP1z9sPC for ; Thu, 6 Aug 2020 09:09:40 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 91DA382165; Thu, 6 Aug 2020 01:09:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jones.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id ACC5D8216F; Thu, 6 Aug 2020 01:09:27 +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.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from jawa.homebase.dk (jawa.homebase.dk [94.18.231.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D1DF981F7C for ; Thu, 6 Aug 2020 01:09:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jones.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dr@jones.dk Received: from localhost (localhost [127.0.0.1]) by jawa.homebase.dk (Postfix) with ESMTP id 88FC0282; Thu, 6 Aug 2020 01:09:22 +0200 (CEST) Received: from jawa.homebase.dk ([127.0.0.1]) by localhost (jawa.homebase.dk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id NTr_ZGAVfcG8; Thu, 6 Aug 2020 01:09:19 +0200 (CEST) Received: from localhost (87.104.3.163.static.fibianet.dk [87.104.3.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: auryn-smtp) by jawa.homebase.dk (Postfix) with ESMTPSA id 85421279; Thu, 6 Aug 2020 01:09:19 +0200 (CEST) From: Jonas Smedegaard To: u-boot@lists.denx.de Cc: Vasily Khoruzhick , Jonas Smedegaard , Tom Rini , Icenowy Zheng Subject: [PATCH] sun50i: a64: A64-Teres-I board detect builtin keyboard Date: Thu, 6 Aug 2020 01:09:12 +0200 Message-Id: <20200805230912.3511313-1-dr@jones.dk> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean A64-Teres-I board is a laptop which comes with a builtin keyboard. The keyboard+trackpad controller pauses for 2 seconds at a firmware prompt before loading its HID interface. U-Boot needs to wait equally long to reliably enable the keyboard. Signed-off-by: Jonas Smedegaard Reviewed-by: Tom Rini Series-Cc: Jagan Teki Series-Cc: Lukasz Majewski Series-Cc: Andre Przywara --- Changes in v6: - (none - reduced to single patch, after patch 1 of 2 got applied) Changes in v5: - after delay do usb start (not usb reset) Changes in v4: - (none) Changes in v3: - (none) Changes in v2: - (none) --- configs/teres_i_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/teres_i_defconfig b/configs/teres_i_defconfig index 1eba20e5f5..ee07f86f64 100644 --- a/configs/teres_i_defconfig +++ b/configs/teres_i_defconfig @@ -7,6 +7,7 @@ CONFIG_DRAM_ZQ=3881949 CONFIG_MMC_SUNXI_SLOT_EXTRA=2 CONFIG_USB1_VBUS_PIN="PL7" CONFIG_I2C0_ENABLE=y +CONFIG_PREBOOT="setenv usb_pgood_delay 2000; usb start" CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-teres-i" CONFIG_DM_REGULATOR=y CONFIG_DM_REGULATOR_FIXED=y