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-min-state = <0>;
23 cooling-max-state = <3>;
24 cooling-levels = <0 120 170 220>;
25 pwms = <&pwm_cd 1 40000 0>;
29 compatible = "gpio-leds";
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";
40 color = <LED_COLOR_ID_RED>;
41 function = LED_FUNCTION_POWER;
42 gpios = <&gpio_ao GPIOAO_7 GPIO_ACTIVE_HIGH>;
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>;
55 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
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>;
68 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
80 cpu_active: cpu-active {
81 temperature = <60000>; /* millicelsius */
82 hysteresis = <2000>; /* millicelsius */
90 cooling-device = <&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
96 linux,rc-map-name = "rc-odroid";
101 pinctrl-0 = <&i2c2_sda_x_pins>, <&i2c2_sck_x_pins>;
102 pinctrl-names = "default";
106 compatible = "nxp,pcf8563";
114 reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&pwm_d_x6_pins>;
129 pinctrl-0 = <&nor_pins>;
130 pinctrl-names = "default";
133 #address-cells = <1>;
135 compatible = "jedec,spi-nor";
137 spi-max-frequency = <104000000>;
143 phy-names = "usb2-phy1";