Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1594697

[PATCH] ARM64: dts: meson-gxbb-odroidc2: enable USB Host Nodes

From Anand Moon <linux.amoon@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] ARM64: dts: meson-gxbb-odroidc2: enable USB Host Nodes
Date 2017-03-07 23:20 +0100
Message-ID <tivCx-5Bp-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


From: Anand Moon <linux.amoon@gmail.com>

update the regulator supply nodes for usb host to
enable usb host on odroid-c2

Signed-off-by: Anand Moon <linux.amoon@gmail.com>
---
root@odroid64:/usr/src/odroidxu3-4.y-devel# lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 1: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 2: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M
        |__ Port 4: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
---
 arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
index c59403a..304b676 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
@@ -64,6 +64,18 @@
 		reg = <0x0 0x0 0x0 0x80000000>;
 	};
 
+	usb_host_pwr: regulator-usb-pwrs {
+		compatible = "regulator-fixed";
+
+		regulator-name = "USB_HOST_PWR";
+
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+
+		gpio = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+	};
+
 	usb_otg_pwr: regulator-usb-pwrs {
 		compatible = "regulator-fixed";
 
@@ -184,6 +196,7 @@
 
 &usb1_phy {
 	status = "okay";
+	phy-supply = <&usb_host_pwr>;
 };
 
 &usb0 {
-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] ARM64: dts: meson-gxbb-odroidc2: enable USB Host Nodes Anand Moon <linux.amoon@gmail.com> - 2017-03-07 23:20 +0100
  Re: [PATCH] ARM64: dts: meson-gxbb-odroidc2: enable USB Host Nodes Anand Moon <linux.amoon@gmail.com> - 2017-03-08 18:30 +0100
    Re: [PATCH] ARM64: dts: meson-gxbb-odroidc2: enable USB Host Nodes Neil Armstrong <narmstrong@baylibre.com> - 2017-03-09 14:30 +0100
      Re: [PATCH] ARM64: dts: meson-gxbb-odroidc2: enable USB Host Nodes Anand Moon <linux.amoon@gmail.com> - 2017-03-09 19:00 +0100
        Re: [PATCH] ARM64: dts: meson-gxbb-odroidc2: enable USB Host Nodes Martin Blumenstingl <martin.blumenstingl@googlemail.com> - 2017-03-09 20:40 +0100
          Re: [PATCH] ARM64: dts: meson-gxbb-odroidc2: enable USB Host Nodes Anand Moon <linux.amoon@gmail.com> - 2017-03-11 07:50 +0100

csiph-web