From patchwork Fri May 19 08:15:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 100170 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp202166qge; Fri, 19 May 2017 01:19:57 -0700 (PDT) X-Received: by 10.98.200.23 with SMTP id z23mr9279061pff.18.1495181997791; Fri, 19 May 2017 01:19:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495181997; cv=none; d=google.com; s=arc-20160816; b=BFcnVEGBpxGeIToF38PTjKZF9hVxl+LFYLE54JN38QiZRXCnSraysV1JDIMMRrgL3J 5uT7sVD9lOpQe/HC4l5OhVOGa3TI50ARpbLf9/jyMerRSX/ghYc6YAXG6sdxm4pdWQSA XN80TvMBCcSqTqdWl1IiztJU5Y6ix/4Ha3M5af9d9PGL+WeyGNEOB769YdyIc4RCb9NT D/8f98G4atlqUlXa73PV2kSWWMhl6zvoANMO0BCQJVD6qSTs4kUGTrHn45vOQu3WAkmM DFrUPqZfAHa4Yp5pt6TcMIWSmormaj0EUhwe42lKxJ2Yv9XtY1dAdi+M4Wfr8gpVKZxK Kw2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=wCFKHo1j0JLsGFHHPCC6f9IEbaoFcO0YsuZyHDwtl6s=; b=pMm6Yi5nFQQDZDKbd2upEmXlu7d9H9i1himuYujgvHOkzPvBz39jvSVWDKZ43EBcHq ko7GDnfggecvBhm092fgrr7w1xvO6C1k7b2M7FVbuBkJsaPBPZQ2bBsL+m2DPbUsp+bU 9eWKTFX63jzxs8qxPvu2UsQKGpr7Ux7xEqq+Sz7tZ1DDcO1vdOq3umBoQSJJbas/Sh+V C2YHLkObzGTITbR0QKVsNV2sY9ZktdIDLqgH6kMgMJJ0rfbZVjWeqtkQcJFpFVW7vfu/ nfdD468BUSJonPoKi41Z4PoeteGbupBPnkDR5H97SlFuKZmsyt+exiaQv6goh2QEfAWN OGWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j80si7677271pfk.390.2017.05.19.01.19.57; Fri, 19 May 2017 01:19:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755413AbdESITh (ORCPT + 25 others); Fri, 19 May 2017 04:19:37 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:10427 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753420AbdESITa (ORCPT ); Fri, 19 May 2017 04:19:30 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v4J8IFOb018359; Fri, 19 May 2017 03:18:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1495181895; bh=JkIPIdadfStjwV/JSetfeOJQ8qyJtpxjR7LantI2dl8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=q7v0KXxTHZ1+dIUbgfnISn6p2MZhWqLZ46lSIM0av7ZvGuwOVnv9e9w2dAtflAMM0 MrbTUmYHG6SYKcBX/t4AsTuWneFkBuwK9O1m/cCHf32azqgT1AOE1lsAaLnEOIT71/ F8zAfdFRQcaDgKkzVZ3FFySbkh+ueB6U7UL/UynE= Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v4J8IFwl029827; Fri, 19 May 2017 03:18:15 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Fri, 19 May 2017 03:18:14 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v4J8FfQe009185; Fri, 19 May 2017 03:18:11 -0500 From: Kishon Vijay Abraham I To: Ulf Hansson , Rob Herring , Tony Lindgren CC: , , , , , , Jonathan Corbet , Mark Rutland , Russell King , , Subject: [PATCH 33/41] ARM: dts: dra7: Add "max-frequency" property to MMC dt nodes Date: Fri, 19 May 2017 13:45:33 +0530 Message-ID: <20170519081541.26753-34-kishon@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170519081541.26753-1-kishon@ti.com> References: <20170519081541.26753-1-kishon@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add "max-frequency" property to MMC dt nodes and set the maximum frequency to 192MHz for MMC1/MMC2, 64MHz for MMC3 and 192MHz for MMC4. pdata quirks must be utilized to detect presence of rev 1.1/1.0 of silicon and adjust maximum frequencies as per restrictions documented in i843. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/dra7.dtsi | 5 +++++ 1 file changed, 5 insertions(+) -- 2.11.0 diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index 5a262e1a0313..38fb1828e26a 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -1045,6 +1045,7 @@ dma-names = "tx", "rx"; status = "disabled"; pbias-supply = <&pbias_mmc_reg>; + max-frequency = <192000000>; }; mmc2: mmc@480b4000 { @@ -1056,6 +1057,7 @@ dmas = <&sdma_xbar 47>, <&sdma_xbar 48>; dma-names = "tx", "rx"; status = "disabled"; + max-frequency = <192000000>; }; mmc3: mmc@480ad000 { @@ -1067,6 +1069,8 @@ dmas = <&sdma_xbar 77>, <&sdma_xbar 78>; dma-names = "tx", "rx"; status = "disabled"; + /* Errata i887 limits max-frequency of MMC3 to 64 MHz */ + max-frequency = <64000000>; }; mmc4: mmc@480d1000 { @@ -1078,6 +1082,7 @@ dmas = <&sdma_xbar 57>, <&sdma_xbar 58>; dma-names = "tx", "rx"; status = "disabled"; + max-frequency = <192000000>; }; mmu0_dsp1: mmu@40d01000 {