Skip to content

Commit

Permalink
[EFR32]Add new boards support (#21762)
Browse files Browse the repository at this point in the history
* WIP support for brd2601B

* Disable LCD/QRcode as brd2601 doesn't have a lcd

* Fix led polarity. Remove LCD code for BRD2601B

* update matter support submodule for new board files
  • Loading branch information
jmartinez-silabs authored and pull[bot] committed Jul 7, 2023
1 parent 93504e0 commit 2233746
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 19 deletions.
4 changes: 2 additions & 2 deletions examples/chef/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ chip_data_model("chef-common") {
is_server = true
}

# BRD4166A --> ThunderBoard Sense 2 (No LCD)
if (efr32_board == "BRD4166A" || efr32_board == "BRD4180A") {
# ThunderBoards (No LCD)
if (efr32_board == "BRD4166A" || efr32_board == "BRD2601B") {
show_qr_code = false
disable_lcd = true
}
Expand Down
4 changes: 2 additions & 2 deletions examples/light-switch-app/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ if (chip_enable_wifi) {
assert(use_rs911x || use_wf200)
}

# BRD4166A --> ThunderBoard Sense 2 (No LCD)
if (efr32_board == "BRD4166A" || efr32_board == "BRD4180A") {
# ThunderBoards (No LCD)
if (efr32_board == "BRD4166A" || efr32_board == "BRD2601B") {
show_qr_code = false
disable_lcd = true
}
Expand Down
4 changes: 2 additions & 2 deletions examples/lighting-app/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ if (chip_enable_wifi) {
assert(use_rs911x || use_wf200)
}

# BRD4166A --> ThunderBoard Sense 2 (No LCD)
if (efr32_board == "BRD4166A" || efr32_board == "BRD4180A") {
# ThunderBoards (No LCD)
if (efr32_board == "BRD4166A" || efr32_board == "BRD2601B") {
show_qr_code = false
disable_lcd = true
}
Expand Down
4 changes: 2 additions & 2 deletions examples/lock-app/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ if (chip_enable_wifi) {
assert(use_rs911x || use_wf200)
}

# BRD4166A --> ThunderBoard Sense 2 (No LCD)
if (efr32_board == "BRD4166A" || efr32_board == "BRD4180A") {
# ThunderBoards (No LCD)
if (efr32_board == "BRD4166A" || efr32_board == "BRD2601B") {
show_qr_code = false
disable_lcd = true
}
Expand Down
4 changes: 2 additions & 2 deletions examples/thermostat/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ if (chip_enable_wifi) {
assert(use_rs911x || use_wf200)
}

# BRD4166A --> ThunderBoard Sense 2 (No LCD)
if (efr32_board == "BRD4166A" || efr32_board == "BRD4180A") {
# ThunderBoards (No LCD)
if (efr32_board == "BRD4166A" || efr32_board == "BRD2601B") {
show_qr_code = false
disable_lcd = true
}
Expand Down
4 changes: 2 additions & 2 deletions examples/window-app/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ if (chip_enable_wifi) {
assert(use_rs911x || use_wf200)
}

# BRD4166A --> ThunderBoard Sense 2 (No LCD)
if (efr32_board == "BRD4166A" || efr32_board == "BRD4180A") {
# ThunderBoards (No LCD)
if (efr32_board == "BRD4166A" || efr32_board == "BRD2601B") {
show_qr_code = false
disable_lcd = true
}
Expand Down
16 changes: 13 additions & 3 deletions third_party/silabs/efr32_board.gni
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,24 @@ if (efr32_board == "BRD4304A") {
} else if (efr32_board == "BRD4180A") {
assert(
false,
"The board ${efr32_board} not currentlt supported due to RAM limitation")
"The board ${efr32_board} not currently supported due to RAM limitation")
efr32_family = "efr32mg21"
efr32_mcu = "EFR32MG21A020F1024IM32"
} else if (efr32_board == "BRD4186A" || efr32_board == "BRD4187A") {
print("RevA is deprecated, We suggest using BRD4186C (rev C)")
efr32_family = "efr32mg24"
efr32_mcu = "EFR32MG24A010F1536GM48"
} else if (efr32_board == "BRD4186C") {
efr32_family = "efr32mg24"
efr32_mcu = "EFR32MG24B210F1536IM48"
} else if (efr32_board == "BRD4187C") {
efr32_family = "efr32mg24"
efr32_mcu = "EFR32MG24B220F1536IM48"
} else if (efr32_board == "BRD2601B") {
efr32_family = "efr32mg24"
efr32_mcu = "EFR32MG24B310F1536IM48"
} else {
print(
"Please provide a valid value for EFR32_BOARD env variable (currently supported BRD4304A, BRD4161A, BRD4163A, BRD4164A BRD4166A, BRD4170A, BRD4186A, BRD4187A)")
assert(false, "The board ${efr32_board} is unsupported as for now.")
"Please provide a valid value for EFR32_BOARD env variable (currently supported BRD4304A, BRD4161A, BRD4163A, BRD4164A BRD4166A, BRD4170A, BRD4186C, BRD4187C, BRD2601B)")
assert(false, "The board ${efr32_board} is unsupported")
}
3 changes: 0 additions & 3 deletions third_party/silabs/efr32_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ template("efr32_sdk") {

if (efr32_family == "efr32mg12") {
_include_dirs += [
"${efr32_sdk_root}/hardware/kit/EFR32MG12_${efr32_board}/config",
"${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG12P/Include",
"${efr32_sdk_root}/platform/radio/rail_lib/chip/efr32/efr32xg1x",
"${efr32_sdk_root}/util/third_party/freertos/kernel/portable/GCC/ARM_CM4F",
Expand All @@ -236,7 +235,6 @@ template("efr32_sdk") {
defines += [ "EFR32MG12" ]
} else if (efr32_family == "efr32mg21") {
_include_dirs += [
"${efr32_sdk_root}/hardware/kit/EFR32MG21_${efr32_board}/config",
"${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG21/Include",
"${efr32_sdk_root}/platform/radio/rail_lib/chip/efr32/efr32xg2x",
"${efr32_sdk_root}/util/third_party/freertos/kernel/portable/GCC/ARM_CM33_NTZ/non_secure",
Expand All @@ -257,7 +255,6 @@ template("efr32_sdk") {
]
} else if (efr32_family == "efr32mg24") {
_include_dirs += [
"${efr32_sdk_root}/hardware/kit/EFR32MG24_${efr32_board}/config",
"${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG24/Include",
"${efr32_sdk_root}/platform/radio/rail_lib/chip/efr32/efr32xg2x",
"${efr32_sdk_root}/util/third_party/freertos/kernel/portable/GCC/ARM_CM33_NTZ/non_secure",
Expand Down
2 changes: 1 addition & 1 deletion third_party/silabs/matter_support
Submodule matter_support updated 118 files

0 comments on commit 2233746

Please sign in to comment.