]> git.ipfire.org Git - thirdparty/u-boot.git/blob - src/arm64/rockchip/rk3568-nanopi-r5c.dts
Squashed 'dts/upstream/' content from commit aaba2d45dc2a
[thirdparty/u-boot.git] / src / arm64 / rockchip / rk3568-nanopi-r5c.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /*
3 * Copyright (c) 2022 FriendlyElec Computer Tech. Co., Ltd.
4 * (http://www.friendlyelec.com)
5 *
6 * Copyright (c) 2023 Tianling Shen <cnsztl@gmail.com>
7 */
8
9 /dts-v1/;
10 #include "rk3568-nanopi-r5s.dtsi"
11
12 / {
13 model = "FriendlyElec NanoPi R5C";
14 compatible = "friendlyarm,nanopi-r5c", "rockchip,rk3568";
15
16 gpio-keys {
17 compatible = "gpio-keys";
18 pinctrl-names = "default";
19 pinctrl-0 = <&reset_button_pin>;
20
21 button-reset {
22 debounce-interval = <50>;
23 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_LOW>;
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 };
27 };
28
29 gpio-leds {
30 compatible = "gpio-leds";
31 pinctrl-names = "default";
32 pinctrl-0 = <&lan_led_pin>, <&power_led_pin>, <&wan_led_pin>, <&wlan_led_pin>;
33
34 led-lan {
35 color = <LED_COLOR_ID_GREEN>;
36 function = LED_FUNCTION_LAN;
37 gpios = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>;
38 };
39
40 power_led: led-power {
41 color = <LED_COLOR_ID_RED>;
42 function = LED_FUNCTION_POWER;
43 linux,default-trigger = "heartbeat";
44 gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
45 };
46
47 led-wan {
48 color = <LED_COLOR_ID_GREEN>;
49 function = LED_FUNCTION_WAN;
50 gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>;
51 };
52
53 led-wlan {
54 color = <LED_COLOR_ID_GREEN>;
55 function = LED_FUNCTION_WLAN;
56 gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_HIGH>;
57 };
58 };
59 };
60
61 &pcie2x1 {
62 pinctrl-names = "default";
63 pinctrl-0 = <&pcie20_reset_pin>;
64 reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
65 status = "okay";
66 };
67
68 &pcie3x1 {
69 num-lanes = <1>;
70 reset-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
71 vpcie3v3-supply = <&vcc3v3_pcie>;
72 status = "okay";
73 };
74
75 &pcie3x2 {
76 num-lanes = <1>;
77 reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
78 vpcie3v3-supply = <&vcc3v3_pcie>;
79 status = "okay";
80 };
81
82 &pinctrl {
83 gpio-leds {
84 lan_led_pin: lan-led-pin {
85 rockchip,pins = <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
86 };
87
88 power_led_pin: power-led-pin {
89 rockchip,pins = <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
90 };
91
92 wan_led_pin: wan-led-pin {
93 rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
94 };
95
96 wlan_led_pin: wlan-led-pin {
97 rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
98 };
99 };
100
101 pcie {
102 pcie20_reset_pin: pcie20-reset-pin {
103 rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
104 };
105 };
106
107 rockchip-key {
108 reset_button_pin: reset-button-pin {
109 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
110 };
111 };
112 };