hc
2024-08-12 233ab1bd4c5697f5cdec94e60206e8c6ac609b4c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2022 FriendlyElec Computer Tech. Co., Ltd.
 * (http://www.friendlyelec.com)
 *
 * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
 */
 
 /dts-v1/;
 
#include "rk3588s-nanopi-r6-common.dtsi"
 
/ {
   model = "FriendlyElec NanoPi R6S";
   compatible = "friendlyelec,nanopi-r6s", "rockchip,rk3588";
 
   aliases {
       ethernet0 = &r8125_u25;
   };
 
   gpio_keys: gpio-keys {
       compatible = "gpio-keys";
       pinctrl-names = "default";
       pinctrl-0 = <&key1_pin>;
 
       button@1 {
           debounce-interval = <50>;
           gpios = <&gpio1 RK_PC0 GPIO_ACTIVE_LOW>;
           label = "K1";
           linux,code = <BTN_1>;
           wakeup-source;
       };
   };
 
   gpio_leds: gpio-leds {
       compatible = "gpio-leds";
 
       sys_led: led-0 {
           gpios = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>;
           label = "sys_led";
           linux,default-trigger = "heartbeat";
           pinctrl-names = "default";
           pinctrl-0 = <&sys_led_pin>;
       };
 
       wan_led: led-1 {
           gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>;
           label = "wan_led";
           pinctrl-names = "default";
           pinctrl-0 = <&wan_led_pin>;
       };
 
       lan1_led: led-2 {
           gpios = <&gpio1 RK_PC3 GPIO_ACTIVE_HIGH>;
           label = "lan1_led";
           pinctrl-names = "default";
           pinctrl-0 = <&lan1_led_pin>;
       };
 
       lan2_led: led-3 {
           gpios = <&gpio1 RK_PC4 GPIO_ACTIVE_HIGH>;
           label = "lan2_led";
           pinctrl-names = "default";
           pinctrl-0 = <&lan2_led_pin>;
       };
   };
 
   vcc5v0_host_20: vcc5v0-host-20 {
       compatible = "regulator-fixed";
       enable-active-high;
       gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
       pinctrl-names = "default";
       pinctrl-0 = <&vcc5v0_host20_en>;
       regulator-name = "vcc5v0_host_20";
       regulator-min-microvolt = <5000000>;
       regulator-max-microvolt = <5000000>;
       vin-supply = <&vcc5v0_usb>;
   };
};
 
&pcie2x1l1 {
   pcie@30 {
       reg = <0x00300000 0 0 0 0>;
       #address-cells = <3>;
       #size-cells = <2>;
 
       r8125_u25: pcie@30,0 {
           reg = <0x000000 0 0 0 0>;
           local-mac-address = [ 00 00 00 00 00 00 ];
       };
   };
};
 
&pcie2x1l2 {
   pcie@40 {
       reg = <0x00400000 0 0 0 0>;
       #address-cells = <3>;
       #size-cells = <2>;
 
       r8125_u40: pcie@40,0 {
           reg = <0x000000 0 0 0 0>;
           local-mac-address = [ 00 00 00 00 00 00 ];
       };
   };
};
 
&pinctrl {
   gpio-key {
       key1_pin: key1-pin {
           rockchip,pins = <1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>;
       };
   };
 
   gpio-leds {
       sys_led_pin: sys-led-pin {
           rockchip,pins =
               <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
       };
 
       wan_led_pin: wan-led-pin {
           rockchip,pins =
               <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
       };
 
       lan1_led_pin: lan1-led-pin {
           rockchip,pins =
               <1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
       };
 
       lan2_led_pin: lan2-led-pin {
           rockchip,pins =
               <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
       };
   };
 
   usb {
       vcc5v0_host20_en: vcc5v0-host20-en {
           rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
       };
   };
};
 
&i2c6 {
   clock-frequency = <200000>;
   status = "okay";
 
   eeprom@53 {
       compatible = "microchip,24c02", "atmel,24c02";
       reg = <0x53>;
       #address-cells = <2>;
       #size-cells = <0>;
       pagesize = <16>;
       size = <256>;
 
       eui_48: eui-48@fa {
           reg = <0xfa 0x06>;
       };
   };
};
 
&u2phy0 {
   status = "okay";
};
 
&u2phy0_otg {
   phy-supply = <&vbus5v0_typec>;
   status = "okay";
};
 
&u2phy2 {
   status = "okay";
};
 
&u2phy2_host {
   phy-supply = <&vcc5v0_host_20>;
   status = "okay";
};