From patchwork Wed Jan 22 12:06:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1227205 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=pass (p=none dis=none) header.from=gmail.com 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=FS9Lg4PQ; 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) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 482kf86cK9z9sP6 for ; Wed, 22 Jan 2020 23:06:40 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CDDF6818C1; Wed, 22 Jan 2020 13:06:32 +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="FS9Lg4PQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 72009817BE; Wed, 22 Jan 2020 13:06:31 +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=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, SPF_HELO_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) (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 0664181776 for ; Wed, 22 Jan 2020 13:06:27 +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=linux.amoon@gmail.com Received: by mail-pl1-x642.google.com with SMTP id g6so2903548plp.6 for ; Wed, 22 Jan 2020 04:06:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=bNJkc0DRqOQUAZwb5/Ovox4UoqUc1nROkfZdgEwZmrM=; b=FS9Lg4PQdFUzHOK2nRf2rf4rDKo2Mwx/AzWVb+CB3SVWTOCYVUOSZqkaJdzubTWULV 9KPjefMfTrTHt5iYBmJM/BldFf/rCyeneUJwX3aCAp7h/5+z3Q7GvmzyXOY8lzP3+cYm Cyd90uj1HKHi8ePRSZwfJO6aMrxEToZS5a4a7VV/JnkvCml+RXMnvVEsOg++lJc68Xsw 4bryWaeSdEvQBDlvoIoEKoRr7Jidd4K8WvNQq2gF0Bw8W5a1lRm6GDmQMimHOcHAHBlm cDIa5+XtKko80JYBwlQ/ujIN248eO1PZ78KNuzMC7kleBd/DbEfh2bHwFm/C+Me0CLsp +7BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=bNJkc0DRqOQUAZwb5/Ovox4UoqUc1nROkfZdgEwZmrM=; b=E6F/kxVi0Iyj/1J+S5wvBSr9pw0A3ON+flRn/2iI34daDlVdKe5FifRtAsdpUkEii3 C2He6nGfQ8mkLEBrzjm6Bej8PwVMSGV/F4gqaIONfo5+eCsHhIDg6vvfo57S47oLWveZ KKlpYYxXG1IlHHowwvv9Xdpor6waph+2Ta8HxILvisR+rApNsSxgWXaqWIy/CP8BE4dE bZy0es+Z1OQCxfQGuASy2+O+80iucJ0cJXUUeavdKfKLZk7GUsSXhfIAIsIFsrTfkKwt JofzASaitP8FAu/GBqsZkbnGPHr5cVQCprRVI0LF+V9iEW4FDhjYT4ElnZfnb0YPdAdr bEAg== X-Gm-Message-State: APjAAAVd5RUbM2MJr5c3vdNTbpuXL+nTjIhudRAj5CJlvqioLZBDF2WV xG0ZYqEWop9boJNrLtdlbZ8= X-Google-Smtp-Source: APXvYqyJwKSqjwrcldRp9C8HQ7/EMcHQ7uC7qB5MHFqgy6GX9iZM//QWn40aOfqqbAjiUqPDA6WAlA== X-Received: by 2002:a17:902:7203:: with SMTP id ba3mr10302124plb.249.1579694786332; Wed, 22 Jan 2020 04:06:26 -0800 (PST) Received: from localhost.localdomain ([103.51.73.181]) by smtp.gmail.com with ESMTPSA id x33sm45164550pga.86.2020.01.22.04.06.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2020 04:06:25 -0800 (PST) From: Anand Moon To: Neil Armstrong , Jerome Brunet , Peng Fan , u-boot-amlogic@groups.io, u-boot@lists.denx.de Subject: [Patchv4 0/3] Odroid n2 using eMMC would fail to boot up Date: Wed, 22 Jan 2020 12:06:17 +0000 Message-Id: <20200122120620.8699-1-linux.amoon@gmail.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 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.101.4 at phobos.denx.de X-Virus-Status: Clean Here are some small changes to fix booting of Odroid N2 using eMMC. Fixed the clk tunnig during mmc initialization. Added two new patches to fix warning Build and tested on top of below patches [0] https://patchwork.ozlabs.org/patch/1213648/ [1] https://patchwork.ozlabs.org/patch/1213650/ Tested on below eMMC module on Odroid N2 and C2 new orange - eMMC AJNB4R 14.6 GiB MMC 5.1 old back - eMMC CGND3R 58.2 GiB MMC 5.0 Prevoius changes: Fixed the clk tuning as per mainline kernel [3]v1 https://patchwork.ozlabs.org/cover/1201206/ [4]v2 https://patchwork.ozlabs.org/cover/1215217/ [5]v3 https://www.mail-archive.com/u-boot@lists.denx.de/msg351859.html -Anand Anand Moon (3): mmc: meson-gx: Fix clk phase tuning for MMC arm: dts: Add mmc alias to avoid warning arm: dts: Add cd-gpio for eMMC arch/arm/dts/meson-axg-s400.dts | 2 + arch/arm/dts/meson-g12a-sei510.dts | 3 ++ arch/arm/dts/meson-g12a-u200.dts | 3 ++ arch/arm/dts/meson-g12b-odroid-n2.dts | 4 ++ arch/arm/dts/meson-gxbb-odroidc2.dts | 3 ++ arch/arm/dts/meson-gxbb-p20x.dtsi | 3 ++ arch/arm/dts/meson-gxl-s805x-libretech-ac.dts | 3 ++ arch/arm/dts/meson-gxl-s905x-p212.dtsi | 3 ++ arch/arm/dts/meson-gxm-khadas-vim2.dts | 3 ++ arch/arm/dts/meson-sm1-sei610.dts | 3 ++ arch/arm/include/asm/arch-meson/sd_emmc.h | 11 ++---- drivers/mmc/meson_gx_mmc.c | 38 ++++++++++++++++--- 12 files changed, 65 insertions(+), 14 deletions(-)