mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
iio: adc: stm32: fix minimum sampling time values
- On stm32mp15: vddcpu and vddq_ddr are not connected to internal
channel, so their sampling time shouldn't be set.
- On stm32mp13: vddcpu and vddq_ddr are connected to internal channels
and the value for vddcore was not correct. Values from the datasheet
are 1us (e.g. 1000ns) for ts_vddcore, ts_vddcpu and ts_vddq_ddr.
Fixes: 7cb2303dd0 ("iio: adc: stm32: manage min sampling time on all internal channels")
Cc: stable@vger.kernel.org
Signed-off-by: Cheick Traore <cheick.traore-ext@st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
This commit is contained in:
parent
b6b78dde9d
commit
ef04fdc999
|
|
@ -2727,7 +2727,7 @@ static const struct stm32_adc_cfg stm32h7_adc_cfg = {
|
|||
.set_ovs = stm32h7_adc_set_ovs,
|
||||
};
|
||||
|
||||
static const unsigned int stm32_adc_min_ts_mp1[] = { 100, 100, 100, 4300, 9800 };
|
||||
static const unsigned int stm32_adc_min_ts_mp1[] = { 100, 0, 0, 4300, 9800 };
|
||||
static_assert(ARRAY_SIZE(stm32_adc_min_ts_mp1) == STM32_ADC_INT_CH_NB);
|
||||
|
||||
static const struct stm32_adc_cfg stm32mp1_adc_cfg = {
|
||||
|
|
@ -2749,7 +2749,7 @@ static const struct stm32_adc_cfg stm32mp1_adc_cfg = {
|
|||
.set_ovs = stm32h7_adc_set_ovs,
|
||||
};
|
||||
|
||||
static const unsigned int stm32_adc_min_ts_mp13[] = { 100, 0, 0, 4300, 9800 };
|
||||
static const unsigned int stm32_adc_min_ts_mp13[] = { 1000, 1000, 1000, 4300, 9800 };
|
||||
static_assert(ARRAY_SIZE(stm32_adc_min_ts_mp13) == STM32_ADC_INT_CH_NB);
|
||||
|
||||
static const struct stm32_adc_cfg stm32mp13_adc_cfg = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user