ARM: dts: Add subnode for ocp2scp
cover ARM: dts: Add subnode for ocp2scp
This patch series contains a patch to explicitly add reg property to the ocp2scp dt node and a patch to add the subnode for ocp2scp (omap-usb2).
Since the original patch series that adds ocp2scp driver and ocp2scp data are merged in arm-soc, I'm sending this patch series based on the same tree.
git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git
But Benoit already pointed out that there's going to be merge conflicts as he has sent a bunch of dt data patches to linux-omap (devel-dt) tree. So now I'm not sure how that can be actually avoided.
Kishon Vijay Abraham I (2):
ARM: dts: omap4: add *reg* property for ocp2scp
ARM: dts: omap: Add omap-usb2 dt data
.../devicetree/bindings/bus/omap-ocp2scp.txt | 14 ++++++++++++++ arch/arm/boot/dts/omap4.dtsi | 8 +++++++- 2 files changed, 21 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
PATCH 1/2 ARM: dts: omap: add *reg* property for ocp2scp
*reg* property for ocp2scp was previously obtained from ti,hwmods property. But that is now explicitly added to the dt node. Also updated the documentation with *reg* info.
--- .../devicetree/bindings/bus/omap-ocp2scp.txt | 14 ++++++++++++++ arch/arm/boot/dts/omap4.dtsi | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/bus/omap-ocp2scp.txt +14 -0
@@ -2,9 +2,23 @@ properties: - compatible : Should be "ti,omap-ocp2scp" +- reg : Address and length of the register set for the device - #address-cells, #size-cells : Must be present if the device has sub-nodes - ranges : the child address space are mapped 1:1 onto the parent address space - ti,hwmods : must be "ocp2scp_usb_phy" Sub-nodes: All the devices connected to ocp2scp are described using sub-node to ocp2scp + +ocp2scp at 4a0ad000 { + compatible = "ti,omap-ocp2scp"; + reg = <0x4a0ad000 0x1f>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + ti,hwmods = "ocp2scp_usb_phy"; + subnode1 { + }; + subnode2 { + }; +};
arch/arm/boot/dts/omap4.dtsi +2 -1
@@ -296,8 +296,9 @@ ti,hwmods = "dmic"; }; - ocp2scp { + ocp2scp at 4a0ad000 { compatible = "ti,omap-ocp2scp"; + reg = <0x4a0ad000 0x1f>; #address-cells = <1>; #size-cells = <1>; ranges;
Signature · 1 line
1.7.9.5
PATCH 2/2 ARM: dts: omap: Add omap-usb2 dt data
In reply to Kishon Vijay Abraham IAdd omap-usb2 data node in omap4 device tree file. Since omap-usb2 is connected to ocp2scp, omap-usb2 dt data is added as a child node of ocp2scp.
--- arch/arm/boot/dts/omap4.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/omap4.dtsi +5 -0
@@ -303,6 +303,11 @@ #size-cells = <1>; ranges; ti,hwmods = "ocp2scp_usb_phy"; + usb2phy at 4a0ad080 { + compatible = "ti,omap-usb2"; + reg = <0x4a0ad080 0x58>, + <0x4a002300 0x4>; /* TO BE REMOVED: SCM */ + }; }; }; };
Signature · 1 line
1.7.9.5
Benoit Cousson
AppliedHi Tony,
Quoted 8 lines · Kishon Vijay Abraham I
This patch series contains a patch to explicitly add reg property to the ocp2scp dt node and a patch to add the subnode for ocp2scp (omap-usb2).
Since the original patch series that adds ocp2scp driver and ocp2scp data are merged in arm-soc, I'm sending this patch series based on the same tree.
Quoted 5 lines
git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.gitBut Benoit already pointed out that there's going to be merge conflicts as he has sent a bunch of dt data patches to linux-omap (devel-dt) tree. So now I'm not sure how that can be actually avoided.
What would you suggest?
I merged arm-soc/drivers/ocp2scp into my dts branch to get a proper base for that series, but as expected, it conflicts :-(
So I fixed that and pulled this series on top of it.
It is something acceptable for a pull request? We already did that in the past, but at that time it was not conflicting.
Thanks,
Benoit
Re: [PATCH 2/2] ARM: dts: omap: Add omap-usb2 dt data
In reply to Kishon Vijay Abraham IHi Benoit,
Quoted 6 lines · Kishon Vijay Abraham I
Add omap-usb2 data node in omap4 device tree file. Since omap-usb2 is connected to ocp2scp, omap-usb2 dt data is added as a child node of ocp2scp.
Acked-by Felipe Balbi <[email protected]>Signed-off-by Kishon Vijay Abraham I <[email protected]>
This patch is also missing in mainline :-(
Thanks
Kishon
Quoted 21 lines
--- arch/arm/boot/dts/omap4.dtsi | 5 +++++ 1 file changed, 5 insertions(+)arch/arm/boot/dts/omap4.dtsi +5
-0@@ -303,6 +303,11 @@ #size-cells = <1>; ranges; ti,hwmods = "ocp2scp_usb_phy"; + usb2phy at 4a0ad080 { + compatible = "ti,omap-usb2"; + reg = <0x4a0ad080 0x58>, + <0x4a002300 0x4>; /* TO BE REMOVED: SCM */ + }; }; }; };
Re: [PATCH 2/2] ARM: dts: omap: Add omap-usb2 dt data
Quoted 11 lines · kishon
Hi Benoit,
Quoted 6 lines · Kishon Vijay Abraham I
Add omap-usb2 data node in omap4 device tree file. Since omap-usb2 is connected to ocp2scp, omap-usb2 dt data is added as a child node of ocp2scp.
Acked-by Felipe Balbi <[email protected]>Signed-off-by Kishon Vijay Abraham I <[email protected]>This patch is also missing in mainline :-(
Well, in that case this was done on purpose :-)
Quoted 8 lines
Thanks
KishonQuoted 4 lines
--- arch/arm/boot/dts/omap4.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
Quoted 12 lines
arch/arm/boot/dts/omap4.dtsi line 309
Quoted 12 lines
arch/arm/boot/dts/omap4.dtsi +4
-0@@ -303,6 +303,11 @@ #size-cells = <1>; ranges; ti,hwmods = "ocp2scp_usb_phy"; + usb2phy at 4a0ad080 { + compatible = "ti,omap-usb2"; + reg = <0x4a0ad080 0x58>, + <0x4a002300 0x4>; /* TO BE REMOVED: SCM */
Rob and I did not agree to use that temp hack in the case of DT, so you were supposed to repost with a proper driver for the SCM part that control the USB.
Regards,
Benoit
Re: [PATCH 2/2] ARM: dts: omap: Add omap-usb2 dt data
Hi,
Quoted 23 lines · Benoit Cousson
Quoted 11 lines · kishon
Hi Benoit,
Quoted 6 lines · Kishon Vijay Abraham I
Add omap-usb2 data node in omap4 device tree file. Since omap-usb2 is connected to ocp2scp, omap-usb2 dt data is added as a child node of ocp2scp.
Acked-by Felipe Balbi <[email protected]>Signed-off-by Kishon Vijay Abraham I <[email protected]>This patch is also missing in mainline :-(
Well, in that case this was done on purpose :-)
Quoted 8 lines
Thanks
KishonQuoted 4 lines
--- arch/arm/boot/dts/omap4.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
Quoted 16 lines
Quoted 4 lines
Quoted 4 lines
arch/arm/boot/dts/omap4.dtsi +0
-0Quoted 8 lines
arch/arm/boot/dts/omap4.dtsi line 309
Quoted 8 lines
arch/arm/boot/dts/omap4.dtsi +4
-0@@ -303,6 +303,11 @@ #size-cells = <1>; ranges; ti,hwmods = "ocp2scp_usb_phy"; + usb2phy at 4a0ad080 { + compatible = "ti,omap-usb2"; + reg = <0x4a0ad080 0x58>, + <0x4a002300 0x4>; /* TO BE REMOVED: SCM */Rob and I did not agree to use that temp hack in the case of DT, so you were supposed to repost with a proper driver for the SCM part that control the USB.
Ok. Missed that. Will work on that.
Thanks
Kishon
Re: [PATCH 2/2] ARM: dts: omap: Add omap-usb2 dt data
Quoted 43 lines · kishon
Hi,
Quoted 23 lines · Benoit Cousson
Quoted 11 lines · kishon
Hi Benoit,
Quoted 6 lines · Kishon Vijay Abraham I
Add omap-usb2 data node in omap4 device tree file. Since omap-usb2 is connected to ocp2scp, omap-usb2 dt data is added as a child node of ocp2scp.
Acked-by Felipe Balbi <[email protected]>Signed-off-by Kishon Vijay Abraham I <[email protected]>This patch is also missing in mainline :-(
Well, in that case this was done on purpose :-)
Quoted 8 lines
Thanks
KishonQuoted 4 lines
--- arch/arm/boot/dts/omap4.dtsi | 5 +++++ 1 file changed, 5 insertions(+)Quoted 16 lines
Quoted 4 lines
Quoted 4 lines
arch/arm/boot/dts/omap4.dtsi +0
-0Quoted 8 lines
arch/arm/boot/dts/omap4.dtsi line 309
Quoted 8 lines
arch/arm/boot/dts/omap4.dtsi +4
-0@@ -303,6 +303,11 @@ #size-cells = <1>; ranges; ti,hwmods = "ocp2scp_usb_phy"; + usb2phy at 4a0ad080 { + compatible = "ti,omap-usb2"; + reg = <0x4a0ad080 0x58>, + <0x4a002300 0x4>; /* TO BE REMOVED: SCM */Rob and I did not agree to use that temp hack in the case of DT, so you were supposed to repost with a proper driver for the SCM part that control the USB.
Quoted 1 line
Ok. Missed that. Will work on that.
Didn't Tony say we should access SCM directly since it's a one time thing ?
Tony ?
Signature · 8 lines
balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130110/f6159f88/attachment.sig>
Re: [PATCH 2/2] ARM: dts: omap: Add omap-usb2 dt data
Quoted 7 lines · Felipe Balbi
Quoted 6 lines · kishon
Quoted 4 lines · Benoit Cousson
Rob and I did not agree to use that temp hack in the case of DT, so you were supposed to repost with a proper driver for the SCM part that control the USB.
Quoted 6 lines
Quoted 1 line
Ok. Missed that. Will work on that.
Didn't Tony say we should access SCM directly since it's a one time thing ?
Tony ?
The SCM parts should be a separate driver that eventually will be a child of the minimal SCM core driver. The reason why it should be separate is because the SCM registers are in a different block as pointed out by Paul.
There's a good chance that we'll be able to eventually handle the USB SCM registers directly via pinctrl-single.c using pinconf-bits + generic pinconf binding. That is pending the changes from Haojian to implement generic pinconf for pinctrl-single.c.
As the USB SCM registers can get quite complex, I suggest creating a minimal driver to handle that, and then eventually that driver might just use the generic pinconf API for setting the SCM registers for things like bias voltage, pulls and comparators.
Regards,
Tony