1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2020 Dongjin Kim <tobetter@gmail.com> 4 */ 5 6/dts-v1/; 7 8#include "meson-sm1-odroid.dtsi" 9 10/ { 11 compatible = "hardkernel,odroid-c4", "amlogic,sm1"; 12 model = "Hardkernel ODROID-C4"; 13 14 leds { 15 compatible = "gpio-leds"; 16 17 led-blue { 18 color = <LED_COLOR_ID_BLUE>; 19 function = LED_FUNCTION_STATUS; 20 gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>; 21 linux,default-trigger = "heartbeat"; 22 panic-indicator; 23 }; 24 }; 25 26 hub_5v: regulator-hub_5v { 27 compatible = "regulator-fixed"; 28 regulator-name = "HUB_5V"; 29 regulator-min-microvolt = <5000000>; 30 regulator-max-microvolt = <5000000>; 31 vin-supply = <&vcc_5v>; 32 33 /* Connected to the Hub CHIPENABLE, LOW sets low power state */ 34 gpio = <&gpio GPIOH_4 GPIO_ACTIVE_HIGH>; 35 enable-active-high; 36 }; 37 38 sound { 39 model = "ODROID-C4"; 40 }; 41}; 42 43&gpio { 44 /* 45 * WARNING: The USB Hub on the Odroid-C4 needs a reset signal 46 * to be turned high in order to be detected by the USB Controller 47 * This signal should be handled by a USB specific power sequence 48 * in order to reset the Hub when USB bus is powered down. 49 */ 50 usb-hub { 51 gpio-hog; 52 gpios = <GPIOH_4 GPIO_ACTIVE_HIGH>; 53 output-high; 54 line-name = "usb-hub-reset"; 55 }; 56}; 57 58&ir { 59 linux,rc-map-name = "rc-odroid"; 60}; 61 62&usb2_phy1 { 63 /* Enable the hub which is connected to this port */ 64 phy-supply = <&hub_5v>; 65}; 66