-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Add support for Synaptics SR100 SoCs #100172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Hello @aweissel, and thank you very much for your first pull request to the Zephyr project! |
nordicjm
left a comment
There was a problem hiding this 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
drivers/clock_control/Kconfig
Outdated
| source "drivers/clock_control/Kconfig.xec" | ||
| # zephyr-keep-sorted-stop | ||
|
|
||
| source "drivers/clock_control/Kconfig.syna" |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 */ |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
magic numbers
dts/arm/syna/sr100_b0.dtsi
Outdated
| }; | ||
|
|
||
| ns16550_uart0: uart@50317000 { | ||
| compatible = "ns16550","snps,dw-apb-uart"; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
soc/syna/sr100/Kconfig.defconfig
Outdated
| default 128 | ||
|
|
||
| config SYS_CLOCK_HW_CYCLES_PER_SEC | ||
| default 400000000 |
There was a problem hiding this comment.
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
boards/syna/sr100/Kconfig.sr100_rdk
Outdated
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| config BOARD_SR100_RDK | ||
| bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| bool |
drivers/watchdog/Kconfig.syna
Outdated
| default 1000 | ||
| range 1 $(UINT32_MAX) | ||
| help | ||
| Sets the initial timeout value for WDT in ms if enabled at boot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong indent
dts/arm/syna/sr100_b0.dtsi
Outdated
| compatible = "syna,watchdog"; | ||
| reg = <0x50350038 0x4>, | ||
| <0x58040000 0x1000>, | ||
| <0x58041000 0x1000>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong indent
c55f32c to
bbfb10a
Compare
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>
|



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.