We are integrating the TCAN4550 into our system.
Initialize the SPI directly after powered on, and then perform the read operation.
The SPI communications is working. But SDO can't receive any data like below chart:
DTS config:
&spi2 {
status = "okay";
max-freq = <50000000>;
cs-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_LOW>;
tcan4x5x: tcan4x5x@0 {
compatible = "ti,tcan4x5x";
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
spi-max-frequency = <10000000>;
clock-names = "cclk", "hclk";
clocks = <&tcan4x5x_cclk>, <&tcan4x5x_hclk>;
bosch,mram-cfg = <0x0 2 1 4 5 0 3 10>;
pinctrl-names = "default";
pinctrl-0 = <&pwr_en>, <&data_ready>;
pwr_en-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>; /* GPIO2_A2 */
data-ready-gpios = <&gpio2 RK_PB0 GPIO_ACTIVE_LOW>; /* GPIO2_B0 */
status = "okay";
};
};
&pinctrl {
tcan4x5x {
pwr_en: pwr-en {
rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
};
data_ready: data-ready {
rockchip,pins = <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};