From: Roger Quadros <rogerq@ti.com>
To: Benoit Cousson <bcousson@baylibre.com>
Cc: <balbi@ti.com>, <tony@atomide.com>, <kishon@ti.com>,
<george.cherian@ti.com>, <dmurphy@ti.com>,
<linux-usb@vger.kernel.org>, <linux-omap@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 6/7] ARM: dts: omap4: update omap-control-usb nodes
Date: Wed, 14 Aug 2013 12:04:42 +0300 [thread overview]
Message-ID: <520B482A.9060701@ti.com> (raw)
In-Reply-To: <520B42B8.5080107@baylibre.com>
On 08/14/2013 11:41 AM, Benoit Cousson wrote:
> Hi Roger,
>
> On 01/08/2013 16:05, Roger Quadros wrote:
>> Split otghs_ctrl and USB2 PHY power down into separate
>> omap-control-usb nodes. Update ti,mode property.
>
> Nit: I guess you mean ti,type?
Right :).
>
>> CC: Benoit Cousson <benoit.cousson@linaro.org>
>> Signed-off-by: Roger Quadros <rogerq@ti.com>
>> ---
>> arch/arm/boot/dts/omap4.dtsi | 17 ++++++++++++-----
>> 1 files changed, 12 insertions(+), 5 deletions(-)
>>
>> diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
>> index 22d9f2b..9a6fa27 100644
>> --- a/arch/arm/boot/dts/omap4.dtsi
>> +++ b/arch/arm/boot/dts/omap4.dtsi
>> @@ -519,7 +519,7 @@
>> usb2_phy: usb2phy@4a0ad080 {
>> compatible = "ti,omap-usb2";
>> reg = <0x4a0ad080 0x58>;
>> - ctrl-module = <&omap_control_usb>;
>> + ctrl-module = <&omap_control_usb2phy>;
>> };
>> };
>>
>> @@ -643,11 +643,17 @@
>> };
>> };
>>
>> - omap_control_usb: omap-control-usb@4a002300 {
>> + omap_control_usb2phy: omap-control-usb@4a002300 {
>> compatible = "ti,omap-control-usb";
>> - reg = <0x4a002300 0x4>,
>> - <0x4a00233c 0x4>;
>> - reg-names = "control_dev_conf", "otghs_control";
>> + reg = <0x4a002300 0x4>;
>> + reg-names = "power";
>> + ti,type = <2>;
>
> Now that we can use the C preprocessor, it will be nice to use a macro instead of the value.
>
> TYPE1 - if it has otghs_control mailbox register (e.g. on OMAP4)
> TYPE2 - if it has Power down bit in control_dev_conf register. e.g. USB2 PHY
> TYPE3 - if it has DPLL and individual Rx & Tx power control. e.g. USB3 PHY or SATA PHY
> TYPE4 - if it has both power down and power aux registers. e.g. USB2 PHY on DRA7
>
> Well, assuming you can find macro names that can explain a little bit what the type is about :-)
>
> That being said...
> Do you really need to expose the type here? Maybe with just a set of different compatible string you can figure out in the driver what type we are talking about.
> It is always better to minimize the amount of information we put in DT as soon as we can infer it from the compatible string.
>
> So instead of using a generic "ti,omap-control-usb" string + "ti,type" you can potentially use several specific strings: ti,omap4-control-usb, ti,dra7-control-usb...
> Since the DT gurus are recommending to use specific compatible string as much as possible, this is maybe a better approach.
>
Good point. I'll get rid of the type altogether and use the compatible string instead.
cheers,
-roger
next prev parent reply other threads:[~2013-08-14 9:04 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 14:05 [PATCH 0/7] phy: omap-usb: Support multiple instances and new types Roger Quadros
2013-08-01 14:05 ` [PATCH 1/7] usb: phy: omap: Add new PHY types and remove omap_control_usb3_phy_power() Roger Quadros
2013-08-06 11:45 ` Kishon Vijay Abraham I
2013-08-06 13:26 ` Roger Quadros
2013-08-01 14:05 ` [PATCH 2/7] usb: phy: omap-usb2: Don't use omap_get_control_dev() Roger Quadros
2013-08-06 11:47 ` Kishon Vijay Abraham I
2013-08-01 14:05 ` [PATCH 3/7] usb: phy: omap-usb3: " Roger Quadros
2013-08-06 11:48 ` Kishon Vijay Abraham I
2013-08-01 14:05 ` [PATCH 4/7] usb: musb: omap2430: " Roger Quadros
2013-08-06 11:51 ` Kishon Vijay Abraham I
2013-08-06 13:27 ` Roger Quadros
2013-08-01 14:05 ` [PATCH 5/7] usb: phy: omap: get rid of omap_get_control_dev() Roger Quadros
2013-08-06 11:52 ` Kishon Vijay Abraham I
2013-08-01 14:05 ` [PATCH 6/7] ARM: dts: omap4: update omap-control-usb nodes Roger Quadros
2013-08-14 7:45 ` Roger Quadros
2013-08-14 8:41 ` Benoit Cousson
2013-08-14 9:04 ` Roger Quadros [this message]
2013-08-01 14:05 ` [PATCH 7/7] ARM: dts: omap5: update omap-control-usb node Roger Quadros
2013-08-14 7:45 ` Roger Quadros
2013-08-14 7:44 ` [PATCH 0/7] phy: omap-usb: Support multiple instances and new types Roger Quadros
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=520B482A.9060701@ti.com \
--to=rogerq@ti.com \
--cc=balbi@ti.com \
--cc=bcousson@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=dmurphy@ti.com \
--cc=george.cherian@ti.com \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=tony@atomide.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome