admin管理员组文章数量:1188831
I have been doing work embedded Linux work for the past few years without any real formal training on it. I'd like to better understand how device drivers handle nested devices/buses. For example, a processor might have an AXI bus as one of its main forms of communication with hardware. Off of that AXI bus could be any number of other devices or even more buses such as I2C or SPI with their own devices.
axi {
compatible = "axi-driver";
spi {
compatible = "spi-driver";
temp-sensor {
compatible = "temp-driver";
};
};
i2c {
compatible = "i2c-driver";
humidity-sensor {
compatible = "humidity-driver";
};
};
};
I imagine that a majority of devices have at least one level of nesting like this. How is this handled in the kernel? My understanding of drivers is that they mostly operate by themselves and do not interact. Does Linux use drivers for busses differently than what I am used to for devices? Or is the device tree misleading and a device off a bus doesn't actually rely on the bus driver?
版权声明:本文标题:How does Linux handle a driver for a device which lives on a bus requiring another driver? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738339087a2077471.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论