Skip to content

Commit cac9ea7

Browse files
dts: arm: silabs: update IADC driver binding for all series 2 board
Update compatibility from "silabs,gecko-iadc" to "silabs,iadc". It allows to use the new driver which are more custom to series 2 boards. Signed-off-by: Martin Hoff <[email protected]>
1 parent 7739ebd commit cac9ea7

File tree

11 files changed

+23
-10
lines changed

11 files changed

+23
-10
lines changed

doc/releases/migration-guide-4.3.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ Device Drivers and Devicetree
6161

6262
.. zephyr-keep-sorted-start re(^\w)
6363
64+
ADC
65+
===
66+
67+
* ``iadc_gecko.c`` driver is deprecated, consider using ``adc_silabs_iadc.c`` instead.
68+
:dtcompatible:`silabs,gecko-iadc` has been replaced by :dtcompatible:`silabs,iadc`.
69+
6470
Comparator
6571
==========
6672

drivers/adc/Kconfig.gecko

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55

66
config ADC_GECKO_IADC
77
bool "Gecko Incremental ADC driver"
8-
default y
98
depends on DT_HAS_SILABS_GECKO_IADC_ENABLED
9+
depends on !ADC_SILABS_IADC
1010
select SOC_GECKO_IADC
1111
select ADC_CONFIGURABLE_INPUTS
12+
select DEPRECATED
1213
help
13-
Enable the driver implementation for the Silabs GeckoEXX32 Incremental ADC
14+
[deprecated] Enable the driver implementation for the Silabs GeckoEXX32 Incremental ADC.
15+
This option is deprecated, use ADC_SILABS_IADC instead.
1416

1517
config ADC_GECKO_ADC
1618
bool "Gecko ADC driver"

drivers/adc/Kconfig.silabs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
config ADC_SILABS_IADC
55
bool "Silabs Incremental ADC driver"
66
default y
7-
depends on DT_HAS_SILABS_IADC_ENABLED
7+
depends on (DT_HAS_SILABS_IADC_ENABLED || DT_HAS_SILABS_GECKO_IADC_ENABLED)
88
select SILABS_SISDK_IADC
99
select ADC_CONFIGURABLE_INPUTS
1010
help

drivers/adc/adc_silabs_iadc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,3 +615,8 @@ static DEVICE_API(adc, iadc_api) = {
615615
&iadc_config_##n, POST_KERNEL, CONFIG_ADC_INIT_PRIORITY, &iadc_api);
616616

617617
DT_INST_FOREACH_STATUS_OKAY(IADC_INIT)
618+
619+
/* Compatibility with old gecko iadc driver */
620+
#undef DT_DRV_COMPAT
621+
#define DT_DRV_COMPAT silabs_gecko_iadc
622+
DT_INST_FOREACH_STATUS_OKAY(IADC_INIT)

dts/arm/silabs/xg21/xg21.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@
469469
};
470470

471471
adc0: adc@5a004000 {
472-
compatible = "silabs,gecko-iadc";
472+
compatible = "silabs,iadc";
473473
reg = <0x5a004000 0x4000>;
474474
#io-channel-cells = <1>;
475475
clocks = <&cmu CLOCK_AUTO CLOCK_BRANCH_IADCCLK>;

dts/arm/silabs/xg22/xg22.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@
511511
};
512512

513513
adc0: adc@5a004000 {
514-
compatible = "silabs,gecko-iadc";
514+
compatible = "silabs,iadc";
515515
reg = <0x5a004000 0x4000>;
516516
#io-channel-cells = <1>;
517517
clocks = <&cmu CLOCK_IADC0 CLOCK_BRANCH_IADCCLK>;

dts/arm/silabs/xg23/xg23.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@
531531
};
532532

533533
adc0: adc@59004000 {
534-
compatible = "silabs,gecko-iadc";
534+
compatible = "silabs,iadc";
535535
reg = <0x59004000 0x4000>;
536536
#io-channel-cells = <1>;
537537
clocks = <&cmu CLOCK_IADC0 CLOCK_BRANCH_IADCCLK>;

dts/arm/silabs/xg24/xg24.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@
514514
};
515515

516516
adc0: adc@59004000 {
517-
compatible = "silabs,gecko-iadc";
517+
compatible = "silabs,iadc";
518518
reg = <0x59004000 0x4000>;
519519
#io-channel-cells = <1>;
520520
clocks = <&cmu CLOCK_IADC0 CLOCK_BRANCH_IADCCLK>;

dts/arm/silabs/xg27/xg27.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@
511511
};
512512

513513
adc0: adc@5a004000 {
514-
compatible = "silabs,gecko-iadc";
514+
compatible = "silabs,iadc";
515515
reg = <0x5a004000 0x4000>;
516516
#io-channel-cells = <1>;
517517
clocks = <&cmu CLOCK_IADC0 CLOCK_BRANCH_IADCCLK>;

dts/arm/silabs/xg28/xg28.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@
531531
};
532532

533533
adc0: adc@59004000 {
534-
compatible = "silabs,gecko-iadc";
534+
compatible = "silabs,iadc";
535535
reg = <0x59004000 0x4000>;
536536
#io-channel-cells = <1>;
537537
clocks = <&cmu CLOCK_IADC0 CLOCK_BRANCH_IADCCLK>;

0 commit comments

Comments
 (0)