Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1333281pxb; Wed, 10 Feb 2021 06:12:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJziWFzdWyAUFjYrurmyyZErSlqoBDOlSS7uI3+9cDwX85IGiOTo2SV/Y4YuDX50mWbOfvL1 X-Received: by 2002:a17:906:1fd3:: with SMTP id e19mr3106330ejt.446.1612966330255; Wed, 10 Feb 2021 06:12:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612966330; cv=none; d=google.com; s=arc-20160816; b=nngDrGh6ghBs6MYBgDXn+cRYCz/ErXjoUqj7iNSplUMALtSe+Sgmq2XniphBC/rp2R KVwr90aGQithvKl+dUTeDjQW5ZifN8XDxeImTOax6LwTxXdu2dZ7rkOuyJ0YzQtlX+mz J7D2h+NcO3rujVgXdCNcJIYzLWD2+9/lqhswseDWFioK9kXHx1KnAhI75GpZRTqfksSs V7rSCDzrTaw0cr3O/P4IrNv7xjzG9P2+B1fh+R8nE3WDUAsxgnV0gOvH+ImqECbiOfTj 3GTFXyIdT63+WW3Y/vMZ4GsehVGWZ/lCci/yRxrvS30/Xenxl7La++FFuAZPUBb75In/ hYgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PWnnzGuk/ieIQSw2dLZPjY03chHqOhLoJqWbCzDUdbY=; b=zIk5hQdiB6XVQ5SRlgY6SM46xpF/FUtsp0yvTcrPzjii8+3RqpJ8pg0X6q7OrnNcCN ztlCOn4tgPzGAzeV7ne1R7bkM8d+WYsH7RJc21UB+7G5RpULdtB4bZ09l41gKxpKPh8/ 2ZHzsHvgwd4Jai7vqTEH7Qc84MgZY9zzdAWyqeSz9Rc8GR5Hi3iityBQ9JEWhty2RWN7 h3UcRaCg4Vnx2QPSac3kHZ4Hm5pdtFjD1EL/OnSGf/KcvdPcLC322UIyxznNTMLf4c9f YqU1Ef7v23Vla6GVcvqsxOakmW+eyb4jDFdJ5X8cU0iyAkv0ZjUVol855jtddL/LvF6D zVVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=cHHRItzh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i4si1383071edg.119.2021.02.10.06.11.46; Wed, 10 Feb 2021 06:12:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=cHHRItzh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231599AbhBJOLD (ORCPT + 99 others); Wed, 10 Feb 2021 09:11:03 -0500 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:20830 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231396AbhBJOKz (ORCPT ); Wed, 10 Feb 2021 09:10:55 -0500 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 11AE0OIr011326; Wed, 10 Feb 2021 06:10:04 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=PWnnzGuk/ieIQSw2dLZPjY03chHqOhLoJqWbCzDUdbY=; b=cHHRItzhU3ry59G5WG8+/Q42T/304ozlhLOoCwFye3P+Okorn6VIuF4xAWRE4N4A5Q++ liLFynWyAxJq+flG/sKFvSgQSzTAoQl9w4TvEFyPqBiwjKcLsp+FKDm5A7Jz3Q4uxrA0 JavTjXTddEJC2oviktAOJPsdNr1GP23HO1J4IRBGUcarZTn7Nm/EMb0NEzaPSedD1GJy A2SX8DGD/yHZLQnCF6jkN+YWYDA4CtPYnw+WUstlwRWNak4eP+8vxPOCnOcTK2pfCA/j UBC+z8lhZeFCtzZvhOVYoyLX/9KmUPHtvSUU9SyIdP5Z8zU82HiLk2jAl73oiHiydg9K EQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 36hugqbryv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 10 Feb 2021 06:10:04 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 10 Feb 2021 06:10:02 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 10 Feb 2021 06:10:02 -0800 Received: from octopus.marvell.com (octopus.marvell.com [10.5.24.3]) by maili.marvell.com (Postfix) with ESMTP id 8DC043F703F; Wed, 10 Feb 2021 06:09:59 -0800 (PST) From: To: , , CC: , , , , , , , , , , "Konstantin Porotchkin" Subject: [PATCH v2 02/12] dts: mvebu: Update A8K AP806/AP807 SDHCI settings Date: Wed, 10 Feb 2021 16:09:39 +0200 Message-ID: <20210210140949.32515-3-kostap@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210210140949.32515-1-kostap@marvell.com> References: <20210210140949.32515-1-kostap@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.737 definitions=2021-02-10_05:2021-02-10,2021-02-10 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Konstantin Porotchkin Select the AP SDHCI PHY slow mode for AP806 die only (move it from armada-ap80x.dtsi to armada-ap806.dtsi). This will allow running AP807 based devices at HS400 speed. Remove Ap SDHCI slow mode property from MacchiatoBin board DTS since it is already selected on the SoC level. Signed-off-by: Konstantin Porotchkin --- arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi | 5 ----- arch/arm64/boot/dts/marvell/armada-ap806.dtsi | 12 ++++++++++++ arch/arm64/boot/dts/marvell/armada-ap80x.dtsi | 1 - 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi index 73733b4126e2..69653de998e2 100644 --- a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi @@ -109,11 +109,6 @@ &ap_sdhci0 { bus-width = <8>; - /* - * Not stable in HS modes - phy needs "more calibration", so add - * the "slow-mode" and disable SDR104, SDR50 and DDR50 modes. - */ - marvell,xenon-phy-slow-mode; no-1-8-v; no-sd; no-sdio; diff --git a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi b/arch/arm64/boot/dts/marvell/armada-ap806.dtsi index 866628679ac7..828cd539173b 100644 --- a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-ap806.dtsi @@ -28,3 +28,15 @@ reg = <0x278 0xa30>; }; }; + +&ap_sdhci0 { + /* + * SoC based on AP806 revision A0, A1 and A2 should use slow mode + * settings for Ap SDHCI due to HW Erratum HWE-7296210 + * AP806 revesion B0 and later has this erratum fixed and the slow + * mode could be removed in board DTS: + * /delete-property/marvell,xenon-phy-slow-mode; + * Starting from B0 revision, the AP SDHCI can run with HS400 timing. + */ + marvell,xenon-phy-slow-mode; +}; diff --git a/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi b/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi index 12e477f1aeb9..edd6131a0587 100644 --- a/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi @@ -257,7 +257,6 @@ clock-names = "core"; clocks = <&ap_clk 4>; dma-coherent; - marvell,xenon-phy-slow-mode; status = "disabled"; }; -- 2.17.1