Back to home page

OSCL-LXR

 
 

    


0001 * Freescale MXS LRADC device driver
0002 
0003 Required properties:
0004 - compatible: Should be "fsl,imx23-lradc" for i.MX23 SoC and "fsl,imx28-lradc"
0005               for i.MX28 SoC
0006 - reg: Address and length of the register set for the device
0007 - interrupts: Should contain the LRADC interrupts
0008 
0009 Optional properties:
0010 - fsl,lradc-touchscreen-wires: Number of wires used to connect the touchscreen
0011                                to LRADC. Valid value is either 4 or 5. If this
0012                                property is not present, then the touchscreen is
0013                                disabled. 5 wires is valid for i.MX28 SoC only.
0014 - fsl,ave-ctrl: number of samples per direction to calculate an average value.
0015                 Allowed value is 1 ... 32, default is 4
0016 - fsl,ave-delay: delay between consecutive samples. Allowed value is
0017                  2 ... 2048. It is used if 'fsl,ave-ctrl' > 1, counts at
0018                  2 kHz and its default is 2 (= 1 ms)
0019 - fsl,settling: delay between plate switch to next sample. Allowed value is
0020                 1 ... 2047. It counts at 2 kHz and its default is
0021                 10 (= 5 ms)
0022 
0023 Example for i.MX23 SoC:
0024 
0025         lradc@80050000 {
0026                 compatible = "fsl,imx23-lradc";
0027                 reg = <0x80050000 0x2000>;
0028                 interrupts = <36 37 38 39 40 41 42 43 44>;
0029                 fsl,lradc-touchscreen-wires = <4>;
0030                 fsl,ave-ctrl = <4>;
0031                 fsl,ave-delay = <2>;
0032                 fsl,settling = <10>;
0033         };
0034 
0035 Example for i.MX28 SoC:
0036 
0037         lradc@80050000 {
0038                 compatible = "fsl,imx28-lradc";
0039                 reg = <0x80050000 0x2000>;
0040                 interrupts = <10 14 15 16 17 18 19 20 21 22 23 24 25>;
0041                 fsl,lradc-touchscreen-wires = <5>;
0042                 fsl,ave-ctrl = <4>;
0043                 fsl,ave-delay = <2>;
0044                 fsl,settling = <10>;
0045         };