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 /* Powers the SATA Disk 0 regulator, which is enabled when a disk load is detected */ 48 p12v_0: regulator-p12v_0 { 49 compatible = "regulator-fixed"; 50 regulator-name = "P12V_0"; 51 regulator-min-microvolt = <12000000>; 52 regulator-max-microvolt = <12000000>; 53 vin-supply = <&main_12v>; 54 55 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; 56 enable-active-high; 57 regulator-always-on; 58 }; 59 60 /* Powers the SATA Disk 1 regulator, which is enabled when a disk load is detected */ 61 p12v_1: regulator-p12v_1 { 62 compatible = "regulator-fixed"; 63 regulator-name = "P12V_1"; 64 regulator-min-microvolt = <12000000>; 65 regulator-max-microvolt = <12000000>; 66 vin-supply = <&main_12v>; 67 68 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; 69 enable-active-high; 70 regulator-always-on; 71 }; 72 73 sound { 74 model = "ODROID-HC4"; 75 }; 76}; 77 78&cpu_thermal { 79 trips { 80 cpu_active: cpu-active { 81 temperature = <60000>; /* millicelsius */ 82 hysteresis = <2000>; /* millicelsius */ 83 type = "active"; 84 }; 85 }; 86 87 cooling-maps { 88 map { 89 trip = <&cpu_active>; 90 cooling-device = <&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 91 }; 92 }; 93}; 94 95&ir { 96 linux,rc-map-name = "rc-odroid"; 97}; 98 99&i2c2 { 100 status = "okay"; 101 pinctrl-0 = <&i2c2_sda_x_pins>, <&i2c2_sck_x_pins>; 102 pinctrl-names = "default"; 103 104 rtc: rtc@51 { 105 status = "okay"; 106 compatible = "nxp,pcf8563"; 107 reg = <0x51>; 108 wakeup-source; 109 }; 110}; 111 112&pcie { 113 status = "okay"; 114 reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; 115}; 116 117&pwm_cd { 118 status = "okay"; 119 pinctrl-names = "default"; 120 pinctrl-0 = <&pwm_d_x6_pins>; 121}; 122 123&sd_emmc_c { 124 status = "disabled"; 125}; 126 127&spifc { 128 status = "okay"; 129 pinctrl-0 = <&nor_pins>; 130 pinctrl-names = "default"; 131 132 flash@0 { 133 #address-cells = <1>; 134 #size-cells = <1>; 135 compatible = "jedec,spi-nor"; 136 reg = <0>; 137 spi-max-frequency = <104000000>; 138 }; 139}; 140 141&usb { 142 phys = <&usb2_phy0>, <&usb2_phy1>; 143 phy-names = "usb2-phy0", "usb2-phy1"; 144}; 145