Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2197623ybl; Sun, 19 Jan 2020 21:31:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzf+dcnCuTWKubMGftPrJ6z3sjfo4K0DGQ57YKJrhCUeqHehtxd9EKFn5k6Z7/CBYF1Uzlt X-Received: by 2002:a05:6830:4b9:: with SMTP id l25mr14979944otd.266.1579498275406; Sun, 19 Jan 2020 21:31:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579498275; cv=none; d=google.com; s=arc-20160816; b=LbiKzJYaN/ofApIQzTcGPOBazbplPmbIzHO1+bpacC2uFm7UIGjhtZ03Q1cnwXyeSy 52EglNYjvM08/ski/uIyiLo/0D/26Ru0ZSzvGigKZ5wcEkChdPnH9I0dgsQ2xFXYthU8 3MPNxcLmQJTL6eBk/+HtIepxm3v/jqE7DRMLSXthkE4rQkUEOe/c3gKRSLqfcPT/YGHf QfXOlH0MVTa6QdfwnNvHNPz9Mt28lDK6u+dOlNkfgE3KyeE5vpHuP2SZv3wivcdVM6U6 Uf22Ov3kY3vT2qzliwe7XGZOCb+WfAji90boZ30M5xT3OpBO/3C0FIEI4nBMjqSH5TWe mXTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=fFplgERd3Yr+45ek4AluPgVKKpgNOfHAssQX0Hn6XlE=; b=mX3ZLt+jTfzZGFMkoxnocRKqUYcAU3IDMYcNvXAIosnHsBbMvP59MiRAOx6bbdo9Bw NIygBotF467u/nXHtB5yRqhTbpEDhR5DAvxxhBXrGEEJnOBxXFrxWYUMwJYM6TZ/QBrx igH88X56CZTu8XD2cC+N8tq+uE3rHqTzZ5f711yBplh4DTantOMyyy1bnqneHdQJoAJS FDVOmEvRF7aACJX/cW/K+NjH+AjiwqB+SdzdUrpcP1qUBz9WcMTMHToxvwLB4boQLatD 58oEMZhYIXFW0A8vrQVibICIgVR4iR+iRSa/jpn6TuAUrja8oDloYLuCE6V+ymxhaIr2 0XZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="S//uEtfO"; 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 17si21441550otv.149.2020.01.19.21.31.02; Sun, 19 Jan 2020 21:31:15 -0800 (PST) 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 header.s=ti-com-17Q1 header.b="S//uEtfO"; 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 S1729108AbgATF3X (ORCPT + 99 others); Mon, 20 Jan 2020 00:29:23 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:43822 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbgATF3X (ORCPT ); Mon, 20 Jan 2020 00:29:23 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 00K5TE2X071351; Sun, 19 Jan 2020 23:29:14 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1579498154; bh=fFplgERd3Yr+45ek4AluPgVKKpgNOfHAssQX0Hn6XlE=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=S//uEtfOmodyYIxng51Qz9DaIOebtxh1hbqTRiKN7q8Q+7q91FlPiWT5bRIEvvZVE LDN6jlMr1tbHBEsGegkxg+RiGmS6gQYcOHVe9wFoIewbqK1dmc48k1uWBNLWzna0wm Rhx0kF+2WKyWi1eaKq14Db9hS+ZrZEt9QTr3DvDo= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 00K5TEnC128346 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 19 Jan 2020 23:29:14 -0600 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Sun, 19 Jan 2020 23:29:14 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Sun, 19 Jan 2020 23:29:14 -0600 Received: from [172.24.190.4] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 00K5TBL3043832; Sun, 19 Jan 2020 23:29:12 -0600 Subject: Re: [PATCH 1/3] dt-bindings: mmc: sdhci-am654: Update Output tap delay binding To: Rob Herring CC: , , , , References: <20200108150920.14547-1-faiz_abbas@ti.com> <20200108150920.14547-2-faiz_abbas@ti.com> <20200115015037.GA26114@bogus> From: Faiz Abbas Message-ID: Date: Mon, 20 Jan 2020 11:00:46 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20200115015037.GA26114@bogus> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 15/01/20 7:20 am, Rob Herring wrote: > On Wed, Jan 08, 2020 at 08:39:18PM +0530, Faiz Abbas wrote: >> According to latest AM65x Data Manual[1], a different output tap delay >> value is recommended for all speed modes. Therefore, replace the >> ti,otap-del-sel binding with one ti,otap-del-sel- for each MMC/SD speed >> mode. >> >> [1] http://www.ti.com/lit/gpn/am6526 >> >> Signed-off-by: Faiz Abbas >> --- >> .../devicetree/bindings/mmc/sdhci-am654.txt | 21 +++++++++++++++++-- >> 1 file changed, 19 insertions(+), 2 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/mmc/sdhci-am654.txt b/Documentation/devicetree/bindings/mmc/sdhci-am654.txt >> index 50e87df47971..c6ccecb9ae5a 100644 >> --- a/Documentation/devicetree/bindings/mmc/sdhci-am654.txt >> +++ b/Documentation/devicetree/bindings/mmc/sdhci-am654.txt >> @@ -18,7 +18,20 @@ Required Properties: >> - clocks: Handles to the clock inputs. >> - clock-names: Tuple including "clk_xin" and "clk_ahb" >> - interrupts: Interrupt specifiers >> - - ti,otap-del-sel: Output Tap Delay select >> + Output tap delay for each speed mode: >> + - ti,otap-del-sel-legacy >> + - ti,otap-del-sel-mmc-hs >> + - ti,otap-del-sel-sd-hs >> + - ti,otap-del-sel-sdr12 >> + - ti,otap-del-sel-sdr25 >> + - ti,otap-del-sel-sdr50 >> + - ti,otap-del-sel-sdr104 >> + - ti,otap-del-sel-ddr50 >> + - ti,otap-del-sel-ddr52 >> + - ti,otap-del-sel-hs200 >> + - ti,otap-del-sel-hs400 >> + These bindings must be provided otherwise the driver will disable the >> + corresponding speed mode (i.e. all nodes must provide at least -legacy) > > Why not just extend the existing property to be an array. We already > have properties to enable/disable speed modes. > Its hard to keep track of which modes have values and which don't when you add an array. This scheme is just easier on anyone adding new values or updating old values. We already disable speed modes based on platform specific properties in other drivers. In sdhci-omap.c, the driver disables the corresponding speed mode if the corresponding pinmux and iodelay values are not populated. Thanks, Faiz Thanks, Faiz