This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
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>;
};
};
};
您好,
请注意 TCAN4550在SCLK的上升沿采集SDI数据,在SCLK的下降沿输出数据至SDO管脚。因此建议您先检查下是否在SCLK的上升沿输入SDI 的数据已保持稳定,主控端应在SCLK的上升沿读取SDO输出数据。
看到您也在E2E英文论坛发帖咨询,建议您等待更了解这款芯片的英文论坛工程师为您解答: