Tcan 4550 SPI device tree help

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Tcan 4550 SPI device tree help

1,039 次查看
Da_123456_DA
Contributor II

Hello,

I'm trying to add tcan4550 to my microchip sama5d27 board, and it's seem that I have a mistake on the device tree config:

spi1: spi@fc000000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi1_default>;
status = "okay";
 
spidev@0 {
compatible = "spidev";
spi-max-frequency = <10000000>;
reg = <0>;
};

tcan4x5x: can@0 {
compatible = "ti,tcan4x5x";
reg = <0>;
// #address-cells = <1>;
// #size-cells = <1>;
spi-max-frequency = <18000000>;
clock-frequency = <40000000>;
device-state-gpios = <PIN_PA16 GPIO_ACTIVE_HIGH>;
// device-wake-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
// reset-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
// int-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
bosch,mram-cfg = <0x0 15 15 5 5 0 10 10>;
bus-speed = <250000>;
bus-speed-data = <1000000>;
status = "okay";

can-transceiver {
max-bitrate = <8000000>;
};
};


 
};
 
I can see that spi0.0 has been created , but not tcan interface
this is the dmesg error:
 
"dmesg | grep "spi0"
spi_master spi0: spi_device register error /ahb/apb/spi@fc000000/can@0
spi_master spi0: Failed to create SPI device for /ahb/apb/spi@fc000000/can@0
"
"
cat /sys/bus/spi/devices/spi0.0/uevent
OF_NAME=spidev
OF_FULLNAME=/ahb/apb/spi@fc000000/spidev@0
OF_COMPATIBLE_0=spidev
OF_COMPATIBLE_N=1
MODALIAS=spi:spidev
"
 
Thanks,
 
 
0 项奖励
回复
0 回复数