melta101
melta101
DIIDevHeads IoT Integration Server
Created by melta101 on 12/23/2024 in #📦-middleware-and-os
How to Configure DTS and Struct for SPI Controller Driver with Child Nodes in Zephyr?
that way We can write the dts like below soc.dtsi /soc { spi0: spi@48030000 { compatible = "ti,omap-spi"; reg = <0x48030000 0x1000>; interrupts = <41>; spi-max-frequency = <48000000>; status = "disabled"; }; }; board.dts &spi0 { status = "okay"; }; }; sensor.overlay &spi0 { sensor@0 { compatible = "generic,sensor"; reg = <0>; frequency = <12000000>; ti,cs-delay = <10>; label = "SENSOR_0"; }; sensor@1 { compatible = "generic,sensor"; reg = <1>; frequency = <24000000>; ti,cs-delay = <20>; label = "SENSOR_1"; }; }; i suppose the above is acceptable for zephyr style of application programming
19 replies