Skip to content

Commit

Permalink
[nxp fromtree] NXP : Add support of RT1060 and RT1170 boards (project…
Browse files Browse the repository at this point in the history
…-chip#35842)

* [NXP][rt1170] Matter enablement on RT1170

It includes:

- Matter port files for RT1170
- example files for Laundry-washer, thermostat and all-cluster-app
- documentations

Signed-off-by: Gatien Chapon <[email protected]>

[border router][rt1170] RT1170 platform and README updates to support OTBR with new OT stack version

(cherry picked from commit f97d5c58c866774c787ec4417bca075ce45eece0)

[platform][rt1170] Enable lwip and ephemeral key CLI addons

(cherry picked from commit fb3320eabd3c3f6c8c75c4094d6426fcc0cfed57)

[2.16][rt1170] SDK 2.16 rt1170 API name changed

Signed-off-by: Gatien Chapon <[email protected]>
(cherry picked from commit 67f183263466267bc1c7da6fd3a05743fd268ea2)

Signed-off-by: Gatien Chapon <[email protected]>

[examples][rt1170] Enable Disgnostic log for thermostat app

Signed-off-by: Martin Girardot <[email protected]>
(cherry picked from commit cce6267446d035e7966c7f5f17d112fb5f1557c5)

[platform][rt1170] Rename rt_nvm_component to nxp_nvm_component

Signed-off-by: Dina Benamar <[email protected]>
(cherry picked from commit f5fb5f4e8b2be45fc97c2a7c7a2d5a453adf9b34)

[doc][rt1170] update OTA guidelines to generate mcuboot binary

(cherry picked from commit 27f58810a07343234d0d884f385eb407998a9220)

* [NXP][rt1060] Adding RT1060 Matter support

It includes following changes:

- Matter port files for RT1060
- examples support for Laundry-washer, thermostat and all-cluster-app
- Support for configurations: RT1060 evkb+8801, RT1060 evkb+IW416, RT1060 evkc+IW612 and RT1060 evkb+k32w0

Signed-off-by: Gatien Chapon <[email protected]>

[platform][rt1060] Rename rt_nvm_component to nxp_nvm_component

Signed-off-by: Dina Benamar <[email protected]>
(cherry picked from commit 316450da02b365aa61bcb53a0dc6b50512fb6435)

[border router][rt1060] RT1060 platform and README updates to support OTBR with new OT stack version

(cherry picked from commit 231a4c15c4abca40d5759194fb61b9636c8f67e8)

[platform][rt1060] Enable lwip and ephemeral key CLI addons

(cherry picked from commit 463749a12abcc68fc5f6569f98c27b574b3516bd)

[2.16][rt1060] SDK 2.16 rt1060 API name changed

Signed-off-by: Gatien Chapon <[email protected]>
(cherry picked from commit 42f7d8771329172aaeedfde1b2bab86b1799f6d9)

[examples][rt1060] Enable Diagnostic log for thermostat app

Signed-off-by: Martin Girardot <[email protected]>
(cherry picked from commit 7c4cbeb41d3a00ec90525bb084f7bc278d5ecb8e)

* [NXP][rt1060][doc] Update WiFi build instructions

* [NXP][border router][rt1060] Platform updates to support TBR cluster and secondary nwk if

A new gn variable was created, chip_enable_secondary_nwk_if, to enable or disable Thread as secondary network commissioning interface when building with BR support.

* [NXP][border router][rt1170] Platform updates to support TBR cluster and secondary nwk if

A new gn variable was created, chip_enable_secondary_nwk_if, to enable or disable Thread as secondary network commissioning interface when building with BR support.

* [NXP] Add targets RT1060 and RT1170 to NXP builds

* [NXP][OTA][doc] update OTA doc for RTs boards

* [NXP][border router][rt1060] fix compilation issue

* [NXP][border router][rt1170] fix compilation issue

* [NXP][doc][rt1060] minor changes

* [NXP] [rt1060] OTA requestor enablement on RT1060-EVKC+Firecrest

* [NXP] Add OTA variant to RT1060 and RT1170 builds

* [NXP][doc][rt] changes since workflow feedback

* [NXP][examples][rt1060] Update empty button registration path

Signed-off-by: marius-alex-tache <[email protected]>

* [NXP][examples][rt1170] Update empty button registration path

Signed-off-by: marius-alex-tache <[email protected]>

* [NXP] [gn] Restyle gn files

* [NXP][doc] Restyle md files

* [NXP] Restyle build scripts

* [NXP][RT] fix OTBR compile issue

* [NXP][RT][doc] rework documentation

* [NXP] Reduce and collapse NXP targets list

* [NXP] filter which target to be build on PR

* [NXP] [rt1170] remove useless flag

* [NXP] [rt1060] remove useless flag

* [NXP] [doc] fix path to referenced docs since NXP documentation moved

---------

Signed-off-by: marius-alex-tache <[email protected]>
Co-authored-by: Gatien Chapon <[email protected]>
Co-authored-by: Mihai Ignat <[email protected]>
Co-authored-by: Marius Preda <[email protected]>
Co-authored-by: marius-alex-tache <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
(cherry picked from commit 97afd92)
  • Loading branch information
jby-nxp authored and marius-alex-tache committed Nov 1, 2024
1 parent 01329ab commit ef96beb
Show file tree
Hide file tree
Showing 99 changed files with 7,602 additions and 192 deletions.
3 changes: 3 additions & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ isUpperCase
itemName
iterable
itsfoss
IW
JDK
jinja
JLink
Expand Down Expand Up @@ -893,6 +894,7 @@ microcontroller
microcontrollers
MicroSD
middleware
MIMXRT
minApplicableSoftwareVersion
Minicom
MinInterval
Expand Down Expand Up @@ -924,6 +926,7 @@ Multicast
multilib
Multiprotocol
multithreaded
Murata
mutex
mutexes
mv
Expand Down
241 changes: 104 additions & 137 deletions .github/workflows/examples-nxp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ env:
CHIP_NO_LOG_TIMESTAMPS: true

jobs:
k32w0:
name: K32W0
FreeRTOS:
name: FREERTOS

env:
BUILD_TYPE: gn_k32w
BUILD_TYPE: gn_FreeRTOS

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build-nxp:80
image: ghcr.io/project-chip/chip-build-nxp:81
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
Expand All @@ -50,229 +50,189 @@ jobs:
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp
extra-submodule-parameters: --recursive

- name: Detect changed paths
uses: dorny/paths-filter@v3
id: changed_paths
with:
filters: |
nxp:
- '**/nxp/**'
- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
with:
gh-context: ${{ toJson(github) }}

- name: Build examples
- name: Build K32W0 examples
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-k32w0-freertos-lighting \
--target nxp-k32w0-freertos-lighting-factory \
--target nxp-k32w0-freertos-lighting-rotating-id \
--target nxp-k32w0-freertos-contact-sensor \
--target nxp-k32w0-freertos-contact-sensor-low-power \
--target nxp-k32w0-freertos-contact-sensor-low-power-factory \
build \
--copy-artifacts-to out/artifacts \
"
- name: Get lighting app size stats
- name: Get K32W0 lighting app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w0+release light \
out/artifacts/nxp-k32w0-freertos-lighting/chip-k32w0x-light-example.elf \
out/artifacts/nxp-k32w0-freertos-lighting-factory/chip-k32w0x-light-example.elf \
/tmp/bloat_reports/
- name: Get contact sensor size stats
- name: Get K32W0 contact sensor size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w0+release contact \
out/artifacts/nxp-k32w0-freertos-contact-sensor-low-power/chip-k32w0x-contact-example.elf \
out/artifacts/nxp-k32w0-freertos-contact-sensor-low-power-factory/chip-k32w0x-contact-example.elf \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
platform-name: K32W0
k32w1:
name: K32W1

env:
BUILD_TYPE: gn_k32w

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build-nxp:81
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout submodules & Bootstrap
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp
extra-submodule-parameters: --recursive
- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
with:
gh-context: ${{ toJson(github) }}
- name: clean build
run: rm -rf ./out

- name: Build examples
- name: Build K32W1 examples
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-k32w1-freertos-lighting \
--target nxp-k32w1-freertos-contact-sensor-low-power \
--target nxp-k32w1-freertos-lock-app \
build \
--copy-artifacts-to out/artifacts \
"
- name: Get lighting app size stats
- name: Get K32W1 lighting app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w1+release light \
out/artifacts/nxp-k32w1-freertos-lighting/chip-k32w1-light-example.elf \
/tmp/bloat_reports/
- name: Get contact sensor size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w1+release contact \
out/artifacts/nxp-k32w1-freertos-contact-sensor-low-power/chip-k32w1-contact-example.elf \
/tmp/bloat_reports/
- name: Get lock app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w1+release lock \
out/artifacts/nxp-k32w1-freertos-lock-app/chip-k32w1-lock-example.elf \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
platform-name: K32W1
mcxw71:
name: MCXW71
env:
BUILD_TYPE: gn_k32w
- name: clean build
run: rm -rf ./out

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build-nxp:81
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout submodules & Bootstrap
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp
extra-submodule-parameters: --recursive

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
with:
gh-context: ${{ toJson(github) }}

- name: Build examples
- name: Build MCXW71 examples
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-mcxw71-freertos-lighting \
--target nxp-mcxw71-freertos-contact-sensor-low-power \
--target nxp-mcxw71-freertos-lock-app \
build \
--copy-artifacts-to out/artifacts \
"
- name: Get lighting app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp mcxw71+release light \
out/artifacts/nxp-mcxw71-freertos-lighting/chip-mcxw71-light-example.elf \
/tmp/bloat_reports/
- name: Get contact sensor size stats
- name: Get MCXW71 contact sensor size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp mcxw71+release contact \
out/artifacts/nxp-mcxw71-freertos-contact-sensor-low-power/chip-mcxw71-contact-example.elf \
/tmp/bloat_reports/
- name: Get lock app size stats
- name: Get MCXW71 lock app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp mcxw71+release lock \
out/artifacts/nxp-mcxw71-freertos-lock-app/chip-mcxw71-lock-example.elf \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
platform-name: MCXW71
rw61x:
name: RW61X
env:
BUILD_TYPE: gn_rw61x
- name: clean build
run: rm -rf ./out

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'
- name: Build RT1060 all clusters example app
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1060-freertos-all-clusters-wifi-iw416 \
--target nxp-rt1060-freertos-all-clusters-wifi-w8801 \
--target nxp-rt1060-freertos-all-clusters-wifi-ota-evkc-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RT1060 thermostat example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1060-freertos-thermostat-thread-wifi-evkc-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RT1060 laundry-washer example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1060-freertos-laundry-washer-wifi-evkc-iwx12 \
--target nxp-rt1060-freertos-laundry-washer-thread-evkc-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
container:
image: ghcr.io/project-chip/chip-build-nxp:81
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout submodules & Bootstrap
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp
extra-submodule-parameters: --recursive
- name: clean build
run: rm -rf ./out

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
with:
gh-context: ${{ toJson(github) }}
- name: Build RT1170 all clusters example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1170-freertos-all-clusters-wifi-iwx12 \
--target nxp-rt1170-freertos-all-clusters-wifi-ota-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RT1170 thermostat example app
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1170-freertos-thermostat-thread-wifi-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RT1170 laundry-washer example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1170-freertos-laundry-washer-thread-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
- name: clean build
run: rm -rf ./out

- name: Build RW61X all clusters example app
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rw61x-freertos-all-clusters-wifi \
--target nxp-rw61x-freertos-all-clusters-thread \
--target nxp-rw61x-freertos-all-clusters-wifi-ota-cmake \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RW61X thermostat example app
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rw61x-freertos-thermostat-wifi \
--target nxp-rw61x-freertos-thermostat-thread \
--target nxp-rw61x-freertos-thermostat-thread-wifi \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RW61X laundry-washer example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rw61x-freertos-laundry-washer-wifi \
--target nxp-rw61x-freertos-laundry-washer-thread \
build \
--copy-artifacts-to out/artifacts \
"
- name: clean build
run: rm -rf ./out

- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
platform-name: RW61X
platform-name: NXP-FREERTOS
zephyr:
name: ZEPHYR

Expand All @@ -289,8 +249,15 @@ jobs:
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp

- name: Detect changed paths
uses: dorny/paths-filter@v3
id: changed_paths
with:
filters: |
nxp:
- '**/nxp/**'
- name: Build NXP Zephyr examples
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/nxp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
- [NXP - Android Commissioning](nxp_k32w_android_commissioning.md)
- [NXP - Linux Examples](nxp_imx8m_linux_examples.md)
- [NXP - Manufacturing Data](nxp_manufacturing_flow.md)
- [NXP - RW61x OTA Software Update Guide](nxp_rw61x_ota_software_update.md)
- [NXP - RTs OTA Software Update Guide](nxp_RTs_ota_software_update.md)
- [NXP - Zephyr OTA Software Update Guide](nxp_zephyr_ota_software_update.md)
Loading

0 comments on commit ef96beb

Please sign in to comment.