linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] ARM: dts: imx6qdl-apalis: Avoid underscore in node name
@ 2021-09-24 13:46 Fabio Estevam
  2021-09-24 13:46 ` [PATCH 2/4] ARM: dts: imx6qdl-apalis: Pass 'io-channel-cells' to the ADC Fabio Estevam
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Fabio Estevam @ 2021-09-24 13:46 UTC (permalink / raw)
  To: shawnguo; +Cc: linux-arm-kernel, marcel.ziswiler, otavio, Fabio Estevam

It is recommended not to use underscore in node names.

Change it to dash.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 arch/arm/boot/dts/imx6qdl-apalis.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi
index 30fa349f9d05..7c6d9c75d2bf 100644
--- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi
@@ -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>;
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/4] ARM: dts: imx6qdl-apalis: Pass 'io-channel-cells' to the ADC
  2021-09-24 13:46 [PATCH 1/4] ARM: dts: imx6qdl-apalis: Avoid underscore in node name Fabio Estevam
@ 2021-09-24 13:46 ` Fabio Estevam
  2021-09-24 13:46 ` [PATCH 3/4] ARM: dts: imx6qdl-apalis: Add a label for the touchscreen Fabio Estevam
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2021-09-24 13:46 UTC (permalink / raw)
  To: shawnguo; +Cc: linux-arm-kernel, marcel.ziswiler, otavio, Fabio Estevam

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.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 arch/arm/boot/dts/imx6qdl-apalis.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi
index 7c6d9c75d2bf..4092af5f6999 100644
--- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi
@@ -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>;
 		};
 	};
 };
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/4] ARM: dts: imx6qdl-apalis: Add a label for the touchscreen
  2021-09-24 13:46 [PATCH 1/4] ARM: dts: imx6qdl-apalis: Avoid underscore in node name Fabio Estevam
  2021-09-24 13:46 ` [PATCH 2/4] ARM: dts: imx6qdl-apalis: Pass 'io-channel-cells' to the ADC Fabio Estevam
@ 2021-09-24 13:46 ` Fabio Estevam
  2021-09-24 13:46 ` [PATCH 4/4] ARM: dts: imx6qdl-apalis: Fix typo in ADC comment Fabio Estevam
  2021-10-05  5:52 ` [PATCH 1/4] ARM: dts: imx6qdl-apalis: Avoid underscore in node name Shawn Guo
  3 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2021-09-24 13:46 UTC (permalink / raw)
  To: shawnguo; +Cc: linux-arm-kernel, marcel.ziswiler, otavio, Fabio Estevam

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

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 arch/arm/boot/dts/imx6qdl-apalis.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi
index 4092af5f6999..aae60ffac623 100644
--- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi
@@ -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>;
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 4/4] ARM: dts: imx6qdl-apalis: Fix typo in ADC comment
  2021-09-24 13:46 [PATCH 1/4] ARM: dts: imx6qdl-apalis: Avoid underscore in node name Fabio Estevam
  2021-09-24 13:46 ` [PATCH 2/4] ARM: dts: imx6qdl-apalis: Pass 'io-channel-cells' to the ADC Fabio Estevam
  2021-09-24 13:46 ` [PATCH 3/4] ARM: dts: imx6qdl-apalis: Add a label for the touchscreen Fabio Estevam
@ 2021-09-24 13:46 ` Fabio Estevam
  2021-10-05  5:52 ` [PATCH 1/4] ARM: dts: imx6qdl-apalis: Avoid underscore in node name Shawn Guo
  3 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2021-09-24 13:46 UTC (permalink / raw)
  To: shawnguo; +Cc: linux-arm-kernel, marcel.ziswiler, otavio, Fabio Estevam

Fix the spelling of 'conversion'.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 arch/arm/boot/dts/imx6qdl-apalis.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi
index aae60ffac623..ed2739e39085 100644
--- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi
@@ -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 {
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/4] ARM: dts: imx6qdl-apalis: Avoid underscore in node name
  2021-09-24 13:46 [PATCH 1/4] ARM: dts: imx6qdl-apalis: Avoid underscore in node name Fabio Estevam
                   ` (2 preceding siblings ...)
  2021-09-24 13:46 ` [PATCH 4/4] ARM: dts: imx6qdl-apalis: Fix typo in ADC comment Fabio Estevam
@ 2021-10-05  5:52 ` Shawn Guo
  3 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2021-10-05  5:52 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: linux-arm-kernel, marcel.ziswiler, otavio

On Fri, Sep 24, 2021 at 10:46:42AM -0300, Fabio Estevam wrote:
> It is recommended not to use underscore in node names.
> 
> Change it to dash.
> 
> Signed-off-by: Fabio Estevam <festevam@gmail.com>

Applied all, thanks!

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-05  5:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-24 13:46 [PATCH 1/4] ARM: dts: imx6qdl-apalis: Avoid underscore in node name Fabio Estevam
2021-09-24 13:46 ` [PATCH 2/4] ARM: dts: imx6qdl-apalis: Pass 'io-channel-cells' to the ADC Fabio Estevam
2021-09-24 13:46 ` [PATCH 3/4] ARM: dts: imx6qdl-apalis: Add a label for the touchscreen Fabio Estevam
2021-09-24 13:46 ` [PATCH 4/4] ARM: dts: imx6qdl-apalis: Fix typo in ADC comment Fabio Estevam
2021-10-05  5:52 ` [PATCH 1/4] ARM: dts: imx6qdl-apalis: Avoid underscore in node name Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).