Skip to contentSkip to conversation

ARM: dts: imx6qdl-apalis: Avoid underscore in node name

PATCH Applied Fabio Estevam 2 participants 5 messages Sep 24, 2021 – Oct 5, 2021

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/4 ARM: dts: imx6qdl-apalis: Avoid underscore in node name

It is recommended not to use underscore in node names.

Change it to dash.

---
 arch/arm/boot/dts/imx6qdl-apalis.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx6qdl-apalis.dtsi +2 -2
index 30fa349f9d05..7c6d9c75d2bf 100644
@@ -313,7 +313,7 @@ stmpe811@41 {
 		/* ADC converstion time: 80 clocks */
 		st,sample-time = <4>;
 
-		stmpe_touchscreen {
+		stmpe-touchscreen {
 			compatible = "st,stmpe-ts";
 			/* 8 sample average control */
 			st,ave-ctrl = <3>;
@@ -330,7 +330,7 @@ stmpe_touchscreen {
 			st,touch-det-delay = <5>;
 		};
 
-		stmpe_adc {
+		stmpe-adc {
 			compatible = "st,stmpe-adc";
 			/* forbid to use ADC channels 3-0 (touch) */
 			st,norequest-mask = <0x0F>;
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author reviewer
#1 lore raw

PATCH 2/4 ARM: dts: imx6qdl-apalis: Pass 'io-channel-cells' to the ADC

The STMPE811 ADC on the Apalis SoM board can be used as a provider of ADC capabilities to other devices, for example, when a custom baseboard has an SN74LV4051 analog mux.

Pass the 'io-channel-cells' parameter to indicate such possibility.

While at it, also pass a label for the adc device, so that it can be referenced in the custom baseboard.

---
 arch/arm/boot/dts/imx6qdl-apalis.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/imx6qdl-apalis.dtsi +2 -1
index 7c6d9c75d2bf..4092af5f6999 100644
@@ -330,10 +330,11 @@ stmpe-touchscreen {
 			st,touch-det-delay = <5>;
 		};
 
-		stmpe-adc {
+		stmpe_adc: stmpe-adc {
 			compatible = "st,stmpe-adc";
 			/* forbid to use ADC channels 3-0 (touch) */
 			st,norequest-mask = <0x0F>;
+			#io-channel-cells = <1>;
 		};
 	};
 };
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author reviewer
#2 lore raw

PATCH 3/4 ARM: dts: imx6qdl-apalis: Add a label for the touchscreen

In reply to Fabio Estevam

Add a label for the touchscreen to allow a custom baseboard to disable this node if needed.

---
 arch/arm/boot/dts/imx6qdl-apalis.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx6qdl-apalis.dtsi +1 -1
index 4092af5f6999..aae60ffac623 100644
@@ -313,7 +313,7 @@ stmpe811@41 {
 		/* ADC converstion time: 80 clocks */
 		st,sample-time = <4>;
 
-		stmpe-touchscreen {
+		stmpe_touchscreen: stmpe-touchscreen {
 			compatible = "st,stmpe-ts";
 			/* 8 sample average control */
 			st,ave-ctrl = <3>;
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author reviewer
#3 lore raw

PATCH 4/4 ARM: dts: imx6qdl-apalis: Fix typo in ADC comment

In reply to Fabio Estevam

Fix the spelling of 'conversion'.

---
 arch/arm/boot/dts/imx6qdl-apalis.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx6qdl-apalis.dtsi +1 -1
index aae60ffac623..ed2739e39085 100644
@@ -310,7 +310,7 @@ stmpe811@41 {
 		st,mod-12b = <1>;
 		/* internal ADC reference */
 		st,ref-sel = <0>;
-		/* ADC converstion time: 80 clocks */
+		/* ADC conversion time: 80 clocks */
 		st,sample-time = <4>;
 
 		stmpe_touchscreen: stmpe-touchscreen {
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel