From: chunfeng yun <chunfeng.yun-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
To: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
Cc: Mathias Nyman
<mathias.nyman-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Matthias Brugger
<matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>,
Sascha Hauer <s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org>,
"linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
John Crispin <blogic-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>,
Daniel Kurtz <djkurtz-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Subject: Re: [PATCH v3 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller
Date: Sat, 1 Aug 2015 11:42:02 +0800 [thread overview]
Message-ID: <1438400522.31933.25.camel@mhfsdcap03> (raw)
In-Reply-To: <20150731133707.GB25118@leverpostej>
hi,
On Fri, 2015-07-31 at 14:37 +0100, Mark Rutland wrote:
> Hi,
>
> > > > + - mediatek,usb-wakeup: to access usb wakeup control register
> > >
> > > What exactly does this property imply?
> > >
> > There are some control registers for usb wakeup which are put in another
> > module, here to get the node of that module, and then use regmap and
> > syscon to operate it.
>
> Ok. You need to specify the type of this property (i.e. that it is a
> phandle to a syscon node). The description makes it sound like a boolean.
>
Is it ok to add a prefix of syscon, and name it syscon-usb-wakeup?
> >
> > > > + - mediatek,wakeup-src: 1: ip sleep wakeup mode; 2: line state wakeup
> > > > + mode; others means don't enable wakeup source of usb
> > >
> > > This sounds like configuration rather than a hardware property. Why do
> > > you think this needs to be in the DT?
> > >
> > Yes, it's better to put it in the DT.
>
> That doesn't answer my question.
>
> _why_ do you think this needs to be in the DT? What do you think is
> better for it being there?
>
It is unthoughtful to put it here;
There is different configuration on platforms, such as on tablet which
only needs line-state wakeup (because system can't enter suspend when
plug in usb cable, so don't need ip-sleep-wakeup to remote wakeup
system), and on box just needs ip-sleep wakeup mode. so it is better to
put in each board's dts.
> >
> > > > + - mediatek,u2port-num: the number should not greater than the number
> > > > + of phys
> > >
> > > What exactly does this property imply?
> > >
> > On some platform, it only makes use of partial usb ports, so disable
> > others to save power.
>
> What exactly do you mean by "partial USB ports"?
>
> If a phy isn't wired up, it won't be listed in the phys property, if it
> is then disabling it sounds like a run-time decision.
>
Yes, you are right.
This confuse me a little before. It was a property of old phy driver at
first, and then ported it here, so did not remove it temp.
After I re-write the phy driver, I will remove it.
Thanks a lot.
> Thanks,
> Mark.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: chunfeng.yun@mediatek.com (chunfeng yun)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller
Date: Sat, 1 Aug 2015 11:42:02 +0800 [thread overview]
Message-ID: <1438400522.31933.25.camel@mhfsdcap03> (raw)
In-Reply-To: <20150731133707.GB25118@leverpostej>
hi,
On Fri, 2015-07-31 at 14:37 +0100, Mark Rutland wrote:
> Hi,
>
> > > > + - mediatek,usb-wakeup: to access usb wakeup control register
> > >
> > > What exactly does this property imply?
> > >
> > There are some control registers for usb wakeup which are put in another
> > module, here to get the node of that module, and then use regmap and
> > syscon to operate it.
>
> Ok. You need to specify the type of this property (i.e. that it is a
> phandle to a syscon node). The description makes it sound like a boolean.
>
Is it ok to add a prefix of syscon, and name it syscon-usb-wakeup?
> >
> > > > + - mediatek,wakeup-src: 1: ip sleep wakeup mode; 2: line state wakeup
> > > > + mode; others means don't enable wakeup source of usb
> > >
> > > This sounds like configuration rather than a hardware property. Why do
> > > you think this needs to be in the DT?
> > >
> > Yes, it's better to put it in the DT.
>
> That doesn't answer my question.
>
> _why_ do you think this needs to be in the DT? What do you think is
> better for it being there?
>
It is unthoughtful to put it here;
There is different configuration on platforms, such as on tablet which
only needs line-state wakeup (because system can't enter suspend when
plug in usb cable, so don't need ip-sleep-wakeup to remote wakeup
system), and on box just needs ip-sleep wakeup mode. so it is better to
put in each board's dts.
> >
> > > > + - mediatek,u2port-num: the number should not greater than the number
> > > > + of phys
> > >
> > > What exactly does this property imply?
> > >
> > On some platform, it only makes use of partial usb ports, so disable
> > others to save power.
>
> What exactly do you mean by "partial USB ports"?
>
> If a phy isn't wired up, it won't be listed in the phys property, if it
> is then disabling it sounds like a run-time decision.
>
Yes, you are right.
This confuse me a little before. It was a property of old phy driver at
first, and then ported it here, so did not remove it temp.
After I re-write the phy driver, I will remove it.
Thanks a lot.
> Thanks,
> Mark.
next prev parent reply other threads:[~2015-08-01 3:42 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-22 14:05 (unknown), Chunfeng Yun
2015-07-22 14:05 ` No subject Chunfeng Yun
2015-07-22 14:05 ` [PATCH v3 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs Chunfeng Yun
2015-07-22 14:05 ` Chunfeng Yun
2015-07-22 14:05 ` [PATCH v3 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller Chunfeng Yun
2015-07-22 14:05 ` Chunfeng Yun
2015-07-22 14:22 ` Mark Rutland
2015-07-22 14:22 ` Mark Rutland
2015-07-26 3:45 ` chunfeng yun
2015-07-26 3:45 ` chunfeng yun
2015-07-31 13:37 ` Mark Rutland
2015-07-31 13:37 ` Mark Rutland
2015-08-01 3:42 ` chunfeng yun [this message]
2015-08-01 3:42 ` chunfeng yun
[not found] ` <1437573945-31586-1-git-send-email-chunfeng.yun-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2015-07-22 14:05 ` [PATCH v3 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs Chunfeng Yun
2015-07-22 14:05 ` Chunfeng Yun
[not found] ` <1437573945-31586-4-git-send-email-chunfeng.yun-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2015-07-22 14:21 ` Felipe Balbi
2015-07-22 14:21 ` Felipe Balbi
[not found] ` <20150722142157.GA10467-HgARHv6XitJaoMGHk7MhZQC/G2K4zDHf@public.gmane.org>
2015-07-26 2:51 ` chunfeng yun
2015-07-26 2:51 ` chunfeng yun
2015-07-28 5:47 ` Kishon Vijay Abraham I
2015-07-28 5:47 ` Kishon Vijay Abraham I
2015-07-31 12:25 ` chunfeng yun
2015-07-31 12:25 ` chunfeng yun
2015-07-31 14:18 ` Kishon Vijay Abraham I
2015-07-31 14:18 ` Kishon Vijay Abraham I
[not found] ` <55BB83BF.6040105-l0cyMroinI0@public.gmane.org>
2015-08-01 2:42 ` chunfeng yun
2015-08-01 2:42 ` chunfeng yun
2015-07-27 13:58 ` Ricky Liang
2015-07-27 13:58 ` Ricky Liang
[not found] ` <CAAJzSMe0dhg9Su_Lpjiq58ukQhairyasaDEK-tBiuTtNV8hygg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-31 12:32 ` chunfeng yun
2015-07-31 12:32 ` chunfeng yun
2015-07-22 14:05 ` [PATCH v3 4/5] xhci: mediatek: support MTK xHCI host controller Chunfeng Yun
2015-07-22 14:05 ` Chunfeng Yun
2015-07-22 14:05 ` [PATCH v3 5/5] arm64: dts: mediatek: add xHCI & usb phy for mt8173 Chunfeng Yun
2015-07-22 14:05 ` Chunfeng Yun
2015-07-22 18:11 ` Sergei Shtylyov
2015-07-22 18:11 ` Sergei Shtylyov
[not found] ` <55AFDCE6.2060608-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2015-07-26 2:41 ` chunfeng yun
2015-07-26 2:41 ` chunfeng yun
2015-07-23 1:18 ` [PATCH v3 0/5] Mediatek xHCI support chunfeng yun
2015-07-23 1:18 ` chunfeng yun
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=1438400522.31933.25.camel@mhfsdcap03 \
--to=chunfeng.yun-nus5lvnupcjwk0htik3j/w@public.gmane.org \
--cc=balbi-l0cyMroinI0@public.gmane.org \
--cc=blogic-p3rKhJxN3npAfugRpC6u6w@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=djkurtz-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=mathias.nyman-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=rogerq-l0cyMroinI0@public.gmane.org \
--cc=s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
/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.