Annotating USB device Location in DT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I'm working on a way to annotate the location of a USB device within a
system, specifically whether it's "user-facing" or "world-facing."

There's precedent for this type of annotation:

- ACPI: Uses the '_PLD' property for this purpose
(https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/06_Device_Configuration/Device_Configuration.html#pld-physical-location-of-device).
We already leverage this for MIPI camera sensors
(https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/media/pci/intel/ipu-bridge.c#n265).

- Device Tree : Has a property for this within
video-interface-devices.yaml
(https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/media/video-interface-devices.yaml#n386).

I propose adding a similar property to usb-device.yaml
(https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/usb/usb-device.yaml).

The ultimate goal is to have this information consumed by the video
driver and exposed to userspace via the V4L2_CID_CAMERA_ORIENTATION
control (https://www.kernel.org/doc/html/latest/userspace-api/media/v4l/ext-ctrls-camera.html).

What do you think about this?

Thanks,

-- 
Ricardo Ribalda




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux