18c2ecf20Sopenharmony_ci* Freescale MXS LRADC device driver 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci- compatible: Should be "fsl,imx23-lradc" for i.MX23 SoC and "fsl,imx28-lradc" 58c2ecf20Sopenharmony_ci for i.MX28 SoC 68c2ecf20Sopenharmony_ci- reg: Address and length of the register set for the device 78c2ecf20Sopenharmony_ci- interrupts: Should contain the LRADC interrupts 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciOptional properties: 108c2ecf20Sopenharmony_ci- fsl,lradc-touchscreen-wires: Number of wires used to connect the touchscreen 118c2ecf20Sopenharmony_ci to LRADC. Valid value is either 4 or 5. If this 128c2ecf20Sopenharmony_ci property is not present, then the touchscreen is 138c2ecf20Sopenharmony_ci disabled. 5 wires is valid for i.MX28 SoC only. 148c2ecf20Sopenharmony_ci- fsl,ave-ctrl: number of samples per direction to calculate an average value. 158c2ecf20Sopenharmony_ci Allowed value is 1 ... 32, default is 4 168c2ecf20Sopenharmony_ci- fsl,ave-delay: delay between consecutive samples. Allowed value is 178c2ecf20Sopenharmony_ci 2 ... 2048. It is used if 'fsl,ave-ctrl' > 1, counts at 188c2ecf20Sopenharmony_ci 2 kHz and its default is 2 (= 1 ms) 198c2ecf20Sopenharmony_ci- fsl,settling: delay between plate switch to next sample. Allowed value is 208c2ecf20Sopenharmony_ci 1 ... 2047. It counts at 2 kHz and its default is 218c2ecf20Sopenharmony_ci 10 (= 5 ms) 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciExample for i.MX23 SoC: 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci lradc@80050000 { 268c2ecf20Sopenharmony_ci compatible = "fsl,imx23-lradc"; 278c2ecf20Sopenharmony_ci reg = <0x80050000 0x2000>; 288c2ecf20Sopenharmony_ci interrupts = <36 37 38 39 40 41 42 43 44>; 298c2ecf20Sopenharmony_ci fsl,lradc-touchscreen-wires = <4>; 308c2ecf20Sopenharmony_ci fsl,ave-ctrl = <4>; 318c2ecf20Sopenharmony_ci fsl,ave-delay = <2>; 328c2ecf20Sopenharmony_ci fsl,settling = <10>; 338c2ecf20Sopenharmony_ci }; 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ciExample for i.MX28 SoC: 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci lradc@80050000 { 388c2ecf20Sopenharmony_ci compatible = "fsl,imx28-lradc"; 398c2ecf20Sopenharmony_ci reg = <0x80050000 0x2000>; 408c2ecf20Sopenharmony_ci interrupts = <10 14 15 16 17 18 19 20 21 22 23 24 25>; 418c2ecf20Sopenharmony_ci fsl,lradc-touchscreen-wires = <5>; 428c2ecf20Sopenharmony_ci fsl,ave-ctrl = <4>; 438c2ecf20Sopenharmony_ci fsl,ave-delay = <2>; 448c2ecf20Sopenharmony_ci fsl,settling = <10>; 458c2ecf20Sopenharmony_ci }; 46