Re: [PATCH 2/3] dt-bindings: spi: Add DT schema for Tegra SPIDEV controller
From: Mark Brown
Date: Tue Mar 25 2025 - 11:55:15 EST
On Tue, Mar 25, 2025 at 02:05:01PM +0100, Thierry Reding wrote:
> Mark, would another alternative be to add something like a sysfs export
> attribute? Something that you'd write a controller/chipselect pair to in
> order to create a spidev device? That has the benefit of removing this
> entirely from device tree where it doesn't belong, but still makes this
> option available to users that would otherwise have to resort to hacks.
Possibly? I think I've lost track of what the use case is here, usually
for the spidev stuff DT overlays seem like they're the right thing but
perhaps this is different? If we are doing this at runtime sysfs seems
like a reasonable way to trigger it, though you'd still need the DT to
describe the controller and the chipselects that are available.
Attachment:
signature.asc
Description: PGP signature