boards: arm: Add Legend 2.5" boards
This commit adds support for the Legend 2.5" boards (legend25_ssd and legend25_hdd) based on the STM32F070CB MCU. These boards can be found in the Seagate FireCuda Gaming Drive, Gaming Drive for Xbox, SSD Gaming Drive for Xbox, and Gaming Drive for PlayStation devices. Both boards contain the following hardware components: - A B1414 LED strip connected to the PA7 pin (SPI MOSI) - A SPI flash (FM25F005) connected on SPI2 bus The Legend 2.5" HDD board also contains an activity LED connected on TIM3 CH3 Signed-off-by: Maxime Bittan <maxime.bittan@seagate.com> Signed-off-by: Simon Guinot <simon.guinot@seagate.com>
This commit is contained in:
parent
ae0ef7e56a
commit
39614b8960
14 changed files with 532 additions and 0 deletions
20
include/dt-bindings/led/seagate_legend_b1414.h
Normal file
20
include/dt-bindings/led/seagate_legend_b1414.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Seagate Technology LLC
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef ZEPHYR_SAMPLES_DRIVERS_LED_B1414_H_
|
||||
#define ZEPHYR_SAMPLES_DRIVERS_LED_B1414_H_
|
||||
|
||||
/*
|
||||
* At 6 MHz: 1 bit in 166.666 ns
|
||||
* 1200 ns -> 7.2 bits
|
||||
* 300 ns -> 1.8 bits
|
||||
* 900 ns -> 5.4 bits
|
||||
*/
|
||||
#define SPI_FREQ 6000000
|
||||
#define ZERO_FRAME 0x60
|
||||
#define ONE_FRAME 0x7C
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue