From patchwork Fri Nov 4 10:57:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1699460 X-Patchwork-Delegate: sbabic@denx.de 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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=20210112 header.b=UG0IRdYK; dkim-atps=neutral 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 ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4N3czm6BGsz23lK for ; Fri, 4 Nov 2022 21:58:10 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 950FA851A0; Fri, 4 Nov 2022 11:57:58 +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=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="UG0IRdYK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0261D851E4; Fri, 4 Nov 2022 11:57:56 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) (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 7B8F484BD8 for ; Fri, 4 Nov 2022 11:57:52 +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=festevam@gmail.com Received: by mail-ot1-x329.google.com with SMTP id cn2-20020a056830658200b0066c74617e3dso2467564otb.2 for ; Fri, 04 Nov 2022 03:57:52 -0700 (PDT) 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=M2/wCLttKaP0DCOq7R80ekEQj8Qfcfiz5bOVwQ2C7Kc=; b=UG0IRdYKokLXJNpdvxhhoYKnp1JO6mL42SL8/KMKEODgQ61fF+YDNksYecX+wayWfj DVjh/py9Qwv6u5qyWM0dS2e4cKcdXVpSadDJB2rFoXME54QI7O70waYYfejoJTrBD4CR 2Z8QPgrcf+wfvA0iAhEuEw8jOwvsm0ljsgYGeg583aPYnwhWba0IVA7NsnT69KYBzS7I nPskGCMtzKR0eHaeLYXHTJs/A3++UvhPjEPgQD542oXIiUhx8h1nzrlp2IjfBKnpf9yr kFj3Jyazcn9fmEtrivvB12D51g3SQzJ2jmcaffwd4VOJbfFpJLM/2hoVJLmLtDeMPKqf Yvag== 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=M2/wCLttKaP0DCOq7R80ekEQj8Qfcfiz5bOVwQ2C7Kc=; b=OnisKcwfAfriqBfNL4EZLuteZ5sBQ/Le0HfrV1xQa093dJV7p+6wYOFSgLEGTXxZ96 yrnLwTeWrUQ54F1qpY46h0LNyBe6C6s7eq6fORb05bZ/9nOR9j9pzltLuyMm/NWaEH6g UvZm3UfBwCxKBZVCfLe2ig1Rw84tRN8ksP+6WLZfZDIgJeWVtXNWepOAMX8jhzZoPkIp 8M1aS+bJehnUX7WUAg+jGijstP3TCUBpptTcy9cexC8GvA+kN6rJ+btRLi3QBcgbPokP XHm6aRLikYDvBjHgo3uJmikzid7MONmjaUwB8IS+xNjb1j7uGt8U1BrW5mhxLwmgz3Ht Wdng== X-Gm-Message-State: ACrzQf2zn2podZakWEDdgsP7FPGR27LDhduYt/ZJJa2dpJIv+YmXCAt8 PJ72/Yy8AXRMrxt/9kZekpU= X-Google-Smtp-Source: AMsMyM7MxlSHIOooyPBF/ezLyH5NNO17oupi/cIYG8ayh6sMmur+GYGBI0hOyPTx0XWTBrHEZncUyw== X-Received: by 2002:a05:6830:2901:b0:66c:3305:4ced with SMTP id z1-20020a056830290100b0066c33054cedmr16490003otu.300.1667559470959; Fri, 04 Nov 2022 03:57:50 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:485:4b69:c60a:5410:da59:aea3]) by smtp.gmail.com with ESMTPSA id i9-20020a4ac509000000b0049e9fbf1615sm966576ooq.48.2022.11.04.03.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 03:57:50 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Cc: u-boot@lists.denx.de, marcel.ziswiler@toradex.com, Fabio Estevam Subject: [PATCH] wandboard: Pass mmc aliases Date: Fri, 4 Nov 2022 07:57:32 -0300 Message-Id: <20221104105733.657133-1-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 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.6 at phobos.denx.de X-Virus-Status: Clean From: Fabio Estevam Originally, the mmc aliases node was present in imx6qdl-wandboard.dtsi. After the sync with Linux in commit d0399a46e7cd ("imx6dl/imx6qdl: synchronise device trees with linux"), the aliases node is gone as the upstream version does not have it. This causes a regression in which the SD card cannot be found anymore: Since commit the aliases node has been removed U-Boot 2022.10-00999-gcca41ed3d63f-dirty (Nov 03 2022 - 22:07:38 -0300) CPU: Freescale i.MX6QP rev1.0 at 792 MHz Reset cause: POR DRAM: 2 GiB Core: 62 devices, 17 uclasses, devicetree: separate PMIC: PFUZE100 ID=0x10 MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2 Loading Environment from MMC... MMC: no card present *** Warning - No block device, using default environment Fix it by passing the alias node in the u-boot.dtsi file to restore the original behaviour where the SD card (esdhc3) was mapped to mmc0. Fixes: d0399a46e7cd ("imx6dl/imx6qdl: synchronise device trees with linux") Signed-off-by: Fabio Estevam --- arch/arm/dts/imx6dl-wandboard-revd1-u-boot.dtsi | 1 + arch/arm/dts/imx6q-wandboard-revd1-u-boot.dtsi | 1 + arch/arm/dts/imx6qdl-wandboard-u-boot.dtsi | 9 +++++++++ arch/arm/dts/imx6qp-wandboard-revd1-u-boot.dtsi | 1 + 4 files changed, 12 insertions(+) create mode 100644 arch/arm/dts/imx6dl-wandboard-revd1-u-boot.dtsi create mode 100644 arch/arm/dts/imx6q-wandboard-revd1-u-boot.dtsi create mode 100644 arch/arm/dts/imx6qdl-wandboard-u-boot.dtsi create mode 100644 arch/arm/dts/imx6qp-wandboard-revd1-u-boot.dtsi diff --git a/arch/arm/dts/imx6dl-wandboard-revd1-u-boot.dtsi b/arch/arm/dts/imx6dl-wandboard-revd1-u-boot.dtsi new file mode 100644 index 000000000000..6785db754b79 --- /dev/null +++ b/arch/arm/dts/imx6dl-wandboard-revd1-u-boot.dtsi @@ -0,0 +1 @@ +#include "imx6qdl-wandboard-u-boot.dtsi" diff --git a/arch/arm/dts/imx6q-wandboard-revd1-u-boot.dtsi b/arch/arm/dts/imx6q-wandboard-revd1-u-boot.dtsi new file mode 100644 index 000000000000..6785db754b79 --- /dev/null +++ b/arch/arm/dts/imx6q-wandboard-revd1-u-boot.dtsi @@ -0,0 +1 @@ +#include "imx6qdl-wandboard-u-boot.dtsi" diff --git a/arch/arm/dts/imx6qdl-wandboard-u-boot.dtsi b/arch/arm/dts/imx6qdl-wandboard-u-boot.dtsi new file mode 100644 index 000000000000..46c4b3b31f4a --- /dev/null +++ b/arch/arm/dts/imx6qdl-wandboard-u-boot.dtsi @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include "imx6qdl-u-boot.dtsi" + +/ { + aliases { + mmc0 = &usdhc3; + }; +}; diff --git a/arch/arm/dts/imx6qp-wandboard-revd1-u-boot.dtsi b/arch/arm/dts/imx6qp-wandboard-revd1-u-boot.dtsi new file mode 100644 index 000000000000..6785db754b79 --- /dev/null +++ b/arch/arm/dts/imx6qp-wandboard-revd1-u-boot.dtsi @@ -0,0 +1 @@ +#include "imx6qdl-wandboard-u-boot.dtsi" From patchwork Fri Nov 4 10:57:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1699461 X-Patchwork-Delegate: sbabic@denx.de 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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=20210112 header.b=N+d/zq5R; dkim-atps=neutral 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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4N3d001Zy9z23lK for ; Fri, 4 Nov 2022 21:58:24 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9B3D1851D7; Fri, 4 Nov 2022 11:58:04 +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=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="N+d/zq5R"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F1C0C84BD8; Fri, 4 Nov 2022 11:57:57 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oo1-xc33.google.com (mail-oo1-xc33.google.com [IPv6:2607:f8b0:4864:20::c33]) (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 7E97A83F4E for ; Fri, 4 Nov 2022 11:57:54 +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=festevam@gmail.com Received: by mail-oo1-xc33.google.com with SMTP id e11-20020a4ab14b000000b0049be568062bso617850ooo.4 for ; Fri, 04 Nov 2022 03:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=/cZ5U105YlIF9P7e6cRwcDmxQYaMm082M28KjlkLLGw=; b=N+d/zq5R181xyoki7FcOWpAjaNKKJrlyQL2Pz86643L/eiLYYo4PBx5iA2EAnIF9Vw bQ9oJsRJb6h+KWHLoinOMLNBbL7WbmT3GRcKx0maO1RtCnnvkVVdZeQEg2S0Ovlmkf9N frJr2DvCbUEu3yhN0vGnpE4mcT07JPog//wJOieLm3SWpa9gPECKM+ldWP5aZ8tWhM1T BPAU/+Uh6DncIoUA79ii7EvSQ5a+qt4r2BKlhXcWo/cLz3+HzIKoDgSxqr5TMXcNTqjv ow7O8F/xBx4GGyEblqRRsC682p9ce4N00AtVK6eJt/viQamExs5Qrpwko5KMDqS9aa57 WcfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=/cZ5U105YlIF9P7e6cRwcDmxQYaMm082M28KjlkLLGw=; b=TwsFhdwZQRgsfuIi2vOH/WFfzJw9TyPwu+LRZn5wTYAZHyhlwz5uSPowxeuWgM5fVx lZH5yNMtiNSFG8x9GysDci3zN+uwLnUwIkaO9YpEmmcYoMJ9Ryj0F7qRIAsxTbH5b5gV IFu4pKZQVza+AG6nPG4sDZmdREYgPrsQFjNQ7uH0QfZg6a7WEvxMOpHM//kKJ2LZY/9X eANBkHAdLUHf+X+DJHWMzjBQ27QNrjZ5Z0gmd++LtGYdy1lun4T6z42JqK1TX6tdRmbD 1HD/X4Km8UkT3uZJPukkwOnJEua7yGidV+m1DNVOY6JEpnntNLEgA7UWv/pDkLfkFpQO Lcsg== X-Gm-Message-State: ACrzQf3+aol7owvLsA1h5mxtjoFnoG/AOsCCz/IuDVdEAOc0VjkfB4By Z8hElIT6DH5OSqT/sixciGw= X-Google-Smtp-Source: AMsMyM5GtjpM6JWYRye0eILhEO/T0hFbW5/TCAGEmxjnrUDjJrfgOkvGjlhtAnwEGRS5jPG5ClWR1A== X-Received: by 2002:a4a:b14d:0:b0:480:fd94:1317 with SMTP id e13-20020a4ab14d000000b00480fd941317mr14945703ooo.54.1667559473083; Fri, 04 Nov 2022 03:57:53 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:485:4b69:c60a:5410:da59:aea3]) by smtp.gmail.com with ESMTPSA id i9-20020a4ac509000000b0049e9fbf1615sm966576ooq.48.2022.11.04.03.57.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 03:57:52 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Cc: u-boot@lists.denx.de, marcel.ziswiler@toradex.com, Fabio Estevam Subject: [PATCH 2/2] wandboard: Select DM_SERIAL Date: Fri, 4 Nov 2022 07:57:33 -0300 Message-Id: <20221104105733.657133-2-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221104105733.657133-1-festevam@gmail.com> References: <20221104105733.657133-1-festevam@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.6 at phobos.denx.de X-Virus-Status: Clean From: Fabio Estevam The conversion to DM_SERIAL is mandatory, so select this option. Signed-off-by: Fabio Estevam --- configs/wandboard_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/wandboard_defconfig b/configs/wandboard_defconfig index 70b4cf9ffaa3..33d9db56e1cb 100644 --- a/configs/wandboard_defconfig +++ b/configs/wandboard_defconfig @@ -72,6 +72,7 @@ CONFIG_PINCTRL_IMX6=y CONFIG_DM_PMIC=y CONFIG_DM_PMIC_PFUZE100=y CONFIG_DM_SCSI=y +CONFIG_DM_SERIAL=y CONFIG_MXC_UART=y CONFIG_DM_THERMAL=y CONFIG_USB=y