From: Rob Herring <robh@kernel.org>
To: Ricardo Ribalda <ribalda@chromium.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Jacopo Mondi <jacopo@jmondi.org>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: usb: usb-device: Add panel-location
Date: Tue, 17 Dec 2024 08:56:12 -0600 [thread overview]
Message-ID: <20241217145612.GA1652259-robh@kernel.org> (raw)
In-Reply-To: <20241212-usb-orientation-v1-1-0b69adf05f37@chromium.org>
On Thu, Dec 12, 2024 at 09:44:37PM +0000, Ricardo Ribalda wrote:
> For some devices like cameras the system needs to know where they are
> mounted.
Why do you need this and why only this property and not the dozens
others ACPI has?
>
> ACPI has a property for this purpose, which is parsed by
> acpi_get_physical_device_location():
> https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/06_Device_Configuration/Device_Configuration.html#pld-physical-location-of-device
>
> In DT we have similar property for video-interface-devices called
> orientation, but it is limited to the requirements of video devices:
> Documentation/devicetree/bindings/media/video-interface-devices.yaml
>
> Add a new property for usb-devices that matches the behavior of
> ACPI's _PLD.
>
> Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
> ---
> Documentation/devicetree/bindings/usb/usb-device.yaml | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/usb/usb-device.yaml b/Documentation/devicetree/bindings/usb/usb-device.yaml
> index da890ee60ce6..1ce79c1c3b31 100644
> --- a/Documentation/devicetree/bindings/usb/usb-device.yaml
> +++ b/Documentation/devicetree/bindings/usb/usb-device.yaml
> @@ -42,6 +42,20 @@ properties:
> port to which this device is attached. The range is 1-255.
> maxItems: 1
>
> + panel-location:
> + description: Describes which panel surface of the system's housing the USB
> + device resides on. It has the same meaning as the `ACPI`'s `_PLD` Panel
> + object.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum:
> + - 0 # Top.
> + - 1 # Bottom.
> + - 2 # Left.
> + - 3 # Right.
> + - 4 # Front (aka as User Facing).
> + - 5 # Back (aka as World Facing).
> + - 6 # Unknown.
> +
> "#address-cells":
> description: should be 1 for hub nodes with device nodes,
> should be 2 for device nodes with interface nodes.
>
> ---
> base-commit: eefa7a9c069908412f8f5d15833901d1b46ae1b2
> change-id: 20241212-usb-orientation-8e3717ebb02a
>
> Best regards,
> --
> Ricardo Ribalda <ribalda@chromium.org>
>
next prev parent reply other threads:[~2024-12-17 14:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 21:44 [PATCH] dt-bindings: usb: usb-device: Add panel-location Ricardo Ribalda
2024-12-17 14:56 ` Rob Herring [this message]
2024-12-17 15:24 ` Ricardo Ribalda
2024-12-19 12:24 ` Rob Herring
2024-12-19 12:29 ` Sakari Ailus
2024-12-19 12:42 ` Ricardo Ribalda
2024-12-20 22:00 ` Rob Herring
2025-01-07 10:37 ` Ricardo Ribalda
2025-01-08 8:45 ` Sakari Ailus
2025-01-08 8:51 ` Ricardo Ribalda
2025-01-08 9:13 ` Sakari Ailus
2025-01-08 9:48 ` Ricardo Ribalda
2025-01-15 10:02 ` Sakari Ailus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241217145612.GA1652259-robh@kernel.org \
--to=robh@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jacopo@jmondi.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=ribalda@chromium.org \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.