hc
2023-11-20 2e7bd41e4e8ab3d1efdabd9e263a2f7fe79bff8c
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
/*
 * Copyright (c) 2022 Rockchip Electronics Co., Ltd
 *
 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
 */
 
/ {
   pcfg-for-s {
       /* default for px30 and 4ma for px30s */
       pcfg_pull_none_n_4ma: pcfg-pull-none-n-4ma {
           bias-disable;
           drive-strength-s = <4>;
       };
       pcfg_pull_up_n_4ma: pcfg-pull-up-n-4ma {
           bias-pull-up;
           drive-strength-s = <4>;
       };
       pcfg_pull_down_n_4ma: pcfg-pull-down-n-4ma {
           bias-pull-down;
           drive-strength-s = <4>;
       };
 
       /* default for px30 and 6ma for px30s */
       pcfg_pull_none_0_6ma: pcfg-pull-none-0-6ma {
           bias-disable;
           drive-strength-s = <6>;
       };
       pcfg_pull_up_0_6ma: pcfg-pull-up-0-6ma {
           bias-pull-up;
           drive-strength-s = <6>;
       };
       pcfg_pull_down_0_6ma: pcfg-pull-down-0-6ma {
           bias-pull-down;
           drive-strength-s = <6>;
       };
 
       /* 4ma for px30 and 6ma for px30s */
       pcfg_pull_none_4_6ma: pcfg-pull-none-4-6ma {
           bias-disable;
           drive-strength = <4>;
           drive-strength-s = <6>;
       };
       pcfg_pull_up_4_6ma: pcfg-pull-up-4-6ma {
           bias-pull-up;
           drive-strength = <4>;
           drive-strength-s = <6>;
       };
       pcfg_pull_down_4_6ma: pcfg-pull-down-4-6ma {
           bias-pull-down;
           drive-strength = <4>;
           drive-strength-s = <6>;
       };
 
       /* 8ma for px30 and 6ma for px30s */
       pcfg_pull_none_8_6ma: pcfg-pull-none-8-6ma {
           bias-disable;
           drive-strength = <8>;
           drive-strength-s = <6>;
       };
       pcfg_pull_up_8_6ma: pcfg-pull-up-8-6ma {
           bias-pull-up;
           drive-strength = <8>;
           drive-strength-s = <6>;
       };
       pcfg_pull_down_8_6ma: pcfg-pull-down-8-6ma {
           bias-pull-down;
           drive-strength = <8>;
           drive-strength-s = <6>;
       };
 
       /* 8ma for px30 and 4ma for px30s */
       pcfg_pull_none_8_4ma: pcfg-pull-none-8-4ma {
           bias-disable;
           drive-strength = <8>;
           drive-strength-s = <4>;
       };
       pcfg_pull_up_8_4ma: pcfg-pull-up-8-4ma {
           bias-pull-up;
           drive-strength = <8>;
           drive-strength-s = <4>;
       };
       pcfg_pull_down_8_4ma: pcfg-pull-down-8-4ma {
           bias-pull-down;
           drive-strength = <8>;
           drive-strength-s = <4>;
       };
 
       /* 12ma for px30 and 4ma for px30s */
       pcfg_pull_none_12_4ma: pcfg-pull-none-12-4ma {
           bias-disable;
           drive-strength = <12>;
           drive-strength-s = <4>;
       };
       pcfg_pull_up_12_4ma: pcfg-pull-up-12-4ma {
           bias-pull-up;
           drive-strength = <12>;
           drive-strength-s = <4>;
       };
       pcfg_pull_down_12_4ma: pcfg-pull-down-12-4ma {
           bias-pull-down;
           drive-strength = <12>;
           drive-strength-s = <4>;
       };
 
       /* 12ma for px30 and 6ma for px30s */
       pcfg_pull_none_12_6ma: pcfg-pull-none-12-6ma {
           bias-disable;
           drive-strength = <12>;
           drive-strength-s = <6>;
       };
       pcfg_pull_up_12_6ma: pcfg-pull-up-12-6ma {
           bias-pull-up;
           drive-strength = <12>;
           drive-strength-s = <6>;
       };
       pcfg_pull_down_12_6ma: pcfg-pull-down-12-6ma {
           bias-pull-down;
           drive-strength = <12>;
           drive-strength-s = <6>;
       };
   };
};
 
&pinctrl {
   /delete-node/ emmc;
   emmc {
       emmc_clk: emmc-clk {
           rockchip,pins =
               <1 RK_PB1 RK_FUNC_2 &pcfg_pull_none_8_6ma>;
       };
 
       emmc_cmd: emmc-cmd {
           rockchip,pins =
               <1 RK_PB2 RK_FUNC_2 &pcfg_pull_up_8_6ma>;
       };
 
       emmc_pwren: emmc-pwren {
           rockchip,pins =
               <1 RK_PB0 RK_FUNC_2 &pcfg_pull_none>;
       };
 
       emmc_rstnout: emmc-rstnout {
           rockchip,pins =
               <1 RK_PB3 RK_FUNC_2 &pcfg_pull_none>;
       };
 
       emmc_bus1: emmc-bus1 {
           rockchip,pins =
               <1 RK_PA0 RK_FUNC_2 &pcfg_pull_up_8_6ma>;
       };
 
       emmc_bus4: emmc-bus4 {
           rockchip,pins =
               <1 RK_PA0 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
               <1 RK_PA1 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
               <1 RK_PA2 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
               <1 RK_PA3 RK_FUNC_2 &pcfg_pull_up_8_6ma>;
       };
 
       emmc_bus8: emmc-bus8 {
           rockchip,pins =
               <1 RK_PA0 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
               <1 RK_PA1 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
               <1 RK_PA2 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
               <1 RK_PA3 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
               <1 RK_PA4 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
               <1 RK_PA5 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
               <1 RK_PA6 RK_FUNC_2 &pcfg_pull_up_8_6ma>,
               <1 RK_PA7 RK_FUNC_2 &pcfg_pull_up_8_6ma>;
       };
   };
};