Skip to content

Align ADSP SC5XX gptimer DTS and driver with Linux - #106

Open
jiez wants to merge 1 commit into
adi-u-boot-2025.10.yfrom
adsp-sc5xx-timer
Open

Align ADSP SC5XX gptimer DTS and driver with Linux#106
jiez wants to merge 1 commit into
adi-u-boot-2025.10.yfrom
adsp-sc5xx-timer

Conversation

@jiez

@jiez jiez commented Jun 24, 2026

Copy link
Copy Markdown

Replace the flat adi,sc5xx-gptimer node (two reg entries pointing directly at group and per-timer registers) with the hierarchical adi,sc5xx-gptimers binding used by Linux: a parent gptimers node with a single reg covering the full block, and a gptimer@0 child identified by adi,offset and adi,is-clocksource.

Update the timer driver to probe the parent node, iterate child ofnodes to find the clocksource, and compute register addresses from the parent base plus adi,offset. Drop the struct-based register access in favour of explicit offset defines matching the Linux driver.

Replace the flat adi,sc5xx-gptimer node (two reg entries pointing
directly at group and per-timer registers) with the hierarchical
adi,sc5xx-gptimers binding used by Linux: a parent gptimers node
with a single reg covering the full block, and a gptimer@0 child
identified by adi,offset and adi,is-clocksource.

Update the timer driver to probe the parent node, iterate child
ofnodes to find the clocksource, and compute register addresses
from the parent base plus adi,offset. Drop the struct-based
register access in favour of explicit offset defines matching the
Linux driver.

Signed-off-by: Jie Zhang <jie.zhang@analog.com>
@jiez
jiez requested review from a team June 24, 2026 15:58
@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