Can anybody tell. How may turn on “CAN BUS” on Colibri iMX6
Hello @andrey.vatoropin.it ,
Here you have the documentation for CAN bus in the Colibri family:
Best regards,
Josep
i know this article… but it is not working ((
What exactly is not working?
Can you give us more information?: error logs, your hardware and software setup ( name and version of your Colibri SoM, and your carrier board, version of Torizon or BSP that you are using), what steps you followed, at what point you are stuck…
The more detailed the information you provide, the better.
Best regards,
Josep
quite easy
in manual we can see next string:
/* Colibri SSP */
&ecspi4 {
mcp251x0: mcp251x@0 {
@@ -117,10 +125,9 @@
pinctrl-0 = <
&pinctrl_weim_gpio_1 &pinctrl_weim_gpio_2
&pinctrl_weim_gpio_3 &pinctrl_weim_gpio_4
- &pinctrl_weim_gpio_5 &pinctrl_weim_gpio_6
+ &pinctrl_weim_gpio_5
&pinctrl_csi_gpio_1
&pinctrl_gpio_1
- &pinctrl_gpio_2
&pinctrl_usbh_oc_1 &pinctrl_usbc_id_1
>;
};
it is for file imx6dl-colibri-eval-v3.dts
but in git we can see next:
&ecspi4 {
status = "okay";
mcp251x0: mcp251x@0 {
compatible = "microchip,mcp2515";
clocks = <&clk16m>;
interrupt-parent = <&gpio3>;
interrupts = <27 0x2>;
reg = <0>;
spi-max-frequency = <10000000>;
status = "okay";
};
};
field pin control for delete not exist.
it is source in git
Hello @andrey.vatoropin.it ,
The procedure described in the documentation is only for downstream kernel.
Besides that, the changes that you mention in that patch are applied to &iomuxc, not to &ecspi4
See this thread that explains the format of a patch file:
Best regards,
Josep