From d0bee70bdac568c757af7c8f216800ee98e0584d Mon Sep 17 00:00:00 2001 From: Haibo Chen Date: Mon, 13 Jul 2015 15:23:54 +0800 Subject: [PATCH] MLK-11239 ARM: dts: imx7d-sdb-touch: correct the format of u16 values In tsc2046 touch driver, the values such as ti,x-min is defined as a u16 value. the driver use API of_property_read_u16() read the value. For these u16 value, the dts entry should be like: property = /bits/ 16 <0x5000>; This describe the property as a u16 value. if the dts entry write like following: property = <0x5000>; of subsystem will read this property as a u32 value in default. Due to the DTB file is big-endian, and our memory system is little endian, this will make the driver can't read the correct value. This patch correct the format of u16 values, and set the default value defined in tsc2046 touch driver. Signed-off-by: Haibo Chen (cherry picked from commit a08be6b632438098eb7947ce8c0ce8af29575241) --- arch/arm/boot/dts/imx7d-sdb-touch.dts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/imx7d-sdb-touch.dts b/arch/arm/boot/dts/imx7d-sdb-touch.dts index b53f0be328da..3f854e307ffc 100644 --- a/arch/arm/boot/dts/imx7d-sdb-touch.dts +++ b/arch/arm/boot/dts/imx7d-sdb-touch.dts @@ -20,12 +20,12 @@ interrupt-parent = <&gpio2>; interrupts = <13 0>; pendown-gpio = <&gpio2 13 0>; - ti,x-min = <0>; - ti,x-max = <8000>; - ti,y-min = <0>; - ti,y-max = <4800>; - ti,pressure-max = <255>; - ti,x-plat-ohms = <40>; + ti,x-min = /bits/ 16 <0>; + ti,x-max = /bits/ 16 <0>; + ti,y-min = /bits/ 16 <0>; + ti,y-max = /bits/ 16 <0>; + ti,pressure-max = /bits/ 16 <0>; + ti,x-plat-ohms = /bits/ 16 <400>; linux,wakeup; }; }; -- 2.17.1