Browse Source
Port the board to HWMv2. Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>pull/69687/head
19 changed files with 178 additions and 11 deletions
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
.. _boards-seagate: |
||||
|
||||
Seagate |
||||
####### |
||||
|
||||
.. toctree:: |
||||
:maxdepth: 1 |
||||
:glob: |
||||
|
||||
**/* |
@ -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,0 +1,7 @@
@@ -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 @@
@@ -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 |
@ -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"; |
||||
}; |
@ -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"; |
||||
}; |
@ -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"; |
||||
}; |
Loading…
Reference in new issue