2021-02-27 14:39:11 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
/*
|
2021-07-22 15:20:42 +00:00
|
|
|
* FriendlyElec NanoPC-T4 board device tree source
|
2021-02-27 14:39:11 +00:00
|
|
|
*
|
2021-07-22 15:20:42 +00:00
|
|
|
* Copyright (c) 2020 FriendlyElec Computer Tech. Co., Ltd.
|
2021-02-27 14:39:11 +00:00
|
|
|
* (http://www.friendlyarm.com)
|
|
|
|
*
|
|
|
|
* Copyright (c) 2018 Collabora Ltd.
|
2021-07-22 15:20:42 +00:00
|
|
|
*
|
|
|
|
* Copyright (c) 2020 Jensen Huang <jensenhuang@friendlyarm.com>
|
|
|
|
* Copyright (c) 2020 Marty Jones <mj8263788@gmail.com>
|
|
|
|
* Copyright (c) 2021 Tianling Shen <cnsztl@gmail.com>
|
2021-02-27 14:39:11 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include "rk3399-nanopi4.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "FriendlyElec NanoPi R4S";
|
|
|
|
compatible = "friendlyarm,nanopi-r4s", "rockchip,rk3399";
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
/delete-node/ display-subsystem;
|
2021-02-27 14:39:11 +00:00
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
gpio-leds {
|
|
|
|
pinctrl-0 = <&lan_led_pin>, <&sys_led_pin>, <&wan_led_pin>;
|
2021-02-27 14:39:11 +00:00
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
/delete-node/ led-0;
|
2021-02-27 14:39:11 +00:00
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
lan_led: led-lan {
|
|
|
|
gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>;
|
|
|
|
label = "green:lan";
|
2021-02-27 14:39:11 +00:00
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
sys_led: led-sys {
|
|
|
|
gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
|
|
|
|
label = "red:power";
|
|
|
|
default-state = "on";
|
2021-02-27 14:39:11 +00:00
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
wan_led: led-wan {
|
|
|
|
gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
|
|
|
|
label = "green:wan";
|
2021-02-27 14:39:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
gpio-keys {
|
|
|
|
pinctrl-0 = <&reset_button_pin>;
|
2021-02-27 14:39:11 +00:00
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
/delete-node/ power;
|
2021-02-27 14:39:11 +00:00
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
reset {
|
|
|
|
debounce-interval = <50>;
|
|
|
|
gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>;
|
|
|
|
label = "reset";
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
2021-02-27 14:39:11 +00:00
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
vdd_5v: vdd-5v {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "vdd_5v";
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
2021-02-27 14:39:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
&emmc_phy {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c4 {
|
|
|
|
status = "disabled";
|
2021-02-27 14:39:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&pcie0 {
|
|
|
|
max-link-speed = <1>;
|
|
|
|
num-lanes = <1>;
|
|
|
|
vpcie3v3-supply = <&vcc3v3_sys>;
|
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
&pinctrl {
|
|
|
|
gpio-leds {
|
|
|
|
/delete-node/ status-led-pin;
|
|
|
|
|
|
|
|
lan_led_pin: lan-led-pin {
|
|
|
|
rockchip,pins = <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sys_led_pin: sys-led-pin {
|
|
|
|
rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wan_led_pin: wan-led-pin {
|
|
|
|
rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
rockchip-key {
|
|
|
|
/delete-node/ power-key;
|
|
|
|
|
|
|
|
reset_button_pin: reset-button-pin {
|
|
|
|
rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-27 14:39:11 +00:00
|
|
|
&sdhci {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
&sdio0 {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
&u2phy0_host {
|
|
|
|
phy-supply = <&vdd_5v>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&u2phy1_host {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
&uart0 {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2021-02-27 14:39:11 +00:00
|
|
|
&usbdrd_dwc3_0 {
|
|
|
|
dr_mode = "host";
|
|
|
|
};
|
|
|
|
|
|
|
|
&vcc3v3_sys {
|
|
|
|
vin-supply = <&vcc5v0_sys>;
|
|
|
|
};
|