-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevice.yaml
1991 lines (1983 loc) · 52.5 KB
/
device.yaml
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
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
config:
register_address_type: u16
command_address_type: u16
buffer_address_type: u16
defmt_feature: defmt-03
VBUSIN:
type: block
description: VBUSIN registers
address_offset: 0x0200
objects:
TASKUPDATEILIMSW:
type: command
description: Select Input current limit for VBUS
address: 0x00
size_bits_in: 1
fields_in:
TASKUPDATEILIM:
base: uint
start: 0
end: 1
description: Set to switch from default VBUSINILIMSTARTUP current limit to the value in VBUSINILIM0
try_conversion: crate::common::Task
VBUSINILIM0:
type: register
description: Input current limit for VBUS
address: 0x01
size_bits: 4
reset_value: 0x00
fields:
VBUSINILIM0:
base: uint
start: 0
end: 4
description: Input current limit for VBUS selected by Host
conversion: crate::sysreg::VbusInCurrentLimit
VBUSINILIMSTARTUP:
type: register
description: Input current limit for VBUS at startup
address: 0x02
size_bits: 4
reset_value: 0x00
fields:
VBUSINILIMSTARTUP:
base: uint
start: 0
end: 4
description: Default input current limit for VBUS
conversion: crate::sysreg::VbusInCurrentLimit
VBUSSUSPEND:
type: register
description: VBUS suspend mode enable
address: 0x03
size_bits: 1
reset_value: 0x00
fields:
VBUSSUSPENDENA:
base: uint
start: 0
end: 1
description: VBUS suspend control bit
conversion:
name: VBUSSUSPENDENA
NORMAL:
value: default
description: Normal mode
SUSPEND:
value: 1
description: Suspend mode
USBCDETECTSTATUS:
type: register
description: VBUS CC comparator status flags
access: ReadOnly
address: 0x05
size_bits: 4
reset_value: 0x00
fields:
VBUSINCC1CMP:
base: uint
start: 0
end: 2
access: ReadOnly
description: CC1 Charger detection comparator output
try_conversion: crate::sysreg::VbusInCcCmp
VBUSINCC2CMP:
base: uint
start: 2
end: 4
access: ReadOnly
description: CC2 Charger detection comparator output
try_conversion: crate::sysreg::VbusInCcCmp
VBUSINSTATUS:
type: register
description: VBUS status flags
access: ReadOnly
address: 0x07
size_bits: 6
reset_value: 0x00
fields:
VBUSINPRESENT:
base: uint
start: 0
end: 1
access: ReadOnly
description: VBUS detected
VBUSINCURRLIMACTIVE:
base: uint
start: 1
end: 2
access: ReadOnly
description: VBUS current limit detected
VBUSINOVRPROTACTIVE:
base: uint
start: 2
end: 3
access: ReadOnly
description: VBUS over-voltage protection detected
VBUSINUNDERVOLTAGE:
base: uint
start: 3
end: 4
access: ReadOnly
description: VBUS under-voltage detected
VBUSINSUSPENDMODEACTIVE:
base: uint
start: 4
end: 5
access: ReadOnly
description: VBUS suspend mode active
VBUSINVBUSOUTACTIVE:
base: uint
start: 5
end: 6
access: ReadOnly
description: VBUS out active
CHARGER:
type: block
description: CHARGER registers
address_offset: 0x0300
objects:
TASKRELEASEERR:
type: command
description: Release charger from error
address: 0x00
size_bits_in: 1
fields_in:
TASKRELEASEERROR:
base: uint
start: 0
end: 1
description: Request to clear any existing task error state
try_conversion: crate::common::Task
TASKCLEARCHGERR:
type: command
description: Clear registers BCHGERRREASON and BCHGERRSENSOR
address: 0x01
size_bits_in: 1
fields_in:
TASKCLEARCHGERR:
base: uint
start: 0
end: 1
description: Request to clear registers BCHGERRREASON and BCHGERRSENSOR
try_conversion: crate::common::Task
TASKCLEARSAFETYTIMER:
type: command
description: Clear TRICKLE and CHARGE safety timers
address: 0x02
size_bits_in: 1
fields_in:
TASKCLEARSAFETYTIMER:
base: uint
start: 0
end: 1
description: Request to clear TRICKLE and CHARGE safety timers
try_conversion: crate::common::Task
BCHGENABLESET:
type: register
description: Charger enable set
address: 0x04
size_bits: 2
reset_value: 0x00
fields:
ENABLECHARGING:
base: uint
start: 0
end: 1
description: Battery charger enable set
try_conversion: crate::charger::ChargerEnableSet
ENABLEFULLCHGCOOL:
base: uint
start: 1
end: 2
description: Controls maximum charge current in cool temperature conditions
try_conversion: crate::charger::ChargerEnableFullCurrentChargeInCoolTempSet
BCHGENABLECLR:
type: register
description: Charger enable clear
address: 0x05
size_bits: 2
reset_value: 0x00
fields:
ENABLECHARGING:
base: uint
start: 0
end: 1
description: Battery charger enable clear
try_conversion: crate::charger::ChargerEnableClear
ENABLEFULLCHGCOOL:
base: uint
start: 1
end: 2
description: Controls maximum charge current in cool temperature conditions
try_conversion: crate::charger::ChargerEnableFullCurrentChargeInCoolTempClear
BCHGDISABLESET:
type: register
description: Battery charger disable recharge set
address: 0x06
size_bits: 2
reset_value: 0x00
fields:
DISABLERECHARGE:
base: uint
start: 0
end: 1
description: Battery charger disable recharge set
try_conversion: crate::charger::ChargerDisableRechargeSet
DISABLENTC:
base: uint
start: 1
end: 2
description: Battery Charger ignore NTC thermistor temperature limits set
try_conversion: crate::charger::DisableNtcSet
BCHGDISABLECLR:
type: register
description: Battery charger disable recharge clear
address: 0x07
size_bits: 2
reset_value: 0x00
fields:
DISABLERECHARGE:
base: uint
start: 0
end: 1
description: Battery charger disable recharge clear
try_conversion: crate::charger::ChargerDisableRechargeClear
DISABLENTC:
base: uint
start: 1
end: 2
description: Battery Charger ignore NTC thermistor temperature limits clear
try_conversion: crate::charger::DisableNtcClear
BCHGISETMSB:
type: register
description: Battery charger current configuration
address: 0x08
size_bits: 8
reset_value: 0x08
fields:
BCHGISETCHARGEMSB:
base: uint
start: 0
end: 8
description: Battery charger current setting MSB
BCHGISETLSB:
type: register
description: Battery charger current configuration
address: 0x09
size_bits: 1
reset_value: 0x00
fields:
BCHGISETCHARGELSB:
base: uint
start: 0
end: 1
description: Battery charger current setting LSB
BCHGISETDISCHARGEMSB:
type: register
description: Battery charger discharge configuration
address: 0x0A
size_bits: 8
reset_value: 0xCF
fields:
BCHGISETDISCHARGEMSB:
base: uint
start: 0
end: 8
description: Battery charger discharge current limiter MSB
BCHGISETDISCHARGELSB:
type: register
description: Battery charger discharge configuration
address: 0x0B
size_bits: 1
reset_value: 0x01
fields:
BCHGISETDISCHARGELSB:
base: uint
start: 0
end: 1
description: Battery charger discharge current limiter LSB
BCHGVTERM:
type: register
description: Battery charger termination voltage normal temperature
address: 0x0C
size_bits: 4
reset_value: 0x02
fields:
BCHGVTERMNORM:
base: uint
start: 0
end: 4
description: Battery charger normal termination voltage
conversion: crate::charger::ChargerTerminationVoltage
BCHGVTERMR:
type: register
description: Battery charger termination voltage warm temperature
address: 0x0D
size_bits: 4
reset_value: 0x02
fields:
BCHGVTERMREDUCED:
base: uint
start: 0
end: 4
description: Battery charger warm termination voltage
conversion: crate::charger::ChargerTerminationVoltage
BCHGVTRICKLESEL:
type: register
description: Battery charger trickle level select
address: 0x0E
size_bits: 1
reset_value: 0x00
fields:
BCHGVTRICKLESEL:
base: uint
start: 0
end: 1
description: Battery charger trickle level select
conversion: crate::charger::ChargerTrickleLevelSelect
BCHGITERMSEL:
type: register
description: Battery charger termination current level select
address: 0x0F
size_bits: 1
reset_value: 0x00
fields:
BCHGITERMSEL:
base: uint
start: 0
end: 1
description: Battery charger termination current level select
conversion: crate::charger::ChargerTerminationCurrentLevelSelect
NTCCOLD:
type: register
description: NTC thermistor threshold for cold temperature region
address: 0x10
size_bits: 8
reset_value: 0xBB
fields:
NTCCOLDLVLMSB:
base: uint
start: 0
end: 8
description: NTC cold level MSB
NTCCOLDLSB:
type: register
description: NTC thermistor threshold for cold temperature region
address: 0x11
size_bits: 2
reset_value: 0x01
fields:
NTCCOLDLVLLSB:
base: uint
start: 0
end: 2
description: NTC cold level LSB
NTCCOOL:
type: register
description: NTC thermistor threshold for cool temperature region
address: 0x12
size_bits: 8
reset_value: 0xA4
fields:
NTCCOOLLVLMSB:
base: uint
start: 0
end: 8
description: NTC cool level MSB
NTCCOOLLSB:
type: register
description: NTC thermistor threshold for cool temperature region
address: 0x13
size_bits: 2
reset_value: 0x02
fields:
NTCCOOLLVLLSB:
base: uint
start: 0
end: 2
description: NTC cool level LSB
NTCWARM:
type: register
description: NTC thermistor threshold for warm temperature region
address: 0x14
size_bits: 8
reset_value: 0x54
fields:
NTCWARMLVLMSB:
base: uint
start: 0
end: 8
description: NTC cool level MSB
NTCWARMLSB:
type: register
description: NTC thermistor threshold for warm temperature region
address: 0x15
size_bits: 2
reset_value: 0x01
fields:
NTCWARMLVLLSB:
base: uint
start: 0
end: 2
description: NTC warm level LSB
NTCHOT:
type: register
description: NTC thermistor threshold for hot temperature region
address: 0x16
size_bits: 8
reset_value: 0x3B
fields:
NTCHOTLVLMSB:
base: uint
start: 0
end: 8
description: NTC hot level MSB
NTCHOTLSB:
type: register
description: NTC thermistor threshold for hot temperature region
address: 0x17
size_bits: 2
reset_value: 0x01
fields:
NTCHOTLVLLSB:
base: uint
start: 0
end: 2
description: NTC hot level LSB
DIETEMPSTOP:
type: register
description: Die temperature threshold at which charging will be stopped
address: 0x18
size_bits: 8
reset_value: 0x5A
fields:
DIETEMPSTOPCHG:
base: uint
start: 0
end: 8
description: Die temperature threshold at which charging will be stopped
DIETEMPSTOPLSB:
type: register
description: Die temperature threshold at which charging will be stopped
address: 0x19
size_bits: 2
reset_value: 0x00
fields:
DIETEMPSTOPCHGLSB:
base: uint
start: 0
end: 2
description: Die temperature threshold at which charging will be stopped LSB
DIETEMPRESUME:
type: register
description: Die temperature threshold at which charging will be resumed
address: 0x1A
size_bits: 8
reset_value: 0x5D
fields:
DIETEMPRESUMECHG:
base: uint
start: 0
end: 8
description: Die temperature threshold at which charging will be resumed
DIETEMPRESUMELSB:
type: register
description: Die temperature threshold at which charging will be resumed
address: 0x1B
size_bits: 2
reset_value: 0x00
fields:
DIETEMPRESUMECHGLSB:
base: uint
start: 0
end: 2
description: Die temperature threshold at which charging will be resumed LSB
BCHGILIMSTATUS:
type: register
description: Charger current limiter status
access: ReadOnly
address: 0x2D
size_bits: 1
reset_value: 0x00
fields:
BCHGILIMBATACTIVE:
base: uint
start: 0
end: 1
access: ReadOnly
description: Charger current limiter status
conversion:
name: BCHGILIMBATACTIVE
INACTIVE:
value: default
description: Charger current limiter is inactive
ACTIVE:
value: 1
description: Charger current limiter is active
NTCSTATUS:
type: register
description: NTC comparator status
access: ReadOnly
address: 0x32
size_bits: 4
reset_value: 0x00
fields:
NTCCOLD:
base: uint
start: 0
end: 1
access: ReadOnly
description: NTC cold
NTCCOOL:
base: uint
start: 1
end: 2
access: ReadOnly
description: NTC cool
NTCWARM:
base: uint
start: 2
end: 3
access: ReadOnly
description: NTC warm
NTCHOT:
base: uint
start: 3
end: 4
access: ReadOnly
description: NTC hot
DIETEMPSTATUS:
type: register
description: Die temperature comparator status
access: ReadOnly
address: 0x33
size_bits: 1
reset_value: 0x00
fields:
DIETEMPHIGH:
base: uint
start: 0
end: 1
access: ReadOnly
description: Die temperature comparator status
conversion:
name: DIETEMPHIGH
NORMAL:
value: default
description: Die temperature below high threshold
HIGH:
value: 1
description: Die temperature above high threshold
BCHGCHARGESTATUS:
type: register
description: Charging status
access: ReadOnly
address: 0x34
size_bits: 8
reset_value: 0x00
fields:
BATTERYDETECTED:
base: uint
start: 0
end: 1
access: ReadOnly
description: Battery is connected
COMPLETED:
base: uint
start: 1
end: 2
access: ReadOnly
description: Battery fully charged
TRICKLECHARGE:
base: uint
start: 2
end: 3
access: ReadOnly
description: Trickle charge
CONSTANTCURRENT:
base: uint
start: 3
end: 4
access: ReadOnly
description: Constant current charging
CONSTANTVOLTAGE:
base: uint
start: 4
end: 5
access: ReadOnly
description: Constant voltage charging
RECHARGE:
base: uint
start: 5
end: 6
access: ReadOnly
description: Battery recharge is needed
DIETEMPHIGHCHGPAUSED:
base: uint
start: 6
end: 7
access: ReadOnly
description: Charging is stopped due to high die temperature
SUPPLEMENTACTIVE:
base: uint
start: 7
end: 8
access: ReadOnly
description: Supplement mode is active
BCHGERRREASON:
type: register
description: Charger-FSM Error. Latched error reasons. Cleared with TASKS_CLEAR_CHG_ERR.
access: ReadOnly
address: 0x36
size_bits: 7
reset_value: 0x00
fields:
NTCSENSORERROR:
base: uint
start: 0
end: 1
access: ReadOnly
description: NTC sensor error
VBATSENSORERROR:
base: uint
start: 1
end: 2
access: ReadOnly
description: VBAT sensor error
VBATLOW:
base: uint
start: 2
end: 3
access: ReadOnly
description: VBAT low error
VTRICKLE:
base: uint
start: 3
end: 4
access: ReadOnly
description: Vtrickle error
MEASTIMEOUT:
base: uint
start: 4
end: 5
access: ReadOnly
description: Measurement timeout error
CHARGETIMEOUT:
base: uint
start: 5
end: 6
access: ReadOnly
description: Charge timeout error
TRICKLETIMEOUT:
base: uint
start: 6
end: 7
access: ReadOnly
description: Trickle timeout error
BCHGERRSENSOR:
type: register
description: Charger-FSM Error. Latched sensor values. Cleared with TASKS_CLEAR_CHG_ERR.
access: ReadOnly
address: 0x37
size_bits: 8
reset_value: 0x00
fields:
SENSORNTCCOLD:
base: uint
start: 0
end: 1
access: ReadOnly
description: NTC cold sensor value during error
SENSORNTCCOOL:
base: uint
start: 1
end: 2
access: ReadOnly
description: NTC cool sensor value during error
SENSORNTCWARM:
base: uint
start: 2
end: 3
access: ReadOnly
description: NTC warm sensor value during error
SENSORNTCHOT:
base: uint
start: 3
end: 4
access: ReadOnly
description: NTC hot sensor value during error
SENSORVTERM:
base: uint
start: 4
end: 5
access: ReadOnly
description: VTERM sensor value during error
SENSORRECHARGE:
base: uint
start: 5
end: 6
access: ReadOnly
description: Recharge sensor value during error
SENSORVTRICKLE:
base: uint
start: 6
end: 7
access: ReadOnly
description: Vtrickle sensor value during error
SENSORVBATLOW:
base: uint
start: 7
end: 8
access: ReadOnly
description: VBAT low sensor value during error
BCHGCONFIG:
type: register
description: Charger configuration
address: 0x3C
size_bits: 1
reset_value: 0x00
fields:
DISABLECHARGEWARM:
base: uint
start: 0
end: 1
description: Disable charging if battery is warm
conversion: crate::charger::ChargerConfigDisableChargeWarm
BUCK:
type: block
description: BUCK registers
address_offset: 0x0400
objects:
BUCKENASET:
type: command
description: BUCK enable pulse
address: 0x00
repeat:
count: 2
stride: 2
size_bits_in: 1
fields_in:
TASKBUCKENASET:
base: uint
start: 0
end: 1
description: Request to enable BUCK
try_conversion: crate::common::Task
BUCKENACLR:
type: command
description: BUCK disable pulse
address: 0x01
size_bits_in: 1
repeat:
count: 2
stride: 2
fields_in:
TASKBUCKENACLR:
base: uint
start: 0
end: 1
description: Request to disable BUCK
try_conversion: crate::common::Task
BUCKPWMSET:
type: command
description: BUCK PWM mode enable pulse
address: 0x04
repeat:
count: 2
stride: 2
size_bits_in: 1
fields_in:
TASKBUCKPWMSET:
base: uint
start: 0
end: 1
description: Request for BUCK to enter forced PWM mode
try_conversion: crate::common::Task
BUCKPWMCLR:
type: command
description: BUCK PWM mode disable pulse
address: 0x05
repeat:
count: 2
stride: 2
size_bits_in: 1
fields_in:
TASKBUCKPWMCLR:
base: uint
start: 0
end: 1
description: Request for BUCK to leave forced PWM mode and return to auto mode
try_conversion: crate::common::Task
BUCK1NORMVOUT:
type: register
description: BUCK1 output voltage normal mode
address: 0x08
size_bits: 8
reset_value: 0x02
fields:
value:
base: uint
start: 0
end: 8
try_conversion: crate::buck::BuckVoltage
BUCK1RETVOUT:
type: register
description: BUCK1 output voltage retention mode
address: 0x09
size_bits: 8
reset_value: 0x02
fields:
value:
base: uint
start: 0
end: 8
try_conversion: crate::buck::BuckVoltage
BUCK2NORMVOUT:
type: register
description: BUCK2 output voltage normal mode
address: 0x0A
size_bits: 8
reset_value: 0x08
fields:
value:
base: uint
start: 0
end: 8
try_conversion: crate::buck::BuckVoltage
BUCK2RETVOUT:
type: register
description: BUCK2 output voltage retention mode
address: 0x0B
size_bits: 8
reset_value: 0x08
fields:
value:
base: uint
start: 0
end: 8
try_conversion: crate::buck::BuckVoltage
BUCKENCTRL:
type: register
description: BUCK Enable GPIO Select
address: 0x0C
size_bits: 8
reset_value: 0x00
fields:
BUCK1ENGPISEL:
base: uint
start: 0
end: 3
description: Select which GPI controls BUCK1_enable
try_conversion: crate::gpios::Gpio
BUCK2ENGPISEL:
base: uint
start: 3
end: 6
description: Select which GPI controls BUCK2_enable
try_conversion: crate::gpios::Gpio
BUCK1ENGPIINV:
base: uint
start: 6
end: 7
description: Invert the sense of the selected GPIO
try_conversion: crate::gpios::GpioPolarity
BUCK2ENGPIINV:
base: uint
start: 7
end: 8
description: Invert the sense of the selected GPIO
try_conversion: crate::gpios::GpioPolarity
BUCKVRETCTRL:
type: register
description: BUCK Retention Voltage select
address: 0x0D
size_bits: 8
reset_value: 0x00
fields:
BUCK1VRETGPISEL:
base: uint
start: 0
end: 3
description: Select which GPI controls BUCK1_retention voltage sel
try_conversion: crate::gpios::Gpio
BUCK2VRETGPISEL:
base: uint
start: 3
end: 6
description: Select which GPI controls BUCK2_retention voltage sel
try_conversion: crate::gpios::Gpio
BUCK1VRETGPIINV:
base: uint
start: 6
end: 7
description: Invert the sense of the selected GPIO
try_conversion: crate::gpios::GpioPolarity
BUCK2VRETGPIINV:
base: uint
start: 7
end: 8
description: Invert the sense of the selected GPIO
try_conversion: crate::gpios::GpioPolarity
BUCKPWMCTRL:
type: register
description: BUCK Forced PWM mode GPIO select
address: 0x0E
size_bits: 8
reset_value: 0x00
fields:
BUCK1PWMGPISEL:
base: uint
start: 0
end: 3
description: Select which GPI controls BUCK1 force PWM
try_conversion: crate::gpios::Gpio
BUCK2PWMGPISEL:
base: uint
start: 3
end: 6
description: Select which GPI controls BUCK2 force PWM
try_conversion: crate::gpios::Gpio
BUCK1PWMGPIINV:
base: uint
start: 6
end: 7
description: Invert the sense of the selected GPIO
try_conversion: crate::gpios::GpioPolarity
BUCK2PWMGPIINV:
base: uint
start: 7
end: 8
description: Invert the sense of the selected GPIO
try_conversion: crate::gpios::GpioPolarity
BUCKSWCTRLSEL:
type: register
description: BUCK software control select
address: 0x0F
size_bits: 8
reset_value: 0x00
fields:
BUCK1SWCTRLSEL:
base: uint
start: 0
end: 1
description: BUCK1 software control select
conversion:
name: BUCK1SWCTRLSEL
VSETANDSWCTRL:
value: default
description: Allow VSET pins to set VOUT
SWCTRL:
value: 1
description: Allow SW to override VSET pin
BUCK2SWCTRLSEL:
base: uint
start: 1
end: 2
description: BUCK2 software control select
conversion:
name: BUCK2SWCTRLSEL
VSETANDSWCTRL:
value: default
description: Allow VSET pins to set VOUT
SWCTRL:
value: 1
description: Allow SW to override VSET pin
BUCKVOUTSTATUS:
type: register
description: BUCK VOUT Status register. Lets software read the Vout value in case its driven by the FSM
access: ReadOnly
address: 0x10
repeat:
count: 2
stride: 1
size_bits: 8
reset_value: 0x00
fields:
BUCKVOUTSTATUS: