I’m using the reference multimedia image found here.
I’m not sure what I was thinking, I thought that pin 64 was in the GPIO tutorial. I’ve been occupied with a lot of stuff. You’re right I need to mod the dev tree.
I disabled the IPU that was using the pins but I’m assuming that this isn’t enough, and the GPIO pins I want to use need to be configured as generic GPIOs according to this thread.
The only thing is that your colleague alex.tx suggested a way to do it but my device tree looks a bit different. He said to modify the gpio I want similarly to pinctrl_gpio1 to pinctrl_gpio7 in his device tree example:
&iomuxc {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3
&pinctrl_gpio4 &pinctrl_gpio6 &pinctrl_gpio7>;
};
But I have something more like this:
iomuxc@20e0000 {
compatible = "fsl,imx6dl-iomuxc";
reg = <0x20e0000 0x4000>;
pinctrl-names = "default";
//pinctrl-0 = <0x2d 0x2e 0x2f 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37>;
pinctrl-0 = <0x34 0x35 0x36 0x37>;
phandle = <0x1f>;
imx6qdl-colibri {
// csi_gpio-1 {
// fsl,pins = <0x2f8 0x6e0 0x00 0x05 0x00 0x1b0b0 0x27c 0x664 0x00 0x05 0x00 0x1b0b0 0x14c 0x51c 0x00 0x05 0x00 0x1b0b0 0x11c 0x4ec 0x00 0x05 0x00 0x1b0b0 0x178 0x548 0x00 0x05 0x00 0x130b0 0x12c 0x4fc 0x00 0x05 0x00 0x1b0b0 0x120 0x4f0 0x00 0x05 0x00 0x1b0b0 0x114 0x4e4 0x00 0x05 0x00 0x1b0b0 0x118 0x4e8 0x00 0x05 0x00 0x1b0b0 0x1d0 0x5a0 0x00 0x05 0x00 0x1b0b0 0x148 0x518 0x00 0x05 0x00 0x1b0b0 0x2fc 0x6e4 0x00 0x05 0x00 0x1b0b0>;
// phandle = <0x33>;
// };
csi_gpio-2 {
fsl,pins = <0x130 0x500 0x00 0x05 0x00 0x1b0b0>;
phandle = <0xb6>;
};
gpio-1 {
fsl,pins = <0x170 0x540 0x00 0x05 0x00 0x1b0b0 0x29c 0x684 0x00 0x05 0x00 0x1b0b0 0x290 0x678 0x00 0x05 0x00 0x1b0b0 0x1f0 0x5c0 0x00 0x05 0x00 0x1b0b0 0xac 0x3c0 0x00 0x05 0x00 0x1b0b0 0x34c 0x734 0x00 0x05 0x00 0x1b0b0 0x294 0x67c 0x00 0x05 0x00 0x1b0b0 0x340 0x728 0x00 0x05 0x00 0x1b0b0>;
phandle = <0x34>;
};
gpio-2 {
fsl,pins = <0x238 0x608 0x00 0x05 0x00 0x1b0b0 0x23c 0x60c 0x00 0x05 0x00 0x1b0b0>;
phandle = <0x35>;
};
Maybe the difference is he may be doing a device tree overlay whereas I’m editing the device tree directly, but either way I’m not sure exactly where I need to specify the GPIOs I want to use. Any advice would be appretiated.
Thank you,
Luc