Firefly开源社区
标题:
rk3128,spi不通
[打印本页]
作者:
15920514550
时间:
2017-8-12 11:28
标题:
rk3128,spi不通
状况描述:板子本身的spi不能用,晶振已经起振,但是spi的clk脚完全没输出
解决方向:有可能是spi配置不对,板子选择使用那一组spi具体要配置那里,急急急
作者:
15920514550
时间:
2017-8-12 11:31
spi0: spi@20074000 {
compatible = "rockchip,rockchip-spi";
reg = <0x20074000 0x1000>;
interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
//pinctrl-0 = <&spi0_txd_mux0 &spi0_rxd_mux0 &spi0_clk_mux0 &spi0_cs0_mux0 &spi0_cs1_mux0>;
//pinctrl-0 = <&spi0_txd_mux1 &spi0_rxd_mux1 &spi0_clk_mux1 &spi0_cs0_mux1 &spi0_cs1_mux1>;
pinctrl-0 = <&spi0_txd_mux2 &spi0_rxd_mux2 &spi0_clk_mux2 &spi0_cs0_mux2>;
rockchip,spi-src-clk = <0>;
num-cs = <2>;
clocks =<&clk_spi0>, <&clk_gates7 12>;
clock-names = "spi","pclk_spi0";
dmas = <&pdma 8>, <&pdma 9>;
#dma-cells = <2>;
dma-names = "tx", "rx";
status = "okay";
};
//这是rk312x.dtsi文件的spi配置,除了这个地方还有什么地方要配置吗
作者:
萤火虫
时间:
2019-1-13 16:59
楼主问题解决了吗?
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1