1326e5751SDongjin Kim// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2326e5751SDongjin Kim/*
3326e5751SDongjin Kim * Copyright (c) 2020 Dongjin Kim <tobetter@gmail.com>
4326e5751SDongjin Kim */
5326e5751SDongjin Kim
6326e5751SDongjin Kim/dts-v1/;
7326e5751SDongjin Kim
888d537bcSChristian Hewitt#include "meson-sm1-odroid.dtsi"
9326e5751SDongjin Kim
10326e5751SDongjin Kim/ {
11326e5751SDongjin Kim	compatible = "hardkernel,odroid-c4", "amlogic,sm1";
12326e5751SDongjin Kim	model = "Hardkernel ODROID-C4";
13326e5751SDongjin Kim
14326e5751SDongjin Kim	leds {
15326e5751SDongjin Kim		compatible = "gpio-leds";
16326e5751SDongjin Kim
17326e5751SDongjin Kim		led-blue {
18326e5751SDongjin Kim			color = <LED_COLOR_ID_BLUE>;
19326e5751SDongjin Kim			function = LED_FUNCTION_STATUS;
20326e5751SDongjin Kim			gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>;
21326e5751SDongjin Kim			linux,default-trigger = "heartbeat";
22326e5751SDongjin Kim			panic-indicator;
23326e5751SDongjin Kim		};
24326e5751SDongjin Kim	};
25326e5751SDongjin Kim
26725da67cSChristian Hewitt	sound {
27933b80edSChristian Hewitt		model = "ODROID-C4";
28725da67cSChristian Hewitt	};
29*71593b20SAnand Moon
30*71593b20SAnand Moon	/* USB hub supports both USB 2.0 and USB 3.0 root hub */
31*71593b20SAnand Moon	usb-hub {
32*71593b20SAnand Moon		dr_mode = "host";
33*71593b20SAnand Moon		#address-cells = <1>;
34*71593b20SAnand Moon		#size-cells = <0>;
35*71593b20SAnand Moon
36*71593b20SAnand Moon		/* 2.0 hub on port 1 */
37*71593b20SAnand Moon		hub_2_0: hub@1 {
38*71593b20SAnand Moon			compatible = "usb2109,2817";
39*71593b20SAnand Moon			reg = <1>;
40*71593b20SAnand Moon			peer-hub = <&hub_3_0>;
41*71593b20SAnand Moon			reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
42*71593b20SAnand Moon			vdd-supply = <&vcc_5v>;
43725da67cSChristian Hewitt		};
44725da67cSChristian Hewitt
45*71593b20SAnand Moon		/* 3.1 hub on port 4 */
46*71593b20SAnand Moon		hub_3_0: hub@2 {
47*71593b20SAnand Moon			compatible = "usb2109,817";
48*71593b20SAnand Moon			reg = <2>;
49*71593b20SAnand Moon			peer-hub = <&hub_2_0>;
50*71593b20SAnand Moon			reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
51*71593b20SAnand Moon			vdd-supply = <&vcc_5v>;
52*71593b20SAnand Moon		};
53326e5751SDongjin Kim	};
54326e5751SDongjin Kim};
55326e5751SDongjin Kim
56326e5751SDongjin Kim&ir {
57326e5751SDongjin Kim	linux,rc-map-name = "rc-odroid";
58326e5751SDongjin Kim};
59