All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-zephyr][PATCH 0/2] Add nRF52840 DK support
@ 2021-05-18 11:28 Wojciech Zmuda
  2021-05-18 11:28 ` [meta-zephyr][PATCH 1/2] nrf52832.inc: Rename to nrf52.inc Wojciech Zmuda
  2021-05-18 11:28 ` [meta-zephyr][PATCH 2/2] nrf52840dk_nrf52840.conf: Add nRF52840 DK support Wojciech Zmuda
  0 siblings, 2 replies; 4+ messages in thread
From: Wojciech Zmuda @ 2021-05-18 11:28 UTC (permalink / raw)
  To: yocto; +Cc: Wojciech Zmuda

From: Wojciech Zmuda <wojciech.zmuda@huawei.com>

This patch set adds support for Nordic Semiconductor nRF5284
Development Kit board. Since there already is nRF52xx family
chip support added (specifically nRF52832 used in 96Boards
Nitrogen), make this support a bit more generic to cover
the whole family, then add a platform-specific configs
for both nRF-based boards on top of it.

The change has been tested with the actual nRF52840 DK
board by building and flashing with `-c flash_usb`
some sample applications.

Wojciech Zmuda (2):
  nrf52832.inc: Rename to nrf52.inc
  nrf52840dk_nrf52840.conf: Add nRF52840 DK support

 conf/machine/96b-nitrogen.conf                   | 2 +-
 conf/machine/include/{nrf52832.inc => nrf52.inc} | 4 ++--
 conf/machine/nrf52840dk_nrf52840.conf            | 8 ++++++++
 3 files changed, 11 insertions(+), 3 deletions(-)
 rename conf/machine/include/{nrf52832.inc => nrf52.inc} (86%)
 create mode 100644 conf/machine/nrf52840dk_nrf52840.conf

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [meta-zephyr][PATCH 1/2] nrf52832.inc: Rename to nrf52.inc
  2021-05-18 11:28 [meta-zephyr][PATCH 0/2] Add nRF52840 DK support Wojciech Zmuda
@ 2021-05-18 11:28 ` Wojciech Zmuda
  2021-05-18 11:28 ` [meta-zephyr][PATCH 2/2] nrf52840dk_nrf52840.conf: Add nRF52840 DK support Wojciech Zmuda
  1 sibling, 0 replies; 4+ messages in thread
From: Wojciech Zmuda @ 2021-05-18 11:28 UTC (permalink / raw)
  To: yocto; +Cc: Wojciech Zmuda

From: Wojciech Zmuda <wojciech.zmuda@huawei.com>

The file is so generic anyway it can be targeted for
the nRF52 family without any harm.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
---
 conf/machine/96b-nitrogen.conf                   | 2 +-
 conf/machine/include/{nrf52832.inc => nrf52.inc} | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
 rename conf/machine/include/{nrf52832.inc => nrf52.inc} (86%)

diff --git a/conf/machine/96b-nitrogen.conf b/conf/machine/96b-nitrogen.conf
index 998db4c..48f2041 100644
--- a/conf/machine/96b-nitrogen.conf
+++ b/conf/machine/96b-nitrogen.conf
@@ -3,6 +3,6 @@
 
 #@DESCRIPTION: Machine configuration for 96Boards Nitrogen Board.
 
-require conf/machine/include/nrf52832.inc
+require conf/machine/include/nrf52.inc
 ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd"
 ARCH_96b-nitrogen = "arm"
diff --git a/conf/machine/include/nrf52832.inc b/conf/machine/include/nrf52.inc
similarity index 86%
rename from conf/machine/include/nrf52832.inc
rename to conf/machine/include/nrf52.inc
index e938aa6..d22f8bc 100644
--- a/conf/machine/include/nrf52832.inc
+++ b/conf/machine/include/nrf52.inc
@@ -1,7 +1,7 @@
 #@TYPE: Machine
-#@NAME: nrf52832
+#@NAME: nrf52xxx
 
-#@DESCRIPTION: Machine configuration for Nordic Semiconductor nRF52832 (Cortex-M4) SoC.
+#@DESCRIPTION: Machine configuration for Nordic Semiconductor nRF52xxx (Cortex-M4) SoC.
 
 require conf/machine/include/tune-cortexm4.inc
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [meta-zephyr][PATCH 2/2] nrf52840dk_nrf52840.conf: Add nRF52840 DK support
  2021-05-18 11:28 [meta-zephyr][PATCH 0/2] Add nRF52840 DK support Wojciech Zmuda
  2021-05-18 11:28 ` [meta-zephyr][PATCH 1/2] nrf52832.inc: Rename to nrf52.inc Wojciech Zmuda
@ 2021-05-18 11:28 ` Wojciech Zmuda
  2021-05-19  5:57   ` [yocto] " Naveen Saini
  1 sibling, 1 reply; 4+ messages in thread
From: Wojciech Zmuda @ 2021-05-18 11:28 UTC (permalink / raw)
  To: yocto; +Cc: Wojciech Zmuda

From: Wojciech Zmuda <wojciech.zmuda@huawei.com>

Add support for Nordic Semiconductor nRF52840 Development
Kit board.

This is a generic MACHINE over nRF52 SoC family config
plus PyOCD flashing ability.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
---
 conf/machine/nrf52840dk_nrf52840.conf | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 conf/machine/nrf52840dk_nrf52840.conf

diff --git a/conf/machine/nrf52840dk_nrf52840.conf b/conf/machine/nrf52840dk_nrf52840.conf
new file mode 100644
index 0000000..0aa50e0
--- /dev/null
+++ b/conf/machine/nrf52840dk_nrf52840.conf
@@ -0,0 +1,8 @@
+#@TYPE: Machine
+#@NAME: nrf52840dk_nrf52840
+
+#@DESCRIPTION: Machine configuration for Nordic Semiconductor nRF52840 Development Kit.
+
+require conf/machine/include/nrf52.inc
+ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd"
+ARCH_nrf52840dk_nrf52840 = "arm"
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [yocto] [meta-zephyr][PATCH 2/2] nrf52840dk_nrf52840.conf: Add nRF52840 DK support
  2021-05-18 11:28 ` [meta-zephyr][PATCH 2/2] nrf52840dk_nrf52840.conf: Add nRF52840 DK support Wojciech Zmuda
@ 2021-05-19  5:57   ` Naveen Saini
  0 siblings, 0 replies; 4+ messages in thread
From: Naveen Saini @ 2021-05-19  5:57 UTC (permalink / raw)
  To: Wojciech Zmuda, yocto; +Cc: Wojciech Zmuda

So far, MACHINE configurations are named using '-' instead of '_' . Could you use change it ?

Regards,
Naveen

> -----Original Message-----
> From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> On
> Behalf Of Wojciech Zmuda
> Sent: Tuesday, May 18, 2021 7:28 PM
> To: yocto@lists.yoctoproject.org
> Cc: Wojciech Zmuda <wojciech.zmuda@huawei.com>
> Subject: [yocto] [meta-zephyr][PATCH 2/2] nrf52840dk_nrf52840.conf: Add
> nRF52840 DK support
> 
> From: Wojciech Zmuda <wojciech.zmuda@huawei.com>
> 
> Add support for Nordic Semiconductor nRF52840 Development Kit board.
> 
> This is a generic MACHINE over nRF52 SoC family config plus PyOCD flashing
> ability.
> 
> Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
> ---
>  conf/machine/nrf52840dk_nrf52840.conf | 8 ++++++++
>  1 file changed, 8 insertions(+)
>  create mode 100644 conf/machine/nrf52840dk_nrf52840.conf
> 
> diff --git a/conf/machine/nrf52840dk_nrf52840.conf
> b/conf/machine/nrf52840dk_nrf52840.conf
> new file mode 100644
> index 0000000..0aa50e0
> --- /dev/null
> +++ b/conf/machine/nrf52840dk_nrf52840.conf
> @@ -0,0 +1,8 @@
> +#@TYPE: Machine
> +#@NAME: nrf52840dk_nrf52840
> +
> +#@DESCRIPTION: Machine configuration for Nordic Semiconductor
> nRF52840 Development Kit.
> +
> +require conf/machine/include/nrf52.inc
> +ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd"
> +ARCH_nrf52840dk_nrf52840 = "arm"
> --
> 2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-19  5:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 11:28 [meta-zephyr][PATCH 0/2] Add nRF52840 DK support Wojciech Zmuda
2021-05-18 11:28 ` [meta-zephyr][PATCH 1/2] nrf52832.inc: Rename to nrf52.inc Wojciech Zmuda
2021-05-18 11:28 ` [meta-zephyr][PATCH 2/2] nrf52840dk_nrf52840.conf: Add nRF52840 DK support Wojciech Zmuda
2021-05-19  5:57   ` [yocto] " Naveen Saini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.