devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: stm32: stm32mp157c-phycore: Fix STMPE811 touchscreen node properties
@ 2025-09-15 22:46 Jihed Chaibi
  2025-11-10  8:46 ` Alexandre TORGUE
  0 siblings, 1 reply; 2+ messages in thread
From: Jihed Chaibi @ 2025-09-15 22:46 UTC (permalink / raw)
  To: mcoquelin.stm32, alexandre.torgue
  Cc: robh, s.trumtrar, krzk+dt, conor+dt, linux-stm32,
	linux-arm-kernel, devicetree, linux-kernel, jihed.chaibi.dev

Move st,adc-freq, st,mod-12b, st,ref-sel, and st,sample-time properties
from the touchscreen subnode to the parent touch@44 node. These properties
are defined in the st,stmpe.yaml schema for the parent node, not the
touchscreen subnode, resolving the validation error about unevaluated
properties.

Fixes: 27538a18a4fcc ("ARM: dts: stm32: add STM32MP1-based Phytec SoM")
Signed-off-by: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
---
 .../boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi b/arch/arm/boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi
index bf0c32027ba..370b2afbf15 100644
--- a/arch/arm/boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi
+++ b/arch/arm/boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi
@@ -185,13 +185,13 @@ touch@44 {
 		interrupt-parent = <&gpioi>;
 		vio-supply = <&v3v3>;
 		vcc-supply = <&v3v3>;
+		st,sample-time = <4>;
+		st,mod-12b = <1>;
+		st,ref-sel = <0>;
+		st,adc-freq = <1>;
 
 		touchscreen {
 			compatible = "st,stmpe-ts";
-			st,sample-time = <4>;
-			st,mod-12b = <1>;
-			st,ref-sel = <0>;
-			st,adc-freq = <1>;
 			st,ave-ctrl = <1>;
 			st,touch-det-delay = <2>;
 			st,settling = <2>;
-- 
2.39.5


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

* Re: [PATCH] ARM: dts: stm32: stm32mp157c-phycore: Fix STMPE811 touchscreen node properties
  2025-09-15 22:46 [PATCH] ARM: dts: stm32: stm32mp157c-phycore: Fix STMPE811 touchscreen node properties Jihed Chaibi
@ 2025-11-10  8:46 ` Alexandre TORGUE
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre TORGUE @ 2025-11-10  8:46 UTC (permalink / raw)
  To: Jihed Chaibi, mcoquelin.stm32
  Cc: robh, s.trumtrar, krzk+dt, conor+dt, linux-stm32,
	linux-arm-kernel, devicetree, linux-kernel

Hi Jihed

On 9/16/25 00:46, Jihed Chaibi wrote:
> Move st,adc-freq, st,mod-12b, st,ref-sel, and st,sample-time properties
> from the touchscreen subnode to the parent touch@44 node. These properties
> are defined in the st,stmpe.yaml schema for the parent node, not the
> touchscreen subnode, resolving the validation error about unevaluated
> properties.
> 
> Fixes: 27538a18a4fcc ("ARM: dts: stm32: add STM32MP1-based Phytec SoM")
> Signed-off-by: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
> ---
>   .../boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi    | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi b/arch/arm/boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi
> index bf0c32027ba..370b2afbf15 100644
> --- a/arch/arm/boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi
> +++ b/arch/arm/boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi
> @@ -185,13 +185,13 @@ touch@44 {
>   		interrupt-parent = <&gpioi>;
>   		vio-supply = <&v3v3>;
>   		vcc-supply = <&v3v3>;
> +		st,sample-time = <4>;
> +		st,mod-12b = <1>;
> +		st,ref-sel = <0>;
> +		st,adc-freq = <1>;
>   
>   		touchscreen {
>   			compatible = "st,stmpe-ts";
> -			st,sample-time = <4>;
> -			st,mod-12b = <1>;
> -			st,ref-sel = <0>;
> -			st,adc-freq = <1>;
>   			st,ave-ctrl = <1>;
>   			st,touch-det-delay = <2>;
>   			st,settling = <2>;

Applied on stm32-next.

Thanks
Alex

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

end of thread, other threads:[~2025-11-10  8:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-15 22:46 [PATCH] ARM: dts: stm32: stm32mp157c-phycore: Fix STMPE811 touchscreen node properties Jihed Chaibi
2025-11-10  8:46 ` Alexandre TORGUE

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).