Browse Source

boards: Convert legend to HWM v2

Port the board to HWMv2.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
pull/69687/head
Erwan Gouriou 1 year ago committed by Jamie McCrae
parent
commit
81670db2e9
  1. 10
      boards/v2/seagate/index.rst
  2. 3
      boards/v2/seagate/legend/Kconfig.defconfig
  3. 5
      boards/v2/seagate/legend/Kconfig.legend
  4. 0
      boards/v2/seagate/legend/board.cmake
  5. 7
      boards/v2/seagate/legend/board.yml
  6. 0
      boards/v2/seagate/legend/doc/img/firecuda_gaming_hard_drive.jpg
  7. 0
      boards/v2/seagate/legend/doc/img/firecuda_gaming_hub.jpg
  8. 0
      boards/v2/seagate/legend/doc/index.rst
  9. 0
      boards/v2/seagate/legend/legend.dts
  10. 0
      boards/v2/seagate/legend/legend.yaml
  11. 0
      boards/v2/seagate/legend/legend_25hdd.overlay
  12. 0
      boards/v2/seagate/legend/legend_25ssd.overlay
  13. 0
      boards/v2/seagate/legend/legend_35.overlay
  14. 4
      boards/v2/seagate/legend/legend_defconfig
  15. 56
      boards/v2/seagate/legend/legend_stm32f070xb_25hdd.overlay
  16. 42
      boards/v2/seagate/legend/legend_stm32f070xb_25ssd.overlay
  17. 62
      boards/v2/seagate/legend/legend_stm32f070xb_35.overlay
  18. 0
      boards/v2/seagate/legend/revision.cmake
  19. 0
      boards/v2/seagate/legend/support/openocd.cfg

10
boards/v2/seagate/index.rst

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
.. _boards-seagate:
Seagate
#######
.. toctree::
:maxdepth: 1
:glob:
**/*

3
boards/arm/legend/Kconfig.defconfig → boards/v2/seagate/legend/Kconfig.defconfig

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if BOARD_LEGEND
config BOARD
default "legend"
config SPI_STM32_INTERRUPT
default y
depends on SPI

5
boards/arm/legend/Kconfig.board → boards/v2/seagate/legend/Kconfig.legend

@ -1,8 +1,5 @@ @@ -1,8 +1,5 @@
# Legend board family configuration
# Copyright (c) 2021 Seagate Technology
# SPDX-License-Identifier: Apache-2.0
config BOARD_LEGEND
bool "Legend board"
depends on SOC_STM32F070XB
select SOC_STM32F070XB

0
boards/arm/legend/board.cmake → boards/v2/seagate/legend/board.cmake

7
boards/v2/seagate/legend/board.yml

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
board:
name: legend
vendor: seagate
revision:
format: custom
socs:
- name: stm32f070xb

0
boards/arm/legend/doc/img/firecuda_gaming_hard_drive.jpg → boards/v2/seagate/legend/doc/img/firecuda_gaming_hard_drive.jpg

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

0
boards/arm/legend/doc/img/firecuda_gaming_hub.jpg → boards/v2/seagate/legend/doc/img/firecuda_gaming_hub.jpg

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

0
boards/arm/legend/doc/index.rst → boards/v2/seagate/legend/doc/index.rst

0
boards/arm/legend/legend.dts → boards/v2/seagate/legend/legend.dts

0
boards/arm/legend/legend.yaml → boards/v2/seagate/legend/legend.yaml

0
boards/arm/legend/legend_25hdd.overlay → boards/v2/seagate/legend/legend_25hdd.overlay

0
boards/arm/legend/legend_25ssd.overlay → boards/v2/seagate/legend/legend_25ssd.overlay

0
boards/arm/legend/legend_35.overlay → boards/v2/seagate/legend/legend_35.overlay

4
boards/arm/legend/legend_defconfig → boards/v2/seagate/legend/legend_defconfig

@ -1,11 +1,7 @@ @@ -1,11 +1,7 @@
# SPDX-License-Identifier: Apache-2.0
# Zephyr Kernel Configuration
CONFIG_SOC_SERIES_STM32F0X=y
# Platform Configuration
CONFIG_SOC_STM32F070XB=y
# Serial Drivers
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y

56
boards/v2/seagate/legend/legend_stm32f070xb_25hdd.overlay

@ -0,0 +1,56 @@ @@ -0,0 +1,56 @@
/*
* Copyright (c) 2021 Seagate Technology LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
model = "Seagate Legend 2.5 HDD board";
compatible = "legend25_hdd", "seagate,legend25_hdd";
aliases {
pwm-led0 = &pwm_led0;
led-strip = &led_strip_spi;
};
led_pwm: pwmleds {
compatible = "pwm-leds";
label = "LED PWM";
pwm_led0: pwm_led_0 {
label = "Activity LED";
pwms = <&pwm3 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
};
};
&clk_hsi {
status = "okay";
};
&pll {
clocks = <&clk_hsi>;
prediv = <1>;
mul = <6>;
status = "okay";
};
&rcc {
clocks = <&pll>;
clock-frequency = <DT_FREQ_M(48)>;
ahb-prescaler = <1>;
apb1-prescaler = <1>;
};
&led_strip_spi {
chain-length = <6>;
status = "okay";
};
&timers3 {
status = "okay";
};
&pwm3 {
status = "okay";
};

42
boards/v2/seagate/legend/legend_stm32f070xb_25ssd.overlay

@ -0,0 +1,42 @@ @@ -0,0 +1,42 @@
/*
* Copyright (c) 2021 Seagate Technology LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
model = "Seagate Legend 2.5 SSD board";
compatible = "legend25_ssd", "seagate,legend25_ssd";
aliases {
led-strip = &led_strip_spi;
};
};
&clk_hse {
clock-frequency = <DT_FREQ_M(24)>; /* 24MHz external clock */
status = "okay";
};
&pll {
clocks = <&clk_hse>;
prediv = <1>;
mul = <2>;
status = "okay";
};
&rcc {
clocks = <&pll>;
clock-frequency = <DT_FREQ_M(48)>;
ahb-prescaler = <1>;
apb1-prescaler = <1>;
};
&led_strip_spi {
chain-length = <4>;
status = "okay";
};
&usb {
status = "okay";
};

62
boards/v2/seagate/legend/legend_stm32f070xb_35.overlay

@ -0,0 +1,62 @@ @@ -0,0 +1,62 @@
/*
* Copyright (c) 2021 Seagate Technology LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
model = "Seagate Legend 3.5 board";
compatible = "legend35", "seagate,legend35";
aliases {
pwm-led0 = &pwm_led0;
led-strip = &led_strip_spi;
};
led_pwm: pwmleds {
compatible = "pwm-leds";
label = "LED PWM";
pwm_led0: pwm_led_0 {
label = "Activity LED";
pwms = <&pwm3 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
};
};
&clk_hse {
clock-frequency = <DT_FREQ_M(24)>; /* 24MHz external clock */
status = "okay";
};
&pll {
clocks = <&clk_hse>;
prediv = <1>;
mul = <2>;
status = "okay";
};
&rcc {
clocks = <&pll>;
clock-frequency = <DT_FREQ_M(48)>;
ahb-prescaler = <1>;
apb1-prescaler = <1>;
};
&led_strip_spi {
chain-length = <12>;
status = "okay";
};
&timers3 {
status = "okay";
};
&pwm3 {
status = "okay";
};
&usb {
status = "okay";
};

0
boards/arm/legend/revision.cmake → boards/v2/seagate/legend/revision.cmake

0
boards/arm/legend/support/openocd.cfg → boards/v2/seagate/legend/support/openocd.cfg

Loading…
Cancel
Save