1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * FriendlyElec NanoPC-T4 board device tree source
5 * Copyright (c) 2018 FriendlyElec Computer Tech. Co., Ltd.
6 * (http://www.friendlyarm.com)
8 * Copyright (c) 2018 Collabora Ltd.
12 #include "rk3399-nanopi4.dtsi"
15 model = "FriendlyElec NanoPC-T4";
16 compatible = "friendlyarm,nanopc-t4", "rockchip,rk3399";
18 vcc12v0_sys: vcc12v0-sys {
19 compatible = "regulator-fixed";
22 regulator-max-microvolt = <12000000>;
23 regulator-min-microvolt = <12000000>;
24 regulator-name = "vcc12v0_sys";
27 vcc5v0_host0: vcc5v0-host0 {
28 compatible = "regulator-fixed";
31 regulator-name = "vcc5v0_host0";
32 vin-supply = <&vcc5v0_sys>;
36 compatible = "adc-keys";
37 io-channels = <&saradc 1>;
38 io-channel-names = "buttons";
39 keyup-threshold-microvolt = <1800000>;
40 poll-interval = <100>;
44 linux,code = <KEY_VENDOR>;
45 press-threshold-microvolt = <18000>;
50 compatible = "gpio-ir-receiver";
51 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>;
52 pinctrl-names = "default";
57 compatible = "pwm-fan";
59 * With 20KHz PWM and an EVERCOOL EC4007H12SA fan, these levels
60 * work out to 0, ~1200, ~3000, and 5000RPM respectively.
62 cooling-levels = <0 12 18 255>;
64 fan-supply = <&vcc12v0_sys>;
65 pwms = <&pwm1 0 50000 0>;
72 temperature = <55000>;
78 temperature = <65000>;
87 cooling-device = <&fan THERMAL_NO_LIMIT 1>;
92 cooling-device = <&fan 2 THERMAL_NO_LIMIT>;
99 vpcie3v3-supply = <&vcc3v3_sys>;
105 /* external pullup to VCC3V3_SYS, despite being 1.8V :/ */
106 rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>;
113 mmc-hs400-enhanced-strobe;
117 phy-supply = <&vcc5v0_host0>;
121 phy-supply = <&vcc5v0_host0>;
125 vin-supply = <&vcc12v0_sys>;
129 vin-supply = <&vcc12v0_sys>;
134 gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
135 vin-supply = <&vcc5v0_sys>;