mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

On Odroid c4 previously use gpio-hog to reset the usb hub, switch to used on-board usb hub reset to enable the usb hub and enable power to hub. USB hub is combination of USB 2.0 and USB 3.0 root hub so use peer-hub node to link then. Signed-off-by: Anand Moon <linux.amoon@gmail.com> Link: https://lore.kernel.org/r/20230118044418.875-8-linux.amoon@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
58 lines
1.1 KiB
Text
58 lines
1.1 KiB
Text
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2020 Dongjin Kim <tobetter@gmail.com>
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include "meson-sm1-odroid.dtsi"
|
|
|
|
/ {
|
|
compatible = "hardkernel,odroid-c4", "amlogic,sm1";
|
|
model = "Hardkernel ODROID-C4";
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led-blue {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_STATUS;
|
|
gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>;
|
|
linux,default-trigger = "heartbeat";
|
|
panic-indicator;
|
|
};
|
|
};
|
|
|
|
sound {
|
|
model = "ODROID-C4";
|
|
};
|
|
|
|
/* USB hub supports both USB 2.0 and USB 3.0 root hub */
|
|
usb-hub {
|
|
dr_mode = "host";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
/* 2.0 hub on port 1 */
|
|
hub_2_0: hub@1 {
|
|
compatible = "usb2109,2817";
|
|
reg = <1>;
|
|
peer-hub = <&hub_3_0>;
|
|
reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
|
|
vdd-supply = <&vcc_5v>;
|
|
};
|
|
|
|
/* 3.1 hub on port 4 */
|
|
hub_3_0: hub@2 {
|
|
compatible = "usb2109,817";
|
|
reg = <2>;
|
|
peer-hub = <&hub_2_0>;
|
|
reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
|
|
vdd-supply = <&vcc_5v>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&ir {
|
|
linux,rc-map-name = "rc-odroid";
|
|
};
|