From: Kishon Vijay Abraham I <hidden> Date: 2015-08-04 15:31:19
This series is split from [1] to include only the dt patches.
This series is basically to deprecate using ctrl-module property and use
corresponding syscon properties to program the control module registers.
Changes from [1] in PHY patches include
*) series created after applying [2]
Did basic enumeration testing in the below platforms.
*) Tested PCIe, SATA and USB in dra7
*) Tested SATA and USB in omap5
*) Tested USB(dwc3) in am43xx_evm
*) Tested USB(musb) in omap4 panda after including [3]
All the testing was done after applying [4]
[1] -> https://lkml.org/lkml/2015/6/23/189
[2] -> http://www.spinics.net/lists/linux-omap/msg120644.html
[3] -> http://permalink.gmane.org/gmane.linux.kernel/2012427
[4] -> http://permalink.gmane.org/gmane.linux.kernel/2012604
Kishon Vijay Abraham I (10):
ARM: dts: dra7: Add dt node for PCIe registers in sysctrl space
ARM: dts: dra7: Use "syscon-phy-power" instead of "ctrl-module" in
SATA PHY node
ARM: dts: dra7: Use "syscon-phy-power" and "syscon-pcs" in PCIe PHY
node
ARM: dts: dra7: Use "ti,dra7x-usb2-phy2" compatible string for USB2
PHY2
ARM: dts: dra7: Use "syscon-phy-power" instead of "ctrl-module" in
USB PHY node
ARM: dts: am4372: Use "syscon-phy-power" instead of "ctrl-module" in
USB PHY node
ARM: dts: OMAP5: Use "syscon-phy-power" instead of "ctrl-module" in
USB PHY node
ARM: dts: OMAP5: Use "syscon-phy-power" instead of "ctrl-module" in
SATA PHY node
ARM: dts: omap4: Use "syscon-phy-power" instead of "ctrl-module" in
USB PHY node
ARM: dts: omap4: Use "syscon-otghs" instead of "ctrl-module" in USB
node
arch/arm/boot/dts/am4372.dtsi | 16 ++--------
arch/arm/boot/dts/dra7.dtsi | 69 ++++++++++-------------------------------
arch/arm/boot/dts/omap4.dtsi | 16 ++--------
arch/arm/boot/dts/omap5.dtsi | 26 ++--------------
4 files changed, 24 insertions(+), 103 deletions(-)
--
1.7.9.5
From: Kishon Vijay Abraham I <hidden> Date: 2015-08-04 15:31:17
Add new device tree node for the control module register space where
PCIe registers are present.
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
arch/arm/boot/dts/dra7.dtsi | 5 +++++
1 file changed, 5 insertions(+)
From: Kishon Vijay Abraham I <hidden> Date: 2015-08-04 15:31:20
Add "syscon-phy-power" property and remove the deprecated "ctrl-module"
property from SATA PHY node. Since "omap_control_sata" note is no longer
used, remove it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
arch/arm/boot/dts/dra7.dtsi | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
From: Kishon Vijay Abraham I <hidden> Date: 2015-08-04 15:31:26
The USB2 PHY2 has a different register map compared to USB2 PHY1
to power on/off the PHY. In order to handle it, use the new compatible
string "ti,dra7x-usb2-phy2" for the second instance of USB2 PHY.
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
arch/arm/boot/dts/dra7.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Kishon Vijay Abraham I <hidden> Date: 2015-08-04 15:31:30
Add "syscon-phy-power" property and "syscon-pcs" property which can
be used to perform the control module initializations and remove
the deprecated "ctrl-module" property from PCIe PHY dt nodes.
Phandle to "sysclk" clock node is also added to the PCIe PHY node
since some of the syscon initializations is based on system clock
frequency.
Since "omap_control_pcie1phy" and "omap_control_pcie2phy" devicetree
nodes are no longer used, remove it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
arch/arm/boot/dts/dra7.dtsi | 28 +++++++---------------------
1 file changed, 7 insertions(+), 21 deletions(-)
From: Kishon Vijay Abraham I <hidden> Date: 2015-08-04 15:31:34
Add "syscon-phy-power" property and remove the deprecated "ctrl-module"
property from USB PHY devicetree nodes.
Since "omap_control_usb2phy1", "omap_control_usb3phy1" and
"omap_control_usb2phy2" devicetree nodes are no longer used, remove it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
arch/arm/boot/dts/dra7.dtsi | 24 +++---------------------
1 file changed, 3 insertions(+), 21 deletions(-)
From: Kishon Vijay Abraham I <hidden> Date: 2015-08-04 15:31:39
Add "syscon-phy-power" property and remove the deprecated "ctrl-module"
property from SATA PHY node.
Since "omap_control_sata" devicetree node is no longer used, remove it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
arch/arm/boot/dts/omap5.dtsi | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
From: Kishon Vijay Abraham I <hidden> Date: 2015-08-04 15:31:44
Add "syscon-phy-power" property and remove the deprecated "ctrl-module"
property from USB PHY dt node.
Since "omap_control_usb2phy" devicetree node is no longer used,
remove it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
arch/arm/boot/dts/omap4.dtsi | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
From: Kishon Vijay Abraham I <hidden> Date: 2015-08-04 15:31:50
Add "syscon-otghs" property and remove the deprecated "ctrl-module"
property from MUSB devicetree node.
Since "omap_control_usbotg" devicetree node is no longer used, remove
it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
arch/arm/boot/dts/omap4.dtsi | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
From: Kishon Vijay Abraham I <hidden> Date: 2015-08-04 15:32:53
Add "syscon-phy-power" property and remove the deprecated "ctrl-module"
property from USB PHY device tree node.
Since "am43xx_control_usb2phy1" and "am43xx_control_usb2phy2"
devicetree nodes are no longer used, remove it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
arch/arm/boot/dts/am4372.dtsi | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
From: Kishon Vijay Abraham I <hidden> Date: 2015-08-04 15:32:54
Add "syscon-phy-power" property and remove the deprecated "ctrl-module"
property from USB PHY devicetree node.
Since "omap_control_usb2phy" and "omap_control_usb3phy" devicetree nodes
are no longer used, remove it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
arch/arm/boot/dts/omap5.dtsi | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
From: Roger Quadros <hidden> Date: 2015-08-05 07:56:25
On 04/08/15 18:30, Kishon Vijay Abraham I wrote:
Add "syscon-phy-power" property and remove the deprecated "ctrl-module"
property from SATA PHY node. Since "omap_control_sata" note is no longer
used, remove it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
From: Roger Quadros <hidden> Date: 2015-08-05 07:57:17
On 04/08/15 18:30, Kishon Vijay Abraham I wrote:
Add "syscon-phy-power" property and remove the deprecated "ctrl-module"
property from USB PHY devicetree nodes.
Since "omap_control_usb2phy1", "omap_control_usb3phy1" and
"omap_control_usb2phy2" devicetree nodes are no longer used, remove it.
From: Roger Quadros <hidden> Date: 2015-08-05 07:58:40
On 04/08/15 18:30, Kishon Vijay Abraham I wrote:
Add "syscon-phy-power" property and remove the deprecated "ctrl-module"
property from USB PHY device tree node.
Since "am43xx_control_usb2phy1" and "am43xx_control_usb2phy2"
devicetree nodes are no longer used, remove it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
--
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
From: Roger Quadros <hidden> Date: 2015-08-05 07:59:18
On 04/08/15 18:30, Kishon Vijay Abraham I wrote:
Add "syscon-phy-power" property and remove the deprecated "ctrl-module"
property from USB PHY devicetree node.
Since "omap_control_usb2phy" and "omap_control_usb3phy" devicetree nodes
are no longer used, remove it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
From: Roger Quadros <hidden> Date: 2015-08-05 08:00:17
On 04/08/15 18:30, Kishon Vijay Abraham I wrote:
Add "syscon-phy-power" property and remove the deprecated "ctrl-module"
property from SATA PHY node.
Since "omap_control_sata" devicetree node is no longer used, remove it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
From: Roger Quadros <hidden> Date: 2015-08-05 08:02:01
On 04/08/15 18:30, Kishon Vijay Abraham I wrote:
Add "syscon-phy-power" property and remove the deprecated "ctrl-module"
property from USB PHY dt node.
Since "omap_control_usb2phy" devicetree node is no longer used,
remove it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
--
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
From: Roger Quadros <hidden> Date: 2015-08-05 08:03:28
Kishon,
On 04/08/15 18:30, Kishon Vijay Abraham I wrote:
quoted hunk
Add "syscon-otghs" property and remove the deprecated "ctrl-module"
property from MUSB devicetree node.
Since "omap_control_usbotg" devicetree node is no longer used, remove
it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
arch/arm/boot/dts/omap4.dtsi | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
All other properties were of the format "syscon-phy-foo".
Why use a different format here?
Other than that
Acked-by: Roger Quadros <redacted>
cheers,
-roger
From: Roger Quadros <hidden> Date: 2015-08-05 08:09:22
On 05/08/15 11:02, Roger Quadros wrote:
Kishon,
On 04/08/15 18:30, Kishon Vijay Abraham I wrote:
quoted
Add "syscon-otghs" property and remove the deprecated "ctrl-module"
property from MUSB devicetree node.
Since "omap_control_usbotg" devicetree node is no longer used, remove
it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
arch/arm/boot/dts/omap4.dtsi | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
All other properties were of the format "syscon-phy-foo".
Why use a different format here?
Ah, looks like we don't have a dedicated phy driver for this?
We will need to add a PHY driver I guess then and handle this register
in that driver rather than in the musb driver.
cheers,
-roger
quoted
};
aes: aes@4b501000 {
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Kishon Vijay Abraham I <hidden> Date: 2015-08-05 14:25:57
Hi Roger,
On Wednesday 05 August 2015 01:38 PM, Roger Quadros wrote:
On 05/08/15 11:02, Roger Quadros wrote:
quoted
Kishon,
On 04/08/15 18:30, Kishon Vijay Abraham I wrote:
quoted
Add "syscon-otghs" property and remove the deprecated "ctrl-module"
property from MUSB devicetree node.
Since "omap_control_usbotg" devicetree node is no longer used, remove
it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
arch/arm/boot/dts/omap4.dtsi | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
All other properties were of the format "syscon-phy-foo".
Why use a different format here?
Ah, looks like we don't have a dedicated phy driver for this?
We will need to add a PHY driver I guess then and handle this register
in that driver rather than in the musb driver.
I was explaining in the other thread to Tony on why this shouldn't be done in a
PHY driver [1].
Thanks
Kishon
[1] -> https://lkml.org/lkml/2015/8/5/455
From: Tony Lindgren <tony@atomide.com> Date: 2015-08-06 08:48:19
* Kishon Vijay Abraham I [off-list ref] [150805 07:28]:
Hi Roger,
On Wednesday 05 August 2015 01:38 PM, Roger Quadros wrote:
quoted
On 05/08/15 11:02, Roger Quadros wrote:
quoted
Kishon,
On 04/08/15 18:30, Kishon Vijay Abraham I wrote:
quoted
Add "syscon-otghs" property and remove the deprecated "ctrl-module"
property from MUSB devicetree node.
Since "omap_control_usbotg" devicetree node is no longer used, remove
it.
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
arch/arm/boot/dts/omap4.dtsi | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
All other properties were of the format "syscon-phy-foo".
Why use a different format here?
Ah, looks like we don't have a dedicated phy driver for this?
We will need to add a PHY driver I guess then and handle this register
in that driver rather than in the musb driver.
I was explaining in the other thread to Tony on why this shouldn't be done in a
PHY driver [1].
And I just suggested thhere that it should be in the drivers/phy/phy-omap-usb2.c
PHY driver instead of the MUSB driver.
Regards,
Tony