adc: rockchip-saradc: Add support for RK3528
The Successive Approximation ADC (SARADC) in RK3528 uses the v2 controller and support: - 10-bit resolution - Up to 1MS/s sampling rate - 4 single-ended input channels - Current consumption: 0.5mA @ 1MS/s Add support for the 4 channels of 10-bit resolution supported by SARADC in RK3528. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:

committed by
Kever Yang

parent
da9ded5197
commit
6ef723af18
@@ -339,6 +339,14 @@ static const struct rockchip_saradc_data rk3399_saradc_data = {
|
|||||||
.stop = rockchip_saradc_stop_v1,
|
.stop = rockchip_saradc_stop_v1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct rockchip_saradc_data rk3528_saradc_data = {
|
||||||
|
.num_bits = 10,
|
||||||
|
.num_channels = 4,
|
||||||
|
.clk_rate = 1000000,
|
||||||
|
.channel_data = rockchip_saradc_channel_data_v2,
|
||||||
|
.start_channel = rockchip_saradc_start_channel_v2,
|
||||||
|
};
|
||||||
|
|
||||||
static const struct rockchip_saradc_data rk3588_saradc_data = {
|
static const struct rockchip_saradc_data rk3588_saradc_data = {
|
||||||
.num_bits = 12,
|
.num_bits = 12,
|
||||||
.num_channels = 8,
|
.num_channels = 8,
|
||||||
@@ -354,6 +362,8 @@ static const struct udevice_id rockchip_saradc_ids[] = {
|
|||||||
.data = (ulong)&rk3066_tsadc_data },
|
.data = (ulong)&rk3066_tsadc_data },
|
||||||
{ .compatible = "rockchip,rk3399-saradc",
|
{ .compatible = "rockchip,rk3399-saradc",
|
||||||
.data = (ulong)&rk3399_saradc_data },
|
.data = (ulong)&rk3399_saradc_data },
|
||||||
|
{ .compatible = "rockchip,rk3528-saradc",
|
||||||
|
.data = (ulong)&rk3528_saradc_data },
|
||||||
{ .compatible = "rockchip,rk3588-saradc",
|
{ .compatible = "rockchip,rk3588-saradc",
|
||||||
.data = (ulong)&rk3588_saradc_data },
|
.data = (ulong)&rk3588_saradc_data },
|
||||||
{ }
|
{ }
|
||||||
|
Reference in New Issue
Block a user