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 8#include "meson-sm1-odroid.dtsi" 9 10/ { 11 compatible = "hardkernel,odroid-hc4", "amlogic,sm1"; 12 model = "Hardkernel ODROID-HC4"; 13 14 aliases { 15 rtc0 = &rtc; 16 rtc1 = &vrtc; 17 }; 18 19 fan0: pwm-fan { 20 compatible = "pwm-fan"; 21 #cooling-cells = <2>; 22 cooling-min-state = <0>; 23 cooling-max-state = <3>; 24 cooling-levels = <0 120 170 220>; 25 pwms = <&pwm_cd 1 40000 0>; 26 }; 27 28 leds { 29 compatible = "gpio-leds"; 30 31 led-blue { 32 color = <LED_COLOR_ID_BLUE>; 33 function = LED_FUNCTION_STATUS; 34 gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>; 35 linux,default-trigger = "heartbeat"; 36 panic-indicator; 37 }; 38 39 led-red { 40 color = <LED_COLOR_ID_RED>; 41 function = LED_FUNCTION_POWER; 42 gpios = <&gpio_ao GPIOAO_7 GPIO_ACTIVE_HIGH>; 43 default-state = "on"; 44 }; 45 }; 46 47 sound { 48 model = "ODROID-HC4"; 49 }; 50}; 51 52&cpu_thermal { 53 cooling-maps { 54 map { 55 trip = <&cpu_passive>; 56 cooling-device = <&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 57 }; 58 }; 59}; 60 61&ir { 62 linux,rc-map-name = "rc-odroid"; 63}; 64 65&i2c2 { 66 status = "okay"; 67 pinctrl-0 = <&i2c2_sda_x_pins>, <&i2c2_sck_x_pins>; 68 pinctrl-names = "default"; 69 70 rtc: rtc@51 { 71 status = "okay"; 72 compatible = "nxp,pcf8563"; 73 reg = <0x51>; 74 wakeup-source; 75 }; 76}; 77 78&pcie { 79 status = "okay"; 80 reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; 81}; 82 83&pwm_cd { 84 status = "okay"; 85 pinctrl-names = "default"; 86 pinctrl-0 = <&pwm_d_x6_pins>; 87}; 88 89&sd_emmc_c { 90 status = "disabled"; 91}; 92 93&usb { 94 phys = <&usb2_phy0>, <&usb2_phy1>; 95 phy-names = "usb2-phy0", "usb2-phy1"; 96}; 97