[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241231131512.GA45470-robh@kernel.org>
Date: Tue, 31 Dec 2024 07:15:12 -0600
From: Rob Herring <robh@...nel.org>
To: Dave Stevenson <dave.stevenson@...pberrypi.com>
Cc: Sakari Ailus <sakari.ailus@...ux.intel.com>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Florian Fainelli <florian.fainelli@...adcom.com>,
Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>,
John Cox <john.cox@...pberrypi.com>,
Dom Cobley <dom@...pberrypi.com>,
review list <kernel-list@...pberrypi.com>,
Ezequiel Garcia <ezequiel@...guardiasur.com.ar>,
John Cox <jc@...esim.co.uk>, linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 4/7] media: dt-bindings: media: Add binding for the
Raspberry Pi HEVC decoder
On Fri, Dec 20, 2024 at 04:21:15PM +0000, Dave Stevenson wrote:
> Adds a binding for the HEVC decoder found on the BCM2711 / Raspberry Pi 4,
> and BCM2712 / Raspberry Pi 5.
>
> Signed-off-by: Dave Stevenson <dave.stevenson@...pberrypi.com>
> ---
> .../bindings/media/raspberrypi,hevc-dec.yaml | 72 ++++++++++++++++++++++
> 1 file changed, 72 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/media/raspberrypi,hevc-dec.yaml b/Documentation/devicetree/bindings/media/raspberrypi,hevc-dec.yaml
> new file mode 100644
> index 000000000000..d9e804300297
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/raspberrypi,hevc-dec.yaml
> @@ -0,0 +1,72 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/media/raspberrypi,hevc-dec.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Raspberry Pi HEVC Decoder
> +
> +maintainers:
> + - John Cox <john.cox@...pberrypi.com>
> + - Dom Cobley <dom@...pberrypi.com>
> + - Dave Stevenson <dave.stevenson@...pberrypi.com>
> + - Raspberry Pi internal review list <kernel-list@...pberrypi.com>
> +
> +description: |-
Don't need '|-' if no formatting to preserve.
> + The Raspberry Pi HEVC decoder is a hardware video decode accelerator block
> + found in the BCM2711 and BCM2712 processors used on Raspberry Pi 4 and 5
> + boards respectively.
> +
> +properties:
> + compatible:
> + enum:
> + - raspberrypi,hevc-dec
> +
> + reg:
> + items:
> + - description: The HEVC main register region
> + - description: The Interrupt control register region
> +
> + reg-names:
> + items:
> + - const: intc
> + - const: hevc
Doesn't match the description in reg.
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + items:
> + - description: The HEVC block clock
> +
> + clock-names:
> + items:
> + - const: hevc
Not really useful when there is only 1 possible entry and also when it
is optional.
> +
> +required:
> + - compatible
> + - reg
> + - reg-names
> + - interrupts
> + - clocks
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> + video-codec@...10000 {
> + compatible = "raspberrypi,hevc-dec";
> + reg = <0x7eb10000 0x1000>, /* INTC */
> + <0x7eb00000 0x10000>; /* HEVC */
> + reg-names = "intc",
> + "hevc";
> +
> + interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
> +
> + clocks = <&clk 0>;
> + clock-names = "hevc";
> + };
> +
> +...
>
> --
> 2.34.1
>
Powered by blists - more mailing lists