-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Imx93 sar adc #92882
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?
Imx93 sar adc #92882
Conversation
The following west manifest projects have changed revision in this Pull Request:
⛔ DNM label due to: 1 project with PR revision Note: This message is automatically posted and updated by the Manifest GitHub Action. |
1996983
to
5920a89
Compare
ADC_Type *base; | ||
void (*irq_config_func)(const struct device *dev); | ||
const struct device *clock_dev; | ||
clock_control_subsys_t clock_subsys; |
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.
Do we really need clock_dev
and clock_subsys
in the current driver?
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.
Do we really need
clock_dev
andclock_subsys
in the current driver?
We didn't use clock_dev and clock_subsys now, but it is better to keep it.
drivers/adc/adc_mcux_sar_adc.c
Outdated
ADC_ClearConvIntStatus(base, kADC_NormalConvChainEndIntFlag); | ||
} | ||
|
||
if (((ADC_GetConvIntStatus(base) & kADC_NormalConvEndIntFlag))) { |
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.
This code can be removed? as we only enabled ECH interrupt?
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.
This two bits will be set by IP, it's better to clear them all. However, it's not a big problem.
dts/arm/nxp/nxp_imx93_m33.dtsi
Outdated
interrupts = <219 0>; | ||
status = "disabled"; | ||
#io-channel-cells = <1>; | ||
clocks = <&ccm IMX_CCM_LPUART2_CLK 0x0 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.
why use lpuart clock?
&sar_adc1 { | ||
status = "okay"; | ||
}; | ||
|
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.
Update imx93_evk_mimx9352_m33.yaml to add adc in supported features?
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.
fixed
drivers/adc/Kconfig.mcux
Outdated
help | ||
Amount of hardware command channels to use, reduce to save RAM. | ||
The user can reduce this value if their application uses fewer than | ||
15 ADC channels. This value corresponds to how many of the CMD |
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.
15 should be 8?
# Copyright (c) 2025, NXP | ||
# | ||
# SPDX-License-Identifier: Apache-2.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.
need to update testcase.yaml to use this conf file or move it to boards subdirectory and rename it to be platform name .conf
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.
fixed
Add driver for the SAR ADC Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
Added SAR_ADC clock support for clock_control_mcux_ccm_rev2 Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
Add ADC node on imx93 core m33 Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
d4ad0f1
to
fb06496
Compare
Add necessary configuration for sar_adc1 on imx93 core cm33 There are some issues with USERSPACE, so add an overlay to disable CONFIG_TEST_USERSPACE, will drop it once it works. Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
enable CPU_CORTEX_M_HAS_DWT for imx93 core m33 Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
- Update imx93 headers and sar_adc driver Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
fb06496
to
bab30bf
Compare
|
Support adc on imx93 board