xref: /freebsd/sys/contrib/device-tree/src/arm64/rockchip/rk3399-rock960.dts (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2c66ec88fSEmmanuel Vadot/*
3c66ec88fSEmmanuel Vadot * Copyright (c) 2018 Linaro Ltd.
4c66ec88fSEmmanuel Vadot */
5c66ec88fSEmmanuel Vadot
6c66ec88fSEmmanuel Vadot/dts-v1/;
7c66ec88fSEmmanuel Vadot#include "rk3399-rock960.dtsi"
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadot/ {
10c66ec88fSEmmanuel Vadot	model = "96boards Rock960";
11c66ec88fSEmmanuel Vadot	compatible = "vamrs,rock960", "rockchip,rk3399";
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadot	chosen {
14c66ec88fSEmmanuel Vadot		stdout-path = "serial2:1500000n8";
15c66ec88fSEmmanuel Vadot	};
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel Vadot	leds {
18c66ec88fSEmmanuel Vadot		compatible = "gpio-leds";
19c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
20c66ec88fSEmmanuel Vadot		pinctrl-0 = <&user_led1_pin>, <&user_led2_pin>,
21c66ec88fSEmmanuel Vadot			    <&user_led3_pin>, <&user_led4_pin>,
22c66ec88fSEmmanuel Vadot			    <&wlan_led_pin>, <&bt_led_pin>;
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot		user_led1: led-1 {
25c66ec88fSEmmanuel Vadot			label = "green:user1";
26c66ec88fSEmmanuel Vadot			gpios = <&gpio4 RK_PC2 0>;
27c66ec88fSEmmanuel Vadot			linux,default-trigger = "heartbeat";
28c66ec88fSEmmanuel Vadot		};
29c66ec88fSEmmanuel Vadot
30c66ec88fSEmmanuel Vadot		user_led2: led-2 {
31c66ec88fSEmmanuel Vadot			label = "green:user2";
32c66ec88fSEmmanuel Vadot			gpios = <&gpio4 RK_PC6 0>;
33c66ec88fSEmmanuel Vadot			linux,default-trigger = "mmc0";
34c66ec88fSEmmanuel Vadot		};
35c66ec88fSEmmanuel Vadot
36c66ec88fSEmmanuel Vadot		user_led3: led-3 {
37c66ec88fSEmmanuel Vadot			label = "green:user3";
38c66ec88fSEmmanuel Vadot			gpios = <&gpio4 RK_PD0 0>;
39c66ec88fSEmmanuel Vadot			linux,default-trigger = "mmc1";
40c66ec88fSEmmanuel Vadot		};
41c66ec88fSEmmanuel Vadot
42c66ec88fSEmmanuel Vadot		user_led4: led-4 {
43c66ec88fSEmmanuel Vadot			label = "green:user4";
44c66ec88fSEmmanuel Vadot			gpios = <&gpio4 RK_PD4 0>;
45c66ec88fSEmmanuel Vadot			panic-indicator;
46c66ec88fSEmmanuel Vadot			linux,default-trigger = "none";
47c66ec88fSEmmanuel Vadot		};
48c66ec88fSEmmanuel Vadot
49c66ec88fSEmmanuel Vadot		wlan_active_led: led-5 {
50c66ec88fSEmmanuel Vadot			label = "yellow:wlan";
51c66ec88fSEmmanuel Vadot			gpios = <&gpio4 RK_PD5 0>;
52c66ec88fSEmmanuel Vadot			linux,default-trigger = "phy0tx";
53c66ec88fSEmmanuel Vadot			default-state = "off";
54c66ec88fSEmmanuel Vadot		};
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadot		bt_active_led: led-6 {
57c66ec88fSEmmanuel Vadot			label = "blue:bt";
58c66ec88fSEmmanuel Vadot			gpios = <&gpio4 RK_PD6 0>;
59c66ec88fSEmmanuel Vadot			linux,default-trigger = "hci0-power";
60c66ec88fSEmmanuel Vadot			default-state = "off";
61c66ec88fSEmmanuel Vadot		};
62c66ec88fSEmmanuel Vadot	};
63c66ec88fSEmmanuel Vadot
64c66ec88fSEmmanuel Vadot};
65c66ec88fSEmmanuel Vadot
66*5def4c47SEmmanuel Vadot&cpu_alert0 {
67*5def4c47SEmmanuel Vadot	temperature = <65000>;
68*5def4c47SEmmanuel Vadot};
69*5def4c47SEmmanuel Vadot
70*5def4c47SEmmanuel Vadot&cpu_thermal {
71*5def4c47SEmmanuel Vadot	sustainable-power = <1550>;
72*5def4c47SEmmanuel Vadot
73*5def4c47SEmmanuel Vadot	cooling-maps {
74*5def4c47SEmmanuel Vadot		map0 {
75*5def4c47SEmmanuel Vadot			trip = <&cpu_alert1>;
76*5def4c47SEmmanuel Vadot		};
77*5def4c47SEmmanuel Vadot	};
78*5def4c47SEmmanuel Vadot};
79*5def4c47SEmmanuel Vadot
80c66ec88fSEmmanuel Vadot&pcie0 {
81c66ec88fSEmmanuel Vadot	ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
82c66ec88fSEmmanuel Vadot};
83c66ec88fSEmmanuel Vadot
84c66ec88fSEmmanuel Vadot&pinctrl {
85c66ec88fSEmmanuel Vadot	leds {
86c66ec88fSEmmanuel Vadot		user_led1_pin: user-led1-pin {
87c66ec88fSEmmanuel Vadot			rockchip,pins =
88c66ec88fSEmmanuel Vadot				<4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
89c66ec88fSEmmanuel Vadot		};
90c66ec88fSEmmanuel Vadot
91c66ec88fSEmmanuel Vadot		user_led2_pin: user-led2-pin {
92c66ec88fSEmmanuel Vadot			rockchip,pins =
93c66ec88fSEmmanuel Vadot				<4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
94c66ec88fSEmmanuel Vadot		};
95c66ec88fSEmmanuel Vadot
96c66ec88fSEmmanuel Vadot		user_led3_pin: user-led3-pin {
97c66ec88fSEmmanuel Vadot			rockchip,pins =
98c66ec88fSEmmanuel Vadot				<4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
99c66ec88fSEmmanuel Vadot		};
100c66ec88fSEmmanuel Vadot
101c66ec88fSEmmanuel Vadot		user_led4_pin: user-led4-pin {
102c66ec88fSEmmanuel Vadot			rockchip,pins =
103c66ec88fSEmmanuel Vadot				<4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
104c66ec88fSEmmanuel Vadot		};
105c66ec88fSEmmanuel Vadot
106c66ec88fSEmmanuel Vadot		wlan_led_pin: wlan-led-pin {
107c66ec88fSEmmanuel Vadot			rockchip,pins =
108c66ec88fSEmmanuel Vadot				<4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
109c66ec88fSEmmanuel Vadot		};
110c66ec88fSEmmanuel Vadot
111c66ec88fSEmmanuel Vadot		bt_led_pin: bt-led-pin {
112c66ec88fSEmmanuel Vadot			rockchip,pins =
113c66ec88fSEmmanuel Vadot				<4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
114c66ec88fSEmmanuel Vadot		};
115c66ec88fSEmmanuel Vadot	};
116c66ec88fSEmmanuel Vadot
117c66ec88fSEmmanuel Vadot	pcie {
118c66ec88fSEmmanuel Vadot		pcie_drv: pcie-drv {
119c66ec88fSEmmanuel Vadot			rockchip,pins =
120c66ec88fSEmmanuel Vadot				<2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
121c66ec88fSEmmanuel Vadot			};
122c66ec88fSEmmanuel Vadot	};
123c66ec88fSEmmanuel Vadot
124c66ec88fSEmmanuel Vadot	usb2 {
125c66ec88fSEmmanuel Vadot		host_vbus_drv: host-vbus-drv {
126c66ec88fSEmmanuel Vadot			rockchip,pins =
127c66ec88fSEmmanuel Vadot				<4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
128c66ec88fSEmmanuel Vadot		};
129c66ec88fSEmmanuel Vadot	};
130c66ec88fSEmmanuel Vadot};
131c66ec88fSEmmanuel Vadot
132c66ec88fSEmmanuel Vadot&spi0 {
133c66ec88fSEmmanuel Vadot	/* On Low speed expansion (LS-SPI0) */
134c66ec88fSEmmanuel Vadot	status = "okay";
135c66ec88fSEmmanuel Vadot};
136c66ec88fSEmmanuel Vadot
137c66ec88fSEmmanuel Vadot&spi4 {
138c66ec88fSEmmanuel Vadot	/* On High speed expansion (HS-SPI1) */
139c66ec88fSEmmanuel Vadot	status = "okay";
140c66ec88fSEmmanuel Vadot};
141c66ec88fSEmmanuel Vadot
142c66ec88fSEmmanuel Vadot&usbdrd_dwc3_0 {
143c66ec88fSEmmanuel Vadot	dr_mode = "otg";
144c66ec88fSEmmanuel Vadot};
145c66ec88fSEmmanuel Vadot
146c66ec88fSEmmanuel Vadot&usbdrd_dwc3_1 {
147c66ec88fSEmmanuel Vadot	dr_mode = "host";
148c66ec88fSEmmanuel Vadot};
149c66ec88fSEmmanuel Vadot
150c66ec88fSEmmanuel Vadot&vcc3v3_pcie {
151c66ec88fSEmmanuel Vadot	gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>;
152c66ec88fSEmmanuel Vadot};
153c66ec88fSEmmanuel Vadot
154c66ec88fSEmmanuel Vadot&vcc5v0_host {
155c66ec88fSEmmanuel Vadot	gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
156c66ec88fSEmmanuel Vadot};
157