All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lipengcheng <lpc.li@hisilicon.com>
To: Rob Herring <robh+dt@kernel.org>
Cc: Kishon Vijay Abraham I <kishon@ti.com>,
	Mark Rutland <mark.rutland@arm.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Xuejiancheng <xuejiancheng@hisilicon.com>,
	Lidongpo <lidongpo@hisilicon.com>,
	"Zhangzhenxing (Christian,
	Device ChipSet)"  <zhangzhenxing@hisilicon.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: RE: [PATCH] [PATCH v3] phy: add phy hisi inno usb2
Date: Sat, 30 Jul 2016 07:52:26 +0000	[thread overview]
Message-ID: <637796ED17F7774FB27D6AAE3C6951584A9305F9@SZXEMA509-MBS.china.huawei.com> (raw)
In-Reply-To: <CAL_JsqKc+aP0zzPE6FzTegWX4BLAsYCoZXojmOjHMy-nSMpXwA@mail.gmail.com>



> -----Original Message-----
> From: Rob Herring [mailto:robh+dt@kernel.org]
> Sent: Monday, July 25, 2016 11:26 PM
> To: Lipengcheng
> Cc: Kishon Vijay Abraham I; Mark Rutland; linux-kernel@vger.kernel.org; Xuejiancheng; Lidongpo; Zhangzhenxing (Christian, Device ChipSet)
> Subject: Re: [PATCH] [PATCH v3] phy: add phy hisi inno usb2
> 
> On Mon, Jul 25, 2016 at 8:50 AM, Pengcheng Li <lpc.li@hisilicon.com> wrote:
> > Add support for inno usb2 phy integrated on some hisilicon SOCs.
> 
> Bindings need to be sent to DT list.
Ok. I will send to DT list.
> 
> >
> > Signed-off-by: Pengcheng Li <lpc.li@hisilicon.com>
> > ---
> > change log:
> > v3:
> >  1. inno phy do not use phy framework, remove it.
> > ---
> >  .../devicetree/bindings/phy/phy-hisi-inno-usb2.txt |  48 ++++
> >  drivers/phy/Kconfig                                |  10 +
> >  drivers/phy/Makefile                               |   1 +
> >  drivers/phy/phy-hisi-inno-usb2.c                   | 290 +++++++++++++++++++++
> >  4 files changed, 349 insertions(+)
> >  create mode 100644
> > Documentation/devicetree/bindings/phy/phy-hisi-inno-usb2.txt
> >  create mode 100644 drivers/phy/phy-hisi-inno-usb2.c
> >
> > 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 0000000..59eaf73
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/phy/phy-hisi-inno-usb2.txt
> > @@ -0,0 +1,48 @@
> > +HiSilicon INNO USB2 PHY
> > +-----------------------
> > +Required properties:
> > +- compatible: Should be "hisilicon,inno_usb2_phy"
> 
> Use '-', not '_'.
I will modify it in next patch.
- compatible: Should be "hisilicon,inno-usb2-phy"
> 
> > +- #phy-cells: Must be 0
> > +- hisilicon,peripheral-syscon: Phandle of syscon used to control phy.
> > +- hisilicon,reg-num: Number of phy registers which should be
> > +configured at phy intialization stage
> > +- hisilicon,reg-seq: Sequence of triplets of (address, value, delay-us).
> > +The number of triplets is equal to "hisilicon,reg-num". Each triplet
> > +is used to write one phy register. The delay-us cell represents the
> > +delay time in microseconds to be applied after each write.
> 
> Don't create a scripting language in DT. The programming needed should be defined by the compatible string and possibly some specific
> properties of things that vary board to board.....
Before Inno phy releases, it usually need to config many parameters and the parameters are different in different Socs. Creating a scripting language in DT can be a good solution to this problem. So I hope to use the DTS to pass the parameters.
> 
> Rob

  reply	other threads:[~2016-07-30  7:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-25 13:50 [PATCH] [PATCH v3] phy: add phy hisi inno usb2 Pengcheng Li
2016-07-25 15:26 ` Rob Herring
2016-07-30  7:52   ` Lipengcheng [this message]
2016-07-30  7:52     ` Lipengcheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=637796ED17F7774FB27D6AAE3C6951584A9305F9@SZXEMA509-MBS.china.huawei.com \
    --to=lpc.li@hisilicon.com \
    --cc=devicetree@vger.kernel.org \
    --cc=kishon@ti.com \
    --cc=lidongpo@hisilicon.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=xuejiancheng@hisilicon.com \
    --cc=zhangzhenxing@hisilicon.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.