/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
文件已经修改添加 ,但是/dev设备文件下还是没有找到spi,还有哪里需要修改添加的吗?
#include "sunxi-common-regulators.dtsi"
/ {
model = "Lichee Pi Zero";
compatible = "licheepi,licheepi-zero", "allwinner,sun8i-v3s";
aliases {
serial0 = &uart0;
spi0 = &spi0;
};
chosen {
stdout-path = "serial0:115200n8";
};
};
&mmc0 {
pinctrl-0 = <&mmc0_pins_a>;
pinctrl-names = "default";
broken-cd;
bus-width = <4>;
vmmc-supply = <®_vcc3v3>;
status = "okay";
};
&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins>;
status = "okay";
#address-cells=<1>;
#size-cells=<0>;
spidev@0x00 {
compatible = "spidev";
spi-max-frequency = <100000000>;
reg = <0>;
};
};
离线
确实是没改,改了CONFIG_SPI_SPIDEV=y就可以了
make menuconfig 有没有勾选 SPIDEV 相关驱动?
离线
可以30M就笑了:D
话说100Mhz是不是有点嚣张啊?
离线
已经改好了,感谢
内核源码配置要加SPI驱动
离线