Commit 9bcfc3cd authored by Marek Vasut's avatar Marek Vasut Committed by Alexandre Torgue

ARM: dts: stm32: Update to generic ADC channel binding on DHSOM systems

The generic ADC channel binding is recommended over legacy one, update the
DT to the modern binding. No functional change. For further details, see
commit which adds the generic binding to STM32 ADC binding document:
'664b9879 ("dt-bindings: iio: stm32-adc: add generic channel binding")'
Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Signed-off-by: default avatarAlexandre Torgue <alexandre.torgue@foss.st.com>
parent 84cb6d8a
...@@ -80,17 +80,19 @@ &adc { ...@@ -80,17 +80,19 @@ &adc {
vdda-supply = <&vdda>; vdda-supply = <&vdda>;
vref-supply = <&vdda>; vref-supply = <&vdda>;
status = "okay"; status = "okay";
};
adc1: adc@0 { &adc1 {
st,min-sample-time-nsecs = <5000>; channel@0 {
st,adc-channels = <0>; reg = <0>;
status = "okay"; st,min-sample-time-ns = <5000>;
}; };
};
adc2: adc@100 { &adc2 {
st,adc-channels = <1>; channel@1 {
st,min-sample-time-nsecs = <5000>; reg = <1>;
status = "okay"; st,min-sample-time-ns = <5000>;
}; };
}; };
......
...@@ -111,17 +111,39 @@ &adc { ...@@ -111,17 +111,39 @@ &adc {
vdda-supply = <&vdda>; vdda-supply = <&vdda>;
vref-supply = <&vdda>; vref-supply = <&vdda>;
status = "okay"; status = "okay";
};
adc1: adc@0 { &adc1 {
st,adc-channels = <0 1 6>; channel@0 {
st,min-sample-time-nsecs = <5000>; reg = <0>;
status = "okay"; st,min-sample-time-ns = <5000>;
}; };
adc2: adc@100 { channel@1 {
st,adc-channels = <0 1 2>; reg = <1>;
st,min-sample-time-nsecs = <5000>; st,min-sample-time-ns = <5000>;
status = "okay"; };
channel@6 {
reg = <6>;
st,min-sample-time-ns = <5000>;
};
};
&adc2 {
channel@0 {
reg = <0>;
st,min-sample-time-ns = <5000>;
};
channel@1 {
reg = <1>;
st,min-sample-time-ns = <5000>;
};
channel@2 {
reg = <2>;
st,min-sample-time-ns = <5000>;
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment