forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/rockchip/px30s-pinctrl.dtsi
....@@ -1,123 +1,120 @@
1
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
12 /*
23 * Copyright (c) 2022 Rockchip Electronics Co., Ltd
3
- *
4
- * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
54 */
65
7
-/ {
8
- pcfg-for-s {
9
- /* default for px30 and 4ma for px30s */
10
- pcfg_pull_none_n_4ma: pcfg-pull-none-n-4ma {
11
- bias-disable;
12
- drive-strength-s = <4>;
13
- };
14
- pcfg_pull_up_n_4ma: pcfg-pull-up-n-4ma {
15
- bias-pull-up;
16
- drive-strength-s = <4>;
17
- };
18
- pcfg_pull_down_n_4ma: pcfg-pull-down-n-4ma {
19
- bias-pull-down;
20
- drive-strength-s = <4>;
21
- };
6
+&pinctrl {
7
+ /* default for px30 and 4ma for px30s */
8
+ pcfg_pull_none_n_4ma: pcfg-pull-none-n-4ma {
9
+ bias-disable;
10
+ drive-strength-s = <4>;
11
+ };
12
+ pcfg_pull_up_n_4ma: pcfg-pull-up-n-4ma {
13
+ bias-pull-up;
14
+ drive-strength-s = <4>;
15
+ };
16
+ pcfg_pull_down_n_4ma: pcfg-pull-down-n-4ma {
17
+ bias-pull-down;
18
+ drive-strength-s = <4>;
19
+ };
2220
23
- /* default for px30 and 6ma for px30s */
24
- pcfg_pull_none_0_6ma: pcfg-pull-none-0-6ma {
25
- bias-disable;
26
- drive-strength-s = <6>;
27
- };
28
- pcfg_pull_up_0_6ma: pcfg-pull-up-0-6ma {
29
- bias-pull-up;
30
- drive-strength-s = <6>;
31
- };
32
- pcfg_pull_down_0_6ma: pcfg-pull-down-0-6ma {
33
- bias-pull-down;
34
- drive-strength-s = <6>;
35
- };
21
+ /* default for px30 and 6ma for px30s */
22
+ pcfg_pull_none_0_6ma: pcfg-pull-none-0-6ma {
23
+ bias-disable;
24
+ drive-strength-s = <6>;
25
+ };
26
+ pcfg_pull_up_0_6ma: pcfg-pull-up-0-6ma {
27
+ bias-pull-up;
28
+ drive-strength-s = <6>;
29
+ };
30
+ pcfg_pull_down_0_6ma: pcfg-pull-down-0-6ma {
31
+ bias-pull-down;
32
+ drive-strength-s = <6>;
33
+ };
3634
37
- /* 4ma for px30 and 6ma for px30s */
38
- pcfg_pull_none_4_6ma: pcfg-pull-none-4-6ma {
39
- bias-disable;
40
- drive-strength = <4>;
41
- drive-strength-s = <6>;
42
- };
43
- pcfg_pull_up_4_6ma: pcfg-pull-up-4-6ma {
44
- bias-pull-up;
45
- drive-strength = <4>;
46
- drive-strength-s = <6>;
47
- };
48
- pcfg_pull_down_4_6ma: pcfg-pull-down-4-6ma {
49
- bias-pull-down;
50
- drive-strength = <4>;
51
- drive-strength-s = <6>;
52
- };
35
+ /* 4ma for px30 and 6ma for px30s */
36
+ pcfg_pull_none_4_6ma: pcfg-pull-none-4-6ma {
37
+ bias-disable;
38
+ drive-strength = <4>;
39
+ drive-strength-s = <6>;
40
+ };
41
+ pcfg_pull_up_4_6ma: pcfg-pull-up-4-6ma {
42
+ bias-pull-up;
43
+ drive-strength = <4>;
44
+ drive-strength-s = <6>;
45
+ };
46
+ pcfg_pull_down_4_6ma: pcfg-pull-down-4-6ma {
47
+ bias-pull-down;
48
+ drive-strength = <4>;
49
+ drive-strength-s = <6>;
50
+ };
5351
54
- /* 8ma for px30 and 6ma for px30s */
55
- pcfg_pull_none_8_6ma: pcfg-pull-none-8-6ma {
56
- bias-disable;
57
- drive-strength = <8>;
58
- drive-strength-s = <6>;
59
- };
60
- pcfg_pull_up_8_6ma: pcfg-pull-up-8-6ma {
61
- bias-pull-up;
62
- drive-strength = <8>;
63
- drive-strength-s = <6>;
64
- };
65
- pcfg_pull_down_8_6ma: pcfg-pull-down-8-6ma {
66
- bias-pull-down;
67
- drive-strength = <8>;
68
- drive-strength-s = <6>;
69
- };
52
+ /* 8ma for px30 and 6ma for px30s */
53
+ pcfg_pull_none_8_6ma: pcfg-pull-none-8-6ma {
54
+ bias-disable;
55
+ drive-strength = <8>;
56
+ drive-strength-s = <6>;
57
+ };
58
+ pcfg_pull_up_8_6ma: pcfg-pull-up-8-6ma {
59
+ bias-pull-up;
60
+ drive-strength = <8>;
61
+ drive-strength-s = <6>;
62
+ };
63
+ pcfg_pull_down_8_6ma: pcfg-pull-down-8-6ma {
64
+ bias-pull-down;
65
+ drive-strength = <8>;
66
+ drive-strength-s = <6>;
67
+ };
7068
71
- /* 8ma for px30 and 4ma for px30s */
72
- pcfg_pull_none_8_4ma: pcfg-pull-none-8-4ma {
73
- bias-disable;
74
- drive-strength = <8>;
75
- drive-strength-s = <4>;
76
- };
77
- pcfg_pull_up_8_4ma: pcfg-pull-up-8-4ma {
78
- bias-pull-up;
79
- drive-strength = <8>;
80
- drive-strength-s = <4>;
81
- };
82
- pcfg_pull_down_8_4ma: pcfg-pull-down-8-4ma {
83
- bias-pull-down;
84
- drive-strength = <8>;
85
- drive-strength-s = <4>;
86
- };
69
+ /* 8ma for px30 and 4ma for px30s */
70
+ pcfg_pull_none_8_4ma: pcfg-pull-none-8-4ma {
71
+ bias-disable;
72
+ drive-strength = <8>;
73
+ drive-strength-s = <4>;
74
+ };
75
+ pcfg_pull_up_8_4ma: pcfg-pull-up-8-4ma {
76
+ bias-pull-up;
77
+ drive-strength = <8>;
78
+ drive-strength-s = <4>;
79
+ };
80
+ pcfg_pull_down_8_4ma: pcfg-pull-down-8-4ma {
81
+ bias-pull-down;
82
+ drive-strength = <8>;
83
+ drive-strength-s = <4>;
84
+ };
8785
88
- /* 12ma for px30 and 4ma for px30s */
89
- pcfg_pull_none_12_4ma: pcfg-pull-none-12-4ma {
90
- bias-disable;
91
- drive-strength = <12>;
92
- drive-strength-s = <4>;
93
- };
94
- pcfg_pull_up_12_4ma: pcfg-pull-up-12-4ma {
95
- bias-pull-up;
96
- drive-strength = <12>;
97
- drive-strength-s = <4>;
98
- };
99
- pcfg_pull_down_12_4ma: pcfg-pull-down-12-4ma {
100
- bias-pull-down;
101
- drive-strength = <12>;
102
- drive-strength-s = <4>;
103
- };
86
+ /* 12ma for px30 and 4ma for px30s */
87
+ pcfg_pull_none_12_4ma: pcfg-pull-none-12-4ma {
88
+ bias-disable;
89
+ drive-strength = <12>;
90
+ drive-strength-s = <4>;
91
+ };
92
+ pcfg_pull_up_12_4ma: pcfg-pull-up-12-4ma {
93
+ bias-pull-up;
94
+ drive-strength = <12>;
95
+ drive-strength-s = <4>;
96
+ };
97
+ pcfg_pull_down_12_4ma: pcfg-pull-down-12-4ma {
98
+ bias-pull-down;
99
+ drive-strength = <12>;
100
+ drive-strength-s = <4>;
101
+ };
104102
105
- /* 12ma for px30 and 6ma for px30s */
106
- pcfg_pull_none_12_6ma: pcfg-pull-none-12-6ma {
107
- bias-disable;
108
- drive-strength = <12>;
109
- drive-strength-s = <6>;
110
- };
111
- pcfg_pull_up_12_6ma: pcfg-pull-up-12-6ma {
112
- bias-pull-up;
113
- drive-strength = <12>;
114
- drive-strength-s = <6>;
115
- };
116
- pcfg_pull_down_12_6ma: pcfg-pull-down-12-6ma {
117
- bias-pull-down;
118
- drive-strength = <12>;
119
- drive-strength-s = <6>;
120
- };
103
+ /* 12ma for px30 and 6ma for px30s */
104
+ pcfg_pull_none_12_6ma: pcfg-pull-none-12-6ma {
105
+ bias-disable;
106
+ drive-strength = <12>;
107
+ drive-strength-s = <6>;
108
+ };
109
+ pcfg_pull_up_12_6ma: pcfg-pull-up-12-6ma {
110
+ bias-pull-up;
111
+ drive-strength = <12>;
112
+ drive-strength-s = <6>;
113
+ };
114
+ pcfg_pull_down_12_6ma: pcfg-pull-down-12-6ma {
115
+ bias-pull-down;
116
+ drive-strength = <12>;
117
+ drive-strength-s = <6>;
121118 };
122119 };
123120
....@@ -126,47 +123,47 @@
126123 emmc {
127124 emmc_clk: emmc-clk {
128125 rockchip,pins =
129
- <1 RK_PB1 RK_FUNC_2 &pcfg_pull_none_8_6ma>;
126
+ <1 RK_PB1 2 &pcfg_pull_none_8_6ma>;
130127 };
131128
132129 emmc_cmd: emmc-cmd {
133130 rockchip,pins =
134
- <1 RK_PB2 RK_FUNC_2 &pcfg_pull_up_8_6ma>;
131
+ <1 RK_PB2 2 &pcfg_pull_up_8_6ma>;
135132 };
136133
137134 emmc_pwren: emmc-pwren {
138135 rockchip,pins =
139
- <1 RK_PB0 RK_FUNC_2 &pcfg_pull_none>;
136
+ <1 RK_PB0 2 &pcfg_pull_none>;
140137 };
141138
142139 emmc_rstnout: emmc-rstnout {
143140 rockchip,pins =
144
- <1 RK_PB3 RK_FUNC_2 &pcfg_pull_none>;
141
+ <1 RK_PB3 2 &pcfg_pull_none>;
145142 };
146143
147144 emmc_bus1: emmc-bus1 {
148145 rockchip,pins =
149
- <1 RK_PA0 RK_FUNC_2 &pcfg_pull_up_8_6ma>;
146
+ <1 RK_PA0 2 &pcfg_pull_up_8_6ma>;
150147 };
151148
152149 emmc_bus4: emmc-bus4 {
153150 rockchip,pins =
154
- <1 RK_PA0 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
155
- <1 RK_PA1 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
156
- <1 RK_PA2 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
157
- <1 RK_PA3 RK_FUNC_2 &pcfg_pull_up_8_6ma>;
151
+ <1 RK_PA0 2 &pcfg_pull_up_8_6ma>,
152
+ <1 RK_PA1 2 &pcfg_pull_up_8_6ma>,
153
+ <1 RK_PA2 2 &pcfg_pull_up_8_6ma>,
154
+ <1 RK_PA3 2 &pcfg_pull_up_8_6ma>;
158155 };
159156
160157 emmc_bus8: emmc-bus8 {
161158 rockchip,pins =
162
- <1 RK_PA0 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
163
- <1 RK_PA1 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
164
- <1 RK_PA2 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
165
- <1 RK_PA3 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
166
- <1 RK_PA4 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
167
- <1 RK_PA5 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
168
- <1 RK_PA6 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
169
- <1 RK_PA7 RK_FUNC_2 &pcfg_pull_up_8_6ma>;
159
+ <1 RK_PA0 2 &pcfg_pull_up_8_6ma>,
160
+ <1 RK_PA1 2 &pcfg_pull_up_8_6ma>,
161
+ <1 RK_PA2 2 &pcfg_pull_up_8_6ma>,
162
+ <1 RK_PA3 2 &pcfg_pull_up_8_6ma>,
163
+ <1 RK_PA4 2 &pcfg_pull_up_8_6ma>,
164
+ <1 RK_PA5 2 &pcfg_pull_up_8_6ma>,
165
+ <1 RK_PA6 2 &pcfg_pull_up_8_6ma>,
166
+ <1 RK_PA7 2 &pcfg_pull_up_8_6ma>;
170167 };
171168 };
172169 };