Skip to content

Commit 7493abe

Browse files
committed
Added EFR32xG28 device
1 parent 190a144 commit 7493abe

File tree

72 files changed

+59370
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+59370
-2
lines changed

scripts/gen_acmp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
},
2121
"xg27": {
2222
"bits": "platform/Device/SiliconLabs/EFR32BG27/Include/efr32bg27_acmp.h",
23+
},
24+
"xg28": {
25+
"bits": "platform/Device/SiliconLabs/EFR32ZG28/Include/efr32zg28_acmp.h",
2326
},
2427
"xg29": {
2528
"bits": "platform/Device/SiliconLabs/EFR32MG29/Include/efr32mg29_acmp.h",

scripts/gen_adc.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@
6767
}
6868
}
6969
},
70+
"xg28": {
71+
"bits": "platform/Device/SiliconLabs/EFR32ZG28/Include/efr32zg28_iadc.h",
72+
"values": {
73+
"SUPPLY": {
74+
0: "AVDD",
75+
1: "IOVDD",
76+
2: "VBAT",
77+
4: "DVDD",
78+
7: "DECOUPLE"
79+
}
80+
}
81+
},
7082
"xg29": {
7183
"bits": "platform/Device/SiliconLabs/EFR32BG29/Include/efr32bg29_iadc.h",
7284
"values": {

scripts/gen_clock_control.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
"xg27": {
2929
"bits": "platform/Device/SiliconLabs/EFR32BG27/Include/efr32bg27_cmu.h",
3030
"nodes": "platform/service/device_manager/clocks/sl_device_clock_efr32xg27.c"
31+
},
32+
"xg28": {
33+
"bits": "platform/Device/SiliconLabs/EFR32ZG28/Include/efr32zg28_cmu.h",
34+
"nodes": "platform/service/device_manager/clocks/sl_device_clock_efr32xg28.c"
3135
},
3236
"xg29": {
3337
"bits": "platform/Device/SiliconLabs/EFR32BG29/Include/efr32bg29_cmu.h",

scripts/gen_pinctrl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ def write_header(path: Path, family, peripherals: dict, abuses: list) -> None:
322322
max_len = curr_len
323323
for abus in abuses:
324324
curr_len = len(abus["bus_name"]) + len(abus["peripheral"])
325-
lines.append(f"#define ABUS_{abus["bus_name"]}_{abus["peripheral"]}{' ' * (max_len - curr_len + 1)}"
326-
f"SILABS_ABUS(0x{abus["base_offset"]:x}, 0x{abus["parity"]:x}, 0x{abus["value"]:x})")
325+
lines.append(f"#define ABUS_{abus['bus_name']}_{abus['peripheral']}{' ' * (max_len - curr_len + 1)}"
326+
f"SILABS_ABUS(0x{abus['base_offset']:x}, 0x{abus['parity']:x}, 0x{abus['value']:x})")
327327
lines.append("")
328328

329329
lines.append(f"#endif /* ZEPHYR_DT_BINDINGS_PINCTRL_SILABS_{family.upper()}_PINCTRL_H_ */")

simplicity_sdk/platform/Device/SiliconLabs/EFR32ZG28/Include/efr32zg28_acmp.h

Lines changed: 654 additions & 0 deletions
Large diffs are not rendered by default.

simplicity_sdk/platform/Device/SiliconLabs/EFR32ZG28/Include/efr32zg28_aes.h

Lines changed: 453 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/**************************************************************************//**
2+
* @file
3+
* @brief EFR32ZG28 BURAM register and bit field definitions
4+
******************************************************************************
5+
* # License
6+
* <b>Copyright 2025 Silicon Laboratories, Inc. www.silabs.com</b>
7+
******************************************************************************
8+
*
9+
* SPDX-License-Identifier: Zlib
10+
*
11+
* The licensor of this software is Silicon Laboratories Inc.
12+
*
13+
* This software is provided 'as-is', without any express or implied
14+
* warranty. In no event will the authors be held liable for any damages
15+
* arising from the use of this software.
16+
*
17+
* Permission is granted to anyone to use this software for any purpose,
18+
* including commercial applications, and to alter it and redistribute it
19+
* freely, subject to the following restrictions:
20+
*
21+
* 1. The origin of this software must not be misrepresented; you must not
22+
* claim that you wrote the original software. If you use this software
23+
* in a product, an acknowledgment in the product documentation would be
24+
* appreciated but is not required.
25+
* 2. Altered source versions must be plainly marked as such, and must not be
26+
* misrepresented as being the original software.
27+
* 3. This notice may not be removed or altered from any source distribution.
28+
*
29+
*****************************************************************************/
30+
#ifndef EFR32ZG28_BURAM_H
31+
#define EFR32ZG28_BURAM_H
32+
#define BURAM_HAS_SET_CLEAR
33+
34+
/**************************************************************************//**
35+
* @addtogroup Parts
36+
* @{
37+
******************************************************************************/
38+
/**************************************************************************//**
39+
* @defgroup EFR32ZG28_BURAM BURAM
40+
* @{
41+
* @brief EFR32ZG28 BURAM Register Declaration.
42+
*****************************************************************************/
43+
44+
/** BURAM RET Register Group Declaration. */
45+
typedef struct buram_ret_typedef{
46+
__IOM uint32_t REG; /**< Retention Register */
47+
} BURAM_RET_TypeDef;
48+
49+
/** BURAM Register Declaration. */
50+
typedef struct buram_typedef{
51+
BURAM_RET_TypeDef RET[32U]; /**< RetentionReg */
52+
uint32_t RESERVED0[992U]; /**< Reserved for future use */
53+
BURAM_RET_TypeDef RET_SET[32U]; /**< RetentionReg */
54+
uint32_t RESERVED1[992U]; /**< Reserved for future use */
55+
BURAM_RET_TypeDef RET_CLR[32U]; /**< RetentionReg */
56+
uint32_t RESERVED2[992U]; /**< Reserved for future use */
57+
BURAM_RET_TypeDef RET_TGL[32U]; /**< RetentionReg */
58+
} BURAM_TypeDef;
59+
/** @} End of group EFR32ZG28_BURAM */
60+
61+
/**************************************************************************//**
62+
* @addtogroup EFR32ZG28_BURAM
63+
* @{
64+
* @defgroup EFR32ZG28_BURAM_BitFields BURAM Bit Fields
65+
* @{
66+
*****************************************************************************/
67+
68+
/* Bit fields for BURAM RET_REG */
69+
#define _BURAM_RET_REG_RESETVALUE 0x00000000UL /**< Default value for BURAM_RET_REG */
70+
#define _BURAM_RET_REG_MASK 0xFFFFFFFFUL /**< Mask for BURAM_RET_REG */
71+
#define _BURAM_RET_REG_RETREG_SHIFT 0 /**< Shift value for BURAM_RETREG */
72+
#define _BURAM_RET_REG_RETREG_MASK 0xFFFFFFFFUL /**< Bit mask for BURAM_RETREG */
73+
#define _BURAM_RET_REG_RETREG_DEFAULT 0x00000000UL /**< Mode DEFAULT for BURAM_RET_REG */
74+
#define BURAM_RET_REG_RETREG_DEFAULT (_BURAM_RET_REG_RETREG_DEFAULT << 0) /**< Shifted mode DEFAULT for BURAM_RET_REG */
75+
76+
/** @} End of group EFR32ZG28_BURAM_BitFields */
77+
/** @} End of group EFR32ZG28_BURAM */
78+
/** @} End of group Parts */
79+
80+
#endif // EFR32ZG28_BURAM_H

0 commit comments

Comments
 (0)