Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp640296pxb; Wed, 3 Mar 2021 11:28:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4EesZyUhBdJKL+iMxtidV/j9gI+5OXD/SDNSPX5bmI7jAJyhXoRGgCZd6oqSu9befYCZn X-Received: by 2002:a17:906:2816:: with SMTP id r22mr406024ejc.2.1614799683110; Wed, 03 Mar 2021 11:28:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614799683; cv=none; d=google.com; s=arc-20160816; b=AaaTpeSmZ2tTSIlvwBMGpm5ZABfuA1OZgarzmAS+RKugN19yItnwJiRMtLwzgtLuBd KI9fmPkvDiukhH+Mib/hsctwsT7jOwOGGij/PxeOI200nJx0C+7M/SUXsvwTsjP/Y/Fp jeR/t5zrMhp5JTrWoUONWno4UiImyeF5Goo7Hw6oZM5UubYRh6eHEhqc6BlvA0lTGcn2 ySJlRsnrjDOjccx9ZkvIl3CIUIuvNDJA/5se8Rq7CJiglryu616D6dErEt7RhXiltLHV iNqOhpvNFXZvvJB8lpFHDpiRyc+jjhS7FPofcsvUj3zN0BjibF3xj9oH5hvPTd7spUpc GpfA== 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=Rm71OMt+/jXVsfzLJQm0fWPCIeDyBTPCCTcxh9SWUbQ=; b=eo3H4UFr5a2gCeQFU4RZv03o0Tnhs6PIjRvs5U74mkd8L2js+eujTOUUXS9xJCuaY2 pctvJb61SoWrPLmpMEqza0PQDUqMt9uWkI+uOpunYCdAzaFku+8u/cPSD79GjYUWdXts 6N5xTAcPpe84LpG1uJ+6nwR2KVEKfOwyWD74UsMLylDvQl4GIcyzz0ytSvXQ0yQm5LqA 6G5LQJZW01sl4J2CqePzCTovOq6C1PrPe4YpY7Ll+805Yd8ObOQu9f0zh5i4hl8x5aOG TlqEW/Ki10NVMaZ3aWjlfnt5sBi0ewlZ9Nh+VVp+7JL/Vj2rJGXo2QK1/F65YC9N7cx3 JcoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=J5lYnnU+; 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 q26si15468965eju.216.2021.03.03.11.26.50; Wed, 03 Mar 2021 11:28:03 -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=J5lYnnU+; 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 S240699AbhCBBWg (ORCPT + 99 others); Mon, 1 Mar 2021 20:22:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:37322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238149AbhCATGc (ORCPT ); Mon, 1 Mar 2021 14:06:32 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id BB65265155; Mon, 1 Mar 2021 17:05:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614618329; bh=DqM2pH+pp3EYn0WykQzwg4VeMSVqXuG96ODKO2Rk+xs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J5lYnnU+JggnZtgGa2yE398SWyOhhG2kERXTn5vZ1qY3tXVMgFbRgvd6wc3R7c0ug BYubUlxj+yWRDASGbCczoHW0p0nVRvWSemAuKq118o3fr9C3QPA0fStgeZbsru4jLw 46unJmpY0icOPX75TacI2xEg5HQCzqdqrCuVw4lw= 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 048/663] arm64: dts: allwinner: A64: Limit MMC2 bus frequency to 150 MHz Date: Mon, 1 Mar 2021 17:04:56 +0100 Message-Id: <20210301161144.149842583@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 948c657cc45e8ce48cb533d4e2106145fa765759 ] In contrast to the H6 (and later) manuals, the A64 datasheet does not specify any limitations in the maximum possible frequency for eMMC controllers. However experimentation has found that a 150 MHz limit similar to other SoCs and also the MMC0 and MMC1 controllers on the A64 seems to exist for the MMC2 controller. Limit the frequency for the MMC2 controller to 150 MHz in the SoC .dtsi. The Pinebook seems to be the an odd exception, since it apparently seems to work with 200 MHz as well, so overwrite this in its board .dts file. Tested on a Pine64-LTS: 200 MHz HS-200 fails, 150 MHz HS-200 works. Fixes: 22be992faea7 ("arm64: allwinner: a64: Increase the MMC max frequency") Signed-off-by: Andre Przywara Acked-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard Link: https://lore.kernel.org/r/20210113152630.28810-7-andre.przywara@arm.com Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts | 1 + arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts index d07cf05549c32..7ae16541d14f5 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts @@ -167,6 +167,7 @@ pinctrl-0 = <&mmc2_pins>, <&mmc2_ds_pin>; vmmc-supply = <®_dcdc1>; vqmmc-supply = <®_eldo1>; + max-frequency = <200000000>; bus-width = <8>; non-removable; cap-mmc-hw-reset; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 15f6408e73a27..7a41015a9ce59 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -514,7 +514,7 @@ resets = <&ccu RST_BUS_MMC2>; reset-names = "ahb"; interrupts = ; - max-frequency = <200000000>; + max-frequency = <150000000>; status = "disabled"; #address-cells = <1>; #size-cells = <0>; -- 2.27.0