|
【Linux】
AIO3399J开发板上调试MCP2518FD,SPI时钟无输出
发表于 2021-8-24 15:46:24
浏览:6737
|
回复:1
打印
只看该作者
[复制链接]
楼主
各位同学,本人在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>;
* };
*/
}; |
|