Skip to contentSkip to conversation

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

PATCH New Marek Vasut 1 participant 1 message May 18, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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:
664b9879f56ef ("dt-bindings: iio: stm32-adc: add generic channel binding")

---
Cc: Alexandre Torgue <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi  | 24 ++++++----
 .../boot/dts/stm32mp15xx-dhcor-avenger96.dtsi | 44 +++++++++++++++----
 2 files changed, 52 insertions(+), 16 deletions(-)
arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi +16 -8
index a38009f8456b8..95f3fbdcb3d17 100644
@@ -80,17 +80,25 @@ &adc {
 	vdda-supply = <&vdda>;
 	vref-supply = <&vdda>;
 	status = "okay";
+};
 
-	adc1: adc@0 {
-		st,min-sample-time-nsecs = <5000>;
-		st,adc-channels = <0>;
-		status = "okay";
+&adc1 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	channel@0 {
+		reg = <0>;
+		st,min-sample-time-ns = <5000>;
 	};
+};
 
-	adc2: adc@100 {
-		st,adc-channels = <1>;
-		st,min-sample-time-nsecs = <5000>;
-		status = "okay";
+&adc2 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	channel@1 {
+		reg = <1>;
+		st,min-sample-time-ns = <5000>;
 	};
 };
 
arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi +36 -8

53 lines not on this page · raw message

Signature · 1 line
2.39.2