From patchwork Wed Jun 7 09:37:47 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: 103227 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp1841917qgd; Wed, 7 Jun 2017 02:39:08 -0700 (PDT) X-Received: by 10.99.116.74 with SMTP id e10mr31458349pgn.149.1496828348800; Wed, 07 Jun 2017 02:39:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496828348; cv=none; d=google.com; s=arc-20160816; b=GzRF6qILTbshxo2vK48Gx0Mf7kmrTpDuRPreVFhruk2tnMWfYT4B1cRjpF9tIFLmIq s9iec6LKUkleFlCvGJQwWlFHqgjenADaJ3+hDInqxdVIl6lTG9l7l2z9DSF6PNvS2EbV Q2o51ic8veXbXOkf43OpVBZ+gKV82M3KlZ/TQ08BoK7kjqiDxxXGgRx///EdnRhPyhXX x1teP/P4n4RI5piokbU4l5cq86CvZIRkz0CuRoi8IvggtUKLwUgCqRCYu/9LVZ66j6K9 NEF48kUQLG6V+2un6x6ErXIjHSKfdvW8WS9KjK6kZbwc8MifBc7BOJjpg25KA+WH9vNP MdXA== 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=riTjMtpMxT9SzoLA7+ajOZdLrweJDcfZaNMNCSH0QrM=; b=lYtRJi0jMnUxEPZ9tidf511OD0ApCh/E8cdD+1zdAFnMBDtAUOgkHDtF6OpYQv7XUl jm+V2qxDc4degkGWMpIAZjoSRjqmciCqeOjOguRQOKbYWjx1IF04GX4LjZD9mfyC1G0Z pu0T4XJbUf1WNR2UQCTnEHrH0g7mtLiYZyyfegQBSNG0TaipViA24K5Zs+CZ5NOHHs35 6mSPETbS0V4SPVQyTaHEtzFHdwqb3bGeU6nN+yr3Wv7pJrMUIpSvGpY+c48Ecg72iDv8 8is3YK5lT/uB03I1LmOh9m5g2eX888FTCIaUpUzgHBPYPDo/6vuEsaoThJyud6Bc4QRl TT3Q== 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 91si1325022plb.204.2017.06.07.02.39.08; Wed, 07 Jun 2017 02:39:08 -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 S1751634AbdFGJix (ORCPT + 25 others); Wed, 7 Jun 2017 05:38:53 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:30469 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751600AbdFGJiv (ORCPT ); Wed, 7 Jun 2017 05:38:51 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v579cLno027221; Wed, 7 Jun 2017 04:38:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1496828301; bh=jXzTQwcHU+0ZZJjKaJHu4s0J5DLsTW2qArLNBKyGKAI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=nc+kEGsTQzt7Umlp37NP1y+8pr3kMYTgKTcq7V50QgZkeLP+kpFfvn3ILw1EVrhlk MfDRO1TzPqwIueXfkSRVW5W5YV7GbV7WwBjxl/U8M3M1KsMb070a0ArcQb7ziEbyev JaXLNFKoKTDJskN8dJxc9d1ylMS4yxYGtK6vbijE= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v579cLHK004392; Wed, 7 Jun 2017 04:38:21 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Wed, 7 Jun 2017 04:38:19 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v579btKV001799; Wed, 7 Jun 2017 04:38:17 -0500 From: Kishon Vijay Abraham I To: Tony Lindgren , Rob Herring , CC: Ulf Hansson , Russell King , , , , , , Subject: [PATCH v2 6/8] ARM: dts: dra7: Add "max-frequency" property to MMC dt nodes Date: Wed, 7 Jun 2017 15:07:47 +0530 Message-ID: <20170607093749.15656-7-kishon@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170607093749.15656-1-kishon@ti.com> References: <20170607093749.15656-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 e7144662af45..c09a91e77f53 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -1037,6 +1037,7 @@ dma-names = "tx", "rx"; status = "disabled"; pbias-supply = <&pbias_mmc_reg>; + max-frequency = <192000000>; }; mmc2: mmc@480b4000 { @@ -1048,6 +1049,7 @@ dmas = <&sdma_xbar 47>, <&sdma_xbar 48>; dma-names = "tx", "rx"; status = "disabled"; + max-frequency = <192000000>; }; mmc3: mmc@480ad000 { @@ -1059,6 +1061,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 { @@ -1070,6 +1074,7 @@ dmas = <&sdma_xbar 57>, <&sdma_xbar 58>; dma-names = "tx", "rx"; status = "disabled"; + max-frequency = <192000000>; }; mmu0_dsp1: mmu@40d01000 {