summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/stm32mp157c-ed1.dts
diff options
context:
space:
mode:
authorOlivier Moysan <olivier.moysan@foss.st.com>2023-05-30 15:45:33 +0300
committerAlexandre Torgue <alexandre.torgue@foss.st.com>2023-06-02 13:24:41 +0300
commit765ce359d67fc089281bc5317230c310122f7a32 (patch)
tree505d40869087e8e69c3532ed70e27a03ac1f2400 /arch/arm/boot/dts/stm32mp157c-ed1.dts
parent7ea81ea58d61aed271afb83fef5935232ee43cd4 (diff)
downloadlinux-765ce359d67fc089281bc5317230c310122f7a32.tar.xz
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>
Diffstat (limited to 'arch/arm/boot/dts/stm32mp157c-ed1.dts')
-rw-r--r--arch/arm/boot/dts/stm32mp157c-ed1.dts16
1 files changed, 13 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts
index 8beb901be506..66ed5f9921ba 100644
--- a/arch/arm/boot/dts/stm32mp157c-ed1.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts
@@ -103,10 +103,20 @@
vref-supply = <&vdda>;
status = "disabled";
adc1: adc@0 {
- st,adc-channels = <0 1 6>;
- /* 16.5 ck_cycles sampling time */
- st,min-sample-time-nsecs = <400>;
status = "okay";
+ channel@0 {
+ reg = <0>;
+ /* 16.5 ck_cycles sampling time */
+ st,min-sample-time-ns = <400>;
+ };
+ channel@1 {
+ reg = <1>;
+ st,min-sample-time-ns = <400>;
+ };
+ channel@6 {
+ reg = <6>;
+ st,min-sample-time-ns = <400>;
+ };
};
};