Skip to content

boards/risc-v: GPIO support on esp32p4-tab5 - #19976

Merged
xiaoxiang781216 merged 2 commits into
apache:masterfrom
fdcavalcanti:feature/tab5-gpio
Aug 26, 2026
Merged

boards/risc-v: GPIO support on esp32p4-tab5#19976
xiaoxiang781216 merged 2 commits into
apache:masterfrom
fdcavalcanti:feature/tab5-gpio

Conversation

@fdcavalcanti

Copy link
Copy Markdown
Contributor

Summary

  • Documentation: add gpio defconfig to esp32p4-tab5 board

Adds documentation for the GPIO defconfig on esp32p4-tab5 board.

  • boards/risc-v: GPIO support on esp32p4-tab5

Adds GPIO defconfig on M5Stack Tab5. The example has one GPIO output
and one GPIO interrupt.

This PR adds GPIO support for the M5Stack Tab5 board.
The GPIOs available on the M5-Bus on the backside of the device are defined for easier reference.

Impact

Impact on user: New defconfig added for GPIO control.

Impact on build: No.

Impact on hardware: Only affects esp32p4-tab5 board.

Impact on documentation: Adds documentation for the new defconfig.

Impact on security: No.

Impact on compatibility: No.

Testing

Building

  • ./tools/configure.sh -S esp32p4-tab5:gpio
  • make and flash

Running

GPIO output test:

nsh> gpio -o 1 /dev/gpio0
Driver: /dev/gpio0
  Output pin:    Value=0
  Writing:       Value=1
  Verify:        Value=1
nsh> gpio -o 0 /dev/gpio0
Driver: /dev/gpio0
  Output pin:    Value=1
  Writing:       Value=0
  Verify:        Value=0
nsh> 

GPIO interrupt test:

nsh> gpio -w 1 /dev/gpio1
Driver: /dev/gpio1
  Interrupt pin: Value=0
  Verify:        Value=0
nsh> 

Results

GPIO operates as expected both output and interrupt modes (visual/manual inspection).

Adds GPIO defconfig on M5Stack Tab5. The example has one GPIO output
and one GPIO interrupt.

Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
Adds documentation for the GPIO defconfig on esp32p4-tab5 board.

Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
@github-actions github-actions Bot added Area: Documentation Improvements or additions to documentation Size: L The size of the change in this PR is large Board: risc-v labels Aug 26, 2026
@fdcavalcanti fdcavalcanti changed the title Feature/tab5 gpio boards/risc-v: GPIO support on esp32p4-tab5 Aug 26, 2026
@github-actions

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@acassis

acassis commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

@fdcavalcanti have you tried ESP32-P4 running on Protected Mode?

There is a guy facing issues to get it working:

image

@fdcavalcanti

Copy link
Copy Markdown
Contributor Author

@fdcavalcanti have you tried ESP32-P4 running on Protected Mode?

There is a guy facing issues to get it working:
image

No I have not

@acassis

acassis commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

@fdcavalcanti have you tried ESP32-P4 running on Protected Mode?
There is a guy facing issues to get it working:
image

No I have not

Ok, I will buy an ESP32-P4 board on Aliexpress to try to help. Thank you!

@xiaoxiang781216
xiaoxiang781216 merged commit 6f69891 into apache:master Aug 26, 2026
30 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Documentation Improvements or additions to documentation Board: risc-v Size: L The size of the change in this PR is large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants