xref: /freebsd-src/sys/contrib/device-tree/src/arm64/amlogic/meson-sm1-odroid-c4.dts (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2c66ec88fSEmmanuel Vadot/*
3c66ec88fSEmmanuel Vadot * Copyright (c) 2020 Dongjin Kim <tobetter@gmail.com>
4c66ec88fSEmmanuel Vadot */
5c66ec88fSEmmanuel Vadot
6c66ec88fSEmmanuel Vadot/dts-v1/;
7c66ec88fSEmmanuel Vadot
85def4c47SEmmanuel Vadot#include "meson-sm1-odroid.dtsi"
9c66ec88fSEmmanuel Vadot
10c66ec88fSEmmanuel Vadot/ {
11c66ec88fSEmmanuel Vadot	compatible = "hardkernel,odroid-c4", "amlogic,sm1";
12c66ec88fSEmmanuel Vadot	model = "Hardkernel ODROID-C4";
13c66ec88fSEmmanuel Vadot
14c66ec88fSEmmanuel Vadot	leds {
15c66ec88fSEmmanuel Vadot		compatible = "gpio-leds";
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel Vadot		led-blue {
18c66ec88fSEmmanuel Vadot			color = <LED_COLOR_ID_BLUE>;
19c66ec88fSEmmanuel Vadot			function = LED_FUNCTION_STATUS;
20c66ec88fSEmmanuel Vadot			gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>;
21c66ec88fSEmmanuel Vadot			linux,default-trigger = "heartbeat";
22c66ec88fSEmmanuel Vadot			panic-indicator;
23c66ec88fSEmmanuel Vadot		};
24c66ec88fSEmmanuel Vadot	};
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot	sound {
275def4c47SEmmanuel Vadot		model = "ODROID-C4";
28c66ec88fSEmmanuel Vadot	};
29*cb7aa33aSEmmanuel Vadot
30*cb7aa33aSEmmanuel Vadot	/* USB hub supports both USB 2.0 and USB 3.0 root hub */
31*cb7aa33aSEmmanuel Vadot	usb-hub {
32*cb7aa33aSEmmanuel Vadot		dr_mode = "host";
33*cb7aa33aSEmmanuel Vadot		#address-cells = <1>;
34*cb7aa33aSEmmanuel Vadot		#size-cells = <0>;
35*cb7aa33aSEmmanuel Vadot
36*cb7aa33aSEmmanuel Vadot		/* 2.0 hub on port 1 */
37*cb7aa33aSEmmanuel Vadot		hub_2_0: hub@1 {
38*cb7aa33aSEmmanuel Vadot			compatible = "usb2109,2817";
39*cb7aa33aSEmmanuel Vadot			reg = <1>;
40*cb7aa33aSEmmanuel Vadot			peer-hub = <&hub_3_0>;
41*cb7aa33aSEmmanuel Vadot			reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
42*cb7aa33aSEmmanuel Vadot			vdd-supply = <&vcc_5v>;
43c66ec88fSEmmanuel Vadot		};
44c66ec88fSEmmanuel Vadot
45*cb7aa33aSEmmanuel Vadot		/* 3.1 hub on port 4 */
46*cb7aa33aSEmmanuel Vadot		hub_3_0: hub@2 {
47*cb7aa33aSEmmanuel Vadot			compatible = "usb2109,817";
48*cb7aa33aSEmmanuel Vadot			reg = <2>;
49*cb7aa33aSEmmanuel Vadot			peer-hub = <&hub_2_0>;
50*cb7aa33aSEmmanuel Vadot			reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
51*cb7aa33aSEmmanuel Vadot			vdd-supply = <&vcc_5v>;
52*cb7aa33aSEmmanuel Vadot		};
53c66ec88fSEmmanuel Vadot	};
54c66ec88fSEmmanuel Vadot};
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadot&ir {
57c66ec88fSEmmanuel Vadot	linux,rc-map-name = "rc-odroid";
58c66ec88fSEmmanuel Vadot};
59