On 26/11/2019 15.07, Dan Murphy wrote:
Sean
On 11/25/19 7:21 AM, Sean Nyekjaer wrote:
Hi Dan and Marc,
I'm testing a mockup with the iMX6ull and TCAN4x5x for CANFD
functionality.
In our devicetree I'm having this entry:
&ecspi1 {
cs-gpios = <&gpio4 26 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi1>;
tcan4x5x: tcan4x5x@0 {
compatible = "ti,tcan4x5x";
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
spi-max-frequency = <10000000>;
bosch,mram-cfg = <0x0 0 0 32 0 0 1 1>;
interrupt-parent = <&gpio1>;
interrupts = <23 GPIO_ACTIVE_LOW>;
reset-gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
};
};
But it's not probing.
The Documnetation [0] states I need some m_can entry, when looking in
[1] i looks like I'm creating a m_can device on the address/data bus.
Do we have an m_can example for the tcan device?
Is the driver enabled in your .config?
Are the m_can drivers enabled?
Dan
Hi Dan,
Thanks for the reply :)
I have the driver loading now, just with the SPI entry.
Our HW guys have hardwired the WAKE pin to GND, I'm guessing that's a
perfectly valid scenario.
I have a small patch that makes the WAKE pin optional.
/Sean