本帖最后由 wgj429 于 2018-7-4 11:14 编辑
&uart4 {
current-speed = <9600>;
no-loopback-test;
status = “disabled”;
};
&spi1 {
status = “okay”;
max-freq = <48000000>;
spidev@00 {
status = “okay”;
compatible = “lineartechnology,ltc2488”; #此处使用spidev.c里面的描述
reg = <0x00>;
spi-max-frequency = <48000000>;
};
};
不显示spi设备节点 /dev/spi*
内核config需要选上SPI_SPIDEV:
│ Symbol: SPI_SPIDEV [=y]
│ Type : tristate
│ Prompt: User mode SPI device driver support
│ Location:
│ → Device Drivers
│ → SPI support (SPI [=y])
│ Defined at drivers/spi/Kconfig:684
│ Depends on: SPI [=y] && SPI_MASTER [=y]
sudo mknod /dev/spidev0.0 c 153 0
这个 153,0没有确认,但是出现了spi节点设备
wgj429 发表于 2018-7-5 07:16
可以显示spi设备节点了,重点是刷机要kernel resource一起刷机
楼主你好,修改了DTS和设备驱动程序,需要每次都重新烧写一遍么。动态加载驱动程序,重新编译DTS生成的DTb进行替换可以么
胖砸 发表于 2018-7-14 10:30
楼主你好,修改了DTS和设备驱动程序,需要每次都重新烧写一遍么。动态加载驱动程序,重新编译DTS生成的DT …
请问可以动态加载驱动程序吗?

