From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/7] ARM: STi: DT: STiH410: Add usb2 picophy dt nodes
Date: Mon, 01 Dec 2014 16:40:35 +0100 [thread overview]
Message-ID: <4736928.ouoSJRV5Ml@wuerfel> (raw)
In-Reply-To: <1416385632-5832-5-git-send-email-peter.griffin@linaro.org>
On Wednesday 19 November 2014 08:27:09 Peter Griffin wrote:
> + soc {
> + usb2_picophy1: phy at 1 {
> + compatible = "st,stih407-usb2-phy";
> + #phy-cells = <0>;
> + st,syscfg = <&syscfg_core 0xf8 0xf4>;
> + resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
> + <&picophyreset STIH407_PICOPHY0_RESET>;
> + reset-names = "global", "port";
> + };
>
> + usb2_picophy2: phy at 2 {
> + compatible = "st,stih407-usb2-phy";
> + #phy-cells = <0>;
> + st,syscfg = <&syscfg_core 0xfc 0xf4>;
> + resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
> + <&picophyreset STIH407_PICOPHY1_RESET>;
> + reset-names = "global", "port";
> + };
> + };
In theory the unit-address (the @1 and @2 part of the name) is supposed to
match the 'reg' property value, but of course that doesn't work any
more with the changed binding. The same problem keeps coming up, so
I wonder if anyone has an idea how this is supposed to be handled properly.
Should we just make up unit-address numbers? I guess a more elaborate
variant would be to have a parent node with #address-cells = <1> and
no ranges, to make up a new address space with arbitrarily assigned
reg values, like
phys {
#address-cells = <1>; /* just counting the nodes */
#size-cells = <0>;
usb2_picophy1: phy at 0 {
compatible = "st,stih407-usb2-phy";
reg = <0>;
#phy-cells = <0>;
st,syscfg = <&syscfg_core 0xf8 0xf4>;
};
usb2_picophy2: phy at 1 {
compatible = "st,stih407-usb2-phy";
reg = <0>;
#phy-cells = <0>;
st,syscfg = <&syscfg_core 0xf8 0xf4>;
};
}
Should we try to do it like this, or is that overcomplicating
things?
Arnd
next prev parent reply other threads:[~2014-12-01 15:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-19 8:27 [PATCH 0/7] Fix sti drivers whcih mix reg address spaces Peter Griffin
2014-11-19 8:27 ` [PATCH 1/7] phy: phy-stih407-usb: Pass sysconfig register offsets via syscfg property Peter Griffin
2014-11-19 8:27 ` [PATCH 2/7] phy: miphy365x: Pass sysconfig register offsets via syscfg dt property Peter Griffin
2014-11-19 10:42 ` Lee Jones
2014-11-19 8:27 ` [PATCH 3/7] ARM: STi: DT: STiH407: Add usb2 picophy dt nodes Peter Griffin
2014-11-19 8:27 ` [PATCH 4/7] ARM: STi: DT: STiH410: " Peter Griffin
2014-12-01 15:40 ` Arnd Bergmann [this message]
2014-11-19 8:27 ` [PATCH 5/7] ARM: STi: DT: STiH410: Add DT nodes for the ehci and ohci usb controllers Peter Griffin
2014-11-19 8:27 ` [PATCH 6/7] ARM: multi_v7_defconfig: Enable stih407 usb picophy Peter Griffin
2014-11-19 8:27 ` [PATCH 7/7] stmmac: dwmac-sti: Pass sysconfig register offset via syscon dt property Peter Griffin
2014-11-19 8:51 ` Lee Jones
2014-12-01 15:36 ` [PATCH 0/7] Fix sti drivers whcih mix reg address spaces Arnd Bergmann
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=4736928.ouoSJRV5Ml@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).