Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/dts Enable USB-OTG-EHCI and USB-OTG-OHCI contro...
details: https://anonhg.NetBSD.org/src/rev/0829c65a5c63
branches: trunk
changeset: 356206:0829c65a5c63
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Sep 09 12:05:28 2017 +0000
description:
Enable USB-OTG-EHCI and USB-OTG-OHCI controllers on Pine64+.
diffstat:
sys/arch/arm/dts/sun50i-a64-pine64-plus.dts | 10 ++++++++-
sys/arch/arm/dts/sun50i-a64.dtsi | 32 ++++++++++++++++++++++++++++-
2 files changed, 40 insertions(+), 2 deletions(-)
diffs (64 lines):
diff -r 8b4f864c119a -r 0829c65a5c63 sys/arch/arm/dts/sun50i-a64-pine64-plus.dts
--- a/sys/arch/arm/dts/sun50i-a64-pine64-plus.dts Sat Sep 09 12:02:57 2017 +0000
+++ b/sys/arch/arm/dts/sun50i-a64-pine64-plus.dts Sat Sep 09 12:05:28 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sun50i-a64-pine64-plus.dts,v 1.1 2017/09/07 21:37:56 jmcneill Exp $ */
+/* $NetBSD: sun50i-a64-pine64-plus.dts,v 1.2 2017/09/09 12:05:28 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -41,3 +41,11 @@
reg = <1>;
};
};
+
+&ehci0 {
+ status = "okay";
+};
+
+&ohci0 {
+ status = "okay";
+};
diff -r 8b4f864c119a -r 0829c65a5c63 sys/arch/arm/dts/sun50i-a64.dtsi
--- a/sys/arch/arm/dts/sun50i-a64.dtsi Sat Sep 09 12:02:57 2017 +0000
+++ b/sys/arch/arm/dts/sun50i-a64.dtsi Sat Sep 09 12:05:28 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sun50i-a64.dtsi,v 1.2 2017/09/07 21:46:42 jmcneill Exp $ */
+/* $NetBSD: sun50i-a64.dtsi,v 1.3 2017/09/09 12:05:28 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -75,3 +75,33 @@
drive-strength = <40>;
};
};
+
+/ {
+ soc {
+ ehci0: usb@01c1a000 {
+ compatible = "allwinner,sun50i-a64-ehci", "generic-ehci";
+ reg = <0x01c1a000 0x100>;
+ interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&ccu CLK_BUS_OHCI0>,
+ <&ccu CLK_BUS_EHCI0>,
+ <&ccu CLK_USB_OHCI0>;
+ resets = <&ccu RST_BUS_OHCI0>,
+ <&ccu RST_BUS_EHCI0>;
+ phys = <&usbphy 0>;
+ phy-names = "usb";
+ status = "disabled";
+ };
+
+ ohci0: usb@01c1a400 {
+ compatible = "allwinner,sun50i-a64-ohci", "generic-ohci";
+ reg = <0x01c1a400 0x100>;
+ interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&ccu CLK_BUS_OHCI0>,
+ <&ccu CLK_USB_OHCI0>;
+ resets = <&ccu RST_BUS_OHCI0>;
+ phys = <&usbphy 0>;
+ phy-names = "usb";
+ status = "disabled";
+ };
+ };
+};
Home |
Main Index |
Thread Index |
Old Index