board: arm: ronoth_lodev: add Ronoth LoDev board support
The Ronoth LoDev in an open source board which uses the AcSIP S76S. Signed-off-by: Dean Weiten <dmw@weiten.com>
This commit is contained in:
parent
ed1b220ba5
commit
5e82563601
|
@ -110,6 +110,7 @@
|
|||
/boards/arm/qemu_cortex_m*/ @ioannisg
|
||||
/boards/arm/quick_feather/ @kowalewskijan @kgugala
|
||||
/boards/arm/rak5010_nrf52840/ @gpaquet85
|
||||
/boards/arm/ronoth_lodev/ @NorthernDean
|
||||
/boards/arm/xmc45_relax_kit/ @parthitce
|
||||
/boards/arm/sam4e_xpro/ @nandojve
|
||||
/boards/arm/sam4l_ek/ @nandojve
|
||||
|
|
7
boards/arm/ronoth_lodev/Kconfig.board
Normal file
7
boards/arm/ronoth_lodev/Kconfig.board
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Ronoth LoDev board configuration
|
||||
# Copyright (c) 2020/2021 Dean Weiten <dmw@weiten.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_RONOTH_LODEV
|
||||
bool "Ronoth LoDev"
|
||||
depends on SOC_STM32L073XX
|
14
boards/arm/ronoth_lodev/Kconfig.defconfig
Normal file
14
boards/arm/ronoth_lodev/Kconfig.defconfig
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Ronoth LoDev board configuration
|
||||
# Copyright (c) 2020/2021 Dean Weiten <dmw@weiten.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if BOARD_RONOTH_LODEV
|
||||
|
||||
config BOARD
|
||||
default "ronoth_lodev"
|
||||
|
||||
config SPI_STM32_INTERRUPT
|
||||
default y
|
||||
depends on SPI
|
||||
|
||||
endif # BOARD_RONOTH_LODEV
|
8
boards/arm/ronoth_lodev/board.cmake
Normal file
8
boards/arm/ronoth_lodev/board.cmake
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Ronoth LoDev board configuration
|
||||
# Copyright (c) 2020/2021 Dean Weiten <dmw@weiten.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
board_runner_args(jlink "--device=STM32L073RZ" "--speed=4000")
|
||||
|
||||
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
BIN
boards/arm/ronoth_lodev/doc/img/acsip_s76s.png
Normal file
BIN
boards/arm/ronoth_lodev/doc/img/acsip_s76s.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
boards/arm/ronoth_lodev/doc/img/lodev.png
Normal file
BIN
boards/arm/ronoth_lodev/doc/img/lodev.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
BIN
boards/arm/ronoth_lodev/doc/img/pinout.png
Normal file
BIN
boards/arm/ronoth_lodev/doc/img/pinout.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
181
boards/arm/ronoth_lodev/doc/index.rst
Normal file
181
boards/arm/ronoth_lodev/doc/index.rst
Normal file
|
@ -0,0 +1,181 @@
|
|||
.. _ronoth_lodev:
|
||||
|
||||
Ronoth LoDev
|
||||
############
|
||||
|
||||
========
|
||||
Overview
|
||||
========
|
||||
|
||||
The Ronoth_ LoDev_ is a small open source board containing a `AcSIP S76S`_ SiP from AcSIP_.
|
||||
The `full LoDev design details`_ are available on on GitHub. The LoDev_ board can be purchased
|
||||
from Ronoth_ or from CrowdSupply_.
|
||||
|
||||
The S76S contains an `STMicro STM32L073RZ`_ MCU, a `Semtech SX1276`_ LoRaWAN transceiver,
|
||||
and a +20 dBm power amplifier. Refer to `AcSIP S76S Product Information Brief`_ for details.
|
||||
|
||||
Zephyr applications may use the **ronoth_lodev** configuration to run on this board.
|
||||
|
||||
.. figure:: img/lodev.png
|
||||
:width: 291px
|
||||
:align: center
|
||||
:height: 217px
|
||||
:alt: Image of Ronoth LoDev open source development board containing S76S system on a chip
|
||||
|
||||
Ronoth LoDev
|
||||
|
||||
`Board design files`_ are available on GitHub.
|
||||
|
||||
================
|
||||
Device Resources
|
||||
================
|
||||
|
||||
The embedded `STMicro STM32L073RZ`_ has some GPIOs and SPI2 internally committed to the LoRaWAN
|
||||
transceiver operation. See `internally dedicated ports`_ for a list of resources committed to this function.
|
||||
|
||||
=========
|
||||
Debugging
|
||||
=========
|
||||
|
||||
Programming and debugging uses the SWD port, as on any STM32 processor. An ST-LINK/V2 adapter
|
||||
may be used with the appropriate software (*st-utils* package on Linux).
|
||||
|
||||
=================
|
||||
Connector Pin-Out
|
||||
=================
|
||||
|
||||
The LoDev has two rows of headers. Pin 1 on both connectors is closest to the micro-USB connector on the board,
|
||||
furthest from the RF (antenna) connector.
|
||||
|
||||
When viewed from the top (component) side of the board, with the micro-USB connector closest and RF (antenna)
|
||||
connector furthest away, the CN6_ connector is on the left, the CN7_ connector is on the right.
|
||||
|
||||
UART1 on the S76S SiP is connected to a USB-to-UART device connected to the micro USB connector, so generally
|
||||
PA9 and PA10 are unavailable for I/Os.
|
||||
|
||||
A helpful silkscreen legend is provided on the board.
|
||||
|
||||
.. figure:: img/pinout.png
|
||||
:width: 600px
|
||||
:align: center
|
||||
:alt: Ronoth LoDev sketch with pinout
|
||||
|
||||
Ronth LoDev Pinout
|
||||
|
||||
.. _CN6:
|
||||
|
||||
-----------
|
||||
CN6 Pin-Out
|
||||
-----------
|
||||
|
||||
=== ======== ======================================================
|
||||
Pin Function Note
|
||||
=== ======== ======================================================
|
||||
1 3.3V Output 500 mA max
|
||||
2 GND
|
||||
3 PC1
|
||||
4 PC0
|
||||
5 PB8
|
||||
6 BOOT0
|
||||
7 PB7
|
||||
8 PB6
|
||||
9 PB5
|
||||
10 PD2
|
||||
11 PC12
|
||||
12 PC11
|
||||
13 PC10
|
||||
14 PA14 SWCLK
|
||||
15 PA13 SWDIO
|
||||
16 PA12
|
||||
17 PA11
|
||||
18 PA9 USB serial Tx drives this pin (input) for UART1
|
||||
19 PA10 USB serial Rx is driven by this pin (output) for UART1
|
||||
20 PA8
|
||||
=== ======== ======================================================
|
||||
|
||||
.. _CN7:
|
||||
|
||||
-----------
|
||||
CN7 Pin-Out
|
||||
-----------
|
||||
|
||||
=== ======== ============================
|
||||
Pin Function Note
|
||||
=== ======== ============================
|
||||
1 PC2
|
||||
2 PC3
|
||||
3 nRESET
|
||||
4 PA0
|
||||
5 PA2
|
||||
6 PA3
|
||||
7 PA4
|
||||
8 PA5
|
||||
9 PA6
|
||||
10 PA7
|
||||
11 PC4
|
||||
12 PC5
|
||||
13 PB0
|
||||
14 PB1
|
||||
15 PC6
|
||||
16 PC7
|
||||
17 PC8
|
||||
18 PC9
|
||||
19 GND
|
||||
20 PA1 Used in S76S as “RF FEM CPS”
|
||||
=== ======== ============================
|
||||
|
||||
.. _internally dedicated ports:
|
||||
|
||||
--------------------------
|
||||
Internally Dedicated Ports
|
||||
--------------------------
|
||||
|
||||
======== ======== ============= ==== =========================
|
||||
Pin name Pin Type I/O Structure Note Function
|
||||
======== ======== ============= ==== =========================
|
||||
PA15 I/O FT - INTERNAL SX1276 D5
|
||||
PB3 I/O FTf - INTERNAL SX1276 D4
|
||||
PB4 I/O FTf - INTERNAL SX1276 D3
|
||||
PB9 I/O FTf - INTERNAL SX1276 D2
|
||||
PB10 I/O FT - INTERNAL SX1276 Reset
|
||||
PB11 I/O FT - INTERNAL SX1276 D0
|
||||
PB12 I/O FT - INTERNAL SX1276 SPI nCS
|
||||
PB13 I/O FTf - INTERNAL SX1276 SPI2_SCK
|
||||
PB14 I/O FTf - INTERNAL SX1276 SPI2_MISO
|
||||
PB15 I/O FT - INTERNAL SX1276 SPI2_MOSI
|
||||
PC13 I/O FT - INTERNAL SX1276 D1
|
||||
======== ======== ============= ==== =========================
|
||||
|
||||
==========
|
||||
References
|
||||
==========
|
||||
|
||||
.. _Ronoth: https://ronoth.com/
|
||||
|
||||
.. _LoDev: https://ronoth.com/products/lodev-s76s-lora-soc-development-board?variant=31608819417220
|
||||
|
||||
.. _AcSIP: http://www.acsip.com.tw
|
||||
|
||||
.. _AcSIP S76S: http://www.acsip.com.tw/index.php?action=products-detail&fid1=11&fid2=29&fid3=27&id=79&lang=3
|
||||
|
||||
.. _AcSIP S76S Product Information Brief: http://www.acsip.com.tw/upload/product_attach/S76S_Brief_ver02.pdf
|
||||
|
||||
.. _CrowdSupply: https://www.crowdsupply.com/ronoth/lodev
|
||||
|
||||
.. _full LoDev design details: https://github.com/ronoth/LoDev
|
||||
|
||||
.. _Board design files: https://github.com/ronoth/LoDev
|
||||
|
||||
.. _posted on MBed by Steve Osborn: https://os.mbed.com/users/steve918/
|
||||
|
||||
.. _STMicro STM32L073RZ: STMicro STM32L073RZ
|
||||
|
||||
.. _Semtech SX1276: https://www.semtech.com/products/wireless-rf/lora-transceivers/sx1276
|
||||
|
||||
=======
|
||||
License
|
||||
=======
|
||||
|
||||
This document Copyright (c) 2021 Dean Weiten <dmw@weiten.com>
|
||||
|
||||
SPDX-License-Identifier: Apache-2.0
|
256
boards/arm/ronoth_lodev/doc/s76s.rst
Normal file
256
boards/arm/ronoth_lodev/doc/s76s.rst
Normal file
|
@ -0,0 +1,256 @@
|
|||
.. _acsip_s76s:
|
||||
|
||||
AcSIP S76S
|
||||
##########
|
||||
|
||||
========
|
||||
Overview
|
||||
========
|
||||
|
||||
The `AcSIP S76S`_ is an SiP from AcSIP_ containing an `STMicro STM32L073RZ`_ MCU,
|
||||
a `Semtech SX1276`_ LoRaWAN transceiver, and a +20 dBm power amplifier. Refer to the
|
||||
`AcSIP S76S Product Information Brief`_ for details. Further information is available
|
||||
from the `AcSIP Product Data Download`_ site (may need login). The parts are `available through TechShip`_.
|
||||
|
||||
Zephyr applications may use the **acsip_s76s** configuration to use this SiP.
|
||||
|
||||
.. figure:: img/acsip_s76s.png
|
||||
:width: 189px
|
||||
:align: center
|
||||
:height: 115px
|
||||
:alt: AcSIP S76S system on a chip, containing STMicro STM32L073RZ and Semtech SX1276
|
||||
|
||||
AcSIP S76S
|
||||
|
||||
================
|
||||
Device Resources
|
||||
================
|
||||
|
||||
The embedded `STMicro STM32L073RZ`_ has some GPIOs and SPI2 internally committed to the LoRaWAN
|
||||
transceiver operation. See `internally committed table`_ for a list of resources committed to this function.
|
||||
|
||||
As a result, some functions, ports and features of the `STMicro STM32L073RZ`_ are not available.
|
||||
See `unavailable table`_ for a list of resources not available due to a lack of pin-out.
|
||||
|
||||
Available pinned-out resources are listed in `this table`_. The actual `S76S pinout table`_ is below.
|
||||
|
||||
These tables are STM32L07x generic - some pinned-out resources may be unavailable due to limitations
|
||||
on the `STMicro STM32L073RZ`_ processor itself. Consult with the `STMicro STM32L073RZ`_ documentation.
|
||||
|
||||
===========
|
||||
Development
|
||||
===========
|
||||
|
||||
The Ronoth_ LoDev_ board is an open source development board, see its board description files.
|
||||
|
||||
=========
|
||||
Debugging
|
||||
=========
|
||||
|
||||
Programming and debugging uses the SWD port, as on any STM32 processor. An ST-LINK/V2 adapter
|
||||
may be used with the appropriate software (*st-utils* package on Linux).
|
||||
|
||||
.. _S76S pinout table:
|
||||
|
||||
==================================
|
||||
Pin Assignments and Available Pins
|
||||
==================================
|
||||
|
||||
-------------------
|
||||
S76S Pin Assignment
|
||||
-------------------
|
||||
|
||||
=== ================ === ================
|
||||
Pin Function Pin Function
|
||||
=== ================ === ================
|
||||
1 NC 32 GND
|
||||
2 GND 33 RF_ANT
|
||||
3 GND 34 GND
|
||||
4 PC1 35 GND
|
||||
5 PC2 36 PA1\_RF\_FEM_CPS
|
||||
6 PC3 37 GND
|
||||
7 NC 38 NC
|
||||
8 NC 39 GND
|
||||
9 NC 40 NC
|
||||
10 NC 41 GND
|
||||
11 NC 42 NC
|
||||
12 nReset 43 VDD
|
||||
13 PA0 44 VDD
|
||||
14 GND 45 PA8\_USART1\_CK
|
||||
15 GND 46 PA10\_USART1\_RX
|
||||
16 PA2\_TxD\_A 47 PA9\_USART1\_TX
|
||||
17 PA3\_RxD\_A 48 PA11\_USART1\_CTS
|
||||
18 PA4\_SPI1\_NSS 49 PA12\_USART1\_RTS
|
||||
19 PA5\_SPI1\_SCK 50 PA13_SWDIO
|
||||
20 PA6\_SPI1\_MISO 51 PA14_SWCLK
|
||||
21 PA7\_SPI1\_MOSI 52 PC10
|
||||
22 PC4 53 PC11
|
||||
23 PC5 54 PC12
|
||||
24 PB0\_IO\_INT1 55 PD2
|
||||
25 PB1\_IO\_INT2 56 PB5
|
||||
26 PC6 57 PB6_SCL
|
||||
27 PC7 58 PB7_SDA
|
||||
28 PC8 59 BOOT0
|
||||
29 PC9 60 PB8\_IO\_LED_FCT
|
||||
30 RXTX/RFMOD 61 GND
|
||||
31 GND 62 GND
|
||||
=== ================ === ================
|
||||
|
||||
.. _this table:
|
||||
|
||||
--------------------------------
|
||||
Ports Connected to External Pins
|
||||
--------------------------------
|
||||
|
||||
======== ======== ============= ==== ========================================================================================================== =======================================
|
||||
Pin name Pin Type I/O Structure Note Alternate functions Additional functions
|
||||
======== ======== ============= ==== ========================================================================================================== =======================================
|
||||
BOOT0 I - - -
|
||||
NRST I/O - - - -
|
||||
PA0 I/O TC - TIM2_CH1, TSC_G1_IO1, USART2_CTS, TIM2_ETR, USART4_TX, COMP1_OUT COMP1_INM, ADC_IN0, RTC_TAMP2/WKUP1
|
||||
PA1 I/O FT - EVENTOUT, LCD_SEG0, TIM2_CH2, TSC_G1_IO2, USART2_RTS/USART2_DE, TIM21_ETR, USART4_RX COMP1_INP, ADC_IN1
|
||||
PA2 I/O FT - TIM21_CH1, LCD_SEG1, TIM2_CH3, TSC_G1_IO3, USART2_TX, LPUART1_TX, COMP2_OUT COMP2_INM, ADC_IN2
|
||||
PA3 I/O FT - TIM21_CH2, LCD_SEG2, TIM2_CH4, TSC_G1_IO4, USART2_RX, LPUART1_RX COMP2_INP, ADC_IN3
|
||||
PA4 I/O TC (1) SPI1_NSS, TSC_G2_IO1, USART2_CK, TIM22_ETR COMP1_INM, COMP2_INM, ADC_IN4, DAC_OUT1
|
||||
PA5 I/O TC - SPI1_SCK, TIM2_ETR, TSC_G2_IO2, TIM2_CH1 COMP1_INM, COMP2_INM, ADC_IN5, DAC_OUT2
|
||||
PA6 I/O FT - SPI1_MISO, LCD_SEG3, TIM3_CH1, TSC_G2_IO3, LPUART1_CTS, TIM22_CH1, EVENTOUT, COMP1_OUT ADC_IN6
|
||||
PA7 I/O FT - SPI1_MOSI, LCD_SEG4, TIM3_CH2, TSC_G2_IO4, TIM22_CH2, EVENTOUT, COMP2_OUT ADC_IN7
|
||||
PA8 I/O FTf - MCO, LCD_COM0, USB_CRS_SYNC, EVENTOUT, USART1_CK, I2C3_SCL -
|
||||
PA9 I/O FTf - MCO, LCD_COM1, TSC_G4_IO1, USART1_TX, I2C1_SCL, I2C3_SMBA -
|
||||
PA10 I/O FTf - LCD_COM2, TSC_G4_IO2, USART1_RX, I2C1_SDA -
|
||||
PA11 I/O FT (2) SPI1_MISO, EVENTOUT, TSC_G4_IO3, USART1_CTS, COMP1_OUT USB_DM
|
||||
PA12 I/O FT (2) SPI1_MOSI, EVENTOUT, TSC_G4_IO4, USART1_RTS/USART1_DE, COMP2_OUT USB_DP
|
||||
PA13 I/O FT - SWDIO, USB_NOE, LPUART1_RX -
|
||||
PA14 I/O FT - SWCLK, USART2_TX, LPUART1_TX -
|
||||
PB0 I/O FT - EVENTOUT, LCD_SEG5, TIM3_CH3, TSC_G3_IO2 LCD_VLCD3, ADC_IN8, VREF_OUT
|
||||
PB1 I/O FT - LCD_SEG6, TIM3_CH4, TSC_G3_IO3, LPUART1_RTS/LPUART1_DE ADC_IN9, VREF_OUT
|
||||
PB5 I/O FT - SPI1_MOSI, LCD_SEG9, LPTIM1_IN1, I2C1_SMBA, TIM3_CH2/TIM22_CH2, USART1_CK, USART5_CK, USART5_RTS/USART5_DE COMP2_INP
|
||||
PB6 I/O FTf - USART1_TX, I2C1_SCL, LPTIM1_ETR, TSC_G5_IO3 COMP2_INP
|
||||
PB7 I/O FTf - USART1_RX, I2C1_SDA, LPTIM1_IN2, TSC_G5_IO4, USART4_CTS COMP2_INP, PVD_IN
|
||||
PB8 I/O FTf - LCD_SEG16, TSC_SYNC, I2C1_SCL -
|
||||
PC1 I/O FTf - LPTIM1_OUT, LCD_SEG19, EVENTOUT, TSC_G7_IO2, LPUART1_TX, I2C3_SDA ADC_IN11
|
||||
PC2 I/O FTf - LPTIM1_IN2, LCD_SEG20, SPI2_MISO/I2S2_MCK, TSC_G7_IO3 ADC_IN12
|
||||
PC3 I/O FT - LPTIM1_ETR, LCD_SEG21, SPI2_MOSI/I2S2_SD, TSC_G7_IO4 ADC_IN13
|
||||
PC4 I/O FT - EVENTOUT, LCD_SEG22, LPUART1_TX ADC_IN14
|
||||
PC5 I/O FT - LCD_SEG23, LPUART1_RX, TSC_G3_IO1 ADC_IN15
|
||||
PC6 I/O FT - TIM22_CH1, LCD_SEG24, TIM3_CH1, TSC_G8_IO1 -
|
||||
PC7 I/O FT - TIM22_CH2, LCD_SEG25, TIM3_CH2, TSC_G8_IO2 -
|
||||
PC8 I/O FT - TIM22_ETR, LCD_SEG26, TIM3_CH3, TSC_G8_IO3 -
|
||||
PC9 I/O FTf - TIM21_ETR, LCD_SEG27, USB_NOE/TIM3_CH4, TSC_G8_IO4, I2C3_SDA -
|
||||
PC10 I/O FT - LPUART1_TX, LCD_COM4/LCD_SEG2 8/LCD_SEG48, USART4_TX -
|
||||
PC11 I/O FT - LPUART1_RX, LCD_COM5/LCD_SEG2 9/LCD_SEG49, USART4_RX -
|
||||
PC12 I/O FT - LCD_COM6/LCD_SEG3 0/LCD_SEG50, USART5_TX, USART4_CK -
|
||||
PD2 I/O FT - LPUART1_RTS/LPUART1_DE, LCD_COM7/LCD_SEG3 1/LCD_SEG51, TIM3_ETR, USART5_RX -
|
||||
======== ======== ============= ==== ========================================================================================================== =======================================
|
||||
|
||||
Notes:
|
||||
|
||||
1. PA4 offers a reduced touch sensing sensitivity. It is thus recommended to use it as sampling capacitor I/O.
|
||||
2. These pins are powered by VDD_USB. For all characteristics that refer to VDD, VDD_USB must be used instead.
|
||||
|
||||
.. _internally committed table:
|
||||
|
||||
--------------------------
|
||||
Internally Dedicated Ports
|
||||
--------------------------
|
||||
|
||||
======== ======== ============= ==== =========================
|
||||
Pin name Pin Type I/O Structure Note Function
|
||||
======== ======== ============= ==== =========================
|
||||
PA15 I/O FT - INTERNAL SX1276 D5
|
||||
PB3 I/O FTf - INTERNAL SX1276 D4
|
||||
PB4 I/O FTf - INTERNAL SX1276 D3
|
||||
PB9 I/O FTf - INTERNAL SX1276 D2
|
||||
PB10 I/O FT - INTERNAL SX1276 Reset
|
||||
PB11 I/O FT - INTERNAL SX1276 D0
|
||||
PB12 I/O FT - INTERNAL SX1276 SPI nCS
|
||||
PB13 I/O FTf - INTERNAL SX1276 SPI2_SCK
|
||||
PB14 I/O FTf - INTERNAL SX1276 SPI2_MISO
|
||||
PB15 I/O FT - INTERNAL SX1276 SPI2_MOSI
|
||||
PC13 I/O FT - INTERNAL SX1276 D1
|
||||
======== ======== ============= ==== =========================
|
||||
|
||||
.. _unavailable table:
|
||||
|
||||
-----------------------------------
|
||||
Ports Not Available / Not Connected
|
||||
-----------------------------------
|
||||
|
||||
====================== ======== ============= ==== ================================================================= ====================
|
||||
Pin name Pin Type I/O Structure Note Alternate functions Additional functions
|
||||
====================== ======== ============= ==== ================================================================= ====================
|
||||
PC0 I/O FTf - LPTIM1_IN1, LCD_SEG18, EVENTOUT, TSC_G7_IO1, LPUART1_RX, I2C3_SCL ADC_IN10
|
||||
PC14- OSC32_IN (PC14) I/O FT - - OSC32_IN
|
||||
PC15- OSC32_OUT (PC15) I/O TC - - OSC32_OUT
|
||||
PD0 I/O FT - TIM21_CH1, SPI2_NSS/I2S2_WS -
|
||||
PD1 I/O FT - SPI2_SCK/I2S2_CK -
|
||||
PD3 I/O FT - USART2_CTS, LCD_SEG44, SPI2_MISO/I2S2_MCK -
|
||||
PD4 I/O FT - USART2_RTS/USART2_DE, SPI2_MOSI/I2S2_SD -
|
||||
PD5 I/O FT - USART2_TX -
|
||||
PD6 I/O FT - USART2_RX -
|
||||
PD7 I/O FT - USART2_CK, TIM21_CH2 -
|
||||
PD8 I/O FT - LPUART1_TX, LCD_SEG28 -
|
||||
PD9 I/O FT - LPUART1_RX, LCD_SEG29 -
|
||||
PD10 I/O FT - LCD_SEG30 -
|
||||
PD11 I/O FT - LPUART1_CTS, LCD_SEG31 -
|
||||
PD12 I/O FT - LPUART1_RTS/LPUART1_DE, LCD_SEG32 -
|
||||
PD13 I/O FT - LCD_SEG33 -
|
||||
PD14 I/O FT - LCD_SEG34 -
|
||||
PD15 I/O FT - USB_CRS_SYNC, LCD_SEG35 -
|
||||
PE0 I/O FT - LCD_SEG36, EVENTOUT -
|
||||
PE1 I/O FT - LCD_SEG37, EVENTOUT -
|
||||
PE2 I/O FT - LCD_SEG38, TIM3_ETR -
|
||||
PE3 I/O FT - TIM22_CH1, LCD_SEG39, TIM3_CH1 -
|
||||
PE4 I/O FT - TIM22_CH2, TIM3_CH2 -
|
||||
PE5 I/O FT - TIM21_CH1, TIM3_CH3 -
|
||||
PE6 I/O FT - TIM21_CH2, TIM3_CH4 RTC_TAMP3/WKUP3
|
||||
PE7 I/O FT - LCD_SEG45, USART5_CK/USART5_RTS/USART5_DE -
|
||||
PE8 I/O FT - LCD_SEG46, USART4_TX -
|
||||
PE9 I/O FT - TIM2_CH1, LCD_SEG47, TIM2_ETR, USART4_RX -
|
||||
PE10 I/O FT - TIM2_CH2, LCD_SEG40, USART5_TX -
|
||||
PE11 I/O FT - TIM2_CH3, USART5_RX LCD_VLCD1
|
||||
PE12 I/O FT - TIM2_CH4, SPI1_NSS LCD_VLCD3
|
||||
PE13 I/O FT - LCD_SEG41, SPI1_SCK -
|
||||
PE14 I/O FT - LCD_SEG42, SPI1_MISO -
|
||||
PE15 I/O FT - LCD_SEG43, SPI1_MOSI -
|
||||
PH0-OSC_IN (PH0) I/O TC - USB_CRS_SYNC OSC_IN
|
||||
PH1- OSC_OUT (PH1) I/O TC - - OSC_OUT
|
||||
PH9 I/O FT - - -
|
||||
PH10 I/O FT - - -
|
||||
VDD_USB S - - -
|
||||
VDDA S - - - -
|
||||
VLCD S - -
|
||||
VREF- S - - - -
|
||||
VREF+ S - - - -
|
||||
VSSA S - - - -
|
||||
====================== ======== ============= ==== ================================================================= ====================
|
||||
|
||||
==========
|
||||
References
|
||||
==========
|
||||
|
||||
.. _AcSIP: http://www.acsip.com.tw
|
||||
|
||||
.. _AcSIP S76S: http://www.acsip.com.tw/index.php?action=products-detail&fid1=11&fid2=29&fid3=27&id=79&lang=3
|
||||
|
||||
.. _AcSIP S76S Product Information Brief: http://www.acsip.com.tw/upload/product_attach/S76S_Brief_ver02.pdf
|
||||
|
||||
.. _AcSIP Product Data Download: http://www.acsip.com.tw/index.php?action=technical
|
||||
|
||||
.. _available through TechShip: https://techship.com/products/acsip-lorawan-module-s76s/
|
||||
|
||||
.. _Ronoth: https://ronoth.com/
|
||||
|
||||
.. _LoDev: https://ronoth.com/products/lodev-s76s-lora-soc-development-board?variant=31608819417220
|
||||
|
||||
.. _STMicro STM32L073RZ: STMicro STM32L073RZ
|
||||
|
||||
.. _Semtech SX1276: https://www.semtech.com/products/wireless-rf/lora-transceivers/sx1276
|
||||
|
||||
=======
|
||||
License
|
||||
=======
|
||||
|
||||
This document Copyright (c) 2021 Dean Weiten <dmw@weiten.com>
|
||||
|
||||
SPDX-License-Identifier: Apache-2.0
|
157
boards/arm/ronoth_lodev/ronoth_lodev.dts
Normal file
157
boards/arm/ronoth_lodev/ronoth_lodev.dts
Normal file
|
@ -0,0 +1,157 @@
|
|||
/*
|
||||
* Copyright (c) 2020/2021 Dean Weiten <dmw@weiten.com>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/*
|
||||
* Note: SPI2 and several GPIOs are not available in the S76S - these are connected
|
||||
* to the in-package Semtech SX1276 LoRa transceiver. See the documentation for details.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <acsip/s76s.dtsi>
|
||||
|
||||
/ {
|
||||
model = "Ronoth LoDev";
|
||||
compatible = "ronoth,lodev";
|
||||
|
||||
chosen {
|
||||
zephyr,console = &usart1;
|
||||
zephyr,shell-uart = &usart1;
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
/*
|
||||
* On Ronoth LoDev and perhaps other boards,
|
||||
* Red LED on PA5.
|
||||
*/
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
red_led_0: led_0 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
label = "User LD2";
|
||||
};
|
||||
};
|
||||
|
||||
/* Arbitrarily use PC9 as a button input. */
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 9 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
cn6_header: lodev_connector_1 {
|
||||
compatible = "lodev_cn6";
|
||||
#gpio-cells = <2>;
|
||||
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
||||
gpio-map-pass-thru = <0 0x3f>;
|
||||
gpio-map = /* <0 0 - - 0>, 3.3V */
|
||||
/* <1 0 - - 0>, GND */
|
||||
<2 0 &gpioc 1 0>, /* PC1 */
|
||||
<3 0 &gpioc 0 0>, /* PC0 */
|
||||
<4 0 &gpiob 8 0>, /* PB8 */
|
||||
/* <5 0 - - 0>, BOOT0 */
|
||||
<6 0 &gpiob 7 0>, /* PB7 */
|
||||
<7 0 &gpiob 6 0>, /* PB6 */
|
||||
<8 0 &gpiob 5 0>, /* PB5 */
|
||||
<9 0 &gpiod 2 0>, /* PD2 */
|
||||
<10 0 &gpioc 12 0>, /* PC12 */
|
||||
<11 0 &gpioc 11 0>, /* PC11 */
|
||||
<12 0 &gpioc 10 0>, /* PC10 */
|
||||
<13 0 &gpioa 14 0>, /* PA14 / SWCLK */
|
||||
<14 0 &gpioa 13 0>, /* PA13 / SWDIO */
|
||||
<15 0 &gpioa 12 0>, /* PA12 */
|
||||
<16 0 &gpioa 11 0>, /* PA11 */
|
||||
<17 0 &gpioa 9 0>, /* PA9 (UART1 Rx connected to USB) */
|
||||
<18 0 &gpioa 10 0>, /* PA10 (UART1 Tx connected to USB) */
|
||||
<19 0 &gpioa 8 0>; /* PA8 */
|
||||
};
|
||||
|
||||
cn7_header: lodev_connector_2 {
|
||||
compatible = "lodev_cn7";
|
||||
#gpio-cells = <2>;
|
||||
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
||||
gpio-map-pass-thru = <0 0x3f>;
|
||||
gpio-map = <0 0 &gpioc 2 0>, /* PC2 */
|
||||
<1 0 &gpioc 3 0>, /* PC3 */
|
||||
/* <2 0 - - 0>, nRESET */
|
||||
<3 0 &gpioa 0 0>, /* PA0 */
|
||||
<4 0 &gpioa 2 0>, /* PA2 */
|
||||
<4 0 &gpioa 3 0>, /* PA3 */
|
||||
<6 0 &gpioa 4 0>, /* PA4 */
|
||||
<7 0 &gpioa 5 0>, /* PA5 - connected to red LED1 */
|
||||
<8 0 &gpioa 6 0>, /* PA6 */
|
||||
<9 0 &gpioa 7 0>, /* PA7 */
|
||||
<10 0 &gpioc 4 0>, /* PC4 */
|
||||
<11 0 &gpioc 5 0>, /* PC5 */
|
||||
<12 0 &gpiob 0 0>, /* PB0 */
|
||||
<13 0 &gpiob 1 0>, /* PB1 */
|
||||
<14 0 &gpioc 6 0>, /* PC6 */
|
||||
<15 0 &gpioc 7 0>, /* PC7 */
|
||||
<16 0 &gpioc 8 0>, /* PC8 */
|
||||
<17 0 &gpioc 9 0>, /* PC9 */
|
||||
/* <18 0 - - 0>, GND */
|
||||
<19 0 &gpioa 1 0>; /* PA1 (also used in S76S as "RF FEM CPS" */
|
||||
};
|
||||
|
||||
aliases {
|
||||
led0 = &red_led_0;
|
||||
sw0 = &user_button;
|
||||
eeprom-0 = &eeprom;
|
||||
lora0 = &lora;
|
||||
};
|
||||
};
|
||||
|
||||
&usart1 {
|
||||
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
||||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usart2 {
|
||||
pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa3>;
|
||||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
|
||||
clock-frequency = <I2C_BITRATE_FAST>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi1 {
|
||||
pinctrl-0 = <&spi1_nss_pa4 &spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pa7>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
&iwdg {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&adc1 {
|
||||
pinctrl-0 = <&adc_in0_pa0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dac1 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&dac_out1_pa4>;
|
||||
};
|
||||
|
||||
&rtc {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rng {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&eeprom {
|
||||
status = "okay";
|
||||
};
|
17
boards/arm/ronoth_lodev/ronoth_lodev.yaml
Normal file
17
boards/arm/ronoth_lodev/ronoth_lodev.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
identifier: ronoth_lodev
|
||||
name: Ronoth LoDev
|
||||
type: mcu
|
||||
arch: arm
|
||||
toolchain:
|
||||
- zephyr
|
||||
- gnuarmemb
|
||||
- xtools
|
||||
ram: 20
|
||||
flash: 192
|
||||
supported:
|
||||
- gpio
|
||||
- i2c
|
||||
- spi
|
||||
- watchdog
|
||||
- adc
|
||||
- dac
|
33
boards/arm/ronoth_lodev/ronoth_lodev_defconfig
Normal file
33
boards/arm/ronoth_lodev/ronoth_lodev_defconfig
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Ronoth LoDev board configuration
|
||||
# Copyright (c) 2021 Dean Weiten <dmw@weiten.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Zephyr Kernel Configuration
|
||||
CONFIG_SOC_SERIES_STM32L0X=y
|
||||
|
||||
# Platform Configuration
|
||||
CONFIG_SOC_STM32L073XX=y
|
||||
|
||||
# General Kernel Options
|
||||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=16000000
|
||||
|
||||
# Enable MPU
|
||||
CONFIG_ARM_MPU=y
|
||||
|
||||
# Serial Drivers
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
# enable console
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
|
||||
# Pinmux Driver
|
||||
CONFIG_PINMUX=y
|
||||
|
||||
# GPIO Controller
|
||||
CONFIG_GPIO=y
|
||||
|
||||
# Clock configuration
|
||||
CONFIG_CLOCK_CONTROL=y
|
||||
# SYSCLK selection
|
||||
CONFIG_CLOCK_STM32_SYSCLK_SRC_HSI=y
|
Loading…
Reference in a new issue