Firefly开源社区
标题:
AIO3399J开发板上调试MCP2518FD,SPI时钟无输出
[打印本页]
作者:
butterfly
时间:
2021-8-24 15:46
标题:
AIO3399J开发板上调试MCP2518FD,SPI时钟无输出
各位同学,本人在AIO3399J开发板上调试MCP2518FD,DTS配制了SPI2,但SPI2时钟只输出一个高电平。
用SPI2_TEST测试程序,SPI2读写又是正常的。请问这个时钟要怎么设置?拜托各位大神了。
&spi2 {
status = "okay";
//max-frequency = <48000000>;
can0: can@0 {
compatible = "microchip,mcp2515";
pinctrl-name = "default";
pinctrl-0 = <&can0_pins>;
reg = <0>;
clocks = <&clk16m>;
spi-max-frequency = <10000000>;
interrupt-parent = <&gpio4>;
interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
can0_pins: can0-pins {
rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>;
};
clk16m: clk16m {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <16000000>;
};
};
/*
* sp_test@00 {
* compatible = "rockchip,spi_test_bus0_cs0";
* id = <0>;
* reg = <0>;
* spi-max-frequency = <4000000>;
* status = "okay";
* };
*
* sp_test@01 {
* compatible = "rockchip,spi_test_bus0_cs1";
* id = <1>;
* reg = <1>;
* spi-max-frequency = <4000000>;
* };
*/
};
作者:
fengc234
时间:
2022-5-8 17:47
请教以下,你的问题后来是怎么解决的,我是用SPI2接MCP2515,但是设备一直没找到,报了以下三句,复位的时候用示波器抓不到波形
[ 1.703279] rockchip-spi ff1e0000.spi: Failed to request TX DMA channel
[ 1.703299] rockchip-spi ff1e0000.spi: Failed to request RX DMA channel
[ 1.703310] rockchip-spi ff1e0000.spi: no high_speed pinctrl state
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1