Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp501901pxb; Wed, 3 Mar 2021 08:22:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiyaM5uCJzvd5eSBAgcUHqGZpaBRQ4GRMvSLsZU8CSPAOYqgZdLN8bkN0xL/MHJgiAhWEy X-Received: by 2002:aa7:c850:: with SMTP id g16mr43147edt.324.1614788555345; Wed, 03 Mar 2021 08:22:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614788555; cv=none; d=google.com; s=arc-20160816; b=QeoNv6dG4Lg8E8JocpHl5x8tSdpRcY4kJXLOgLcoOO1S698CDIPHeCU21bLPayEU2b 4ivCowZdHindmWaqD9QzSKAPuiFYIfQ5HbyRZXdiePW9WOb8INaPGwl0mjGQZmSWlHCW nV0j0hBRB48nYTklqHeASmoUW8GJdECeHBkZFcYwIQG/6kW4nJO0vMy2lHGXLAdAEcyt 2y03T5aSWDyvPrjI5iQqiL5ockTKlFwrxLooMfdGb/cD0phPGTG0V55QTnM0PxqeyNEk R3axcCKimKtVf6Ka6kTXM3jzNhvqLhg/TeF725GpRApwZNcmfdzvTVXVM+mBoXGyuaKA abnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ev+qgwsUhfZ7F+pDfk98zFp4dWhoarSABBnVvaWR2eI=; b=wFmjPp232y6LsZOZ0YnmBah8lPiFi4fRvTH/uKbrrKLqy75bTAg2xzV6QfDCjVEyFU 6YjvXupb1nfg04aoN0Ew7ynbMwOSNmQ2qJrWl9zBTcIWMukohX+dI2x/AnzCrKC+np2u oyAoymJ7jcHUopF6Xs/HXiI7lgEDdTg5EJz0XiHRg/o0XGjsSCWAELT8Pf1I0gPLovdy iwKMpoes+uymYx8SK6FhCPCa7Du3UUbds1yeU3a+XGvFkHGRrNGz3DSTRzVEaV8GocaO MBew1z24xc78WY9CYqxhg59Iuxepf6RoVBT8xOU0vfBvtVJIvuXzVbd3Rrn2/MD5Xrcq cpnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=I2tyxFB5; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp13si14526694ejc.24.2021.03.03.08.21.21; Wed, 03 Mar 2021 08:22:35 -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=@linuxfoundation.org header.s=korg header.b=I2tyxFB5; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346906AbhCAXvF (ORCPT + 99 others); Mon, 1 Mar 2021 18:51:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:34308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239325AbhCASOS (ORCPT ); Mon, 1 Mar 2021 13:14:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D161865154; Mon, 1 Mar 2021 17:05:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614618326; bh=2ofTlYhRMrrJUBm1C8y0Nj+ZwYw0nakXxyN4FisWN2k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I2tyxFB5EImIk/Q/LTHQLP0B4N6JTSEqwBmD0Q7cbr2LOcxx1mIWM0gCZemzdoP9x q1O8yt4DGvBVjHk2uRApowM1/C5dh01z682FbTRt1mIUlxvOhqQMDTnhkaUwiK8iBl cjm66MtPdSHxAgZJC+NhgCDfg2kE+IexpTnjuRsw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andre Przywara , Chen-Yu Tsai , Maxime Ripard , Sasha Levin Subject: [PATCH 5.10 047/663] arm64: dts: allwinner: H6: Allow up to 150 MHz MMC bus frequency Date: Mon, 1 Mar 2021 17:04:55 +0100 Message-Id: <20210301161144.101195968@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andre Przywara [ Upstream commit cfe6c487b9a1abc6197714ec5605716a5428cf03 ] The H6 manual explicitly lists a frequency limit of 150 MHz for the bus frequency of the MMC controllers. So far we had no explicit limits in the DT, which limited eMMC to the spec defined frequencies, or whatever the driver defines (both Linux and FreeBSD use 52 MHz here). Put those maximum frequencies in the SoC .dtsi, to allow higher speed modes (which still would need to be explicitly enabled, per board). Tested with an eMMC using HS-200 on a Pine H64. Running at the spec'ed 200 MHz indeed fails with I/O errors, but 150 MHz seems to work stably. Fixes: 8f54bd1595b3 ("arm64: allwinner: h6: add device tree nodes for MMC controllers") Signed-off-by: Andre Przywara Acked-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard Link: https://lore.kernel.org/r/20210113152630.28810-6-andre.przywara@arm.com Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 0361f5f467093..4592fb7a6161d 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -436,6 +436,7 @@ interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins>; + max-frequency = <150000000>; status = "disabled"; #address-cells = <1>; #size-cells = <0>; @@ -452,6 +453,7 @@ interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins>; + max-frequency = <150000000>; status = "disabled"; #address-cells = <1>; #size-cells = <0>; @@ -468,6 +470,7 @@ interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&mmc2_pins>; + max-frequency = <150000000>; status = "disabled"; #address-cells = <1>; #size-cells = <0>; -- 2.27.0