1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2020 Dongjin Kim <tobetter@gmail.com>
8 #include "meson-sm1-odroid.dtsi"
11 compatible = "hardkernel,odroid-hc4", "amlogic,sm1";
12 model = "Hardkernel ODROID-HC4";
20 compatible = "pwm-fan";
22 cooling-levels = <0 120 170 220>;
23 pwms = <&pwm_cd 1 40000 0>;
27 compatible = "gpio-leds";
30 color = <LED_COLOR_ID_BLUE>;
31 function = LED_FUNCTION_STATUS;
32 gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>;
33 linux,default-trigger = "heartbeat";
38 color = <LED_COLOR_ID_RED>;
39 function = LED_FUNCTION_POWER;
40 gpios = <&gpio_ao GPIOAO_7 GPIO_ACTIVE_HIGH>;
45 /* Powers the SATA Disk 0 regulator, which is enabled when a disk load is detected */
46 p12v_0: regulator-p12v_0 {
47 compatible = "regulator-fixed";
48 regulator-name = "P12V_0";
49 regulator-min-microvolt = <12000000>;
50 regulator-max-microvolt = <12000000>;
51 vin-supply = <&main_12v>;
53 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
58 /* Powers the SATA Disk 1 regulator, which is enabled when a disk load is detected */
59 p12v_1: regulator-p12v_1 {
60 compatible = "regulator-fixed";
61 regulator-name = "P12V_1";
62 regulator-min-microvolt = <12000000>;
63 regulator-max-microvolt = <12000000>;
64 vin-supply = <&main_12v>;
66 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
78 cpu_active: cpu-active {
79 temperature = <60000>; /* millicelsius */
80 hysteresis = <2000>; /* millicelsius */
88 cooling-device = <&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
94 linux,rc-map-name = "rc-odroid";
99 pinctrl-0 = <&i2c2_sda_x_pins>, <&i2c2_sck_x_pins>;
100 pinctrl-names = "default";
104 compatible = "nxp,pcf8563";
112 reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
117 pinctrl-names = "default";
118 pinctrl-0 = <&pwm_d_x6_pins>;
127 pinctrl-0 = <&nor_pins>;
128 pinctrl-names = "default";
131 #address-cells = <1>;
133 compatible = "jedec,spi-nor";
135 spi-max-frequency = <104000000>;
140 phys = <&usb2_phy0>, <&usb2_phy1>;
141 phy-names = "usb2-phy0", "usb2-phy1";