blob: 8c30ce63686e33aba6a44d43d54ec5d2263167e5 [file] [log] [blame]
Christian Hewittde649e62020-04-24 02:58:30 +00001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2020 Dongjin Kim <tobetter@gmail.com>
4 */
5
6/dts-v1/;
7
Neil Armstrong425d9d52021-09-17 09:37:00 +02008#include "meson-sm1-odroid.dtsi"
Christian Hewittde649e62020-04-24 02:58:30 +00009
10/ {
11 compatible = "hardkernel,odroid-c4", "amlogic,sm1";
12 model = "Hardkernel ODROID-C4";
13
Christian Hewittde649e62020-04-24 02:58:30 +000014 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
Neil Armstrongfc85ec52020-09-21 09:34:12 +020026 sound {
Neil Armstrong425d9d52021-09-17 09:37:00 +020027 model = "ODROID-C4";
Christian Hewittde649e62020-04-24 02:58:30 +000028 };
29};
30
Christian Hewittde649e62020-04-24 02:58:30 +000031&gpio {
Christian Hewittde649e62020-04-24 02:58:30 +000032 /*
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 */
Neil Armstrong425d9d52021-09-17 09:37:00 +020038 hog-0 {
Christian Hewittde649e62020-04-24 02:58:30 +000039 gpio-hog;
40 gpios = <GPIOH_4 GPIO_ACTIVE_HIGH>;
41 output-high;
42 line-name = "usb-hub-reset";
43 };
44};
45
Christian Hewittde649e62020-04-24 02:58:30 +000046&ir {
Christian Hewittde649e62020-04-24 02:58:30 +000047 linux,rc-map-name = "rc-odroid";
48};