Skip to content

Commit 84cb6d8

Browse files
Olivier MoysanAlexandre Torgue
authored andcommitted
ARM: dts: stm32: adopt generic iio bindings for adc channels on dhcor-testbench
Use STM32 ADC generic bindings instead of legacy bindings on DHCOR Testbench board. The STM32 ADC specific binding to declare channels has been deprecated, hence adopt the generic IIO channels bindings, instead. The STM32MP151 device tree now exposes internal channels using the generic binding. This makes the change mandatory here to avoid a mixed use of legacy and generic binding, which is not supported by the driver. Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com> Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
1 parent 1866e1f commit 84cb6d8

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

arch/arm/boot/dts/stm32mp15xx-dhcor-testbench.dtsi

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,35 @@
4141
status = "okay";
4242

4343
adc1: adc@0 {
44-
st,adc-channels = <0 1 6>;
45-
st,min-sample-time-nsecs = <5000>;
4644
status = "okay";
45+
channel@0 {
46+
reg = <0>;
47+
st,min-sample-time-ns = <5000>;
48+
};
49+
channel@1 {
50+
reg = <1>;
51+
st,min-sample-time-ns = <5000>;
52+
};
53+
channel@6 {
54+
reg = <6>;
55+
st,min-sample-time-ns = <5000>;
56+
};
4757
};
4858

4959
adc2: adc@100 {
50-
st,adc-channels = <0 1 2>;
51-
st,min-sample-time-nsecs = <5000>;
5260
status = "okay";
61+
channel@0 {
62+
reg = <0>;
63+
st,min-sample-time-ns = <5000>;
64+
};
65+
channel@1 {
66+
reg = <1>;
67+
st,min-sample-time-ns = <5000>;
68+
};
69+
channel@2 {
70+
reg = <2>;
71+
st,min-sample-time-ns = <5000>;
72+
};
5373
};
5474
};
5575

0 commit comments

Comments
 (0)