Skip to content

Commit cc99d71

Browse files
author
Gerzain Mata
committed
Added missing fieldsets for STM32WBA SYSCFG registers
1 parent fc0b1f5 commit cc99d71

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

data/registers/syscfg_wba.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ block/SYSCFG:
4545
description: RSS command register
4646
byte_offset: 44
4747
fieldset: RSSCMDR
48+
- name: OTGHSPHYCR
49+
description: OTG_HS PHY register
50+
byte_offset: 116
51+
fieldset: OTGHSPHYCR
52+
- name: OTGHSPHYTUNER2
53+
description: OTG_HS PHY tune register 2
54+
byte_offset: 124
55+
fieldset: OTGHSPHYTUNER2
4856
fieldset/CCCR:
4957
description: compensation cell code register
5058
fields:
@@ -56,6 +64,14 @@ fieldset/CCCR:
5664
description: "PMOS compensation code of the I/Os supplied by V<sub>DD</sub>\r These bits are written by software to define an I/Os compensation cell code for PMOS transistors. This code is applied to the I/Os compensation cell when the CS1 bit of the CCCSR is set."
5765
bit_offset: 4
5866
bit_size: 4
67+
- name: NCC2
68+
description: "NMOS compensation code of the I/Os supplied by V<sub>DDIO2</sub>\r These bits are written by software to define an I/Os compensation cell code for NMOS transistors. This code is applied to the I/Os compensation cell when the CS2 bit of the CCCSR is set."
69+
bit_offset: 8
70+
bit_size: 4
71+
- name: PCC2
72+
description: "PMOS compensation code of the I/Os supplied by V<sub>DDIO2</sub>\r These bits are written by software to define an I/Os compensation cell code for PMOS transistors. This code is applied to the I/Os compensation cell when the CS2 bit of the CCCSR is set."
73+
bit_offset: 12
74+
bit_size: 4
5975
fieldset/CCCSR:
6076
description: compensation cell control/status register
6177
fields:
@@ -67,10 +83,22 @@ fieldset/CCCSR:
6783
description: "VDD I/Os code selection\r This bit selects the code to be applied for the compensation cell of the I/Os supplied by V<sub>DD</sub>."
6884
bit_offset: 1
6985
bit_size: 1
86+
- name: EN2
87+
description: "VDDIO2 I/Os compensation cell enable\r This bit enables the compensation cell of the I/Os supplied by V<sub>DDIO2</sub>."
88+
bit_offset: 2
89+
bit_size: 1
90+
- name: CS2
91+
description: "VDDIO2 I/Os code selection\r This bit selects the code to be applied for the compensation cell of the I/Os supplied by V<sub>DDIO2</sub>."
92+
bit_offset: 3
93+
bit_size: 1
7094
- name: RDY1
7195
description: "VDD I/Os compensation cell ready flag\r This bit provides the compensation cell status of the I/Os supplied by V<sub>DD</sub>.\r Note: The HSI clock is required for the compensation cell to work properly. The compensation cell ready bit (RDY1) is not set if the HSI clock is not enabled (HSION)."
7296
bit_offset: 8
7397
bit_size: 1
98+
- name: RDY2
99+
description: "VDDIO2 I/Os compensation cell ready flag\r This bit provides the compensation cell status of the I/Os supplied by V<sub>DDIO2</sub>.\r Note: The HSI clock is required for the compensation cell to work properly. The compensation cell ready bit (RDY2) is not set if the HSI clock is not enabled (HSION)."
100+
bit_offset: 9
101+
bit_size: 1
74102
fieldset/CCVR:
75103
description: compensation cell value register
76104
fields:
@@ -82,6 +110,14 @@ fieldset/CCVR:
82110
description: "PMOS compensation value of the I/Os supplied by V<sub>DD</sub>\r This value is provided by the cell and can be used by the CPU to compute an I/Os compensation cell code for PMOS transistors. This code is applied to the I/Os compensation cell when the CS1 bit of the CCCSR is reset."
83111
bit_offset: 4
84112
bit_size: 4
113+
- name: NCV2
114+
description: "NMOS compensation value of the I/Os supplied by V<sub>DDIO2</sub>\r This value is provided by the cell and can be used by the CPU to compute an I/Os compensation cell code for NMOS transistors. This code is applied to the I/Os compensation cell when the CS2 bit of the CCCSR is reset."
115+
bit_offset: 8
116+
bit_size: 4
117+
- name: PCV2
118+
description: "PMOS compensation value of the I/Os supplied by V<sub>DDIO2</sub>\r This value is provided by the cell and can be used by the CPU to compute an I/Os compensation cell code for PMOS transistors. This code is applied to the I/Os compensation cell when the CS2 bit of the CCCSR is reset."
119+
bit_offset: 12
120+
bit_size: 4
85121
fieldset/CFGR1:
86122
description: configuration register 1
87123
fields:
@@ -172,6 +208,37 @@ fieldset/MESR:
172208
description: "ICACHE and PKA SRAM erase status\r This bit is set by hardware when ICACHE and PKA SRAM erase is completed after potential tamper detection (refer to Section�75: Tamper and backup registers (TAMP) for more details). This bit is cleared by software by writing 1 to it."
173209
bit_offset: 16
174210
bit_size: 1
211+
fieldset/OTGHSPHYCR:
212+
description: OTG_HS PHY register
213+
fields:
214+
- name: EN
215+
description: PHY Enable
216+
bit_offset: 0
217+
bit_size: 1
218+
- name: PDCTRL
219+
description: Common block power-down control
220+
bit_offset: 1
221+
bit_size: 1
222+
- name: CLKSEL
223+
description: Reference clock frequency selection
224+
bit_offset: 2
225+
bit_size: 4
226+
enum: USBREFCKSEL
227+
fieldset/OTGHSPHYTUNER2:
228+
description: OTG_HS tune register 2
229+
fields:
230+
- name: COMPDISTUNE
231+
description: Disconnect threshold adjustment
232+
bit_offset: 0
233+
bit_size: 3
234+
- name: SQRXTUNE
235+
description: Squelch threshold adjustment
236+
bit_offset: 4
237+
bit_size: 3
238+
- name: TXPREEMPAMPTUNE
239+
description: HS transmitter preemphasis current control
240+
bit_offset: 13
241+
bit_size: 2
175242
fieldset/RSSCMDR:
176243
description: RSS command register
177244
fields:
@@ -194,3 +261,24 @@ fieldset/SECCFGR:
194261
description: FPU security
195262
bit_offset: 3
196263
bit_size: 1
264+
enum/USBREFCKSEL:
265+
bit_size: 4
266+
variants:
267+
- name: Mhz16
268+
description: The kernel clock frequency provided to the OTG_HS PHY is 16 MHz.
269+
value: 3
270+
- name: Mhz19_2
271+
description: The kernel clock frequency provided to the OTG_HS PHY is 19.2 MHz.
272+
value: 8
273+
- name: Mhz20
274+
description: The kernel clock frequency provided to the OTG_HS PHY is 20MHz.
275+
value: 9
276+
- name: Mhz24
277+
description: The kernel clock frequency provided to the OTG_HS PHY is 24 MHz (default after reset).
278+
value: 10
279+
- name: Mhz32
280+
description: The kernel clock frequency provided to the OTG_HS PHY is 32 MHz.
281+
value: 11
282+
- name: Mhz26
283+
description: The kernel clock frequency provided to the OTG_HS PHY is 26 MHz.
284+
value: 14

0 commit comments

Comments
 (0)