From patchwork Sun Feb 14 01:49:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1440255 X-Patchwork-Delegate: sbabic@denx.de 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; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=YWhLxDWG; 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DdVZ05gmMz9s1l for ; Sun, 14 Feb 2021 12:50:48 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C9115826DF; Sun, 14 Feb 2021 02:50:39 +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="YWhLxDWG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3D35F826B2; Sun, 14 Feb 2021 02:50:22 +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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (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 BCF498006D for ; Sun, 14 Feb 2021 02:50:15 +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-qt1-x834.google.com with SMTP id d3so2570567qtr.10 for ; Sat, 13 Feb 2021 17:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RWqCalVTcNKlN58lmRCSnXO6MdFE5CBEv631LLBkqqI=; b=YWhLxDWGPU9D7BFYxtBH4kqI9LTzgUO/CEN7yBh5PPYqe/JSztN7C8nXcsgdfJfwsL L88ArxXUe28bU/CbkcZ8xM1I1MymwPSDkm5GwrqiYTgFRD/cJoTVLL0zXaKoWcIK1ssU mY/m+6rNhgvMittYA1Vxh3hsq8wfKv1hosqoskDvvT7nZ3P2cPgkvPsWQtg2VUcCL65b xTpt64VkWTW4Gl2uKMgr5LI3qJ3nL2sKBwgjkWgcc4BEyb8qi/ZB/bMv5ThzQpexBXeI /GsZIGroZj81gP6KX2/Zuj5CVzrF/t7snvjMeyfyVy8dWNG6TmWYMysrsQYz3C/D0M2w 3UpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RWqCalVTcNKlN58lmRCSnXO6MdFE5CBEv631LLBkqqI=; b=sCSJmNwS9QvEkp0wEW2/NdOXouBzbv8iyAQa0Uepa1zs5UrrotJ8FZtTzbCcsVF4gi l85WQYUpbZAPG+AekWSjEZi+tMagMpKiuDlAsty7gKH58ln7+wkRCNRKcGmX84D2tPm+ nAEb+s/FbNhg2lyeZB19DRnqfV053bzgIcolbJEl3Typt7xmwLKI6yo4plVjUB/K0jj5 4a1AEkV44MRJYZWBmFpz/8Nteyi+w4P2eOIBzOGFz8mGjWkGX5gmzUQhbvNXDHosLwl7 0vcdU59IVWYMBEcsmUo9t/Ro7/QqVrQPmXhud8rvKYZYEpOfAil2h8YXACUX8B/tOj7g 6jhw== X-Gm-Message-State: AOAM533CU/l78VaDLYJdCVvpdaSS7qw+soZs1Iq4JvbGVwSBZN5oMOTk 9KTBYFecnBjjsVHnKhpkTZg= X-Google-Smtp-Source: ABdhPJyWwNwlPsH1wIZftrxnw/hZwhq76byTKyrVxYJljQSHFaDo1N1/6euV+HcQkmqND/kU5vvADw== X-Received: by 2002:ac8:5dc9:: with SMTP id e9mr9198444qtx.108.1613267414719; Sat, 13 Feb 2021 17:50:14 -0800 (PST) Received: from localhost.localdomain ([2804:14c:482:919:5dac:e1d:54d6:d4bc]) by smtp.gmail.com with ESMTPSA id y35sm8501911qtd.10.2021.02.13.17.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Feb 2021 17:50:14 -0800 (PST) From: Fabio Estevam To: sbabic@denx.de Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, jason.hui.liu@nxp.com, trini@konsulko.com, Fabio Estevam Subject: [PATCH 3/4] ARM: dts: imx53-qsb: Describe the esdhc1 card detect pin Date: Sat, 13 Feb 2021 22:49:53 -0300 Message-Id: <20210214014954.151566-3-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210214014954.151566-1-festevam@gmail.com> References: <20210214014954.151566-1-festevam@gmail.com> 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 The micro SD card slot uses GPIO3_13 as card detect pin, so describe it in the devicetree. This was noticed when converting imx53-qsb board to driver model in U-Boot as the micro SD card was not getting detected. After this change it is possible to load the dtb and zImage from the SD card and boot Linux. Signed-off-by: Fabio Estevam --- This patch has been sent to the kernel list: http://lists.infradead.org/pipermail/linux-arm-kernel/2021-February/639236.html arch/arm/dts/imx53-qsb-common.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/imx53-qsb-common.dtsi b/arch/arm/dts/imx53-qsb-common.dtsi index 9b4efcd82636..fe4244044a0f 100644 --- a/arch/arm/dts/imx53-qsb-common.dtsi +++ b/arch/arm/dts/imx53-qsb-common.dtsi @@ -142,6 +142,7 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; + cd-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>; status = "okay"; }; @@ -209,6 +210,7 @@ MX53_PAD_SD1_DATA3__ESDHC1_DAT3 0x1d5 MX53_PAD_SD1_CMD__ESDHC1_CMD 0x1d5 MX53_PAD_SD1_CLK__ESDHC1_CLK 0x1d5 + MX53_PAD_EIM_DA13__GPIO3_13 0xe4 >; };