boards: Convert legend to HWM v2

Port the board to HWMv2.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
This commit is contained in:
Erwan Gouriou
2024-01-26 16:12:53 +01:00
committed by Jamie McCrae
parent 8980430aad
commit 81670db2e9
19 changed files with 178 additions and 11 deletions

View File

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

View File

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

View File

@@ -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

View File

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

View File

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -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

View File

@@ -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";
};

View File

@@ -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";
};

View File

@@ -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";
};