Skip to content

Align ADSP SC5XX gpio DTS and driver with Linux - #104

Open
jiez wants to merge 2 commits into
adi-u-boot-2025.10.yfrom
adsp-sc5xx-gpio-port
Open

Align ADSP SC5XX gpio DTS and driver with Linux#104
jiez wants to merge 2 commits into
adi-u-boot-2025.10.yfrom
adsp-sc5xx-gpio-port

Conversation

@jiez

@jiez jiez commented Jun 24, 2026

Copy link
Copy Markdown

This PR is for aligning ADSP SC5XX gpio DTS and driver with Linux. It does two things:

  1. Replace the single gpio0 node (covering all ports via stride calculation) with individual per-port nodes gpa–gpi, matching the Linux DTS binding.

  2. Replace the ADI-specific adi,ngpios with the standard ngpios property

jiez added 2 commits June 23, 2026 22:16
Replace the single gpio0 node (covering all ports via stride calculation)
with individual per-port nodes gpa–gpi, matching the Linux DTS binding.

Each port node has its own reg covering one 0x80-byte block, adi,bank-name
for the U-Boot gpio command label, and adi,ngpios for port width. The
gpio-adi-adsp driver is simplified accordingly: pin is now a local 0–15
index, no port calculation or stride needed, and bank_name ("A"–"I") is
read directly from the adi,bank-name property. Use dev_read_addr_ptr()
rather than dev_remap_addr() since pinctrl and GPIO share overlapping
physical register ranges.

All gpio-hog consumers are updated to reference the correct per-port node
with local pin indices.

Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Replace the ADI-specific adi,ngpios with the standard ngpios property,
aligning U-Boot DTS with Linux DTS for future CONFIG_OF_UPSTREAM adoption.

Signed-off-by: Jie Zhang <jie.zhang@analog.com>
@jiez
jiez requested review from a team June 24, 2026 14:33
@jiez jiez self-assigned this Jun 24, 2026
@jiez jiez added this to ADSP Jun 24, 2026
@pamolloy pamolloy moved this to In Development in ADSP Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Development

Development

Successfully merging this pull request may close these issues.

2 participants