-
Notifications
You must be signed in to change notification settings - Fork 5
/
3288-linux.txt
executable file
·600 lines (516 loc) · 23.6 KB
/
3288-linux.txt
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
rk-linux-sdk
4.4
./repo init --repo-url ssh://[email protected]/repo/rk/tools/repo \
-u ssh://[email protected]/linux/rockchip/platform/manifests \
-b linux \
-m rk3288_linux_release.xml
4.19
./repo init --repo-url ssh://[email protected]/repo/rk/tools/repo \
-u ssh://[email protected]/linux/rockchip/platform/manifests \
-b linux \
-m rk3288_linux4.19_release.xml
.repo/repo/repo sync -c --no-tags -j4
tar -cf rk3288_linux4.19_release_v1.2.0_20220620.tar .repo/
tar -czvf rk3288_linux4.19_release_v1.2.0_20220620-src.tar.gz --exclude=linux/.repo linux/
cd linux_sdk/linux/
find . -name ".git" | xargs rm -rf
git init
git add . -f
git commit -m "rk3288_linux4.19_release_v1.2.0_20220620."
git remote add origin [email protected]:gq213/linux-sdk-rk3288.git
git push -u origin master
firefly-sdk
tar -xf rk3288_linux_release_20210304.tgz
cd rk3288_linux_release_20210304/
.repo/repo/repo sync -l
.repo/repo/repo sync -c --no-tags
.repo/repo/repo start firefly --all
android-kernel
git clone https://mirrors.ustc.edu.cn/aosp/kernel/common.git
git checkout remotes/origin/android-4.19-stable
compile
./build.sh device/rockchip/rk3288/BoardConfig-rk3288-ff.mk
2. BoardConfig-rk3288-ff.mk
./build.sh all
./build.sh firmware
source buildroot/build/envsetup.sh
30. rockchip_rk3288_ff
uboot
./make.sh firefly-rk3288
make firefly-rk3288_defconfig
./make.sh
# CONFIG_USING_KERNEL_DTB is not set
cd kernel
make ARCH=arm rockchip_linux_defconfig ff3288.config
make ARCH=arm rk3288-firefly.img -j8
mkdir -p ../rockdev
ln -sf ../kernel/zboot.img ../rockdev/boot.img
Disk /dev/mmcblk2: 30535680 sectors, 2622M
Logical sector size: 512
Disk identifier (GUID): a6510000-0000-4c7b-8000-6ff400003ec9
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 30535646
Number Start (sector) End (sector) Size Name
1 16384 24575 4096K uboot
2 24576 32767 4096K trust
3 32768 40959 4096K misc
4 40960 106495 32.0M boot
5 106496 172031 32.0M recovery
6 172032 237567 32.0M backup
7 237568 368639 64.0M oem
8 368640 12951551 6144M rootfs
9 12951552 30535615 8585M userdata
dd if=/dev/zero of=/dev/mmcblk2 bs=512 count=32768
dd if=/dev/zero of=/dev/mmcblk2 bs=512 count=32768 seek=30502912
cat /sys/kernel/debug/gpio
cat /sys/kernel/debug/dw-hdmi/status
PHY: enabled Mode: HDMI
Pixel Clk: 148500000Hz TMDS Clk: 148500000Hz
Color Format: RGB Color Depth: 8 bit
Colorimetry: ITU.BT709 EOTF: Unsupported
cat /sys/kernel/debug/clk/clk_summary | grep vop
dclk_vop1 1 3 0 148500000 0 0 50000
hclk_vop0 1 5 0 99000000 0 0 50000
hclk_vop1 1 5 0 99000000 0 0 50000
aclk_vop1 1 5 0 297000000 0 0 50000
aclk_vop0 1 5 0 594000000 0 0 50000
dclk_vop0 1 3 0 148500000 0 0 50000
cat /sys/kernel/debug/dri/0/summary
VOP [ff930000.vop]: ACTIVE
Connector: HDMI-A
bus_format[100a]: RGB888_1X24
overlay_mode[0] output_mode[f] color_space[0]
Display mode: 1920x1080p60
clk[148500] real_clk[148500] type[48] flag[5]
H: 1920 2008 2052 2200
V: 1080 1084 1089 1125
win0-0: ACTIVE
format: RG16 little-endian (0x36314752) SDR[0] color_space[0]
csc: y2r[0] r2r[0] r2y[0] csc mode[0]
zpos: 0
src: pos[0x0] rect[654x270]
dst: pos[633x405] rect[654x270]
buf[0]: addr: 0x7df00000 pitch: 1308 offset: 397312
win1-0: DISABLED
win2-0: DISABLED
win3-0: DISABLED
post: sdr2hdr[0] hdr2sdr[0]
pre : sdr2hdr[0]
post CSC: r2y[0] y2r[0] CSC mode[1]
VOP [ff940000.vop]: ACTIVE
Connector: DPI
bus_format[100a]: RGB888_1X24
overlay_mode[0] output_mode[0] color_space[0]
Display mode: 1920x1080p60
clk[148500] real_clk[148500] type[48] flag[a]
H: 1920 2008 2052 2200
V: 1080 1084 1089 1125
win0-0: ACTIVE
format: RG16 little-endian (0x36314752) SDR[0] color_space[0]
csc: y2r[0] r2r[0] r2y[0] csc mode[0]
zpos: 0
src: pos[0x0] rect[654x270]
dst: pos[633x405] rect[654x270]
buf[0]: addr: 0x7df00000 pitch: 1308 offset: 397312
win1-0: DISABLED
win2-0: DISABLED
win3-0: DISABLED
post: sdr2hdr[0] hdr2sdr[0]
pre : sdr2hdr[0]
post CSC: r2y[0] y2r[0] CSC mode[1]
tr '\000' '\377' < /dev/zero | dd of=/dev/fb0 bs=1k count=8100
echo on > /sys/class/drm/card0-HDMI-A-1/status
echo off > /sys/class/drm/card0-HDMI-A-1/status
cat /sys/kernel/debug/dri/0/mm_dump
0x0000000000000000-0x00000000007e9000: 8294400: used
0x00000000007e9000-0x00000000007ed000: 16384: used
0x00000000007ed000-0x00000000007f1000: 16384: used
0x00000000007f1000-0x00000000007f5000: 16384: used
0x00000000007f5000-0x00000000007f9000: 16384: used
0x00000000007f9000-0x0000000000fe2000: 8294400: used
0x0000000000fe2000-0x00000000017cb000: 8294400: used
0x00000000017cb000-0x0000000001fb4000: 8294400: used
0x0000000001fb4000-0x0000000100000000: 4261724160: free
total: 4294967296, used 33243136 free 4261724160
cat /sys/kernel/debug/asoc/dais
i2s-hifi
ff890000.i2s
es8328-hifi-analog
snd-soc-dummy-dai
amixer controls
numid=13,iface=CARD,name='Analog Jack'
numid=9,iface=MIXER,name='PCM Volume'
numid=12,iface=MIXER,name='Mic PGA Volume'
numid=1,iface=MIXER,name='Capture Digital Volume'
numid=4,iface=MIXER,name='Capture Polarity'
numid=2,iface=MIXER,name='Capture ZC Switch'
numid=17,iface=MIXER,name='Analog Switch'
numid=3,iface=MIXER,name='DAC Deemphasis Switch'
numid=19,iface=MIXER,name='Differential Mux'
numid=18,iface=MIXER,name='HDMI Switch'
numid=23,iface=MIXER,name='Left Line Mux'
numid=26,iface=MIXER,name='Left Mixer Left Bypass Switch'
numid=5,iface=MIXER,name='Left Mixer Left Bypass Volume'
numid=25,iface=MIXER,name='Left Mixer Playback Switch'
numid=28,iface=MIXER,name='Left Mixer Right Bypass Switch'
numid=6,iface=MIXER,name='Left Mixer Right Bypass Volume'
numid=27,iface=MIXER,name='Left Mixer Right Playback Switch'
numid=21,iface=MIXER,name='Left PGA Mux'
numid=10,iface=MIXER,name='Output 1 Playback Volume'
numid=11,iface=MIXER,name='Output 2 Playback Volume'
numid=24,iface=MIXER,name='Right Line Mux'
numid=30,iface=MIXER,name='Right Mixer Left Bypass Switch'
numid=7,iface=MIXER,name='Right Mixer Left Bypass Volume'
numid=29,iface=MIXER,name='Right Mixer Left Playback Switch'
numid=31,iface=MIXER,name='Right Mixer Playback Switch'
numid=32,iface=MIXER,name='Right Mixer Right Bypass Switch'
numid=8,iface=MIXER,name='Right Mixer Right Bypass Volume'
numid=22,iface=MIXER,name='Right PGA Mux'
numid=20,iface=MIXER,name='Route'
numid=16,iface=PCM,name='AUDIO MODE'
numid=15,iface=PCM,name='ELD'
numid=14,iface=PCM,name='Playback Channel Map'
amixer contents
numid=13,iface=CARD,name='Analog Jack'
; type=BOOLEAN,access=r-------,values=1
: values=off
numid=9,iface=MIXER,name='PCM Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=192,step=0
: values=0,0
| dBscale-min=-96.00dB,step=0.50dB,mute=0
numid=12,iface=MIXER,name='Mic PGA Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=8,step=0
: values=0,0
| dBscale-min=0.00dB,step=3.00dB,mute=0
numid=1,iface=MIXER,name='Capture Digital Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=192,step=0
: values=0,0
| dBscale-min=-96.00dB,step=0.50dB,mute=0
numid=4,iface=MIXER,name='Capture Polarity'
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Normal'
; Item #1 'L Invert'
; Item #2 'R Invert'
; Item #3 'L + R Invert'
: values=0
numid=2,iface=MIXER,name='Capture ZC Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=17,iface=MIXER,name='Analog Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=3,iface=MIXER,name='DAC Deemphasis Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=19,iface=MIXER,name='Differential Mux'
; type=ENUMERATED,access=rw------,values=1,items=2
; Item #0 'Line 1'
; Item #1 'Line 2'
: values=0
numid=18,iface=MIXER,name='HDMI Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=23,iface=MIXER,name='Left Line Mux'
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Line 1'
; Item #1 'Line 2'
; Item #2 'PGA'
; Item #3 'Differential'
: values=0
numid=26,iface=MIXER,name='Left Mixer Left Bypass Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=5,iface=MIXER,name='Left Mixer Left Bypass Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
: values=0
| dBscale-min=-15.00dB,step=3.00dB,mute=0
numid=25,iface=MIXER,name='Left Mixer Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=28,iface=MIXER,name='Left Mixer Right Bypass Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=6,iface=MIXER,name='Left Mixer Right Bypass Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
: values=2
| dBscale-min=-15.00dB,step=3.00dB,mute=0
numid=27,iface=MIXER,name='Left Mixer Right Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=21,iface=MIXER,name='Left PGA Mux'
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Line 1'
; Item #1 'Line 2'
; Item #2 'Line 3'
; Item #3 'Differential'
: values=0
numid=10,iface=MIXER,name='Output 1 Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=36,step=0
: values=0,0
| dBscale-min=-30.00dB,step=1.00dB,mute=0
numid=11,iface=MIXER,name='Output 2 Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=36,step=0
: values=0,0
| dBscale-min=-30.00dB,step=1.00dB,mute=0
numid=24,iface=MIXER,name='Right Line Mux'
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Line 1'
; Item #1 'Line 2'
; Item #2 'PGA'
; Item #3 'Differential'
: values=0
numid=30,iface=MIXER,name='Right Mixer Left Bypass Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=7,iface=MIXER,name='Right Mixer Left Bypass Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
: values=2
| dBscale-min=-15.00dB,step=3.00dB,mute=0
numid=29,iface=MIXER,name='Right Mixer Left Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=31,iface=MIXER,name='Right Mixer Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=32,iface=MIXER,name='Right Mixer Right Bypass Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=8,iface=MIXER,name='Right Mixer Right Bypass Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
: values=0
| dBscale-min=-15.00dB,step=3.00dB,mute=0
numid=22,iface=MIXER,name='Right PGA Mux'
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Line 1'
; Item #1 'Line 2'
; Item #2 'Line 3'
; Item #3 'Differential'
: values=0
numid=20,iface=MIXER,name='Route'
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Stereo'
; Item #1 'Mono (Left)'
; Item #2 'Mono (Right)'
; Item #3 'Digital Mono'
: values=0
numid=16,iface=PCM,name='AUDIO MODE'
; type=INTEGER,access=rw-v----,values=1,min=0,max=2,step=0
: values=0
numid=15,iface=PCM,name='ELD'
; type=BYTES,access=r--v----,values=128
: values=0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
numid=14,iface=PCM,name='Playback Channel Map'
; type=INTEGER,access=r----R--,values=8,min=0,max=36,step=0
: values=0,0,0,0,0,0,0,0
| container
| chmap-fixed=FL,FR
echo 20 > /sys/kernel/debug/asoc/I2S/dapm_pop_time
amixer cset numid=25,iface=MIXER,name='Left Mixer Playback Switch' 1;
amixer cset numid=31,iface=MIXER,name='Right Mixer Playback Switch' 1;
amixer cset numid=9,iface=MIXER,name='PCM Volume' 192 192;
amixer cset numid=11,iface=MIXER,name='Output 2 Playback Volume' 18 18;
cat /sys/devices/platform/sound-i2s/Codecs/dapm_widget
Right ADC: Off
Left ADC: Off
Mic Bias: Off
Mic Bias Gen: Off
DAC STM: Off
ADC STM: Off
DAC DIG: Off
ADC DIG: Off
DAC DLL: Off
ADC DLL: Off
ADC Vref: Off
DAC Vref: Off
Right DAC: Off
Left DAC: Off
Left Mixer: Off
Right Mixer: Off
Right Out 2: Off
Left Out 2: Off
Right Out 1: Off
Left Out 1: Off
PM State: Standby
PM State: Standby
aplay /etc/48k16bpsStereo.wav &
cat /sys/devices/platform/sound-i2s/Codecs/dapm_widget
Right ADC: Off
Left ADC: Off
Mic Bias: Off
Mic Bias Gen: Off
DAC STM: On
ADC STM: Off
DAC DIG: On
ADC DIG: Off
DAC DLL: On
ADC DLL: Off
ADC Vref: Off
DAC Vref: On
Right DAC: On
Left DAC: On
Left Mixer: On
Right Mixer: On
Right Out 2: Off
Left Out 2: Off
Right Out 1: On
Left Out 1: On
PM State: On
PM State: On
mkdir -p /var/run/wpa_supplicant
vi /etc/wpa_supplicant.conf
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
wpa_cli -i wlan0 -p /var/run/wpa_supplicant scan
wpa_cli -i wlan0 -p /var/run/wpa_supplicant scan_results
wpa_cli -i wlan0 -p /var/run/wpa_supplicant status
killall wpa_supplicant
udhcpc -b -i wlan0 -R -x hostname:bboxwlan0
/etc/init.d/mS49ntp start
bt_init.sh
root@rk3288:/# hciconfig
hci0: Type: Primary Bus: UART
BD Address: 0E:68:9C:94:07:42 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:687 acl:0 sco:0 events:36 errors:0
TX bytes:435 acl:0 sco:0 commands:36 errors:0
hcitool scan
hcitool lescan
root@rk3288:/# ls -l /dev/disk/by-partlabel/
total 0
lrwxrwxrwx 1 root root 15 Jan 1 12:00 backup -> ../../mmcblk2p6
lrwxrwxrwx 1 root root 15 Jan 1 12:00 boot -> ../../mmcblk2p4
lrwxrwxrwx 1 root root 15 Jan 1 12:00 misc -> ../../mmcblk2p3
lrwxrwxrwx 1 root root 15 Jan 1 12:00 oem -> ../../mmcblk2p7
lrwxrwxrwx 1 root root 15 Jan 1 12:00 recovery -> ../../mmcblk2p5
lrwxrwxrwx 1 root root 15 Jan 1 12:00 rootfs -> ../../mmcblk2p8
lrwxrwxrwx 1 root root 15 Jan 1 12:00 trust -> ../../mmcblk2p2
lrwxrwxrwx 1 root root 15 Jan 1 12:00 uboot -> ../../mmcblk2p1
lrwxrwxrwx 1 root root 15 Jan 1 12:00 userdata -> ../../mmcblk2p9
mount /dev/disk/by-partlabel/oem /oem
mount /dev/disk/by-partlabel/userdata /userdata/
mount /dev/mmcblk0p1 /mnt/sdcard/
ifconfig eth0 up
udhcpc -b -i eth0 -R -x hostname:bboxeth0
#!/bin/sh
start="1"
end="10"
while [ ${start} -le ${end} ]
do
cat /sys/devices/platform/ffa30000.gpu/utilisation
echo "start=${start}"
sleep 0.2
start=$((${start}+1))
done
root@rk3288:/# cat /sys/kernel/debug/regulator/regulator_summary
regulator use open bypass voltage current min max
-------------------------------------------------------------------------------
regulator-dummy 1 8 0 0mV 0mA 0mV 0mV
ff580000.usb-vusb_a 0mV 0mV
ff580000.usb-vusb_d 0mV 0mV
ff540000.usb-vusb_a 0mV 0mV
ff540000.usb-vusb_d 0mV 0mV
panel-vsn 0mV 0mV
panel-vsp 0mV 0mV
panel-power 0mV 0mV
regulator-dummy 0mV 0mV
vcc_sys 1 13 0 5000mV 0mA 5000mV 5000mV
vcc_sys 0mV 0mV
vcc_5v 1 3 0 5000mV 0mA 5000mV 5000mV
vcc_5v 0mV 0mV
vcc_host_5v 1 2 0 5000mV 0mA 5000mV 5000mV
ff540000.usb-vbus 0mV 0mV
vcc_host_5v 0mV 0mV
vcc_otg_5v 0 1 0 5000mV 0mA 5000mV 5000mV
vcc_otg_5v 0mV 0mV
vdd_cpu 1 2 0 1150mV 0mA 850mV 1350mV
cpu0-cpu0 1150mV 1350mV
vdd_cpu 0mV 0mV
vdd_gpu 1 2 0 950mV 0mA 850mV 1350mV
ffa30000.gpu-mali 950mV 1350mV
vdd_gpu 0mV 0mV
vcc_ddr 1 1 0 1200mV 0mA 1200mV 1200mV
vcc_ddr 0mV 0mV
vcc_io 1 7 0 3300mV 0mA 3300mV 3300mV
ff0f0000.dwmmc-vmmc 3300mV 3400mV
ff0d0000.dwmmc-vmmc 3300mV 3400mV
ff770000.syscon:io-domains-gpio1830 0mV 0mV
ff770000.syscon:io-domains-gpio30 0mV 0mV
ff770000.syscon:io-domains-bb 0mV 0mV
ff770000.syscon:io-domains-lcdc 0mV 0mV
vcc_io 0mV 0mV
vdd_log 1 2 0 1100mV 0mA 700mV 1500mV
dmc-center 1100mV 1500mV
vdd_log 0mV 0mV
vcc_20 1 4 0 2000mV 0mA 2000mV 2000mV
vcc_20 0mV 0mV
vdd_10 1 1 0 1000mV 0mA 1000mV 1000mV
vdd_10 0mV 0mV
vcc_18 1 4 0 1800mV 0mA 1800mV 1800mV
ff100000.saradc-vref 0mV 0mV
ff0d0000.dwmmc-vqmmc 1800mV 1950mV
ff770000.syscon:io-domains-wifi 0mV 0mV
vcc_18 0mV 0mV
vcc18_lcd 1 1 0 1850mV 0mA 1850mV 1850mV
vcc18_lcd 0mV 0mV
vccio_sd 1 3 0 3300mV 0mA 1800mV 3300mV
ff0c0000.dwmmc-vqmmc 3300mV 3300mV
ff770000.syscon:io-domains-sdcard 0mV 0mV
vccio_sd 0mV 0mV
vdd10_lcd 1 1 0 1050mV 0mA 1050mV 1050mV
vdd10_lcd 0mV 0mV
afvdd_28 0 1 0 2800mV 0mA 2800mV 2800mV
afvdd_28 0mV 0mV
vcca_33 1 6 0 3300mV 0mA 3300mV 3300mV
2-0010-HPVDD 0mV 0mV
2-0010-PVDD 0mV 0mV
2-0010-AVDD 0mV 0mV
2-0010-DVDD 0mV 0mV
ff770000.syscon:io-domains-audio 0mV 0mV
vcca_33 0mV 0mV
vcc_lan 1 3 0 3300mV 0mA 3300mV 3300mV
ff290000.ethernet-phy 0mV 0mV
ff770000.syscon:io-domains-flash1 0mV 0mV
vcc_lan 0mV 0mV
vcc_sd 1 2 0 3300mV 0mA 3300mV 3300mV
ff0c0000.dwmmc-vmmc 3300mV 3400mV
vcc_sd 0mV 0mV
vcc_flash 1 3 0 1800mV 0mA 1800mV 1800mV
ff0f0000.dwmmc-vqmmc 1800mV 1950mV
ff770000.syscon:io-domains-flash0 0mV 0mV
vcc_flash 0mV 0mV
vcc28_dvp 0 2 0 2800mV 0mA 2800mV 2800mV
vcc28_dvp 0mV 0mV
dovdd_1v8 0 2 0 1800mV 0mA 1800mV 1800mV
ff770000.syscon:io-domains-dvp 0mV 0mV
dovdd_1v8 0mV 0mV
GLOBAL_PWROFF/PMUGPIO0_A0_D PMIC_SLEEP syr82x vsel
DDRIO_PWROFF/PMUGPIO0_A1_D PWR_HOLD/PWRHOLD act8846 16PWREN/32PWRHLD
|
resetkey(low)-------------
pwrkey(low) POWER_ON act8846 31NPBIN
PMUGPIO0_A5_U PWR_KEY act8846 9NPBSTAT
ISP_PRELIGHTTRIG/SPI1_RXD/GPIO7_B6_D PMIC_VSEL act8846 8/45/44/vsel
UART3_RTSN/GPIO7_B2_U CPU_DET MCU_JL8506 p52
syr82x
When this pin is low, VOUT is set by the VSEL0 register.
When this pin is high, VOUT is set by the VSEL1 register.
act8846
REG2.3.4
Drive to logic low to select default output voltage.
Drive to logic high to select secondary output voltage.
复位按下后 DVS0_CTL 恢复成默认状态(低电平),ACT8846内部寄存器切换到 REG0,REG0
中 DCDC 设置默认值较高,足够系统重启。系统正常运行时 DVS0_CTL 为高,ACT8846切换到 REG1,
REG1设置平时需要的各路 DCDC 电压(包括 DVFS 的电压调整)
GPIO0_A0
echo 0 > /sys/class/gpio/export;
echo out > /sys/class/gpio/gpio0/direction;
echo 0 > /sys/class/gpio/gpio0/value;
echo 1 > /sys/class/gpio/gpio0/value;
GPIO7_B6
echo 230 > /sys/class/gpio/export;
echo out > /sys/class/gpio/gpio230/direction;
echo 0 > /sys/class/gpio/gpio230/value;
echo 1 > /sys/class/gpio/gpio230/value;
GPIO0_A1
echo 1 > /sys/class/gpio/export;
echo out > /sys/class/gpio/gpio1/direction;
echo 0 > /sys/class/gpio/gpio1/value;