From 9dd8217cd4c5ae434bde6bd5eb4dca2274ce9cec Mon Sep 17 00:00:00 2001 From: Derek Date: Sat, 15 Aug 2020 15:32:36 -0400 Subject: Add bluemicro support --- .../arm/bluemicro52840_v1/bluemicro52840_v1.dts | 103 +++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts (limited to 'app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts') diff --git a/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts b/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts new file mode 100644 index 0000000..a1f95e3 --- /dev/null +++ b/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2020 Pete Johanson, Derek Schmell + * + * SPDX-License-Identifier: MIT + */ + +/dts-v1/; +#include +#include "arduino_pro_micro_pins.dtsi" + +/ { + model = "BlueMicro52840_V1"; + compatible = "bluemicro52840,v1"; + + chosen { + zephyr,code-partition = &code_partition; + // zephyr,console = &uart0; + //zephyr,bt-mon-uart = &uart0; + //zephyr,bt-c2h-uart = &uart0; + zephyr,sram = &sram0; + zephyr,flash = &flash0; + }; + + leds { + compatible = "gpio-leds"; + blue_led: led_0 { + gpios = <&gpio0 42 GPIO_ACTIVE_LOW>; + label = "Blue LED"; + }; + }; + +}; + +&gpio0 { + status = "okay"; +}; + +&gpio1 { + status = "okay"; +}; + +&uart0 { + compatible = "nordic,nrf-uart"; + current-speed = <115200>; + tx-pin = <6>; + rx-pin = <8>; +}; + +&i2c0 { + compatible = "nordic,nrf-twi"; + sda-pin = <25>; + scl-pin = <26>; +}; + +&uart0 { + compatible = "nordic,nrf-uarte"; + status = "okay"; + current-speed = <115200>; + tx-pin = <39>; + rx-pin = <34>; + rts-pin = <33>; + cts-pin = <12>; +}; + +&usbd { + status = "okay"; +}; + + +&flash0 { + /* + * For more information, see: + * http://docs.zephyrproject.org/latest/devices/dts/flash_partitions.html + */ + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + boot_partition: partition@0 { + label = "adafruit_boot"; + reg = <0x000000000 0x0000C000>; + }; + code_partition: partition@26000 { + label = "code_partition"; + reg = <0x00026000 0x000d2000>; + }; + + /* + * The flash starting at 0x000f8000 and ending at + * 0x000fffff is reserved for use by the application. + */ + + /* + * Storage partition will be used by FCB/LittleFS/NVS + * if enabled. + */ + storage_partition: partition@f8000 { + label = "storage"; + reg = <0x000f8000 0x00008000>; + }; + }; +}; -- cgit v1.2.3 From dd165c68296a9ddf915a1f1681dc15995282ccea Mon Sep 17 00:00:00 2001 From: Derek Date: Sat, 15 Aug 2020 15:53:31 -0400 Subject: Corrected pins for scl-pin and sda-pin --- app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts') diff --git a/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts b/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts index a1f95e3..257a006 100644 --- a/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts +++ b/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts @@ -48,8 +48,8 @@ &i2c0 { compatible = "nordic,nrf-twi"; - sda-pin = <25>; - scl-pin = <26>; + sda-pin = <15>; + scl-pin = <17>; }; &uart0 { -- cgit v1.2.3 From 47b219cca55e053509f373cc4f4812d55afb1451 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Sun, 16 Aug 2020 21:27:37 -0400 Subject: Remove duplicate uart0 node. --- app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts | 7 ------- 1 file changed, 7 deletions(-) (limited to 'app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts') diff --git a/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts b/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts index 257a006..c56ca18 100644 --- a/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts +++ b/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts @@ -39,13 +39,6 @@ status = "okay"; }; -&uart0 { - compatible = "nordic,nrf-uart"; - current-speed = <115200>; - tx-pin = <6>; - rx-pin = <8>; -}; - &i2c0 { compatible = "nordic,nrf-twi"; sda-pin = <15>; -- cgit v1.2.3 From cab34d835f244cb9f7c3cc29cd5a1a2f154a27fc Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 18 Aug 2020 23:28:34 -0500 Subject: fix(board): Fix status LED on BlueMicro --- app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts') diff --git a/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts b/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts index c56ca18..f8abc66 100644 --- a/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts +++ b/app/boards/arm/bluemicro52840_v1/bluemicro52840_v1.dts @@ -24,7 +24,7 @@ leds { compatible = "gpio-leds"; blue_led: led_0 { - gpios = <&gpio0 42 GPIO_ACTIVE_LOW>; + gpios = <&gpio0 42 GPIO_ACTIVE_HIGH>; label = "Blue LED"; }; }; -- cgit v1.2.3