From c4fd619cc2f18a3946b9552c8a9d9ca538ed5570 Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Tue, 1 Oct 2024 01:40:17 -0600 Subject: [PATCH] boards: arm: Remove type board directory. Remove the errounous sparkfun_pro_mirco_rp2040 board dir Signed-off-by: Peter Johanson --- .../sparkfun_pro_mirco_rp2040/Kconfig.board | 6 -- .../Kconfig.defconfig | 12 --- .../arm/sparkfun_pro_mirco_rp2040/board.cmake | 0 .../sparkfun_pro_micro.dtsi | 39 -------- .../sparkfun_pro_micro_rp2040-pinctrl.dtsi | 42 --------- .../sparkfun_pro_micro_rp2040.dts | 88 ------------------- .../sparkfun_pro_micro_rp2040.yaml | 12 --- .../sparkfun_pro_micro_rp2040_defconfig | 26 ------ 8 files changed, 225 deletions(-) delete mode 100644 boards/arm/sparkfun_pro_mirco_rp2040/Kconfig.board delete mode 100644 boards/arm/sparkfun_pro_mirco_rp2040/Kconfig.defconfig delete mode 100644 boards/arm/sparkfun_pro_mirco_rp2040/board.cmake delete mode 100644 boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro.dtsi delete mode 100644 boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040-pinctrl.dtsi delete mode 100644 boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040.dts delete mode 100644 boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040.yaml delete mode 100644 boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040_defconfig diff --git a/boards/arm/sparkfun_pro_mirco_rp2040/Kconfig.board b/boards/arm/sparkfun_pro_mirco_rp2040/Kconfig.board deleted file mode 100644 index c27c19c2812a23..00000000000000 --- a/boards/arm/sparkfun_pro_mirco_rp2040/Kconfig.board +++ /dev/null @@ -1,6 +0,0 @@ -# Copyright (c) 2021 Pete Johanson -# SPDX-License-Identifier: Apache-2.0 - -config BOARD_SPARKFUN_PRO_MICRO_RP2040 - bool "Sparkfun Pro-Micro RP2040 Board" - depends on SOC_RP2040 diff --git a/boards/arm/sparkfun_pro_mirco_rp2040/Kconfig.defconfig b/boards/arm/sparkfun_pro_mirco_rp2040/Kconfig.defconfig deleted file mode 100644 index f5c8c2a69c1aed..00000000000000 --- a/boards/arm/sparkfun_pro_mirco_rp2040/Kconfig.defconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2021 Pete Johanson -# SPDX-License-Identifier: Apache-2.0 - -if BOARD_SPARKFUN_PRO_MICRO_RP2040 - -config BOARD - default "sparkfun_pro_micro_rp2040" - -config RP2_FLASH_W25Q080 - default y - -endif # BOARD_SPARKFUN_PRO_MICRO_RP2040 diff --git a/boards/arm/sparkfun_pro_mirco_rp2040/board.cmake b/boards/arm/sparkfun_pro_mirco_rp2040/board.cmake deleted file mode 100644 index e69de29bb2d1d6..00000000000000 diff --git a/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro.dtsi b/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro.dtsi deleted file mode 100644 index c43b52f2ead102..00000000000000 --- a/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro.dtsi +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2020 Pete Johanson - * - * SPDX-License-Identifier: MIT - */ - -/ { - pro_micro: connector { - compatible = "sparkfun,pro-micro"; - #gpio-cells = <2>; - gpio-map-mask = <0xffffffff 0xffffffc0>; - gpio-map-pass-thru = <0 0x3f>; - gpio-map - = <1 0 &gpio0 0 0> /* D1 */ - , <0 0 &gpio0 1 0> /* D0 */ - , <2 0 &gpio0 2 0> /* D2 */ - , <3 0 &gpio0 3 0> /* D3 */ - , <4 0 &gpio0 4 0> /* D4/A6 */ - , <5 0 &gpio0 5 0> /* D5 */ - , <6 0 &gpio0 6 0> /* D6/A7 */ - , <7 0 &gpio0 7 0> /* D7 */ - , <8 0 &gpio0 8 0> /* D8/A8 */ - , <9 0 &gpio0 9 0> /* D9/A9 */ - , <10 0 &gpio0 21 0> /* D10/A10 */ - , <16 0 &gpio0 23 0> /* D16 */ - , <14 0 &gpio0 20 0> /* D14 */ - , <15 0 &gpio0 22 0> /* D15 */ - , <18 0 &gpio0 26 0> /* D18/A0 */ - , <19 0 &gpio0 27 0> /* D19/A1 */ - , <20 0 &gpio0 28 0> /* D20/A2 */ - , <21 0 &gpio0 29 0> /* D21/A3 */ - ; - }; - -}; - -pro_micro_i2c: &i2c1 {}; -pro_micro_spi: &spi0 {}; -pro_micro_serial: &uart0 {}; diff --git a/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040-pinctrl.dtsi b/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040-pinctrl.dtsi deleted file mode 100644 index b06ed8b6d6d19a..00000000000000 --- a/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040-pinctrl.dtsi +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2021, Yonatan Schachter - * SPDX-License-Identifier: Apache-2.0 - */ - -#include - -&pinctrl { - uart0_default: uart0_default { - group1 { - pinmux = ; - }; - group2 { - pinmux = ; - input-enable; - }; - }; - - i2c1_default: i2c1_default { - group1 { - pinmux = ; - input-enable; - }; - group2 { - pinmux = ; - input-enable; - }; - }; - - spi0_default: spi0_default { - group1 { - pinmux = ; - }; - group2 { - pinmux = ; - input-enable; - }; - group3 { - pinmux = ; - }; - }; -}; diff --git a/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040.dts b/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040.dts deleted file mode 100644 index 49bba0a9280524..00000000000000 --- a/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040.dts +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) 2021 Yonatan Schachter - * - * SPDX-License-Identifier: Apache-2.0 - */ - -/dts-v1/; - -#include -#include "sparkfun_pro_micro_rp2040-pinctrl.dtsi" -#include "sparkfun_pro_micro.dtsi" -#include - -/ { - chosen { - zephyr,sram = &sram0; - zephyr,flash = &flash0; - zephyr,console = &uart0; - zephyr,code-partition = &code_partition; - }; - - xtal_clk: xtal-clk { - compatible = "fixed-clock"; - clock-frequency = <12000000>; - #clock-cells = <0>; - }; -}; - -&flash0 { - /* 16MB of flash minus the 0x100 used for - * the second stage bootloader - */ - reg = <0x10000000 DT_SIZE_M(16)>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - /* Reserved memory for the second stage bootloader */ - second_stage_bootloader: partition@0 { - label = "second_stage_bootloader"; - reg = <0x00000000 0x100>; - read-only; - }; - - - /* - * Usable flash. Starts at 0x100, after the bootloader. The partition - * size is 16MB minus the 0x100 bytes taken by the bootloader. - */ - code_partition: partition@100 { - label = "code-partition"; - reg = <0x100 (DT_SIZE_M(16) - 0x100)>; - read-only; - }; - }; -}; - - -&uart0 { - current-speed = <115200>; - status = "okay"; - pinctrl-0 = <&uart0_default>; - pinctrl-names = "default"; -}; - -&i2c1 { - status = "okay"; - pinctrl-0 = <&i2c1_default>; - pinctrl-names = "default"; - clock-frequency = ; -}; - -&spi0 { - status = "okay"; - pinctrl-0 = <&spi0_default>; - pinctrl-names = "default"; - clock-frequency = ; -}; - -&gpio0 { - status = "okay"; -}; - -zephyr_udc0: &usbd { - status = "okay"; -}; diff --git a/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040.yaml b/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040.yaml deleted file mode 100644 index cb29bdbb696f39..00000000000000 --- a/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040.yaml +++ /dev/null @@ -1,12 +0,0 @@ -identifier: raspberrypi_pico -name: RaspberryPi-Pico -type: mcu -arch: arm -flash: 2048 -ram: 264 -toolchain: - - zephyr - - gnuarmemb - - xtools -supported: - - serial diff --git a/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040_defconfig b/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040_defconfig deleted file mode 100644 index 225ae7fcf9f93b..00000000000000 --- a/boards/arm/sparkfun_pro_mirco_rp2040/sparkfun_pro_micro_rp2040_defconfig +++ /dev/null @@ -1,26 +0,0 @@ -# SPDX-License-Identifier: Apache-2.0 - -CONFIG_SOC_SERIES_RP2XXX=y -CONFIG_SOC_RP2040=y -CONFIG_BOARD_SPARKFUN_PRO_MICRO_RP2040=y - -CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=125000000 - -# Enable GPIO -CONFIG_GPIO=y - -# enable uart driver -CONFIG_SERIAL=y - -# Enable reset driver -CONFIG_RESET=y - -# enable console -CONFIG_CONSOLE=y -CONFIG_UART_CONSOLE=y - -# Code partition needed to target the correct flash range -CONFIG_USE_DT_CODE_PARTITION=y - -# Output UF2 by default, native bootloader supports it. -CONFIG_BUILD_OUTPUT_UF2=y