Christian Hewitt | de649e6 | 2020-04-24 02:58:30 +0000 | [diff] [blame] | 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 | |
Neil Armstrong | 425d9d5 | 2021-09-17 09:37:00 +0200 | [diff] [blame] | 8 | #include "meson-sm1-odroid.dtsi" |
Christian Hewitt | de649e6 | 2020-04-24 02:58:30 +0000 | [diff] [blame] | 9 | |
| 10 | / { |
| 11 | compatible = "hardkernel,odroid-c4", "amlogic,sm1"; |
| 12 | model = "Hardkernel ODROID-C4"; |
| 13 | |
Christian Hewitt | de649e6 | 2020-04-24 02:58:30 +0000 | [diff] [blame] | 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 | |
Neil Armstrong | fc85ec5 | 2020-09-21 09:34:12 +0200 | [diff] [blame] | 26 | sound { |
Neil Armstrong | 425d9d5 | 2021-09-17 09:37:00 +0200 | [diff] [blame] | 27 | model = "ODROID-C4"; |
Christian Hewitt | de649e6 | 2020-04-24 02:58:30 +0000 | [diff] [blame] | 28 | }; |
| 29 | }; |
| 30 | |
Christian Hewitt | de649e6 | 2020-04-24 02:58:30 +0000 | [diff] [blame] | 31 | &gpio { |
Christian Hewitt | de649e6 | 2020-04-24 02:58:30 +0000 | [diff] [blame] | 32 | /* |
| 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 Armstrong | 425d9d5 | 2021-09-17 09:37:00 +0200 | [diff] [blame] | 38 | hog-0 { |
Christian Hewitt | de649e6 | 2020-04-24 02:58:30 +0000 | [diff] [blame] | 39 | gpio-hog; |
| 40 | gpios = <GPIOH_4 GPIO_ACTIVE_HIGH>; |
| 41 | output-high; |
| 42 | line-name = "usb-hub-reset"; |
| 43 | }; |
| 44 | }; |
| 45 | |
Christian Hewitt | de649e6 | 2020-04-24 02:58:30 +0000 | [diff] [blame] | 46 | &ir { |
Christian Hewitt | de649e6 | 2020-04-24 02:58:30 +0000 | [diff] [blame] | 47 | linux,rc-map-name = "rc-odroid"; |
| 48 | }; |