0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Copyright (c) 2018 Linaro Ltd.
0004 */
0005
0006 /dts-v1/;
0007 #include "rk3399-rock960.dtsi"
0008
0009 / {
0010 model = "96boards Rock960";
0011 compatible = "vamrs,rock960", "rockchip,rk3399";
0012
0013 chosen {
0014 stdout-path = "serial2:1500000n8";
0015 };
0016
0017 leds {
0018 compatible = "gpio-leds";
0019 pinctrl-names = "default";
0020 pinctrl-0 = <&user_led1_pin>, <&user_led2_pin>,
0021 <&user_led3_pin>, <&user_led4_pin>,
0022 <&wlan_led_pin>, <&bt_led_pin>;
0023
0024 user_led1: led-1 {
0025 label = "green:user1";
0026 gpios = <&gpio4 RK_PC2 0>;
0027 linux,default-trigger = "heartbeat";
0028 };
0029
0030 user_led2: led-2 {
0031 label = "green:user2";
0032 gpios = <&gpio4 RK_PC6 0>;
0033 linux,default-trigger = "mmc0";
0034 };
0035
0036 user_led3: led-3 {
0037 label = "green:user3";
0038 gpios = <&gpio4 RK_PD0 0>;
0039 linux,default-trigger = "mmc1";
0040 };
0041
0042 user_led4: led-4 {
0043 label = "green:user4";
0044 gpios = <&gpio4 RK_PD4 0>;
0045 panic-indicator;
0046 linux,default-trigger = "none";
0047 };
0048
0049 wlan_active_led: led-5 {
0050 label = "yellow:wlan";
0051 gpios = <&gpio4 RK_PD5 0>;
0052 linux,default-trigger = "phy0tx";
0053 default-state = "off";
0054 };
0055
0056 bt_active_led: led-6 {
0057 label = "blue:bt";
0058 gpios = <&gpio4 RK_PD6 0>;
0059 linux,default-trigger = "hci0-power";
0060 default-state = "off";
0061 };
0062 };
0063
0064 };
0065
0066 &cpu_alert0 {
0067 temperature = <65000>;
0068 };
0069
0070 &cpu_thermal {
0071 sustainable-power = <1550>;
0072
0073 cooling-maps {
0074 map0 {
0075 trip = <&cpu_alert1>;
0076 };
0077 };
0078 };
0079
0080 &pcie0 {
0081 ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
0082 };
0083
0084 &pinctrl {
0085 leds {
0086 user_led1_pin: user-led1-pin {
0087 rockchip,pins =
0088 <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
0089 };
0090
0091 user_led2_pin: user-led2-pin {
0092 rockchip,pins =
0093 <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
0094 };
0095
0096 user_led3_pin: user-led3-pin {
0097 rockchip,pins =
0098 <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
0099 };
0100
0101 user_led4_pin: user-led4-pin {
0102 rockchip,pins =
0103 <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
0104 };
0105
0106 wlan_led_pin: wlan-led-pin {
0107 rockchip,pins =
0108 <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
0109 };
0110
0111 bt_led_pin: bt-led-pin {
0112 rockchip,pins =
0113 <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
0114 };
0115 };
0116
0117 pcie {
0118 pcie_drv: pcie-drv {
0119 rockchip,pins =
0120 <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
0121 };
0122 };
0123
0124 usb2 {
0125 host_vbus_drv: host-vbus-drv {
0126 rockchip,pins =
0127 <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
0128 };
0129 };
0130 };
0131
0132 &spi0 {
0133 /* On Low speed expansion (LS-SPI0) */
0134 status = "okay";
0135 };
0136
0137 &spi4 {
0138 /* On High speed expansion (HS-SPI1) */
0139 status = "okay";
0140 };
0141
0142 &usbdrd_dwc3_0 {
0143 dr_mode = "otg";
0144 };
0145
0146 &usbdrd_dwc3_1 {
0147 dr_mode = "host";
0148 };
0149
0150 &vcc3v3_pcie {
0151 gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>;
0152 };
0153
0154 &vcc5v0_host {
0155 gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
0156 };