Skip to content

Commit e4679e4

Browse files
lfeltenkartben
authored andcommitted
doc: lilygo: adopt zephyr:board-supported-hw directive
Replace manually authored hardware features table with the new Zephyr board supported hardware directive which automatically generates an up-to-date table based on the boards' Devicetree. Removed some typos. Co-authored-by: Benjamin Cabé <[email protected]> Signed-off-by: Lothar Felten <[email protected]>
1 parent 18b0ac9 commit e4679e4

File tree

4 files changed

+43
-142
lines changed

4 files changed

+43
-142
lines changed

boards/lilygo/ttgo_lora32/doc/index.rst

+12-36
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,13 @@ It's available in two versions supporting two different frequency ranges and fea
1515

1616
Some of the ESP32 I/O pins are accessible on the board's pin headers.
1717

18-
Functional Description
19-
**********************
20-
21-
The following table below describes the key components, interfaces, and controls
22-
of the Lilygo TTGO LoRa32 board.
23-
24-
.. _SX127x: https://www.semtech.com/products/wireless-rf/lora-connect/sx1276#documentation
25-
.. _ESP32-PICO-D4: https://www.espressif.com/sites/default/files/documentation/esp32-pico-d4_datasheet_en.pdf
26-
.. _SSD1306: https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf
27-
28-
+------------------+-------------------------------------------------------------------------+
29-
| Key Component | Description |
30-
+==================+=========================================================================+
31-
| ESP32-PICO-D4 | This `ESP32-PICO-D4`_ module provides complete Wi-Fi and Bluetooth |
32-
| | functionalities and integrates a 4-MB SPI flash. |
33-
+------------------+-------------------------------------------------------------------------+
34-
| Diagnostic LED | One user LED connected to the GPIO pin. |
35-
+------------------+-------------------------------------------------------------------------+
36-
| USB Port | USB interface. Power supply for the board as well as the |
37-
| | serial communication interface between a computer and the board. |
38-
| | Micro-USB type connector. |
39-
+------------------+-------------------------------------------------------------------------+
40-
| Power Switch | Sliding power switch. |
41-
+------------------+-------------------------------------------------------------------------+
42-
| OLED display | Built-in OLED display \(`SSD1306`_, 0.96", 128x64 px\) controlled |
43-
| | by I2C interface |
44-
+------------------+-------------------------------------------------------------------------+
45-
| SX1276/SX1278 | LoRa radio frontend chip, connected via SPI. |
46-
| | Use SX1276 for 433MHz and SX1276 for 868/915/923MHz. |
47-
+------------------+-------------------------------------------------------------------------+
48-
| TF card slot | TF card slot wired to the SDHC interface of the MCU. |
49-
+------------------+-------------------------------------------------------------------------+
18+
Hardware
19+
********
20+
21+
Supported Features
22+
==================
5023

24+
.. zephyr:board-supported-hw::
5125
5226
Start Application Development
5327
*****************************
@@ -61,7 +35,7 @@ System requirements
6135
Prerequisites
6236
=============
6337

64-
Espressif HAL requires WiFi and Bluetooth binary blobs in order work. Run the command
38+
Espressif HAL requires WiFi and Bluetooth binary blobs in order to work. Run the command
6539
below to retrieve those files.
6640

6741
.. code-block:: console
@@ -78,7 +52,7 @@ Building & Flashing
7852
Simple boot
7953
===========
8054

81-
The board could be loaded using the single binary image, without 2nd stage bootloader.
55+
The board could be loaded using a single binary image, without 2nd stage bootloader.
8256
It is the default option when building the application without additional configuration.
8357

8458
.. note::
@@ -108,7 +82,7 @@ There are two options to be used when building an application:
10882
Sysbuild
10983
========
11084

111-
The sysbuild makes possible to build and flash all necessary images needed to
85+
The sysbuild makes it possible to build and flash all necessary images needed to
11286
bootstrap the board with the ESP32-PICO-D4 SoC.
11387

11488
To build the sample application using sysbuild use the command:
@@ -193,7 +167,7 @@ message in the monitor:
193167
.. code-block:: console
194168
195169
***** Booting Zephyr OS vx.x.x-xxx-gxxxxxxxxxxxx *****
196-
Hello World! ttgo_lora32
170+
Hello World! ttgo_lora32/esp32/procpu
197171
198172
Code samples
199173
============
@@ -218,3 +192,5 @@ Related Documents
218192
- `ESP32-PICO-D4 Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-pico-d4_datasheet_en.pdf>`_ (PDF)
219193
- `ESP32 Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf>`_ (PDF)
220194
- `ESP32 Hardware Reference <https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/index.html>`_
195+
- `SX127x Datasheet <https://www.semtech.com/products/wireless-rf/lora-connect/sx1276#documentation>`_
196+
- `SSD1306 Datasheet <https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf>`_ (PDF)

boards/lilygo/ttgo_t7v1_5/doc/index.rst

+12-33
Original file line numberDiff line numberDiff line change
@@ -13,46 +13,25 @@ It features the following integrated components:
1313
- JST GH 2-pin battery connector
1414
- LED
1515

16-
Functional Description
17-
**********************
16+
Hardware
17+
********
18+
1819
This board is based on the ESP32-WROVER-E module with 4MB of flash (there
1920
are models 16MB as well), WiFi and BLE support. It has a Micro-USB port for
2021
programming and debugging, integrated battery charging and an on-board antenna.
2122

22-
Connections and IOs
23-
===================
23+
Supported Features
24+
==================
2425

25-
The ``ttgo_t7v1_5/esp32/procpu`` board target supports the following hardware features:
26-
27-
+-----------+------------+------------------+
28-
| Interface | Controller | Driver/Component |
29-
+===========+============+==================+
30-
| CPU | ESP32 | arch/xtensa |
31-
+-----------+------------+------------------+
32-
| GPIO | on-chip | gpio_esp32 |
33-
+-----------+------------+------------------+
34-
| UART | on-chip | uart_esp32 |
35-
+-----------+------------+------------------+
36-
| I2C | on-chip | i2c_esp32 |
37-
+-----------+------------+------------------+
38-
| SPI | on-chip | spi_esp32_spim |
39-
+-----------+------------+------------------+
40-
| LoRa | SX1276 | lora_sx127x |
41-
+-----------+------------+------------------+
42-
| WiFi | on-chip | wifi_esp32 |
43-
+-----------+------------+------------------+
44-
| BLE | on-chip | bluetooth_esp32 |
45-
+-----------+------------+------------------+
46-
| Flash | on-chip | flash_esp32 |
47-
+-----------+------------+------------------+
26+
.. zephyr:board-supported-hw::
4827
4928
System requirements
5029
*******************
5130

5231
Prerequisites
5332
=============
5433

55-
Espressif HAL requires WiFi and Bluetooth binary blobs in order work. Run the command
34+
Espressif HAL requires WiFi and Bluetooth binary blobs in order to work. Run the command
5635
below to retrieve those files.
5736

5837
.. code-block:: console
@@ -69,7 +48,7 @@ Building & Flashing
6948
Simple boot
7049
===========
7150

72-
The board could be loaded using the single binary image, without 2nd stage bootloader.
51+
The board could be loaded using a single binary image, without 2nd stage bootloader.
7352
It is the default option when building the application without additional configuration.
7453

7554
.. note::
@@ -80,7 +59,7 @@ MCUboot bootloader
8059
==================
8160

8261
User may choose to use MCUboot bootloader instead. In that case the bootloader
83-
must be build (and flash) at least once.
62+
must be built (and flashed) at least once.
8463

8564
There are two options to be used when building an application:
8665

@@ -92,14 +71,14 @@ There are two options to be used when building an application:
9271
User can select the MCUboot bootloader by adding the following line
9372
to the board default configuration file.
9473

95-
.. code:: cfg
74+
.. code-block:: cfg
9675
9776
CONFIG_BOOTLOADER_MCUBOOT=y
9877
9978
Sysbuild
10079
========
10180

102-
The sysbuild makes possible to build and flash all necessary images needed to
81+
The sysbuild makes it possible to build and flash all necessary images needed to
10382
bootstrap the board with the ESP32 SoC.
10483

10584
To build the sample application using sysbuild use the command:
@@ -142,7 +121,7 @@ Manual build
142121
============
143122

144123
During the development cycle, it is intended to build & flash as quickly possible.
145-
For that reason, images can be build one at a time using traditional build.
124+
For that reason, images can be built one at a time using traditional build.
146125

147126
The instructions following are relevant for both manual build and sysbuild.
148127
The only difference is the structure of the build directory.

boards/lilygo/ttgo_t8c3/doc/index.rst

+9-30
Original file line numberDiff line numberDiff line change
@@ -14,39 +14,18 @@ It features the following integrated components:
1414
- JST GH 2-pin battery connector
1515
- LED
1616

17-
Functional Description
18-
**********************
17+
Hardware
18+
********
19+
1920
This board is based on the ESP32-C3 with 4MB of flash, WiFi and BLE support. It
2021
has an USB-C port for programming and debugging, integrated battery charging
2122
and an on-board antenna. The fitted U.FL external antenna connector can be
2223
enabled by moving a 0-ohm resistor.
2324

24-
Connections and IOs
25-
===================
25+
Supported Features
26+
==================
2627

27-
The ``ttgo_t8c3`` board target supports the following hardware features:
28-
29-
+-----------+------------+------------------+
30-
| Interface | Controller | Driver/Component |
31-
+===========+============+==================+
32-
| PMP | on-chip | arch/riscv |
33-
+-----------+------------+------------------+
34-
| INTMTRX | on-chip | intc_esp32c3 |
35-
+-----------+------------+------------------+
36-
| PINMUX | on-chip | pinctrl_esp32 |
37-
+-----------+------------+------------------+
38-
| USB UART | on-chip | serial_esp32_usb |
39-
+-----------+------------+------------------+
40-
| GPIO | on-chip | gpio_esp32 |
41-
+-----------+------------+------------------+
42-
| UART | on-chip | uart_esp32 |
43-
+-----------+------------+------------------+
44-
| I2C | on-chip | i2c_esp32 |
45-
+-----------+------------+------------------+
46-
| SPI | on-chip | spi_esp32_spim |
47-
+-----------+------------+------------------+
48-
| TWAI | on-chip | can_esp32_twai |
49-
+-----------+------------+------------------+
28+
.. zephyr:board-supported-hw::
5029
5130
Start Application Development
5231
*****************************
@@ -60,7 +39,7 @@ System requirements
6039
Prerequisites
6140
=============
6241

63-
Espressif HAL requires WiFi and Bluetooth binary blobs in order work. Run the command
42+
Espressif HAL requires WiFi and Bluetooth binary blobs in order to work. Run the command
6443
below to retrieve those files.
6544

6645
.. code-block:: console
@@ -77,7 +56,7 @@ Building & Flashing
7756
Simple boot
7857
===========
7958

80-
The board could be loaded using the single binary image, without 2nd stage bootloader.
59+
The board could be loaded using a single binary image, without 2nd stage bootloader.
8160
It is the default option when building the application without additional configuration.
8261

8362
.. note::
@@ -107,7 +86,7 @@ There are two options to be used when building an application:
10786
Sysbuild
10887
========
10988

110-
The sysbuild makes possible to build and flash all necessary images needed to
89+
The sysbuild makes it possible to build and flash all necessary images needed to
11190
bootstrap the board with the ESP32-C3 SoC.
11291

11392
To build the sample application using sysbuild use the command:

boards/lilygo/ttgo_t8s3/doc/index.rst

+10-43
Original file line numberDiff line numberDiff line change
@@ -15,51 +15,18 @@ It features the following integrated components:
1515
- JST SH 1.0mm 4-pin UART connector
1616
- SD card slot
1717

18-
Functional Description
19-
**********************
18+
Hardware
19+
********
20+
2021
This board is based on the ESP32-S3 with 16MB of flash, WiFi and BLE support. It
2122
has an USB-C port for programming and debugging, integrated battery charging
2223
and an on-board antenna. The fitted U.FL external antenna connector can be
2324
enabled by moving a 0-ohm resistor.
2425

25-
Connections and IOs
26-
===================
27-
28-
The ``ttgo_t8s3`` board target supports the following hardware features:
29-
30-
+------------+------------+-------------------------------------+
31-
| Interface | Controller | Driver/Component |
32-
+============+============+=====================================+
33-
| UART | on-chip | serial port |
34-
+------------+------------+-------------------------------------+
35-
| GPIO | on-chip | gpio |
36-
+------------+------------+-------------------------------------+
37-
| PINMUX | on-chip | pinmux |
38-
+------------+------------+-------------------------------------+
39-
| USB-JTAG | on-chip | hardware interface |
40-
+------------+------------+-------------------------------------+
41-
| SPI Master | on-chip | spi, sdmmc |
42-
+------------+------------+-------------------------------------+
43-
| TWAI/CAN | on-chip | can |
44-
+------------+------------+-------------------------------------+
45-
| ADC | on-chip | adc |
46-
+------------+------------+-------------------------------------+
47-
| Timers | on-chip | counter |
48-
+------------+------------+-------------------------------------+
49-
| Watchdog | on-chip | watchdog |
50-
+------------+------------+-------------------------------------+
51-
| TRNG | on-chip | entropy |
52-
+------------+------------+-------------------------------------+
53-
| LEDC | on-chip | pwm |
54-
+------------+------------+-------------------------------------+
55-
| MCPWM | on-chip | pwm |
56-
+------------+------------+-------------------------------------+
57-
| PCNT | on-chip | qdec |
58-
+------------+------------+-------------------------------------+
59-
| GDMA | on-chip | dma |
60-
+------------+------------+-------------------------------------+
61-
| USB-CDC | on-chip | serial |
62-
+------------+------------+-------------------------------------+
26+
Supported Features
27+
==================
28+
29+
.. zephyr:board-supported-hw::
6330
6431
Start Application Development
6532
*****************************
@@ -73,7 +40,7 @@ System requirements
7340
Prerequisites
7441
=============
7542

76-
Espressif HAL requires WiFi and Bluetooth binary blobs in order work. Run the command
43+
Espressif HAL requires WiFi and Bluetooth binary blobs in order to work. Run the command
7744
below to retrieve those files.
7845

7946
.. code-block:: console
@@ -90,7 +57,7 @@ Building & Flashing
9057
Simple boot
9158
===========
9259

93-
The board could be loaded using the single binary image, without 2nd stage bootloader.
60+
The board could be loaded using a single binary image, without 2nd stage bootloader.
9461
It is the default option when building the application without additional configuration.
9562

9663
.. note::
@@ -120,7 +87,7 @@ There are two options to be used when building an application:
12087
Sysbuild
12188
========
12289

123-
The sysbuild makes possible to build and flash all necessary images needed to
90+
The sysbuild makes it possible to build and flash all necessary images needed to
12491
bootstrap the board with the ESP32 SoC.
12592

12693
To build the sample application using sysbuild use the command:

0 commit comments

Comments
 (0)