Received: by 10.223.185.116 with SMTP id b49csp8356753wrg; Thu, 1 Mar 2018 23:44:33 -0800 (PST) X-Google-Smtp-Source: AG47ELtk577cwp0a5Hz96QwUADYF4xcRmx9uNiwpblM9vpIdP1Xi4uYNP/WT4R/Pz60ITA2/3+Ha X-Received: by 10.167.129.24 with SMTP id b24mr4775636pfi.183.1519976673635; Thu, 01 Mar 2018 23:44:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519976673; cv=none; d=google.com; s=arc-20160816; b=um8rIW8OtgShjuRsDFvoSB5/nsUm2hZRcLU6y3CRw0SmzjmtyFs529ZIabBP33/X3e Xj6gmA63Blj0WcECzAA1Vr4UhSBAOyGjTDkfvCu55bCrPtIiODB4r1k/XKS1DMeU27uo PMOjaJK4yZagzrHt4WCDU8q0eNGVNBwury3H869d95nV1Zl5qjSdQAGKZgjNh0KAn7X1 daZ7qE8NLEKfUYVR6Ugew9vuDA2fGOTelTUWoPzeGZV2fL5JaKC1DzHD0tPlgzTgVnix gJt1kN94fl1md+zBOe6GrYAIGOSB2cdegOR+wXujJqWMbOk8kbi2JA9RpKU4emd+ByXh eBFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=awc0qZpBZTqc8zYOK5WaJNYbp0N+DZV29CafaAMOL4Y=; b=igSbVRYvYQ7chLfx1pzjeZepCg2EfeIRyXfplMJRpfc5dRC1/8Cw5QRUd/qgtRsBKV bAR4hPaMusUIKOe1pae7JL4Vkl11b0KQFM1RoYJD0LodIZmr9Vzl2xC3K2Ef9teso6qv fhCJ3wlXTVMkAYwPrAR/rTaollOtt3N7+JtOlogmJl0J/CMibyN1H9PqjNujjpdM+yXZ +EZLqSXeeVp1T+8pwvjIt7B2bypGbnHeaCjaGww1cqKYAYndz9+o5I7wJPE2qA2fQth2 hwG2ad2p1jvNPqiVhRY9lG+kRPhDEkAx5b4IVNV22d/Tuwp6yceAdlAdklCt7Fodbgp/ 0hFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KLtwie4M; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10si4470714pff.317.2018.03.01.23.44.18; Thu, 01 Mar 2018 23:44:33 -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=@linaro.org header.s=google header.b=KLtwie4M; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936181AbeCBHiQ (ORCPT + 99 others); Fri, 2 Mar 2018 02:38:16 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:35637 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935717AbeCBHiN (ORCPT ); Fri, 2 Mar 2018 02:38:13 -0500 Received: by mail-pg0-f67.google.com with SMTP id l131so3446211pga.2 for ; Thu, 01 Mar 2018 23:38:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=awc0qZpBZTqc8zYOK5WaJNYbp0N+DZV29CafaAMOL4Y=; b=KLtwie4Mykr60LJPdsiy5LkLaeVQL93VxBMleYFPUtbdQ3AhJz+vVekEb8wGeE9nUt qLjOIigwObKCiGu+IeywV37kCuPMPbQKmg6/YnyMawjkBJpWaGc0cjXF5J6WnQmT2yiS 1w2t6+rE2MKmJkTerbZ6YnhKn+ZJaSTj1Z4h8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=awc0qZpBZTqc8zYOK5WaJNYbp0N+DZV29CafaAMOL4Y=; b=iZnohVAJYkQXI+hhhx9rQ7avZukSBooykRCiSOaXKnfdYRyNbKm6+dClfBYQMlJ2Ya P/2bpKW6imuX1y2E508fWZsNZqNyZS/M8jEBa/YnmB3zqOvlpUBBTZlM2oteETk/bxC9 ediWN7TVPEg70rphkPpmRYYaa/0rr8BRC0rL3x5sKa+eNZi8J2F8eGjdkKIUsniFKEBN ueaO0vDLB/e4G5RHyCldC3kIOYM2cts8mvzi3sb9I1YQvIRu08KR6TEtMOihGI3vSKfE 41mbUBS60d9J/6B008abseNy9ezc4Bfh9mYR31aNR1rK5OjgEF3KW6XyPs4roYLR8165 vZwg== X-Gm-Message-State: APf1xPDU5xfir2LHCbcfmURBXp3gTQYgr03AFTJcW0IPfbmkjK4Kmyed +j5gr5LlCLGt/pM0hzC4PJ1ltQ== X-Received: by 10.101.68.141 with SMTP id l13mr2904727pgq.216.1519976292376; Thu, 01 Mar 2018 23:38:12 -0800 (PST) Received: from dragon ([45.56.152.106]) by smtp.gmail.com with ESMTPSA id q6sm9401781pga.37.2018.03.01.23.38.07 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 01 Mar 2018 23:38:11 -0800 (PST) Date: Fri, 2 Mar 2018 15:37:43 +0800 From: Shawn Guo To: Kishon Vijay Abraham I Cc: Rob Herring , Jianguo Sun , Jiancheng Xue , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Pengcheng Li Subject: Re: [PATCH v3 1/2] dt-bindings: add bindings doc for HiSilicon INNO USB2 PHY Message-ID: <20180302073740.GC28619@dragon> References: <1519888940-23235-1-git-send-email-shawn.guo@linaro.org> <1519888940-23235-2-git-send-email-shawn.guo@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kishon, On Fri, Mar 02, 2018 at 11:55:57AM +0530, Kishon Vijay Abraham I wrote: > On Thursday 01 March 2018 12:52 PM, Shawn Guo wrote: > > From: Pengcheng Li > > > > It adds device tree bindings document for HiSilicon INNO USB2 PHY. > > > > Signed-off-by: Pengcheng Li > > Signed-off-by: Jiancheng Xue > > Signed-off-by: Shawn Guo > > --- > > .../devicetree/bindings/phy/phy-hisi-inno-usb2.txt | 52 ++++++++++++++++++++++ > > 1 file changed, 52 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/phy/phy-hisi-inno-usb2.txt > > > > diff --git a/Documentation/devicetree/bindings/phy/phy-hisi-inno-usb2.txt b/Documentation/devicetree/bindings/phy/phy-hisi-inno-usb2.txt > > new file mode 100644 > > index 000000000000..b563cf54ca7b > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/phy/phy-hisi-inno-usb2.txt > > @@ -0,0 +1,52 @@ > > +HiSilicon INNO USB2 PHY > > + > > +Required properties: > > +- compatible: Should be one of the following strings: > > + "hisilicon,inno-usb2-phy", > > + "hisilicon,hi3798cv200-usb2-phy". > > +- reg: Should be the address space for PHY configuration register in peripheral > > + controller, e.g. PERI_USB0 for USB 2.0 PHY01 on Hi3798cv200 SoC. > > +- #phy-cells: Should be 1. The specifier is the index of the PHY port to > > + reference. > > This can be '0' if the consumers directly use phandle to the subnodes. Yes, I understand that for most of PHY devices #phy-cells is just 0, and consumers simply use the phandle without any cell number. But for this inno-usb2-phy, every single device contains two PHY ports, and each port can be connected to different USB controller. That said, for each inno-usb2-phy device, we need to create two phy devices and register them to PHY core system. And the phy-cell number is used by consumers to specify the PHY port id. Shawn