Skip to content

Conversation

@aweissel
Copy link

Add support for Synaptics SR100 SoCs, the Astra Machina Micro (RDK) board, Synaptics-specific drivers.
Add clock control support to a few Synopsys Designware drivers.

@github-actions
Copy link

Hello @aweissel, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

Copy link
Contributor

@nordicjm nordicjm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issues have been pointed out at their first notice, other parts have not been go through whole PR and fix all instances of issues before requesting review

source "drivers/clock_control/Kconfig.xec"
# zephyr-keep-sorted-stop

source "drivers/clock_control/Kconfig.syna"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't add files purposely outside the ordered list

const struct clock_control_syna_config *config = dev->config;
uint32_t parent_rate = PLL0_RATE;
uint32_t offset = syna_get_cgl_offset(config, id);
uint32_t divider = 5, div3_switch = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not compliant with coding standards, one variable declaration per line


value = syna_clk_read(config, offset);
value &= ~(0x1f << 2);
value |= (div3_switch << 3); /* div3 switch */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is a comment needed saying the variable, which is clearly visible in the math in the line itself?

sel_val = value >> 4; /* read sel value */
}
switch (sel_val) {
case 1:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

magic numbers

};

ns16550_uart0: uart@50317000 {
compatible = "ns16550","snps,dw-apb-uart";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing space after , (the one between both compatibles, not inside the compatible) @kylebonnici

Copy link
Contributor

@kylebonnici kylebonnici Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why the annotation did not show but the linter did flag this see https://github.com/zephyrproject-rtos/zephyr/actions/runs/19739668990/job/56761834470

default 128

config SYS_CLOCK_HW_CYCLES_PER_SEC
default 400000000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to come from DTS using dt functions

# SPDX-License-Identifier: Apache-2.0

config BOARD_SR100_RDK
bool
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
bool

default 1000
range 1 $(UINT32_MAX)
help
Sets the initial timeout value for WDT in ms if enabled at boot.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong indent

compatible = "syna,watchdog";
reg = <0x50350038 0x4>,
<0x58040000 0x1000>,
<0x58041000 0x1000>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong indent

lkedziora and others added 9 commits December 9, 2025 10:09
This adds the clock control driver for Synaptics SR100-series SoCs.

Signed-off-by: Łukasz Kędziora <lkedziora@antmicro.com>
Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
Signed-off-by: Andreas Weissel <andreas.weissel@synaptics.com>
This adds the pinctrl driver for Synaptics SR100-series SoCs.

Signed-off-by: Łukasz Kędziora <lkedziora@antmicro.com>
Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
Signed-off-by: Andreas Weissel <andreas.weissel@synaptics.com>
This adds the driver for the AON GPO block present on Synaptics
SR100-series SoCs.

Signed-off-by: Łukasz Kędziora <lkedziora@antmicro.com>
Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
Signed-off-by: Andreas Weissel <andreas.weissel@synaptics.com>
This adds the soc files for the Synaptics SR100 SoC.

Signed-off-by: Łukasz Kędziora <lkedziora@antmicro.com>
Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
Signed-off-by: Andreas Weissel <andreas.weissel@synaptics.com>
This adds support for the SR100-RDK board.

Signed-off-by: Łukasz Kędziora <lkedziora@antmicro.com>
Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
Signed-off-by: Andreas Weissel <andreas.weissel@synaptics.com>
This adds the driver for watchdog used on the Synaptics SR100-series
SoCs.

Signed-off-by: Łukasz Kędziora <lkedziora@antmicro.com>
Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
Signed-off-by: Andreas Weissel <andreas.weissel@synaptics.com>
This adds Synaptics Watchdog devicetree entries for the sr100_b0 SoC.

Signed-off-by: Łukasz Kędziora <lkedziora@antmicro.com>
Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
Signed-off-by: Andreas Weissel <andreas.weissel@synaptics.com>
This enables the Synaptics Watchdog devicetree node for the
SR100 RDK board.

Signed-off-by: Łukasz Kędziora <lkedziora@antmicro.com>
Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
Signed-off-by: Andreas Weissel <andreas.weissel@synaptics.com>
This commit adds OpenOCD configuration for the SR100-RDK board.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
Signed-off-by: Andreas Weissel <andreas.weissel@synaptics.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants