162306a36Sopenharmony_ci* Freescale MXS LRADC device driver
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciRequired properties:
462306a36Sopenharmony_ci- compatible: Should be "fsl,imx23-lradc" for i.MX23 SoC and "fsl,imx28-lradc"
562306a36Sopenharmony_ci              for i.MX28 SoC
662306a36Sopenharmony_ci- reg: Address and length of the register set for the device
762306a36Sopenharmony_ci- interrupts: Should contain the LRADC interrupts
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciOptional properties:
1062306a36Sopenharmony_ci- fsl,lradc-touchscreen-wires: Number of wires used to connect the touchscreen
1162306a36Sopenharmony_ci                               to LRADC. Valid value is either 4 or 5. If this
1262306a36Sopenharmony_ci                               property is not present, then the touchscreen is
1362306a36Sopenharmony_ci                               disabled. 5 wires is valid for i.MX28 SoC only.
1462306a36Sopenharmony_ci- fsl,ave-ctrl: number of samples per direction to calculate an average value.
1562306a36Sopenharmony_ci                Allowed value is 1 ... 32, default is 4
1662306a36Sopenharmony_ci- fsl,ave-delay: delay between consecutive samples. Allowed value is
1762306a36Sopenharmony_ci                 2 ... 2048. It is used if 'fsl,ave-ctrl' > 1, counts at
1862306a36Sopenharmony_ci                 2 kHz and its default is 2 (= 1 ms)
1962306a36Sopenharmony_ci- fsl,settling: delay between plate switch to next sample. Allowed value is
2062306a36Sopenharmony_ci                1 ... 2047. It counts at 2 kHz and its default is
2162306a36Sopenharmony_ci                10 (= 5 ms)
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ciExample for i.MX23 SoC:
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci	lradc@80050000 {
2662306a36Sopenharmony_ci		compatible = "fsl,imx23-lradc";
2762306a36Sopenharmony_ci		reg = <0x80050000 0x2000>;
2862306a36Sopenharmony_ci		interrupts = <36 37 38 39 40 41 42 43 44>;
2962306a36Sopenharmony_ci		fsl,lradc-touchscreen-wires = <4>;
3062306a36Sopenharmony_ci		fsl,ave-ctrl = <4>;
3162306a36Sopenharmony_ci		fsl,ave-delay = <2>;
3262306a36Sopenharmony_ci		fsl,settling = <10>;
3362306a36Sopenharmony_ci	};
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciExample for i.MX28 SoC:
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci	lradc@80050000 {
3862306a36Sopenharmony_ci		compatible = "fsl,imx28-lradc";
3962306a36Sopenharmony_ci		reg = <0x80050000 0x2000>;
4062306a36Sopenharmony_ci		interrupts = <10 14 15 16 17 18 19 20 21 22 23 24 25>;
4162306a36Sopenharmony_ci		fsl,lradc-touchscreen-wires = <5>;
4262306a36Sopenharmony_ci		fsl,ave-ctrl = <4>;
4362306a36Sopenharmony_ci		fsl,ave-delay = <2>;
4462306a36Sopenharmony_ci		fsl,settling = <10>;
4562306a36Sopenharmony_ci	};
46