* [PATCH v5 0/5] Add USB nodes for am43xx epos and gp evm
@ 2014-03-19 10:09 George Cherian
2014-03-19 10:09 ` [PATCH v5 1/5] doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue George Cherian
` (5 more replies)
0 siblings, 6 replies; 14+ messages in thread
From: George Cherian @ 2014-03-19 10:09 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
Changes from v4 -> v5
* Address Roger's comment for the clock data
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 | 18 +++++
arch/arm/boot/dts/am43x-epos-evm.dts | 18 +++++
arch/arm/boot/dts/am43xx-clocks.dtsi | 32 ++++++++
5 files changed, 165 insertions(+), 1 deletion(-)
--
1.8.3.1
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH v5 1/5] doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue
2014-03-19 10:09 [PATCH v5 0/5] Add USB nodes for am43xx epos and gp evm George Cherian
@ 2014-03-19 10:09 ` George Cherian
2014-04-25 16:17 ` Felipe Balbi
2014-03-19 10:10 ` [PATCH v5 2/5] ARM: dts: am43xx clock data George Cherian
` (4 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: George Cherian @ 2014-03-19 10:09 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] 14+ messages in thread
* [PATCH v5 2/5] ARM: dts: am43xx clock data
2014-03-19 10:09 [PATCH v5 0/5] Add USB nodes for am43xx epos and gp evm George Cherian
2014-03-19 10:09 ` [PATCH v5 1/5] doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue George Cherian
@ 2014-03-19 10:10 ` George Cherian
[not found] ` <1395223803-4714-3-git-send-email-george.cherian-l0cyMroinI0@public.gmane.org>
2014-04-25 16:18 ` Felipe Balbi
2014-03-19 10:10 ` [PATCH v5 3/5] ARM: dts: AM4372: Add USB nodes George Cherian
` (3 subsequent siblings)
5 siblings, 2 replies; 14+ messages in thread
From: George Cherian @ 2014-03-19 10:10 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..5171d3e 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 = "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>;
+ };
};
--
1.8.3.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v5 3/5] ARM: dts: AM4372: Add USB nodes
2014-03-19 10:09 [PATCH v5 0/5] Add USB nodes for am43xx epos and gp evm George Cherian
2014-03-19 10:09 ` [PATCH v5 1/5] doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue George Cherian
2014-03-19 10:10 ` [PATCH v5 2/5] ARM: dts: am43xx clock data George Cherian
@ 2014-03-19 10:10 ` George Cherian
2014-04-25 16:18 ` Felipe Balbi
2014-03-19 10:10 ` [PATCH v5 4/5] ARM: dts: am437x-gp-evm: Enable USB George Cherian
` (2 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: George Cherian @ 2014-03-19 10:10 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] 14+ messages in thread
* [PATCH v5 4/5] ARM: dts: am437x-gp-evm: Enable USB
2014-03-19 10:09 [PATCH v5 0/5] Add USB nodes for am43xx epos and gp evm George Cherian
` (2 preceding siblings ...)
2014-03-19 10:10 ` [PATCH v5 3/5] ARM: dts: AM4372: Add USB nodes George Cherian
@ 2014-03-19 10:10 ` George Cherian
2014-04-25 16:18 ` Felipe Balbi
2014-03-19 10:10 ` [PATCH v5 5/5] ARM: dts: am43x-epos-evm: " George Cherian
2014-04-25 16:19 ` [PATCH v5 0/5] Add USB nodes for am43xx epos and gp evm Felipe Balbi
5 siblings, 1 reply; 14+ messages in thread
From: George Cherian @ 2014-03-19 10:10 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] 14+ messages in thread
* [PATCH v5 5/5] ARM: dts: am43x-epos-evm: Enable USB
2014-03-19 10:09 [PATCH v5 0/5] Add USB nodes for am43xx epos and gp evm George Cherian
` (3 preceding siblings ...)
2014-03-19 10:10 ` [PATCH v5 4/5] ARM: dts: am437x-gp-evm: Enable USB George Cherian
@ 2014-03-19 10:10 ` George Cherian
2014-04-25 16:18 ` Felipe Balbi
2014-04-25 16:19 ` [PATCH v5 0/5] Add USB nodes for am43xx epos and gp evm Felipe Balbi
5 siblings, 1 reply; 14+ messages in thread
From: George Cherian @ 2014-03-19 10:10 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] 14+ messages in thread
* Re: [PATCH v5 2/5] ARM: dts: am43xx clock data
[not found] ` <1395223803-4714-3-git-send-email-george.cherian-l0cyMroinI0@public.gmane.org>
@ 2014-03-25 9:49 ` Roger Quadros
0 siblings, 0 replies; 14+ messages in thread
From: Roger Quadros @ 2014-03-25 9:49 UTC (permalink / raw)
To: George Cherian, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-doc-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-omap-u79uwXL29TY76Z2rM5mHXA
Cc: balbi-l0cyMroinI0, kishon-l0cyMroinI0, rob-VoJi6FS/r0vR7s880joybQ,
galak-sgV2jX0FEOL9JmXXK+q4OQ,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, mark.rutland-5wv7dgnIgG8,
pawel.moll-5wv7dgnIgG8, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
tony-4v6yS6AI5VpBDgjK7y7TUQ,
anatol.pomozov-Re5JQEeQqe8AvxtiuMwx3w,
bcousson-rdvid1DuHRBWk0Htik3J/w
On 03/19/2014 12:10 PM, George Cherian wrote:
> Add USB and USB PHY reference clock data
>
> Signed-off-by: George Cherian <george.cherian-l0cyMroinI0@public.gmane.org>
Acked-by: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org>
cheers,
-roger
> ---
> 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..5171d3e 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 = "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>;
> + };
> };
>
--
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v5 1/5] doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue
2014-03-19 10:09 ` [PATCH v5 1/5] doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue George Cherian
@ 2014-04-25 16:17 ` Felipe Balbi
0 siblings, 0 replies; 14+ messages in thread
From: Felipe Balbi @ 2014-04-25 16: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: 1124 bytes --]
On Wed, Mar 19, 2014 at 03:39:59PM +0530, George Cherian wrote:
> 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>
Acked-by: Felipe Balbi <balbi@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
>
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v5 2/5] ARM: dts: am43xx clock data
2014-03-19 10:10 ` [PATCH v5 2/5] ARM: dts: am43xx clock data George Cherian
[not found] ` <1395223803-4714-3-git-send-email-george.cherian-l0cyMroinI0@public.gmane.org>
@ 2014-04-25 16:18 ` Felipe Balbi
1 sibling, 0 replies; 14+ messages in thread
From: Felipe Balbi @ 2014-04-25 16:18 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: 1684 bytes --]
On Wed, Mar 19, 2014 at 03:40:00PM +0530, George Cherian wrote:
> Add USB and USB PHY reference clock data
>
> Signed-off-by: George Cherian <george.cherian@ti.com>
Acked-by: Felipe Balbi <balbi@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..5171d3e 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 = "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>;
> + };
> };
> --
> 1.8.3.1
>
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v5 3/5] ARM: dts: AM4372: Add USB nodes
2014-03-19 10:10 ` [PATCH v5 3/5] ARM: dts: AM4372: Add USB nodes George Cherian
@ 2014-04-25 16:18 ` Felipe Balbi
0 siblings, 0 replies; 14+ messages in thread
From: Felipe Balbi @ 2014-04-25 16:18 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: 3517 bytes --]
On Wed, Mar 19, 2014 at 03:40:01PM +0530, George Cherian wrote:
> 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>
Acked-by: Felipe Balbi <balbi@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
>
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v5 4/5] ARM: dts: am437x-gp-evm: Enable USB
2014-03-19 10:10 ` [PATCH v5 4/5] ARM: dts: am437x-gp-evm: Enable USB George Cherian
@ 2014-04-25 16:18 ` Felipe Balbi
0 siblings, 0 replies; 14+ messages in thread
From: Felipe Balbi @ 2014-04-25 16:18 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: 981 bytes --]
On Wed, Mar 19, 2014 at 03:40:02PM +0530, George Cherian wrote:
> Enable
> - USB PHY
> - USB
> for am437x-gp-evm
>
> Signed-off-by: George Cherian <george.cherian@ti.com>
> Acked-by: Roger Quadros <rogerq@ti.com>
Acked-by: Felipe Balbi <balbi@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
>
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v5 5/5] ARM: dts: am43x-epos-evm: Enable USB
2014-03-19 10:10 ` [PATCH v5 5/5] ARM: dts: am43x-epos-evm: " George Cherian
@ 2014-04-25 16:18 ` Felipe Balbi
0 siblings, 0 replies; 14+ messages in thread
From: Felipe Balbi @ 2014-04-25 16:18 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: 968 bytes --]
On Wed, Mar 19, 2014 at 03:40:03PM +0530, George Cherian wrote:
> Enable
> - USB PHY
> - USB
>
> for am43x-epos-evm
>
> Signed-off-by: George Cherian <george.cherian@ti.com>
> Acked-by: Roger Quadros <rogerq@ti.com>
Acked-by: Felipe Balbi <balbi@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
>
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v5 0/5] Add USB nodes for am43xx epos and gp evm
2014-03-19 10:09 [PATCH v5 0/5] Add USB nodes for am43xx epos and gp evm George Cherian
` (4 preceding siblings ...)
2014-03-19 10:10 ` [PATCH v5 5/5] ARM: dts: am43x-epos-evm: " George Cherian
@ 2014-04-25 16:19 ` Felipe Balbi
[not found] ` <536745F6.9080402@ti.com>
5 siblings, 1 reply; 14+ messages in thread
From: Felipe Balbi @ 2014-04-25 16:19 UTC (permalink / raw)
To: George Cherian, Benoit Cousson
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: 1563 bytes --]
On Wed, Mar 19, 2014 at 03:39:58PM +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
>
> Changes from v4 -> v5
> * Address Roger's comment for the clock data
>
> 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 | 18 +++++
> arch/arm/boot/dts/am43x-epos-evm.dts | 18 +++++
> arch/arm/boot/dts/am43xx-clocks.dtsi | 32 ++++++++
> 5 files changed, 165 insertions(+), 1 deletion(-)
Is this applied anywhere yet ? Benoit, are you taking this for v3.16
merge window ?
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v5 0/5] Add USB nodes for am43xx epos and gp evm
[not found] ` <536745F6.9080402-l0cyMroinI0@public.gmane.org>
@ 2014-05-05 19:23 ` Tony Lindgren
0 siblings, 0 replies; 14+ messages in thread
From: Tony Lindgren @ 2014-05-05 19:23 UTC (permalink / raw)
To: George Cherian
Cc: balbi-l0cyMroinI0, Benoit Cousson,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-doc-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-omap-u79uwXL29TY76Z2rM5mHXA, rogerq-l0cyMroinI0,
kishon-l0cyMroinI0, rob-VoJi6FS/r0vR7s880joybQ,
galak-sgV2jX0FEOL9JmXXK+q4OQ,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, mark.rutland-5wv7dgnIgG8,
pawel.moll-5wv7dgnIgG8, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
anatol.pomozov-Re5JQEeQqe8AvxtiuMwx3w,
bcousson-rdvid1DuHRBWk0Htik3J/w
* George Cherian <george.cherian-l0cyMroinI0@public.gmane.org> [140505 01:04]:
> Hi Benoit,
>
> On 4/25/2014 9:49 PM, Felipe Balbi wrote:
> >On Wed, Mar 19, 2014 at 03:39:58PM +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
> >>
> >>Changes from v4 -> v5
> >> * Address Roger's comment for the clock data
> >>
> >>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 | 18 +++++
> >> arch/arm/boot/dts/am43x-epos-evm.dts | 18 +++++
> >> arch/arm/boot/dts/am43xx-clocks.dtsi | 32 ++++++++
> >> 5 files changed, 165 insertions(+), 1 deletion(-)
> >Is this applied anywhere yet ? Benoit, are you taking this for v3.16
> >merge window ?
> >
> Ping on this series.
Applying these into omap-for-v3.16/dt as I'm applying patches today.
Regards,
Tony
--
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
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2014-05-05 19:23 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-19 10:09 [PATCH v5 0/5] Add USB nodes for am43xx epos and gp evm George Cherian
2014-03-19 10:09 ` [PATCH v5 1/5] doc: Add "ti,am437x-dwc3" comaptible for dwc3 glue George Cherian
2014-04-25 16:17 ` Felipe Balbi
2014-03-19 10:10 ` [PATCH v5 2/5] ARM: dts: am43xx clock data George Cherian
[not found] ` <1395223803-4714-3-git-send-email-george.cherian-l0cyMroinI0@public.gmane.org>
2014-03-25 9:49 ` Roger Quadros
2014-04-25 16:18 ` Felipe Balbi
2014-03-19 10:10 ` [PATCH v5 3/5] ARM: dts: AM4372: Add USB nodes George Cherian
2014-04-25 16:18 ` Felipe Balbi
2014-03-19 10:10 ` [PATCH v5 4/5] ARM: dts: am437x-gp-evm: Enable USB George Cherian
2014-04-25 16:18 ` Felipe Balbi
2014-03-19 10:10 ` [PATCH v5 5/5] ARM: dts: am43x-epos-evm: " George Cherian
2014-04-25 16:18 ` Felipe Balbi
2014-04-25 16:19 ` [PATCH v5 0/5] Add USB nodes for am43xx epos and gp evm Felipe Balbi
[not found] ` <536745F6.9080402@ti.com>
[not found] ` <536745F6.9080402-l0cyMroinI0@public.gmane.org>
2014-05-05 19:23 ` Tony Lindgren
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).