I am trying to get a capacitive touchscreen working with the AM335xEVMSK development kit. The touchscreen has an EETI eGalax controller, and interfaces with the eval board via the connector J2. Luckily, the kernel in the SDK has a driver for this!
So, I've added the following entry to the am335x-evmsk.dts file (the node should be in the tree at "/ocp/i2c@44e0b000/egalax_ts@04"):
egalax_ts@04 {
compatible = "eeti,egalax_ts";
reg = <0x04>;
interrupt-parent = <&gpio2>;
interrupts = <0 2>; /* 0 = gpio2_0; 2 = falling edge triggered */
wakeup-gpios = <1 0>; /* 1 = gpio2_1; 0 = unused cell */
};
When the driver loads, I get the following error:
/ocp/i2c@44e0b000/egalax_ts@04: could not get #gpio-cells for /ocp/interrupt-controller@48200000
Why is it looking at the interrupt controller for #gpio-cells? Shouldn't that come from &gpio2?
How can I resolve this?