WIP FPC-III support
[linux/fpc-iii.git] / arch / arm64 / boot / dts / rockchip / rk3399-rock960.dts
blobc88295782e7b482664a7f6ed46c2f64ba57a143d
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Copyright (c) 2018 Linaro Ltd.
4  */
6 /dts-v1/;
7 #include "rk3399-rock960.dtsi"
9 / {
10         model = "96boards Rock960";
11         compatible = "vamrs,rock960", "rockchip,rk3399";
13         chosen {
14                 stdout-path = "serial2:1500000n8";
15         };
17         leds {
18                 compatible = "gpio-leds";
19                 pinctrl-names = "default";
20                 pinctrl-0 = <&user_led1_pin>, <&user_led2_pin>,
21                             <&user_led3_pin>, <&user_led4_pin>,
22                             <&wlan_led_pin>, <&bt_led_pin>;
24                 user_led1: led-1 {
25                         label = "green:user1";
26                         gpios = <&gpio4 RK_PC2 0>;
27                         linux,default-trigger = "heartbeat";
28                 };
30                 user_led2: led-2 {
31                         label = "green:user2";
32                         gpios = <&gpio4 RK_PC6 0>;
33                         linux,default-trigger = "mmc0";
34                 };
36                 user_led3: led-3 {
37                         label = "green:user3";
38                         gpios = <&gpio4 RK_PD0 0>;
39                         linux,default-trigger = "mmc1";
40                 };
42                 user_led4: led-4 {
43                         label = "green:user4";
44                         gpios = <&gpio4 RK_PD4 0>;
45                         panic-indicator;
46                         linux,default-trigger = "none";
47                 };
49                 wlan_active_led: led-5 {
50                         label = "yellow:wlan";
51                         gpios = <&gpio4 RK_PD5 0>;
52                         linux,default-trigger = "phy0tx";
53                         default-state = "off";
54                 };
56                 bt_active_led: led-6 {
57                         label = "blue:bt";
58                         gpios = <&gpio4 RK_PD6 0>;
59                         linux,default-trigger = "hci0-power";
60                         default-state = "off";
61                 };
62         };
66 &pcie0 {
67         ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
70 &pinctrl {
71         leds {
72                 user_led1_pin: user-led1-pin {
73                         rockchip,pins =
74                                 <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
75                 };
77                 user_led2_pin: user-led2-pin {
78                         rockchip,pins =
79                                 <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
80                 };
82                 user_led3_pin: user-led3-pin {
83                         rockchip,pins =
84                                 <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
85                 };
87                 user_led4_pin: user-led4-pin {
88                         rockchip,pins =
89                                 <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
90                 };
92                 wlan_led_pin: wlan-led-pin {
93                         rockchip,pins =
94                                 <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
95                 };
97                 bt_led_pin: bt-led-pin {
98                         rockchip,pins =
99                                 <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
100                 };
101         };
103         pcie {
104                 pcie_drv: pcie-drv {
105                         rockchip,pins =
106                                 <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
107                         };
108         };
110         usb2 {
111                 host_vbus_drv: host-vbus-drv {
112                         rockchip,pins =
113                                 <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
114                 };
115         };
118 &spi0 {
119         /* On Low speed expansion (LS-SPI0) */
120         status = "okay";
123 &spi4 {
124         /* On High speed expansion (HS-SPI1) */
125         status = "okay";
128 &thermal_zones {
129         cpu_thermal: cpu {
130                 polling-delay-passive = <100>;
131                 polling-delay = <1000>;
132                 thermal-sensors = <&tsadc 0>;
133                 sustainable-power = <1550>;
135                 trips {
136                         cpu_alert0: cpu_alert0 {
137                                     temperature = <65000>;
138                                     hysteresis = <2000>;
139                                     type = "passive";
140                         };
142                         cpu_alert1: cpu_alert1 {
143                                     temperature = <75000>;
144                                     hysteresis = <2000>;
145                                     type = "passive";
146                         };
148                         cpu_crit: cpu_crit {
149                                   temperature = <95000>;
150                                   hysteresis = <2000>;
151                                   type = "critical";
152                         };
153                 };
155                 cooling-maps {
156                              map0 {
158                              trip = <&cpu_alert1>;
159                              cooling-device =
160                                         <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
161                                         <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
162                         };
163                 };
164         };
167 &usbdrd_dwc3_0 {
168         dr_mode = "otg";
171 &usbdrd_dwc3_1 {
172         dr_mode = "host";
175 &vcc3v3_pcie {
176         gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>;
179 &vcc5v0_host {
180         gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;