Skip to content

Clock rework & AST2600 CLK + FMC Support#85

Draft
sinuscosinustan wants to merge 9 commits intomainfrom
ts-ast2600-clk
Draft

Clock rework & AST2600 CLK + FMC Support#85
sinuscosinustan wants to merge 9 commits intomainfrom
ts-ast2600-clk

Conversation

@sinuscosinustan
Copy link
Copy Markdown
Collaborator

The previous AST2500 clock implementation was actually for the AST2400 but somehow worked (lol).

This PR:

  • Moves the actual AST2400 clock implementation to the correct compatible
  • Adds the correct AST2500 clock implementation
  • Adds support for the AST2600 clock and FMC (FMC still WIP)

@sinuscosinustan sinuscosinustan force-pushed the ts-ast2600-clk branch 2 times, most recently from cec1eef to cd7e933 Compare March 5, 2026 18:19
Signed-off-by: Tan Siewert <tan@siewert.io>
Signed-off-by: Tan Siewert <tan@siewert.io>
In order to support multiple platforms using different code paths,
the functions must be moved into SoC-specific ones, and the generic
functions will call the defined functions in `clk_ops`.

Signed-off-by: Tan Siewert <tan@siewert.io>
The code was wrongfully marked as compatible for the AST2500, but it
actually is for the AST2400.
Either way, it seems that the AST2400 code worked (?) on the AST2500, at
least to a specific grade.

Rename the functions and the compatible to AST2400. The code for the
AST2500 will be re-added in a later commit.

Signed-off-by: Tan Siewert <tan@siewert.io>
The original implementation used for the AST2500 was the implementation
for the AST2400 instead, and the compatibles were fixed.

Re-add the support for the AST2500 SoC with the correct implementation
for the clock.

Signed-off-by: Tan Siewert <tan@siewert.io>
Most of the commands like writing to the FMC require the clock driver.

Signed-off-by: Tan Siewert <tan@siewert.io>
Reformat after all the changes to align with the new editorconfig.

Signed-off-by: Tan Siewert <tan@siewert.io>
Other than the clk driver, reformat the file with the new editorconfig
before going through.

Signed-off-by: Tan Siewert <tan@siewert.io>
@sinuscosinustan sinuscosinustan force-pushed the ts-ast2600-clk branch 2 times, most recently from 71fb15e to 0d386e2 Compare March 30, 2026 16:06
In order to support multiple platforms using different code paths,
the functions must be moved into SoC-specific ones, and the generic
functions will call the defined functions in `wdt_ops`.

Signed-off-by: Tan Siewert <tan@siewert.io>
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.

1 participant