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 08A8AC6FA91 for ; Thu, 22 Sep 2022 11:44:10 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B9E6884CE5; Thu, 22 Sep 2022 13:44:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="M2dUFSy7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 508EC84CE6; Thu, 22 Sep 2022 13:44:06 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6729084CEB for ; Thu, 22 Sep 2022 13:44:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0EE75B835FF; Thu, 22 Sep 2022 11:44:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EDADC4347C; Thu, 22 Sep 2022 11:44:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663847040; bh=t8Ty6oJo+q3YiNaI8alBGEPyXAPj/sA1bTKSA0d3Qzo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M2dUFSy7XqHWkFHSeSejdSKHEBhyUZcDRGfi03ix/Kr1WUPrs3zJiwP7fZ4B+8tvX fjPRlxgAEyoyFSKU6TKXa1aQllAHjY3HGWx4WgYsV2ch+7Yo9ieXgxNbBdvW59/Cmi NSGtLNECdcZ/7mIXRpBS7BzTPI0lnSy1HhQmpOpXvi0KzughQT+xgZYXrRD8R0sceo 25aIqGax6UQnfg94AllRhjHbl/86ppVoDpQ841xbwQftMUTVRRfw+51NSu58QJKJlT BjJlU4xti9vmcL9cS+KyRsLSzZ55TiaE00RI6XUojMxHFb0n0x/9i+Z9+J4vSSHeEe xYFoAjE/K/7UQ== Received: by pali.im (Postfix) id 1B4A2F78; Thu, 22 Sep 2022 13:43:58 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese , =?UTF-8?q?Marek=20Beh=C3=BAn?= Cc: u-boot@lists.denx.de Subject: [PATCH 3/3] arm: mvebu: turris_omnia: Specify VHV gpio for eFUSE programming Date: Thu, 22 Sep 2022 13:43:46 +0200 Message-Id: <20220922114346.25495-4-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220922114346.25495-1-pali@kernel.org> References: <20220922114346.25495-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 VHV gpio is connected to MCU and only on updated board design. Without it eFUSE programming does not work. Omnia MCU driver exports this GPIO to U-Boot under name mcu_56 and only when it is supported by MCU. So U-Boot fuse command refuse eFUSE programming on older board design when VHV gpio is not available. We tested that Armada 385 without connected VHV gpio can do eFUSE programming but only for some bits and only sometimes - it is unstable. And better to be disabled on older board design without VHV gpio support. Signed-off-by: Pali Rohár --- configs/turris_omnia_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index ba635feb44b2..01dee5472200 100644 --- a/configs/turris_omnia_defconfig +++ b/configs/turris_omnia_defconfig @@ -10,6 +10,8 @@ CONFIG_NR_DRAM_BANKS=2 CONFIG_TARGET_TURRIS_OMNIA=y CONFIG_DDR_RESET_ON_TRAINING_FAILURE=y CONFIG_MVEBU_EFUSE=y +CONFIG_MVEBU_EFUSE_VHV_GPIO="mcu_56" +CONFIG_MVEBU_EFUSE_VHV_GPIO_ACTIVE_LOW=y CONFIG_ENV_SIZE=0x10000 CONFIG_ENV_OFFSET=0xF0000 CONFIG_ENV_SECT_SIZE=0x10000 -- 2.20.1