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:
committed by
Jamie McCrae
parent
8980430aad
commit
81670db2e9
10
boards/v2/seagate/index.rst
Normal file
10
boards/v2/seagate/index.rst
Normal file
@@ -0,0 +1,10 @@
|
||||
.. _boards-seagate:
|
||||
|
||||
Seagate
|
||||
#######
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:glob:
|
||||
|
||||
**/*
|
||||
@@ -5,9 +5,6 @@
|
||||
|
||||
if BOARD_LEGEND
|
||||
|
||||
config BOARD
|
||||
default "legend"
|
||||
|
||||
config SPI_STM32_INTERRUPT
|
||||
default y
|
||||
depends on SPI
|
||||
@@ -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
|
||||
7
boards/v2/seagate/legend/board.yml
Normal file
7
boards/v2/seagate/legend/board.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
board:
|
||||
name: legend
|
||||
vendor: seagate
|
||||
revision:
|
||||
format: custom
|
||||
socs:
|
||||
- name: stm32f070xb
|
||||
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
@@ -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
Normal file
56
boards/v2/seagate/legend/legend_stm32f070xb_25hdd.overlay
Normal 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";
|
||||
};
|
||||
42
boards/v2/seagate/legend/legend_stm32f070xb_25ssd.overlay
Normal file
42
boards/v2/seagate/legend/legend_stm32f070xb_25ssd.overlay
Normal 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";
|
||||
};
|
||||
62
boards/v2/seagate/legend/legend_stm32f070xb_35.overlay
Normal file
62
boards/v2/seagate/legend/legend_stm32f070xb_35.overlay
Normal 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";
|
||||
};
|
||||
Reference in New Issue
Block a user