xref: /linux/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts (revision 06d07429858317ded2db7986113a9e0129cd599b)
1874846f1SEzequiel Garcia// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2874846f1SEzequiel Garcia/*
3874846f1SEzequiel Garcia * Copyright (c) 2018 Collabora Ltd.
4874846f1SEzequiel Garcia * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd.
5874846f1SEzequiel Garcia *
6874846f1SEzequiel Garcia * Schematics available at https://dl.vamrs.com/products/ficus/docs/hw
7874846f1SEzequiel Garcia */
8874846f1SEzequiel Garcia
9874846f1SEzequiel Garcia/dts-v1/;
10ffb7b25eSManivannan Sadhasivam#include "rk3399-rock960.dtsi"
11874846f1SEzequiel Garcia
12874846f1SEzequiel Garcia/ {
13874846f1SEzequiel Garcia	model = "96boards RK3399 Ficus";
14874846f1SEzequiel Garcia	compatible = "vamrs,ficus", "rockchip,rk3399";
15874846f1SEzequiel Garcia
16*5d90cb1eSDragan Simic	aliases {
17*5d90cb1eSDragan Simic		ethernet0 = &gmac;
18*5d90cb1eSDragan Simic	};
19*5d90cb1eSDragan Simic
20874846f1SEzequiel Garcia	chosen {
21874846f1SEzequiel Garcia		stdout-path = "serial2:1500000n8";
22874846f1SEzequiel Garcia	};
23874846f1SEzequiel Garcia
24874846f1SEzequiel Garcia	clkin_gmac: external-gmac-clock {
25874846f1SEzequiel Garcia		compatible = "fixed-clock";
26874846f1SEzequiel Garcia		clock-frequency = <125000000>;
27874846f1SEzequiel Garcia		clock-output-names = "clkin_gmac";
28874846f1SEzequiel Garcia		#clock-cells = <0>;
29874846f1SEzequiel Garcia	};
30ba0abee7SManivannan Sadhasivam
31ba0abee7SManivannan Sadhasivam	leds {
32ba0abee7SManivannan Sadhasivam		compatible = "gpio-leds";
33ba0abee7SManivannan Sadhasivam		pinctrl-names = "default";
34e916d85bSJohan Jonker		pinctrl-0 = <&user_led1_pin>, <&user_led2_pin>,
35e916d85bSJohan Jonker			    <&user_led3_pin>, <&user_led4_pin>,
36e916d85bSJohan Jonker			    <&wlan_led_pin>, <&bt_led_pin>;
37ba0abee7SManivannan Sadhasivam
38e916d85bSJohan Jonker		user_led1: led-1 {
39ba0abee7SManivannan Sadhasivam			label = "red:user1";
40ba0abee7SManivannan Sadhasivam			gpios = <&gpio4 25 0>;
41ba0abee7SManivannan Sadhasivam			linux,default-trigger = "heartbeat";
42ba0abee7SManivannan Sadhasivam		};
43ba0abee7SManivannan Sadhasivam
44e916d85bSJohan Jonker		user_led2: led-2 {
45ba0abee7SManivannan Sadhasivam			label = "red:user2";
46ba0abee7SManivannan Sadhasivam			gpios = <&gpio4 26 0>;
47ba0abee7SManivannan Sadhasivam			linux,default-trigger = "mmc0";
48ba0abee7SManivannan Sadhasivam		};
49ba0abee7SManivannan Sadhasivam
50e916d85bSJohan Jonker		user_led3: led-3 {
51ba0abee7SManivannan Sadhasivam			label = "red:user3";
52ba0abee7SManivannan Sadhasivam			gpios = <&gpio4 30 0>;
53ba0abee7SManivannan Sadhasivam			linux,default-trigger = "mmc1";
54ba0abee7SManivannan Sadhasivam		};
55ba0abee7SManivannan Sadhasivam
56e916d85bSJohan Jonker		user_led4: led-4 {
57ba0abee7SManivannan Sadhasivam			label = "red:user4";
58ba0abee7SManivannan Sadhasivam			gpios = <&gpio1 0 0>;
59ba0abee7SManivannan Sadhasivam			panic-indicator;
60ba0abee7SManivannan Sadhasivam			linux,default-trigger = "none";
61ba0abee7SManivannan Sadhasivam		};
62ba0abee7SManivannan Sadhasivam
63e916d85bSJohan Jonker		wlan_active_led: led-5 {
64ba0abee7SManivannan Sadhasivam			label = "red:wlan";
65ba0abee7SManivannan Sadhasivam			gpios = <&gpio1 1 0>;
66ba0abee7SManivannan Sadhasivam			linux,default-trigger = "phy0tx";
67ba0abee7SManivannan Sadhasivam			default-state = "off";
68ba0abee7SManivannan Sadhasivam		};
69ba0abee7SManivannan Sadhasivam
70e916d85bSJohan Jonker		bt_active_led: led-6 {
71ba0abee7SManivannan Sadhasivam			label = "red:bt";
72ba0abee7SManivannan Sadhasivam			gpios = <&gpio1 4 0>;
73ba0abee7SManivannan Sadhasivam			linux,default-trigger = "hci0-power";
74ba0abee7SManivannan Sadhasivam			default-state = "off";
75ba0abee7SManivannan Sadhasivam		};
76ba0abee7SManivannan Sadhasivam	};
77874846f1SEzequiel Garcia};
78874846f1SEzequiel Garcia
79874846f1SEzequiel Garcia&gmac {
80874846f1SEzequiel Garcia	assigned-clocks = <&cru SCLK_RMII_SRC>;
81874846f1SEzequiel Garcia	assigned-clock-parents = <&clkin_gmac>;
82874846f1SEzequiel Garcia	clock_in_out = "input";
83874846f1SEzequiel Garcia	phy-supply = <&vcc3v3_sys>;
84874846f1SEzequiel Garcia	phy-mode = "rgmii";
85874846f1SEzequiel Garcia	pinctrl-names = "default";
86874846f1SEzequiel Garcia	pinctrl-0 = <&rgmii_pins>;
87874846f1SEzequiel Garcia	snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
88874846f1SEzequiel Garcia	snps,reset-active-low;
89874846f1SEzequiel Garcia	snps,reset-delays-us = <0 10000 50000>;
90874846f1SEzequiel Garcia	tx_delay = <0x28>;
91874846f1SEzequiel Garcia	rx_delay = <0x11>;
92874846f1SEzequiel Garcia	status = "okay";
93874846f1SEzequiel Garcia};
94874846f1SEzequiel Garcia
95874846f1SEzequiel Garcia&pcie0 {
96874846f1SEzequiel Garcia	ep-gpios = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>;
97874846f1SEzequiel Garcia};
98874846f1SEzequiel Garcia
99874846f1SEzequiel Garcia&pinctrl {
100874846f1SEzequiel Garcia	gmac {
101874846f1SEzequiel Garcia		rgmii_sleep_pins: rgmii-sleep-pins {
102874846f1SEzequiel Garcia			rockchip,pins =
103d64420e8SHeiko Stuebner				<3 RK_PB7 RK_FUNC_GPIO &pcfg_output_low>;
104874846f1SEzequiel Garcia		};
105874846f1SEzequiel Garcia	};
106874846f1SEzequiel Garcia
107874846f1SEzequiel Garcia	pcie {
108874846f1SEzequiel Garcia		pcie_drv: pcie-drv {
109874846f1SEzequiel Garcia			rockchip,pins =
110d64420e8SHeiko Stuebner				<1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
111874846f1SEzequiel Garcia			};
112874846f1SEzequiel Garcia	};
113874846f1SEzequiel Garcia
11465abc845SEnric Balletbo i Serra	usb2 {
11565abc845SEnric Balletbo i Serra		host_vbus_drv: host-vbus-drv {
11665abc845SEnric Balletbo i Serra			rockchip,pins =
117d64420e8SHeiko Stuebner				<4 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
11865abc845SEnric Balletbo i Serra		};
11965abc845SEnric Balletbo i Serra	};
120ba0abee7SManivannan Sadhasivam
121ba0abee7SManivannan Sadhasivam	leds {
122e916d85bSJohan Jonker		user_led1_pin: user-led1-pin {
123ba0abee7SManivannan Sadhasivam			rockchip,pins =
124d64420e8SHeiko Stuebner				<4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
125ba0abee7SManivannan Sadhasivam		};
126ba0abee7SManivannan Sadhasivam
127e916d85bSJohan Jonker		user_led2_pin: user-led2-pin {
128ba0abee7SManivannan Sadhasivam			rockchip,pins =
129d64420e8SHeiko Stuebner				<4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
130ba0abee7SManivannan Sadhasivam		};
131ba0abee7SManivannan Sadhasivam
132e916d85bSJohan Jonker		user_led3_pin: user-led3-pin {
133ba0abee7SManivannan Sadhasivam			rockchip,pins =
134d64420e8SHeiko Stuebner				<4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
135ba0abee7SManivannan Sadhasivam		};
136ba0abee7SManivannan Sadhasivam
137e916d85bSJohan Jonker		user_led4_pin: user-led4-pin {
138ba0abee7SManivannan Sadhasivam			rockchip,pins =
139d64420e8SHeiko Stuebner				<1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
140ba0abee7SManivannan Sadhasivam		};
141ba0abee7SManivannan Sadhasivam
142e916d85bSJohan Jonker		wlan_led_pin: wlan-led-pin {
143ba0abee7SManivannan Sadhasivam			rockchip,pins =
144d64420e8SHeiko Stuebner				<1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
145ba0abee7SManivannan Sadhasivam		};
146ba0abee7SManivannan Sadhasivam
147e916d85bSJohan Jonker		bt_led_pin: bt-led-pin {
148ba0abee7SManivannan Sadhasivam			rockchip,pins =
149d64420e8SHeiko Stuebner				<1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
150ba0abee7SManivannan Sadhasivam		};
151ba0abee7SManivannan Sadhasivam	};
152874846f1SEzequiel Garcia};
153874846f1SEzequiel Garcia
1540ee198abSManivannan Sadhasivam&spi1 {
1550ee198abSManivannan Sadhasivam	/* On both Low speed and High speed expansion */
1560ee198abSManivannan Sadhasivam	cs-gpios = <0>, <&gpio4 RK_PA6 0>, <&gpio4 RK_PA7 0>;
1570ee198abSManivannan Sadhasivam	status = "okay";
1580ee198abSManivannan Sadhasivam};
1590ee198abSManivannan Sadhasivam
16065abc845SEnric Balletbo i Serra&usbdrd_dwc3_0 {
16165abc845SEnric Balletbo i Serra	dr_mode = "host";
16265abc845SEnric Balletbo i Serra};
16365abc845SEnric Balletbo i Serra
16465abc845SEnric Balletbo i Serra&usbdrd_dwc3_1 {
16565abc845SEnric Balletbo i Serra	dr_mode = "host";
16665abc845SEnric Balletbo i Serra};
16765abc845SEnric Balletbo i Serra
168ffb7b25eSManivannan Sadhasivam&vcc3v3_pcie {
169ffb7b25eSManivannan Sadhasivam	gpio = <&gpio1 24 GPIO_ACTIVE_HIGH>;
170874846f1SEzequiel Garcia};
171874846f1SEzequiel Garcia
172ffb7b25eSManivannan Sadhasivam&vcc5v0_host {
173ffb7b25eSManivannan Sadhasivam	gpio = <&gpio4 27 GPIO_ACTIVE_HIGH>;
174874846f1SEzequiel Garcia};
175