Browse Source

boards: arm: xiao_ble: Convert to v2

Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
pull/69687/head
Jamie McCrae 1 year ago committed by Carles Cufi
parent
commit
c1565b3d14
  1. 33
      boards/boards_legacy/arm/xiao_ble/xiao_ble_sense_defconfig
  2. 2
      boards/qemu/qemu_cortex_m0/board.yml
  3. 0
      boards/seeed_studio/xiao_ble/Kconfig
  4. 7
      boards/seeed_studio/xiao_ble/Kconfig.defconfig
  5. 3
      boards/seeed_studio/xiao_ble/Kconfig.xiao_ble
  6. 0
      boards/seeed_studio/xiao_ble/board.cmake
  7. 5
      boards/seeed_studio/xiao_ble/board.yml
  8. 0
      boards/seeed_studio/xiao_ble/doc/img/xiao_ble.jpg
  9. 8
      boards/seeed_studio/xiao_ble/doc/index.rst
  10. 0
      boards/seeed_studio/xiao_ble/pre_dt_board.cmake
  11. 0
      boards/seeed_studio/xiao_ble/seeed_xiao_connector.dtsi
  12. 0
      boards/seeed_studio/xiao_ble/xiao_ble-pinctrl.dtsi
  13. 0
      boards/seeed_studio/xiao_ble/xiao_ble.dts
  14. 0
      boards/seeed_studio/xiao_ble/xiao_ble.yaml
  15. 0
      boards/seeed_studio/xiao_ble/xiao_ble_common.dtsi
  16. 12
      boards/seeed_studio/xiao_ble/xiao_ble_defconfig
  17. 0
      boards/seeed_studio/xiao_ble/xiao_ble_nrf52840_sense.dts
  18. 2
      boards/seeed_studio/xiao_ble/xiao_ble_nrf52840_sense.yaml
  19. 4
      boards/seeed_studio/xiao_ble/xiao_ble_nrf52840_sense_defconfig

33
boards/boards_legacy/arm/xiao_ble/xiao_ble_sense_defconfig

@ -1,33 +0,0 @@ @@ -1,33 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52840_QIAA=y
CONFIG_BOARD_XIAO_BLE=y
# Enable MPU
CONFIG_ARM_MPU=y
# Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y
# enable GPIO
CONFIG_GPIO=y
# enable uart driver
CONFIG_SERIAL=y
# enable console
CONFIG_CONSOLE=y
# Logger cannot use itself to log
CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y
# enable USB
CONFIG_USB_DEVICE_STACK=y
# Build UF2 by default, supported by the Adafruit nRF52 Bootloader
CONFIG_BUILD_OUTPUT_UF2=y
CONFIG_USE_DT_CODE_PARTITION=y
# required to enable LSM6DS3TR-C power
CONFIG_REGULATOR=y

2
boards/qemu/qemu_cortex_m0/board.yml

@ -1,3 +1,5 @@ @@ -1,3 +1,5 @@
board:
name: qemu_cortex_m0
vendor: Nordic Semiconductor
socs:
- name: nrf51822

0
boards/boards_legacy/arm/xiao_ble/Kconfig → boards/seeed_studio/xiao_ble/Kconfig

7
boards/boards_legacy/arm/xiao_ble/Kconfig.defconfig → boards/seeed_studio/xiao_ble/Kconfig.defconfig

@ -5,14 +5,9 @@ @@ -5,14 +5,9 @@
if BOARD_XIAO_BLE
config BOARD
default "xiao_ble"
config BT_CTLR
default BT
endif # BOARD_XIAO_BLE
if USB_DEVICE_STACK
config UART_CONSOLE
@ -22,3 +17,5 @@ config USB_DEVICE_INITIALIZE_AT_BOOT @@ -22,3 +17,5 @@ config USB_DEVICE_INITIALIZE_AT_BOOT
default y
endif # USB_DEVICE_STACK
endif # BOARD_XIAO_BLE

3
boards/boards_legacy/arm/xiao_ble/Kconfig.board → boards/seeed_studio/xiao_ble/Kconfig.xiao_ble

@ -4,5 +4,4 @@ @@ -4,5 +4,4 @@
# SPDX-License-Identifier: Apache-2.0
config BOARD_XIAO_BLE
bool "XIAO BLE"
depends on SOC_NRF52840_QIAA
select SOC_NRF52840_QIAA

0
boards/boards_legacy/arm/xiao_ble/board.cmake → boards/seeed_studio/xiao_ble/board.cmake

5
boards/seeed_studio/xiao_ble/board.yml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
board:
name: xiao_ble
vendor: Seeed Studio
variants:
- name: 'sense'

0
boards/boards_legacy/arm/xiao_ble/doc/img/xiao_ble.jpg → boards/seeed_studio/xiao_ble/doc/img/xiao_ble.jpg

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

8
boards/boards_legacy/arm/xiao_ble/doc/index.rst → boards/seeed_studio/xiao_ble/doc/index.rst

@ -146,7 +146,7 @@ initialized before any text is printed, as below: @@ -146,7 +146,7 @@ initialized before any text is printed, as below:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: xiao_ble_sense
:board: xiao_ble/nrf52840/sense
:goals: build flash
:gen-args: -DCONFIG_BOOT_DELAY=5000
@ -177,12 +177,12 @@ properly with Zephyr: @@ -177,12 +177,12 @@ properly with Zephyr:
.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: xiao_ble_sense
:board: xiao_ble/nrf52840/sense
:goals: build flash
You can build and flash the examples to make sure Zephyr is running correctly on
your board. The LED definitions can be found in
:zephyr_file:`boards/arm/xiao_ble/xiao_ble_common.dtsi`.
:zephyr_file:`boards/xiao_ble/xiao_ble_common.dtsi`.
Testing shell over USB in the XIAO BLE (Sense)
**********************************************
@ -203,7 +203,7 @@ with Zephyr: @@ -203,7 +203,7 @@ with Zephyr:
.. zephyr-app-commands::
:zephyr-app: samples/subsys/shell/shell_module
:board: xiao_ble_sense
:board: xiao_ble/nrf52840/sense
:goals: build flash
References

0
boards/boards_legacy/arm/xiao_ble/pre_dt_board.cmake → boards/seeed_studio/xiao_ble/pre_dt_board.cmake

0
boards/boards_legacy/arm/xiao_ble/seeed_xiao_connector.dtsi → boards/seeed_studio/xiao_ble/seeed_xiao_connector.dtsi

0
boards/boards_legacy/arm/xiao_ble/xiao_ble-pinctrl.dtsi → boards/seeed_studio/xiao_ble/xiao_ble-pinctrl.dtsi

0
boards/boards_legacy/arm/xiao_ble/xiao_ble.dts → boards/seeed_studio/xiao_ble/xiao_ble.dts

0
boards/boards_legacy/arm/xiao_ble/xiao_ble.yaml → boards/seeed_studio/xiao_ble/xiao_ble.yaml

0
boards/boards_legacy/arm/xiao_ble/xiao_ble_common.dtsi → boards/seeed_studio/xiao_ble/xiao_ble_common.dtsi

12
boards/boards_legacy/arm/xiao_ble/xiao_ble_defconfig → boards/seeed_studio/xiao_ble/xiao_ble_defconfig

@ -1,28 +1,24 @@ @@ -1,28 +1,24 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52840_QIAA=y
CONFIG_BOARD_XIAO_BLE=y
# Enable MPU
CONFIG_ARM_MPU=y
# Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y
# enable GPIO
# Enable GPIO
CONFIG_GPIO=y
# enable uart driver
# Enable UART driver
CONFIG_SERIAL=y
# enable console
# Enable console
CONFIG_CONSOLE=y
# Logger cannot use itself to log
CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y
# enable USB
# Enable USB
CONFIG_USB_DEVICE_STACK=y
# Build UF2 by default, supported by the Adafruit nRF52 Bootloader

0
boards/boards_legacy/arm/xiao_ble/xiao_ble_sense.dts → boards/seeed_studio/xiao_ble/xiao_ble_nrf52840_sense.dts

2
boards/boards_legacy/arm/xiao_ble/xiao_ble_sense.yaml → boards/seeed_studio/xiao_ble/xiao_ble_nrf52840_sense.yaml

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
identifier: xiao_ble_sense
identifier: xiao_ble/nrf52840/sense
name: XIAO BLE Sense
type: mcu
arch: arm

4
boards/seeed_studio/xiao_ble/xiao_ble_nrf52840_sense_defconfig

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
# Required to enable LSM6DS3TR-C power
CONFIG_REGULATOR=y
Loading…
Cancel
Save