问题描述及复现步骤:
1.修改rk3399.dtsi如下:
spi2 {
spi2_clk: spi2-clk {
rockchip,pins =
<2 11 RK_FUNC_2 &pcfg_pull_up_3ma>;
};
spi2_cs0: spi2-cs0 {
rockchip,pins =
<2 12 RK_FUNC_2 &pcfg_pull_up_3ma>;
};
spi2_rx: spi2-rx {
rockchip,pins =
<2 9 RK_FUNC_2 &pcfg_pull_up_3ma>;
};
spi2_tx: spi2-tx {
rockchip,pins =
<2 10 RK_FUNC_2 &pcfg_pull_up_3ma>;
};
};
2.在rk3399pro-firefly-aiojd4.dts增加spidev节点如下:
&spi2 {
status = "okay";
max-freq = <24000000>;
spi_wk2xxx@00{
status = "disabled";
};
spi_test@00 {
compatible = "rockchip,spidev";
reg = <0>;
spi-max-frequency = <24000000>;
pinctrl-names = "default";
pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
};
};
烧录到板卡后,利用spidev_test进行自测,插上逻辑分析仪后发送数据没有任何反应
更多回帖