blob: 8c30ce63686e33aba6a44d43d54ec5d2263167e5 [file] [log] [blame]
Dongjin Kim326e5752020-05-06 10:07:02 +02001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2020 Dongjin Kim <tobetter@gmail.com>
4 */
5
6/dts-v1/;
7
Christian Hewitt88d537b2021-02-03 10:29:23 -08008#include "meson-sm1-odroid.dtsi"
Dongjin Kim326e5752020-05-06 10:07:02 +02009
10/ {
11 compatible = "hardkernel,odroid-c4", "amlogic,sm1";
12 model = "Hardkernel ODROID-C4";
13
Dongjin Kim326e5752020-05-06 10:07:02 +020014 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
Christian Hewitt725da672020-07-18 07:25:31 +000026 sound {
Christian Hewitt933b80e2021-01-01 06:37:37 +000027 model = "ODROID-C4";
Christian Hewitt725da672020-07-18 07:25:31 +000028 };
29};
30
Dongjin Kim326e5752020-05-06 10:07:02 +020031&gpio {
Dongjin Kim326e5752020-05-06 10:07:02 +020032 /*
33 * WARNING: The USB Hub on the Odroid-C4 needs a reset signal
34 * to be turned high in order to be detected by the USB Controller
35 * This signal should be handled by a USB specific power sequence
36 * in order to reset the Hub when USB bus is powered down.
37 */
Kevin Hilmand9421d62021-04-21 13:48:32 -070038 hog-0 {
Dongjin Kim326e5752020-05-06 10:07:02 +020039 gpio-hog;
40 gpios = <GPIOH_4 GPIO_ACTIVE_HIGH>;
41 output-high;
42 line-name = "usb-hub-reset";
43 };
44};
45
Dongjin Kim326e5752020-05-06 10:07:02 +020046&ir {
Dongjin Kim326e5752020-05-06 10:07:02 +020047 linux,rc-map-name = "rc-odroid";
48};