Skip to content

Commit 765ce35

Browse files
Olivier MoysanAlexandre Torgue
authored andcommitted
ARM: dts: stm32: adopt generic iio bindings for adc channels on stm32mp157c-ed1
Use STM32 ADC generic bindings instead of legacy bindings on STM32MP157c-ed1 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 7ea81ea commit 765ce35

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

arch/arm/boot/dts/stm32mp157c-ed1.dts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,20 @@
103103
vref-supply = <&vdda>;
104104
status = "disabled";
105105
adc1: adc@0 {
106-
st,adc-channels = <0 1 6>;
107-
/* 16.5 ck_cycles sampling time */
108-
st,min-sample-time-nsecs = <400>;
109106
status = "okay";
107+
channel@0 {
108+
reg = <0>;
109+
/* 16.5 ck_cycles sampling time */
110+
st,min-sample-time-ns = <400>;
111+
};
112+
channel@1 {
113+
reg = <1>;
114+
st,min-sample-time-ns = <400>;
115+
};
116+
channel@6 {
117+
reg = <6>;
118+
st,min-sample-time-ns = <400>;
119+
};
110120
};
111121
};
112122

0 commit comments

Comments
 (0)