xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/mxs-lradc.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Freescale MXS LRADC device driver
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: Should be "fsl,imx23-lradc" for i.MX23 SoC and "fsl,imx28-lradc"
5*4882a593Smuzhiyun              for i.MX28 SoC
6*4882a593Smuzhiyun- reg: Address and length of the register set for the device
7*4882a593Smuzhiyun- interrupts: Should contain the LRADC interrupts
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunOptional properties:
10*4882a593Smuzhiyun- fsl,lradc-touchscreen-wires: Number of wires used to connect the touchscreen
11*4882a593Smuzhiyun                               to LRADC. Valid value is either 4 or 5. If this
12*4882a593Smuzhiyun                               property is not present, then the touchscreen is
13*4882a593Smuzhiyun                               disabled. 5 wires is valid for i.MX28 SoC only.
14*4882a593Smuzhiyun- fsl,ave-ctrl: number of samples per direction to calculate an average value.
15*4882a593Smuzhiyun                Allowed value is 1 ... 32, default is 4
16*4882a593Smuzhiyun- fsl,ave-delay: delay between consecutive samples. Allowed value is
17*4882a593Smuzhiyun                 2 ... 2048. It is used if 'fsl,ave-ctrl' > 1, counts at
18*4882a593Smuzhiyun                 2 kHz and its default is 2 (= 1 ms)
19*4882a593Smuzhiyun- fsl,settling: delay between plate switch to next sample. Allowed value is
20*4882a593Smuzhiyun                1 ... 2047. It counts at 2 kHz and its default is
21*4882a593Smuzhiyun                10 (= 5 ms)
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunExample for i.MX23 SoC:
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun	lradc@80050000 {
26*4882a593Smuzhiyun		compatible = "fsl,imx23-lradc";
27*4882a593Smuzhiyun		reg = <0x80050000 0x2000>;
28*4882a593Smuzhiyun		interrupts = <36 37 38 39 40 41 42 43 44>;
29*4882a593Smuzhiyun		fsl,lradc-touchscreen-wires = <4>;
30*4882a593Smuzhiyun		fsl,ave-ctrl = <4>;
31*4882a593Smuzhiyun		fsl,ave-delay = <2>;
32*4882a593Smuzhiyun		fsl,settling = <10>;
33*4882a593Smuzhiyun	};
34*4882a593Smuzhiyun
35*4882a593SmuzhiyunExample for i.MX28 SoC:
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun	lradc@80050000 {
38*4882a593Smuzhiyun		compatible = "fsl,imx28-lradc";
39*4882a593Smuzhiyun		reg = <0x80050000 0x2000>;
40*4882a593Smuzhiyun		interrupts = <10 14 15 16 17 18 19 20 21 22 23 24 25>;
41*4882a593Smuzhiyun		fsl,lradc-touchscreen-wires = <5>;
42*4882a593Smuzhiyun		fsl,ave-ctrl = <4>;
43*4882a593Smuzhiyun		fsl,ave-delay = <2>;
44*4882a593Smuzhiyun		fsl,settling = <10>;
45*4882a593Smuzhiyun	};
46