From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754129AbbINDCS (ORCPT ); Sun, 13 Sep 2015 23:02:18 -0400 Received: from lucky1.263xmail.com ([211.157.147.133]:38721 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753813AbbINDCQ (ORCPT ); Sun, 13 Sep 2015 23:02:16 -0400 X-263anti-spam: KSV:0; X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-ADDR-CHECKED: 0 X-RL-SENDER: shawn.lin@rock-chips.com X-FST-TO: devicetree@vger.kernel.org X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: shawn.lin@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [PATCH 2/2] Documentation: bindings: add description of phy for sdhci-of-arasan To: =?UTF-8?Q?S=c3=b6ren_Brinkmann?= References: <1441961698-10516-1-git-send-email-shawn.lin@rock-chips.com> <1441961729-10594-1-git-send-email-shawn.lin@rock-chips.com> <20150914024702.GA19678@xsjsorenbubuntu> Cc: shawn.lin@rock-chips.com, Michal Simek , Ulf Hansson , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org From: Shawn Lin Message-ID: <55F638A9.1090100@rock-chips.com> Date: Mon, 14 Sep 2015 11:02:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150914024702.GA19678@xsjsorenbubuntu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2015/9/14 10:47, Sören Brinkmann 写道: > Hi Shawn, > > On Fri, 2015-09-11 at 04:55PM +0800, Shawn Lin wrote: >> This patch adds phys and phy-names for sdhci-of-arasan as optional >> properties, and details the example as well. >> >> Signed-off-by: Shawn Lin >> --- >> >> Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 10 ++++++++-- >> 1 file changed, 8 insertions(+), 2 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt >> index da541c3..0264d5f 100644 >> --- a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt >> +++ b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt >> @@ -1,11 +1,12 @@ >> Device Tree Bindings for the Arasan SDHCI Controller >> >> - The bindings follow the mmc[1], clock[2] and interrupt[3] bindings. Only >> - deviations are documented here. >> + The bindings follow the mmc[1], clock[2], interrupt[3] and phy[4] bindings. >> + Only deviations are documented here. >> >> [1] Documentation/devicetree/bindings/mmc/mmc.txt >> [2] Documentation/devicetree/bindings/clock/clock-bindings.txt >> [3] Documentation/devicetree/bindings/interrupt-controller/interrupts.txt >> + [4] Documentation/devicetree/bindings/phy/phy-bindings.txt >> >> Required Properties: >> - compatible: Compatibility string. Must be 'arasan,sdhci-8.9a' or >> @@ -16,6 +17,9 @@ Required Properties: >> - interrupts: Interrupt specifier >> - interrupt-parent: Phandle for the interrupt controller that services >> interrupts for this device. >> +Optional Properties: >> + - phys: From PHY bindings: Phandle for the Generic PHY for arasan. >> + - phy-names: MUST be "phy_arasan". > > This might be a dumb question, but, is the external phy actually > optional? Or is it mandatory for certain implementations of the IP. > In the latter case, it should probably be a mandatory property depending > on the compatible string matching an implementation that requires an > external phy (accordingly, the implementation might have to treat it From my soc team's reponse, there is no way to bypass controller to IO if no phy supported. So it should be the latter case you mentioned for arasan.sdhci-5.1. Thanks for point out it, really helpful. I will fix it in v2. > that way too). > > Sören > > > -- Best Regards Shawn Lin