summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaibo Chen <haibo.chen@freescale.com>2015-07-13 15:23:54 +0800
committerLi Jun <jun.li@freescale.com>2015-07-22 10:22:17 +0800
commitd05c2968aa42c9eca7cb39050537adbea5022287 (patch)
tree8643cdecfe73503c0f9032a4b89c3a952568784a
parent9966ec66a35654e1feb170b4d5ab0cf3cd2c1793 (diff)
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 <haibo.chen@freescale.com> (cherry picked from commit d1e680a0d20ac88e9bbcc7c4a7008999d79ca322)
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-touch.dts12
1 files 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;
};
};