Merge branch 'stable-fodder' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[sfrench/cifs-2.6.git] / arch / arm64 / boot / dts / rockchip / rk3399-rock960.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Copyright (c) 2018 Linaro Ltd.
4  */
5
6 /dts-v1/;
7 #include "rk3399-rock960.dtsi"
8
9 / {
10         model = "96boards Rock960";
11         compatible = "vamrs,rock960", "rockchip,rk3399";
12
13         chosen {
14                 stdout-path = "serial2:1500000n8";
15         };
16
17         leds {
18                 compatible = "gpio-leds";
19                 pinctrl-names = "default";
20                 pinctrl-0 = <&user_led1>, <&user_led2>, <&user_led3>,
21                             <&user_led4>, <&wlan_led>, <&bt_led>;
22
23                 user_led1 {
24                         label = "green:user1";
25                         gpios = <&gpio4 RK_PC2 0>;
26                         linux,default-trigger = "heartbeat";
27                 };
28
29                 user_led2 {
30                         label = "green:user2";
31                         gpios = <&gpio4 RK_PC6 0>;
32                         linux,default-trigger = "mmc0";
33                 };
34
35                 user_led3 {
36                         label = "green:user3";
37                         gpios = <&gpio4 RK_PD0 0>;
38                         linux,default-trigger = "mmc1";
39                 };
40
41                 user_led4 {
42                         label = "green:user4";
43                         gpios = <&gpio4 RK_PD4 0>;
44                         panic-indicator;
45                         linux,default-trigger = "none";
46                 };
47
48                 wlan_active_led {
49                         label = "yellow:wlan";
50                         gpios = <&gpio4 RK_PD5 0>;
51                         linux,default-trigger = "phy0tx";
52                         default-state = "off";
53                 };
54
55                 bt_active_led {
56                         label = "blue:bt";
57                         gpios = <&gpio4 RK_PD6 0>;
58                         linux,default-trigger = "hci0-power";
59                         default-state = "off";
60                 };
61         };
62
63 };
64
65 &pcie0 {
66         ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
67 };
68
69 &pinctrl {
70         leds {
71                 user_led1: user_led1 {
72                         rockchip,pins =
73                                 <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
74                 };
75
76                 user_led2: user_led2 {
77                         rockchip,pins =
78                                 <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
79                 };
80
81                 user_led3: user_led3 {
82                         rockchip,pins =
83                                 <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
84                 };
85
86                 user_led4: user_led4 {
87                         rockchip,pins =
88                                 <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
89                 };
90
91                 wlan_led: wlan_led {
92                         rockchip,pins =
93                                 <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
94                 };
95
96                 bt_led: bt_led {
97                         rockchip,pins =
98                                 <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
99                 };
100         };
101
102         pcie {
103                 pcie_drv: pcie-drv {
104                         rockchip,pins =
105                                 <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
106                         };
107         };
108
109         usb2 {
110                 host_vbus_drv: host-vbus-drv {
111                         rockchip,pins =
112                                 <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
113                 };
114         };
115 };
116
117 &usbdrd_dwc3_0 {
118         dr_mode = "otg";
119 };
120
121 &usbdrd_dwc3_1 {
122         dr_mode = "host";
123 };
124
125 &vcc3v3_pcie {
126         gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>;
127 };
128
129 &vcc5v0_host {
130         gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
131 };