Driver improvements & fixes#535
Conversation
|
Important Review skippedToo many files! This PR contains 222 files, which is 72 over the limit of 150. To get a review, narrow the scope: Upgrade to a paid plan to raise the limit. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (222)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
+ updated existing drivers that didn't have the slot attribute defined in their DTS
…node Replaces the deprecated SpiSdCardDevice (removed upstream in TactilityProject#535) with a declarative sdcard@1 node under spi0: - spi0 now lists all chip-selects via cs-gpios (display=34, sd=48, radio=3); the SPI driver drives them high on start, so the bus deselects every peripheral before any one transacts -- replacing our manual csPinWorkAround. - The SD card resolves its own CS from cs-gpios[1] by node address. - status="disabled": the node is constructed/added but not auto-started; Hal::init's mountAll() starts it before displays come up (SPI displays must start after the SD card is mounted on the shared bus). Deletes devices/Sdcard.cpp/.h and the createSdCard() call. Devicetree compiler validated: sdcard registers as DTS_DEVICE_STATUS_DISABLED with frequency 20000. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
cs-pinsand set them to high on driver startfile_system_set_owner()andfile_system_get_owner()FileSystemis part of a shared SPI busdevice_get_child_count()slotvalue