1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd 4 * 5 * Copyright (c) 2018 FriendlyElec Computer Tech. Co., Ltd. 6 * (http://www.friendlyarm.com) 7 * 8 * Copyright (c) 2018 Collabora Ltd. 9 * Copyright (c) 2019 Arm Ltd. 10 * Copyright (C) 2020 Xiaobo <peterwillcn@gmail.com> 11 */ 12 13/dts-v1/; 14#include "rk3399-nanopi4.dtsi" 15 16/ { 17 model = "FriendlyElec NanoPi R4S"; 18 compatible = "friendlyarm,nanopi-r4s", "rockchip,rk3399"; 19 20 aliases { 21 ethernet1 = &r8169; 22 }; 23 24 vdd_5v: vdd-5v { 25 compatible = "regulator-fixed"; 26 regulator-name = "vdd_5v"; 27 regulator-always-on; 28 regulator-boot-on; 29 }; 30 31 fan: pwm-fan { 32 compatible = "pwm-fan"; 33 cooling-levels = <0 12 18 255>; 34 #cooling-cells = <2>; 35 fan-supply = <&vdd_5v>; 36 pwms = <&pwm1 0 50000 0>; 37 }; 38}; 39 40&cpu_thermal { 41 trips { 42 cpu_warm: cpu_warm { 43 temperature = <55000>; 44 hysteresis = <2000>; 45 type = "active"; 46 }; 47 48 cpu_hot: cpu_hot { 49 temperature = <65000>; 50 hysteresis = <2000>; 51 type = "active"; 52 }; 53 }; 54 55 cooling-maps { 56 map2 { 57 trip = <&cpu_warm>; 58 cooling-device = <&fan THERMAL_NO_LIMIT 1>; 59 }; 60 61 map3 { 62 trip = <&cpu_hot>; 63 cooling-device = <&fan 2 THERMAL_NO_LIMIT>; 64 }; 65 }; 66}; 67 68&emmc_phy { 69 status = "disabled"; 70}; 71 72&fusb0 { 73 status = "disabled"; 74}; 75 76&leds { 77 lan_led: led-1 { 78 gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>; 79 label = "nanopi-r4s:green:lan"; 80 }; 81 82 wan_led: led-2 { 83 gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>; 84 label = "nanopi-r4s:green:wan"; 85 }; 86}; 87 88&leds_gpio { 89 rockchip,pins = 90 <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, 91 <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>, 92 <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; 93}; 94 95&pcie0 { 96 max-link-speed = <1>; 97 num-lanes = <1>; 98 vpcie3v3-supply = <&vcc3v3_sys>; 99 100 pcie@0 { 101 reg = <0x00000000 0 0 0 0>; 102 #address-cells = <3>; 103 #size-cells = <2>; 104 105 r8169: pcie@0,0 { 106 reg = <0x000000 0 0 0 0>; 107 local-mac-address = [ 00 00 00 00 00 00 ]; 108 }; 109 }; 110}; 111 112&sdhci { 113 status = "disabled"; 114}; 115 116&sdio0 { 117 status = "disabled"; 118}; 119 120&sdmmc { 121 host-index-min = <1>; 122}; 123 124&u2phy0_host { 125 phy-supply = <&vdd_5v>; 126}; 127 128&u2phy1_host { 129 status = "disabled"; 130}; 131 132&usbdrd_dwc3_0 { 133 dr_mode = "host"; 134}; 135 136&vcc3v3_sys { 137 vin-supply = <&vcc5v0_sys>; 138}; 139