Skip to content

Commit 1866e1f

Browse files
Olivier MoysanAlexandre Torgue
authored andcommitted
ARM: dts: stm32: adopt generic iio bindings for adc channels on dhcor-drc
Use STM32 ADC generic bindings instead of legacy bindings on DHCOR DRC Compact 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 c46e9b6 commit 1866e1f

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

arch/arm/boot/dts/stm32mp15xx-dhcor-drc-compact.dtsi

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

5959
adc1: adc@0 {
60-
st,adc-channels = <0 1 6>;
61-
st,min-sample-time-nsecs = <5000>;
6260
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@6 {
70+
reg = <6>;
71+
st,min-sample-time-ns = <5000>;
72+
};
6373
};
6474

6575
adc2: adc@100 {
66-
st,adc-channels = <0 1 2>;
67-
st,min-sample-time-nsecs = <5000>;
6876
status = "okay";
77+
channel@0 {
78+
reg = <0>;
79+
st,min-sample-time-ns = <5000>;
80+
};
81+
channel@1 {
82+
reg = <1>;
83+
st,min-sample-time-ns = <5000>;
84+
};
85+
channel@2 {
86+
reg = <2>;
87+
st,min-sample-time-ns = <5000>;
88+
};
6989
};
7090
};
7191

0 commit comments

Comments
 (0)