hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2023 Rockchip Electronics Co., Ltd.
 *
 */
 
/dts-v1/;
 
#include "rk3588-vehicle-evb-v21.dtsi"
#include "rk3588-vehicle-evb-maxim-max96712-dphy3.dtsi"
#include "rk3588-vehicle-serdes-mfd-display-rohm.dtsi"
#include "rk3588-android.dtsi"
 
/ {
   model = "Rockchip RK3588 VEHICLE EVB V21 Board";
   compatible = "rockchip,rk3588-vehicle-evb-v21", "rockchip,rk3588";
 
   bt-sound {
       compatible = "simple-audio-card";
       simple-audio-card,format = "dsp_a";
       simple-audio-card,bitclock-inversion = <1>;
       simple-audio-card,mclk-fs = <256>;
       simple-audio-card,name = "rockchip,bt";
       simple-audio-card,cpu {
           sound-dai = <&i2s2_2ch>;
       };
 
       simple-audio-card,codec {
           sound-dai = <&bt_sco 1>;
       };
   };
 
   bt_sco: bt-sco {
       compatible = "delta,dfbmcs320";
       #sound-dai-cells = <1>;
       status = "okay";
   };
   gpio-keys {
       compatible = "gpio-keys";
       autorepeat;
 
       reverse {
           label = "GPIO Key Reverse";
           linux,code = <KEY_CAMERA_DOWN>;
           gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
           debounce-interval = <100>;
       };
 
       park {
           label = "GPIO Key Park";
           linux,code = <KEY_CAMERA>;
           gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
           debounce-interval = <100>;
       };
   };
};
 
&i2c2 {
   himax@48 {
       himax,irq-gpio = <&gpio1 RK_PB0 IRQ_TYPE_EDGE_FALLING>;
   };
};
 
&i2c4 {
   himax@48 {
       himax,irq-gpio = <&gpio3 RK_PC5 IRQ_TYPE_EDGE_FALLING>;
   };
};
 
&i2c5 {
   ilitek@41 {
       interrupt-parent = <&gpio0>;
       interrupts = <RK_PD4 IRQ_TYPE_LEVEL_LOW>;
       reset-gpio = <&gpio0 RK_PD1 GPIO_ACTIVE_LOW>;
   };
};
 
&i2c6 {
   himax@48 {
       himax,irq-gpio = <&gpio1 RK_PB7 IRQ_TYPE_EDGE_FALLING>;    //use rst as int
   };
};
 
&i2s2_2ch {
   pinctrl-0 = <&i2s2m1_lrck
            &i2s2m1_sclk
            &i2s2m1_sdi
            &i2s2m1_sdo>;
   status = "okay";
};
 
 
&pinctrl {
 
   bl {
       bl0_enable_pin: bl0-enable-pin {
           rockchip,pins =
               <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>,
               <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>,
               <4 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
 
       };
 
       bl1_enable_pin: bl1-enable-pin {
           rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
       };
 
       bl2_enable_pin: bl2-enable-pin {
           rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
       };
 
       bl3_enable_pin: bl3-enable-pin {
           rockchip,pins = <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
       };
 
       bl4_enable_pin: bl4-enable-pin {
           rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
       };
 
       bl5_enable_pin: bl5-enable-pin {
           rockchip,pins = <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
       };
   };
 
   serdes {
       //dsi0
       ser0_rst_pin: ser0-rst-pin {
           rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
       };
 
       //dsi1
       ser1_rst_pin: ser1-rst-pin {
           rockchip,pins = <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
       };
   };
 
   touch {
       //dsi0-i2c2
       touch_gpio_dsi0: touch-gpio-dsi0 {
           rockchip,pins =
               <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;  //rst
       };
       //dsi1-i2c6
       touch_gpio_dsi1: touch-gpio-dsi1 {
           rockchip,pins =
               <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>,  //rst
               <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;  //int
       };
       //dp0-i2c4
       touch_gpio_dp0: touch-gpio-dp0 {
           rockchip,pins =
               <3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>,    //rst
               <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>;    //int
       };
       //edp0-i2c5
       touch_gpio_edp0: touch-gpio-edp0 {
           rockchip,pins =
               <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>,  //rst
               <0 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up>;  //int
       };
   };
};
 
&rockchip_suspend {
   rockchip,sleep-mode-config = <
       (0
       | RKPM_SLP_ARMOFF_DDRPD
       | RKPM_SLP_PMU_PMUALIVE_32K
       | RKPM_SLP_PMU_DIS_OSC
       | RKPM_SLP_32K_EXT
       )
   >;
   rockchip,wakeup-config = <
       (0
       | RKPM_CPU0_WKUP_EN
       | RKPM_GPIO_WKUP_EN
       )
   >;
   status = "okay";
};
 
&vdd_log_s0 {
   regulator-state-mem {
       regulator-on-in-suspend;
       regulator-suspend-microvolt = <800000>;
   };
};
 
&vcc_3v3_s0 {
   regulator-state-mem {
       regulator-on-in-suspend;
       regulator-suspend-microvolt = <3300000>;
   };
};
 
&vcc_1v8_s0 {
   regulator-state-mem {
       regulator-on-in-suspend;
       regulator-suspend-microvolt = <1800000>;
   };
};
 
&vdd_1v8_pll_s0 {
       regulator-on-in-suspend;
       regulator-suspend-microvolt = <1800000>;
};