As I currently understand it the ioexpander on the ccimx6ulsbc is not yet supported in 2.0-r5. I do however want to start working with the available GPIOs.
I believe I am able to use MCA_IO2 as a gpio so I look to Documentation/devicetree/bindings/gpio/gpio-mca-cc6ul.txt. I see the entry
mca: mca-ccul@7e {
gpio{
compatible = “digi,mca-cc6ul-gpio”;
gpio-controller;
#gpio-cells = <2>;
};
};
What else am I missing to add this to imx6ul-ccimx6ulsbc-id135.dts? As it stands it would obviously cause a syntax error.
Also I want to get control of nets EXP_GPIO_3, EXP_GPIO_2, and EXP_GPIO1 which are connected to GPIO1_2, GPIO1_3 and GPIO1_5 respectively. As far as enabling these ports in the dts, do I look towards Documentation/devicetree/bindings/gpio/fsl-imx-gpio.txt? Also how do I map port and channel in the example provided?
gpio0: gpio@73f84000 {
compatible = “fsl,imx51-gpio”, “fsl,imx35-gpio”;
reg = <0x73f84000 0x4000>;
interrupts = <50 51>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};