KernelNanopiR5S-6/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
2024-09-10 15:59:00 +02:00

188 lines
3.0 KiB
Plaintext

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* FriendlyElec NanoPC-T4 board device tree source
*
* Copyright (c) 2020 FriendlyElec Computer Tech. Co., Ltd.
* (http://www.friendlyarm.com)
*
* Copyright (c) 2018 Collabora Ltd.
*
* Copyright (c) 2020 Jensen Huang <jensenhuang@friendlyarm.com>
* Copyright (c) 2020 Marty Jones <mj8263788@gmail.com>
* Copyright (c) 2021 Tianling Shen <cnsztl@gmail.com>
*/
/dts-v1/;
#include "rk3399-nanopi4.dtsi"
/ {
model = "FriendlyElec NanoPi R4S";
compatible = "friendlyelec,nanopi-r4s", "rockchip,rk3399";
aliases {
ethernet1 = &r8169;
};
vdd_5v: vdd-5v {
compatible = "regulator-fixed";
regulator-name = "vdd_5v";
regulator-always-on;
regulator-boot-on;
};
fan: pwm-fan {
compatible = "pwm-fan";
cooling-levels = <0 18 102 170 255>;
#cooling-cells = <2>;
fan-supply = <&vdd_5v>;
pwms = <&pwm1 0 50000 0>;
};
};
&cpu_thermal {
trips {
cpu_warm: cpu_warm {
temperature = <55000>;
hysteresis = <2000>;
type = "active";
};
cpu_hot: cpu_hot {
temperature = <65000>;
hysteresis = <2000>;
type = "active";
};
};
cooling-maps {
map2 {
trip = <&cpu_warm>;
cooling-device = <&fan THERMAL_NO_LIMIT 1>;
};
map3 {
trip = <&cpu_hot>;
cooling-device = <&fan 2 THERMAL_NO_LIMIT>;
};
};
};
&emmc_phy {
status = "disabled";
};
&fusb0 {
status = "disabled";
};
&i2c2 {
clock-frequency = <200000>;
i2c-scl-rising-time-ns = <150>;
i2c-scl-falling-time-ns = <30>;
status = "okay";
eeprom@51 {
compatible = "microchip,24c02", "atmel,24c02";
reg = <0x51>;
#address-cells = <2>;
#size-cells = <0>;
pagesize = <16>;
size = <256>;
eui_48: eui-48@fa {
reg = <0xfa 0x06>;
};
};
};
&i2c4 {
status = "disabled";
};
&keys {
button@1 {
debounce-interval = <50>;
gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>;
label = "K1";
linux,code = <BTN_1>;
wakeup-source;
};
};
&key_pins {
rockchip,pins =
<0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>,
<1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
};
&leds {
lan_led: led-2 {
gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>;
label = "lan_led";
};
wan_len: led-3 {
gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
label = "wan_led";
};
};
&leds_pin {
rockchip,pins =
<0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
<1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,
<1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
};
&mach {
hwrev = <0x09>;
model = "NanoPi R4S";
};
&pcie0 {
ep-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_HIGH>;
max-link-speed = <1>;
num-lanes = <1>;
vpcie3v3-supply = <&vcc3v3_sys>;
pcie@0 {
reg = <0x00000000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
r8169: pcie@0,0 {
reg = <0x000000 0 0 0 0>;
local-mac-address = [ 00 00 00 00 00 00 ];
realtek,ledsel = <0x870>;
};
};
};
&sdhci {
status = "disabled";
};
&sdio0 {
status = "disabled";
};
&u2phy0_host {
phy-supply = <&vdd_5v>;
};
&u2phy1_otg {
phy-supply = <&vdd_5v>;
};
&uart0 {
status = "disabled";
};
&usbdrd_dwc3_0 {
dr_mode = "host";
};
&vcc3v3_sys {
vin-supply = <&vcc5v0_sys>;
};