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
a08be6b632438098eb7947ce8c0ce8af29575241)
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;
};
};