* [PATCH v4 0/5] Add USB nodes for am43xx epos and gp evm
@ 2014-03-13 15:11 George Cherian
2014-03-13 15:11 ` [PATCH v4 1/5] doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue George Cherian
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: George Cherian @ 2014-03-13 15:11 UTC (permalink / raw)
To: linux-kernel, linux-doc, devicetree, linux-omap
Cc: balbi, rogerq, kishon, rob, galak, ijc+devicetree, mark.rutland,
pawel.moll, robh+dt, tony, anatol.pomozov, bcousson,
George Cherian
The patch series adds USB dt nodes for am43xx epos and gp evm
Boot tested with linux-next + Tony's omap-for-v3.15/dt
Changes from v1 -> v2
* Reorder "doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue"
* Address v1 coments on "ARM: dts: AM4372: Add USB nodes"
Changes from v2 -> v3
* Removed unwanted dwc3_1 and dwc3_2 nodes from am437x-gp-evm.dts
and am43x-epos-evm.dts
Changes from v3 -> v4
* Refreshed on top of Tony's omap-for-v3.15/dt tree
* Added usb_phy0_always_on_clk32k and usb_phy1_always_on_clk32k Patch 2
* Used the above clocks in Patch 3
* Patch 4 and 5 edited the unwanted portions of commit log
George Cherian (5):
doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue
ARM: dts: am43xx clock data
ARM: dts: AM4372: Add USB nodes
ARM: dts: am437x-gp-evm: Enable USB
ARM: dts: am43x-epos-evm: Enable USB
Documentation/devicetree/bindings/usb/omap-usb.txt | 4 +-
arch/arm/boot/dts/am4372.dtsi | 94 ++++++++++++++++++++++
arch/arm/boot/dts/am437x-gp-evm.dts | 26 ++++++
arch/arm/boot/dts/am43x-epos-evm.dts | 27 +++++++
arch/arm/boot/dts/am43xx-clocks.dtsi | 33 ++++++++
5 files changed, 183 insertions(+), 1 deletion(-)
--
1.8.3.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v4 1/5] doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue
2014-03-13 15:11 [PATCH v4 0/5] Add USB nodes for am43xx epos and gp evm George Cherian
@ 2014-03-13 15:11 ` George Cherian
2014-03-13 15:11 ` [PATCH v4 2/5] ARM: dts: am43xx clock data George Cherian
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: George Cherian @ 2014-03-13 15:11 UTC (permalink / raw)
To: linux-kernel, linux-doc, devicetree, linux-omap
Cc: balbi, rogerq, kishon, rob, galak, ijc+devicetree, mark.rutland,
pawel.moll, robh+dt, tony, anatol.pomozov, bcousson,
George Cherian
Add the compatible "ti,am437x-dwc3" for dwc3 glue driver.
Signed-off-by: George Cherian <george.cherian@ti.com>
Acked-by: Roger Quadros <rogerq@ti.com>
---
Documentation/devicetree/bindings/usb/omap-usb.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/usb/omap-usb.txt b/Documentation/devicetree/bindings/usb/omap-usb.txt
index 38b2fae..38d9bb8 100644
--- a/Documentation/devicetree/bindings/usb/omap-usb.txt
+++ b/Documentation/devicetree/bindings/usb/omap-usb.txt
@@ -44,7 +44,9 @@ Board specific device node entry
};
OMAP DWC3 GLUE
- - compatible : Should be "ti,dwc3"
+ - compatible : Should be
+ * "ti,dwc3" for OMAP5 and DRA7
+ * "ti,am437x-dwc3" for AM437x
- ti,hwmods : Should be "usb_otg_ss"
- reg : Address and length of the register set for the device.
- interrupts : The irq number of this device that is used to interrupt the
--
1.8.3.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v4 2/5] ARM: dts: am43xx clock data
2014-03-13 15:11 [PATCH v4 0/5] Add USB nodes for am43xx epos and gp evm George Cherian
2014-03-13 15:11 ` [PATCH v4 1/5] doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue George Cherian
@ 2014-03-13 15:11 ` George Cherian
2014-03-13 17:28 ` Roger Quadros
2014-03-13 15:11 ` [PATCH v4 3/5] ARM: dts: AM4372: Add USB nodes George Cherian
` (3 subsequent siblings)
5 siblings, 1 reply; 8+ messages in thread
From: George Cherian @ 2014-03-13 15:11 UTC (permalink / raw)
To: linux-kernel, linux-doc, devicetree, linux-omap
Cc: balbi, rogerq, kishon, rob, galak, ijc+devicetree, mark.rutland,
pawel.moll, robh+dt, tony, anatol.pomozov, bcousson,
George Cherian
Add USB and USB PHY reference clock data
Signed-off-by: George Cherian <george.cherian@ti.com>
---
arch/arm/boot/dts/am43xx-clocks.dtsi | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm/boot/dts/am43xx-clocks.dtsi b/arch/arm/boot/dts/am43xx-clocks.dtsi
index 142009c..c74d45c 100644
--- a/arch/arm/boot/dts/am43xx-clocks.dtsi
+++ b/arch/arm/boot/dts/am43xx-clocks.dtsi
@@ -653,4 +653,36 @@
clocks = <&clk_32768_ck>, <&clk_32k_tpm_ck>;
reg = <0x4260>;
};
+
+ usb_phy0_always_on_clk32k: usb_phy0_always_on_clk32k {
+ #clock-cells = <0>;
+ compatible = "fixed-factor-clock";
+ clocks = <&clk_32768_ck>;
+ clock-mult = <1>;
+ clock-div = <1>;
+ };
+
+ usb_phy1_always_on_clk32k: usb_phy1_always_on_clk32k {
+ #clock-cells = <0>;
+ compatible = "fixed-factor-clock";
+ clocks = <&clk_32768_ck>;
+ clock-mult = <1>;
+ clock-div = <1>;
+ };
+
+ usb_otg_ss0_refclk960m: usb_otg_ss0_refclk960m {
+ #clock-cells = <0>;
+ compatible = "ti,gate-clock";
+ clocks = <&dpll_per_clkdcoldo>;
+ ti,bit-shift = <8>;
+ reg = <0x8a60>;
+ };
+
+ usb_otg_ss1_refclk960m: usb_otg_ss1_refclk960m {
+ #clock-cells = <0>;
+ compatible = "ti,gate-clock";
+ clocks = <&dpll_per_clkdcoldo>;
+ ti,bit-shift = <8>;
+ reg = <0x8a68>;
+ };
};
--
1.8.3.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v4 3/5] ARM: dts: AM4372: Add USB nodes
2014-03-13 15:11 [PATCH v4 0/5] Add USB nodes for am43xx epos and gp evm George Cherian
2014-03-13 15:11 ` [PATCH v4 1/5] doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue George Cherian
2014-03-13 15:11 ` [PATCH v4 2/5] ARM: dts: am43xx clock data George Cherian
@ 2014-03-13 15:11 ` George Cherian
2014-03-13 15:11 ` [PATCH v4 4/5] ARM: dts: am437x-gp-evm: Enable USB George Cherian
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: George Cherian @ 2014-03-13 15:11 UTC (permalink / raw)
To: linux-kernel, linux-doc, devicetree, linux-omap
Cc: balbi, rogerq, kishon, rob, galak, ijc+devicetree, mark.rutland,
pawel.moll, robh+dt, tony, anatol.pomozov, bcousson,
George Cherian
Add nodes for 2 instances each of
- ocp2scp
- USB PHY control module
- USB PHY
- dwc3_omap
- USB
for AM43xx.
Signed-off-by: George Cherian <george.cherian@ti.com>
Acked-by: Roger Quadros <rogerq@ti.com>
---
arch/arm/boot/dts/am4372.dtsi | 94 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 94 insertions(+)
diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
index 36d523a..cedb9d4 100644
--- a/arch/arm/boot/dts/am4372.dtsi
+++ b/arch/arm/boot/dts/am4372.dtsi
@@ -735,6 +735,100 @@
#size-cells = <1>;
status = "disabled";
};
+
+ am43xx_control_usb2phy1: control-phy@44e10620 {
+ compatible = "ti,control-phy-usb2-am437";
+ reg = <0x44e10620 0x4>;
+ reg-names = "power";
+ };
+
+ am43xx_control_usb2phy2: control-phy@0x44e10628 {
+ compatible = "ti,control-phy-usb2-am437";
+ reg = <0x44e10628 0x4>;
+ reg-names = "power";
+ };
+
+ ocp2scp0: ocp2scp@483a8000 {
+ compatible = "ti,omap-ocp2scp";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+ ti,hwmods = "ocp2scp0";
+
+ usb2_phy1: phy@483a8000 {
+ compatible = "ti,am437x-usb2";
+ reg = <0x483a8000 0x8000>;
+ ctrl-module = <&am43xx_control_usb2phy1>;
+ clocks = <&usb_phy0_always_on_clk32k>,
+ <&usb_otg_ss0_refclk960m>;
+ clock-names = "wkupclk", "refclk";
+ #phy-cells = <0>;
+ status = "disabled";
+ };
+ };
+
+ ocp2scp1: ocp2scp@483e8000 {
+ compatible = "ti,omap-ocp2scp";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+ ti,hwmods = "ocp2scp1";
+
+ usb2_phy2: phy@483e8000 {
+ compatible = "ti,am437x-usb2";
+ reg = <0x483e8000 0x8000>;
+ ctrl-module = <&am43xx_control_usb2phy2>;
+ clocks = <&usb_phy1_always_on_clk32k>,
+ <&usb_otg_ss1_refclk960m>;
+ clock-names = "wkupclk", "refclk";
+ #phy-cells = <0>;
+ status = "disabled";
+ };
+ };
+
+ dwc3_1: omap_dwc3@48380000 {
+ compatible = "ti,am437x-dwc3";
+ ti,hwmods = "usb_otg_ss0";
+ reg = <0x48380000 0x10000>;
+ interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ utmi-mode = <1>;
+ ranges;
+
+ usb1: usb@48390000 {
+ compatible = "synopsys,dwc3";
+ reg = <0x48390000 0x17000>;
+ interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
+ phys = <&usb2_phy1>;
+ phy-names = "usb2-phy";
+ maximum-speed = "high-speed";
+ dr_mode = "otg";
+ status = "disabled";
+ };
+ };
+
+ dwc3_2: omap_dwc3@483c0000 {
+ compatible = "ti,am437x-dwc3";
+ ti,hwmods = "usb_otg_ss1";
+ reg = <0x483c0000 0x10000>;
+ interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ utmi-mode = <1>;
+ ranges;
+
+ usb2: usb@483d0000 {
+ compatible = "synopsys,dwc3";
+ reg = <0x483d0000 0x17000>;
+ interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
+ phys = <&usb2_phy2>;
+ phy-names = "usb2-phy";
+ maximum-speed = "high-speed";
+ dr_mode = "otg";
+ status = "disabled";
+ };
+ };
};
};
--
1.8.3.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v4 4/5] ARM: dts: am437x-gp-evm: Enable USB
2014-03-13 15:11 [PATCH v4 0/5] Add USB nodes for am43xx epos and gp evm George Cherian
` (2 preceding siblings ...)
2014-03-13 15:11 ` [PATCH v4 3/5] ARM: dts: AM4372: Add USB nodes George Cherian
@ 2014-03-13 15:11 ` George Cherian
2014-03-13 15:11 ` [PATCH v4 5/5] ARM: dts: am43x-epos-evm: " George Cherian
2014-03-13 15:17 ` [PATCH v4 0/5] Add USB nodes for am43xx epos and gp evm Felipe Balbi
5 siblings, 0 replies; 8+ messages in thread
From: George Cherian @ 2014-03-13 15:11 UTC (permalink / raw)
To: linux-kernel, linux-doc, devicetree, linux-omap
Cc: balbi, rogerq, kishon, rob, galak, ijc+devicetree, mark.rutland,
pawel.moll, robh+dt, tony, anatol.pomozov, bcousson,
George Cherian
Enable
- USB PHY
- USB
for am437x-gp-evm
Signed-off-by: George Cherian <george.cherian@ti.com>
Acked-by: Roger Quadros <rogerq@ti.com>
---
arch/arm/boot/dts/am437x-gp-evm.dts | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts
index df8798e..9e57538 100644
--- a/arch/arm/boot/dts/am437x-gp-evm.dts
+++ b/arch/arm/boot/dts/am437x-gp-evm.dts
@@ -125,3 +125,21 @@
pinctrl-0 = <&mmc1_pins>;
cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
};
+
+&usb2_phy1 {
+ status = "okay";
+};
+
+&usb1 {
+ dr_mode = "peripheral";
+ status = "okay";
+};
+
+&usb2_phy2 {
+ status = "okay";
+};
+
+&usb2 {
+ dr_mode = "host";
+ status = "okay";
+};
--
1.8.3.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v4 5/5] ARM: dts: am43x-epos-evm: Enable USB
2014-03-13 15:11 [PATCH v4 0/5] Add USB nodes for am43xx epos and gp evm George Cherian
` (3 preceding siblings ...)
2014-03-13 15:11 ` [PATCH v4 4/5] ARM: dts: am437x-gp-evm: Enable USB George Cherian
@ 2014-03-13 15:11 ` George Cherian
2014-03-13 15:17 ` [PATCH v4 0/5] Add USB nodes for am43xx epos and gp evm Felipe Balbi
5 siblings, 0 replies; 8+ messages in thread
From: George Cherian @ 2014-03-13 15:11 UTC (permalink / raw)
To: linux-kernel, linux-doc, devicetree, linux-omap
Cc: balbi, rogerq, kishon, rob, galak, ijc+devicetree, mark.rutland,
pawel.moll, robh+dt, tony, anatol.pomozov, bcousson,
George Cherian
Enable
- USB PHY
- USB
for am43x-epos-evm
Signed-off-by: George Cherian <george.cherian@ti.com>
Acked-by: Roger Quadros <rogerq@ti.com>
---
arch/arm/boot/dts/am43x-epos-evm.dts | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts
index 167dbc8..1a4946a 100644
--- a/arch/arm/boot/dts/am43x-epos-evm.dts
+++ b/arch/arm/boot/dts/am43x-epos-evm.dts
@@ -367,3 +367,21 @@
pinctrl-0 = <&spi1_pins>;
status = "okay";
};
+
+&usb2_phy1 {
+ status = "okay";
+};
+
+&usb1 {
+ dr_mode = "peripheral";
+ status = "okay";
+};
+
+&usb2_phy2 {
+ status = "okay";
+};
+
+&usb2 {
+ dr_mode = "host";
+ status = "okay";
+};
--
1.8.3.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v4 0/5] Add USB nodes for am43xx epos and gp evm
2014-03-13 15:11 [PATCH v4 0/5] Add USB nodes for am43xx epos and gp evm George Cherian
` (4 preceding siblings ...)
2014-03-13 15:11 ` [PATCH v4 5/5] ARM: dts: am43x-epos-evm: " George Cherian
@ 2014-03-13 15:17 ` Felipe Balbi
5 siblings, 0 replies; 8+ messages in thread
From: Felipe Balbi @ 2014-03-13 15:17 UTC (permalink / raw)
To: George Cherian
Cc: linux-kernel, linux-doc, devicetree, linux-omap, balbi, rogerq,
kishon, rob, galak, ijc+devicetree, mark.rutland, pawel.moll,
robh+dt, tony, anatol.pomozov, bcousson
[-- Attachment #1: Type: text/plain, Size: 850 bytes --]
On Thu, Mar 13, 2014 at 08:41:11PM +0530, George Cherian wrote:
> The patch series adds USB dt nodes for am43xx epos and gp evm
> Boot tested with linux-next + Tony's omap-for-v3.15/dt
>
> Changes from v1 -> v2
> * Reorder "doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue"
> * Address v1 coments on "ARM: dts: AM4372: Add USB nodes"
>
> Changes from v2 -> v3
> * Removed unwanted dwc3_1 and dwc3_2 nodes from am437x-gp-evm.dts
> and am43x-epos-evm.dts
>
> Changes from v3 -> v4
> * Refreshed on top of Tony's omap-for-v3.15/dt tree
> * Added usb_phy0_always_on_clk32k and usb_phy1_always_on_clk32k Patch 2
> * Used the above clocks in Patch 3
> * Patch 4 and 5 edited the unwanted portions of commit log
hope there's still time for v3.15, it would be great to see these
patches in v3.15-final.
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v4 2/5] ARM: dts: am43xx clock data
2014-03-13 15:11 ` [PATCH v4 2/5] ARM: dts: am43xx clock data George Cherian
@ 2014-03-13 17:28 ` Roger Quadros
0 siblings, 0 replies; 8+ messages in thread
From: Roger Quadros @ 2014-03-13 17:28 UTC (permalink / raw)
To: George Cherian, linux-kernel, linux-doc, devicetree, linux-omap
Cc: balbi, kishon, rob, galak, ijc+devicetree, mark.rutland,
pawel.moll, robh+dt, tony, anatol.pomozov, bcousson
On 03/13/2014 05:11 PM, George Cherian wrote:
> Add USB and USB PHY reference clock data
>
> Signed-off-by: George Cherian <george.cherian@ti.com>
> ---
> arch/arm/boot/dts/am43xx-clocks.dtsi | 32 ++++++++++++++++++++++++++++++++
> 1 file changed, 32 insertions(+)
>
> diff --git a/arch/arm/boot/dts/am43xx-clocks.dtsi b/arch/arm/boot/dts/am43xx-clocks.dtsi
> index 142009c..c74d45c 100644
> --- a/arch/arm/boot/dts/am43xx-clocks.dtsi
> +++ b/arch/arm/boot/dts/am43xx-clocks.dtsi
> @@ -653,4 +653,36 @@
> clocks = <&clk_32768_ck>, <&clk_32k_tpm_ck>;
> reg = <0x4260>;
> };
> +
> + usb_phy0_always_on_clk32k: usb_phy0_always_on_clk32k {
> + #clock-cells = <0>;
> + compatible = "fixed-factor-clock";
> + clocks = <&clk_32768_ck>;
> + clock-mult = <1>;
> + clock-div = <1>;
> + };
> +
> + usb_phy1_always_on_clk32k: usb_phy1_always_on_clk32k {
> + #clock-cells = <0>;
> + compatible = "fixed-factor-clock";
> + clocks = <&clk_32768_ck>;
> + clock-mult = <1>;
> + clock-div = <1>;
> + };
Shouldn't these be like so?
usb_phy0_always_on_clk32k: usb_phy0_always_on_clk32k {
#clock-cells = <0>;
compatible = "ti,gate-clock";
clocks = <&usbphy_32khz_clkmux>;
ti,bit-shift = <8>;
reg = <0x2a40>;
};
usb_phy1_always_on_clk32k: usb_phy1_always_on_clk32k {
#clock-cells = <0>;
compatible = "ti,gate-clock";
clocks = <&usbphy_32khz_clkmux>;
ti,bit-shift = <8>;
reg = <0x2a48>;
};
> +
> + usb_otg_ss0_refclk960m: usb_otg_ss0_refclk960m {
> + #clock-cells = <0>;
> + compatible = "ti,gate-clock";
> + clocks = <&dpll_per_clkdcoldo>;
> + ti,bit-shift = <8>;
> + reg = <0x8a60>;
> + };
> +
> + usb_otg_ss1_refclk960m: usb_otg_ss1_refclk960m {
> + #clock-cells = <0>;
> + compatible = "ti,gate-clock";
> + clocks = <&dpll_per_clkdcoldo>;
> + ti,bit-shift = <8>;
> + reg = <0x8a68>;
> + };
> };
>
cheers,
-roger
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-03-13 17:28 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-13 15:11 [PATCH v4 0/5] Add USB nodes for am43xx epos and gp evm George Cherian
2014-03-13 15:11 ` [PATCH v4 1/5] doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue George Cherian
2014-03-13 15:11 ` [PATCH v4 2/5] ARM: dts: am43xx clock data George Cherian
2014-03-13 17:28 ` Roger Quadros
2014-03-13 15:11 ` [PATCH v4 3/5] ARM: dts: AM4372: Add USB nodes George Cherian
2014-03-13 15:11 ` [PATCH v4 4/5] ARM: dts: am437x-gp-evm: Enable USB George Cherian
2014-03-13 15:11 ` [PATCH v4 5/5] ARM: dts: am43x-epos-evm: " George Cherian
2014-03-13 15:17 ` [PATCH v4 0/5] Add USB nodes for am43xx epos and gp evm Felipe Balbi
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).