2019-07-01 16:05:49 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
2018-09-27 19:03:00 +00:00
|
|
|
/*
|
2019-07-01 16:05:49 +00:00
|
|
|
* Copyright (c) 2018 Linaro Ltd.
|
2018-09-27 19:03:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include "rk3399-rock960.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "96boards Rock960";
|
|
|
|
compatible = "vamrs,rock960", "rockchip,rk3399";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
stdout-path = "serial2:1500000n8";
|
|
|
|
};
|
2019-07-01 16:05:49 +00:00
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
pinctrl-names = "default";
|
2021-07-22 15:20:42 +00:00
|
|
|
pinctrl-0 = <&user_led1_pin>, <&user_led2_pin>,
|
|
|
|
<&user_led3_pin>, <&user_led4_pin>,
|
|
|
|
<&wlan_led_pin>, <&bt_led_pin>;
|
2019-07-01 16:05:49 +00:00
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
user_led1: led-1 {
|
2019-07-01 16:05:49 +00:00
|
|
|
label = "green:user1";
|
|
|
|
gpios = <&gpio4 RK_PC2 0>;
|
|
|
|
linux,default-trigger = "heartbeat";
|
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
user_led2: led-2 {
|
2019-07-01 16:05:49 +00:00
|
|
|
label = "green:user2";
|
|
|
|
gpios = <&gpio4 RK_PC6 0>;
|
|
|
|
linux,default-trigger = "mmc0";
|
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
user_led3: led-3 {
|
2019-07-01 16:05:49 +00:00
|
|
|
label = "green:user3";
|
|
|
|
gpios = <&gpio4 RK_PD0 0>;
|
|
|
|
linux,default-trigger = "mmc1";
|
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
user_led4: led-4 {
|
2019-07-01 16:05:49 +00:00
|
|
|
label = "green:user4";
|
|
|
|
gpios = <&gpio4 RK_PD4 0>;
|
|
|
|
panic-indicator;
|
|
|
|
linux,default-trigger = "none";
|
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
wlan_active_led: led-5 {
|
2019-07-01 16:05:49 +00:00
|
|
|
label = "yellow:wlan";
|
|
|
|
gpios = <&gpio4 RK_PD5 0>;
|
|
|
|
linux,default-trigger = "phy0tx";
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
bt_active_led: led-6 {
|
2019-07-01 16:05:49 +00:00
|
|
|
label = "blue:bt";
|
|
|
|
gpios = <&gpio4 RK_PD6 0>;
|
|
|
|
linux,default-trigger = "hci0-power";
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-09-27 19:03:00 +00:00
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
&cpu_alert0 {
|
|
|
|
temperature = <65000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&cpu_thermal {
|
|
|
|
sustainable-power = <1550>;
|
|
|
|
|
|
|
|
cooling-maps {
|
|
|
|
map0 {
|
|
|
|
trip = <&cpu_alert1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-09-27 19:03:00 +00:00
|
|
|
&pcie0 {
|
|
|
|
ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&pinctrl {
|
2019-07-01 16:05:49 +00:00
|
|
|
leds {
|
2021-07-22 15:20:42 +00:00
|
|
|
user_led1_pin: user-led1-pin {
|
2019-07-01 16:05:49 +00:00
|
|
|
rockchip,pins =
|
|
|
|
<4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
user_led2_pin: user-led2-pin {
|
2019-07-01 16:05:49 +00:00
|
|
|
rockchip,pins =
|
|
|
|
<4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
user_led3_pin: user-led3-pin {
|
2019-07-01 16:05:49 +00:00
|
|
|
rockchip,pins =
|
|
|
|
<4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
user_led4_pin: user-led4-pin {
|
2019-07-01 16:05:49 +00:00
|
|
|
rockchip,pins =
|
|
|
|
<4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
wlan_led_pin: wlan-led-pin {
|
2019-07-01 16:05:49 +00:00
|
|
|
rockchip,pins =
|
|
|
|
<4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
|
|
};
|
|
|
|
|
2021-07-22 15:20:42 +00:00
|
|
|
bt_led_pin: bt-led-pin {
|
2019-07-01 16:05:49 +00:00
|
|
|
rockchip,pins =
|
|
|
|
<4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-09-27 19:03:00 +00:00
|
|
|
pcie {
|
|
|
|
pcie_drv: pcie-drv {
|
|
|
|
rockchip,pins =
|
|
|
|
<2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
usb2 {
|
|
|
|
host_vbus_drv: host-vbus-drv {
|
|
|
|
rockchip,pins =
|
|
|
|
<4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-04-28 10:00:17 +00:00
|
|
|
&spi0 {
|
|
|
|
/* On Low speed expansion (LS-SPI0) */
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi4 {
|
|
|
|
/* On High speed expansion (HS-SPI1) */
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2019-07-01 16:05:49 +00:00
|
|
|
&usbdrd_dwc3_0 {
|
|
|
|
dr_mode = "otg";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usbdrd_dwc3_1 {
|
|
|
|
dr_mode = "host";
|
|
|
|
};
|
|
|
|
|
2018-09-27 19:03:00 +00:00
|
|
|
&vcc3v3_pcie {
|
|
|
|
gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&vcc5v0_host {
|
|
|
|
gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|