Skip to content

drivers: ecap: enable support for am13e230 ecap driver - #94

Merged
natto1784 merged 10 commits into
TexasInstruments:v4.4.0-ti-nextfrom
adityachopra29:downstream-am13-ecap
Oct 21, 2026
Merged

natto1784 merged 10 commits into
TexasInstruments:v4.4.0-ti-nextfrom
adityachopra29:downstream-am13-ecap

Conversation

@adityachopra29

@adityachopra29 adityachopra29 commented Oct 14, 2026 •

Copy link
Copy Markdown

Enables eCAP capture and APWM modes for am13e230

Test logs :

@adityachopra29
adityachopra29 force-pushed the downstream-am13-ecap branch 2 times, most recently from aea253e to 0332e09 Compare October 18, 2026 23:06
@Aman-Lachhiramka-ti

Copy link
Copy Markdown

/agentic_describe

@adityachopra29
adityachopra29 force-pushed the downstream-am13-ecap branch 4 times, most recently from ac39f62 to 9e41280 Compare October 19, 2026 12:47
…upport

PR: 120782

Document mux-states routing for AM13E crossbar capture/APWM and include
mux-consumer.yaml.

Signed-off-by: Aditya Chopra <a-chopra1@ti.com>
PR: 120782

Disabled placeholders; boards enable and wire them.

Signed-off-by: Aditya Chopra <a-chopra1@ti.com>
…apt...

PR: 120782

Add ECCTL0, mux-states routing, and MSPM0 clock_control support.

Signed-off-by: Aditya Chopra <a-chopra1@ti.com>
…trl...

PR: 120782

APWM on PB3 via OUTPUTXBAR8, capture on PB4 via INPUTXBAR1.

Signed-off-by: Aditya Chopra <a-chopra1@ti.com>
PR: 120782

Allow eCAP nodes to consume SYSCTL PWREN via ti,pwren.

Signed-off-by: Aditya Chopra <a-chopra1@ti.com>
PR: 120782

Attach SYSCTL PWREN specifiers to ecap0/ecap1.

Signed-off-by: Aditya Chopra <a-chopra1@ti.com>
PR: 120782

Power eCAP from driver init using ti,pwren instead of a SoC-level
SYSCTL poke.

Signed-off-by: Aditya Chopra <a-chopra1@ti.com>
…od/...

PR: 120782

APWM uses CAP1/CAP2 as the active period and compare registers; CAP3/CAP4
are only shadows. Writing shadows alone left CAP1 at reset 0, so no
waveform appeared on the APWM pin (e.g. PB3 via OUTPUTXBAR).

Write CAP1/CAP2 (and keep CAP3/CAP4 in sync), stop/start the counter
around the update, and expose the missing register fields in the overlay.

Signed-off-by: Aditya Chopra <a-chopra1@ti.com>
…rlay

PR: 120782

Wire eCAP0 APWM (PB3) to eCAP1 capture (PB4) for the PWM loopback
test. Connect PB3 to PB4 on the board.

Signed-off-by: Aditya Chopra <a-chopra1@ti.com>
PR: 120782

test_capture_busy (kernel) passed while test_capture_timeout
(ZTEST_USER) rebooted — AM13 MPU/userspace support is incomplete.
Disable CONFIG_TEST_USERSPACE for this board like other overlays.

Also fix eCAP ECCLR writes to assign instead of RMW (upper half is
ECFRC), and correct the SRAM3_CAHB MPU region size typo.

Signed-off-by: Aditya Chopra <a-chopra1@ti.com>
@natto1784
natto1784 merged commit 7960608 into TexasInstruments:v4.4.0-ti-next Oct 21, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants