Skip to contentSkip to conversation

platform: Add DT support for DA8xx

PATCH In review Alexandre Bailon 2 participants 4 messages Nov 16, 2016 – Nov 20, 2016 Device tree bindings

lore
Share & tools
lore
#0 lore raw

v5 cover platform: Add DT support for DA8xx

This add and enable the usb otg for da850 and da850-lcdk. This series depends on "driver: dd DT support for DA8xx" patch set.

If this series is applied before the "usb: musb: da8xx: Fix few issues" patch set then the usb driver will always retrun -ENODEV.

Changes in v2:
* Remove unrelated changes in patch 3
* Rename the device node in patch 4

Changes in v3:
* Fix few mistakes in DT binding sample
* Only build the device table if DT is enabled

Change in v4:
* Fix a nit

Changes in v5:
* Remove usb_phy node from d850.dtsi because it has already been merged.
* Separated the patch in two: one for the board and one for the SoC.

Alexandre Bailon (2):
ARM: dts: da850: Add the usb otg device node
ARM: dts: da850-lcdk: Enable the usb otg device node

 arch/arm/boot/dts/da850-lcdk.dts |  8 ++++++++
 arch/arm/boot/dts/da850.dtsi     | 10 ++++++++++
 2 files changed, 18 insertions(+)
Signature · 1 line
2.7.3
#1 lore raw

PATCH v5 1/2 ARM: dts: da850: Add the usb otg device node

This adds the device tree node for the usb otg
controller present in the da850 family of SoC's.

---
 arch/arm/boot/dts/da850.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/da850.dtsi +10 -0
index 2534aab..ddf4c6e 100644
@@ -383,6 +383,16 @@
 			dma-names = "rx", "tx";
 			status = "disabled";
 		};
+		usb0: usb at 200000 {
+			compatible = "ti,da830-musb";
+			reg = <0x200000 0x10000>;
+			interrupts = <58>;
+			interrupt-names = "mc";
+			dr_mode = "otg";
+			phys = <&usb_phy 0>;
+			phy-names = "usb-phy";
+			status = "disabled";
+		};
 		mdio: mdio at 224000 {
 			compatible = "ti,davinci_mdio";
 			#address-cells = <1>;
Signature · 1 line
2.7.3
#2 lore raw

PATCH v5 2/2 ARM: dts: da850-lcdk: Enable the usb otg device node

In reply to Alexandre Bailon

This enables the usb otg controller for the lcdk board.

---
 arch/arm/boot/dts/da850-lcdk.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/boot/dts/da850-lcdk.dts +8 -0
index 7b8ab21..03f9bfd 100644
@@ -158,6 +158,14 @@
 	rx-num-evt = <32>;
 };
 
+&usb_phy {
+	status = "okay";
+};
+
+&usb0 {
+	status = "okay";
+};
+
 &aemif {
 	pinctrl-names = "default";
 	pinctrl-0 = <&nand_pins>;
Signature · 1 line
2.7.3
#3 lore raw
In reply to Alexandre Bailon
Quoted 2 lines · Alexandre Bailon

This add and enable the usb otg for da850 and da850-lcdk. This series depends on "driver: dd DT support for DA8xx" patch set.

I see that Bin has already applied this.

Quoted 2 lines

If this series is applied before the "usb: musb: da8xx: Fix few issues" patch set then the usb driver will always retrun -ENODEV.

And this seems to be applied too. So I am going ahead and applying this series.

For future, please add some information on which device you are referring to in the subject line. Reading the subject line for the cover-letter, there is no way to know what exactly is being worked on here.

Thanks,
Sekhar