From: Conor Dooley <conor@kernel.org>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Lucas Sinn <lucas.sinn@wolfvision.net>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>,
Philipp Zabel <p.zabel@pengutronix.de>,
linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/4] media: dt-bindings: Add Rockchip JPEG decoder
Date: Mon, 24 Aug 2026 17:35:12 +0100 [thread overview]
Message-ID: <20260824-catlike-human-502f2aa3150b@spud> (raw)
In-Reply-To: <20260824-rockchip-jpegdec-v1-1-8011822bf500@pengutronix.de>
[-- Attachment #1: Type: text/plain, Size: 5500 bytes --]
On Mon, Aug 24, 2026 at 09:01:09AM +0200, Sascha Hauer wrote:
> Add a devicetree binding schema for the JPEG hardware decoder Rockchip
> integrates into a number of its SoCs. Documents the single register
> window (task registers plus the LLP link-table block at offset 0x300),
> the decode interrupt, the aclk/hclk clocks, the AXI/AHB resets, the IOMMU
> and the power domain.
>
> The core is not tied to one SoC. Downstream it is known as the VDPU720
> and the same block sits on the RK3528, RK3562, RK356x, RK3576, RK3588 and
> RV1126B, with only the clocks, the resets and the power domain differing,
> none of which this schema constrains. A compatible per SoC is all it
> takes to cover them; the RK3568 and the RK3588 are the two that have been
> tested and are enabled here.
>
> The resets and the power domain are required. The block cannot be
> reached with its domain off, and the driver falls back to pulsing the
> reset lines when a frame times out and the in-block soft reset does not
> complete, which a node without them would leave with no way to recover.
>
> The IOMMU stays optional. The driver never refers to it, it is a platform
> integration detail, and rockchip-vpu.yaml does not require it for the
> other codec blocks on these SoCs either.
>
> Assisted-by: Claude:claude-opus-5
Missing signoff.
> ---
> .../bindings/media/rockchip,jpeg-decoder.yaml | 92 ++++++++++++++++++++++
> MAINTAINERS | 8 ++
> 2 files changed, 100 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/media/rockchip,jpeg-decoder.yaml b/Documentation/devicetree/bindings/media/rockchip,jpeg-decoder.yaml
> new file mode 100644
> index 0000000000000..e20c1bf43ef3e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/rockchip,jpeg-decoder.yaml
Filename matching compatible please.
> @@ -0,0 +1,92 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/media/rockchip,jpeg-decoder.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Rockchip JPEG Decoder
> +
> +maintainers:
> + - Lucas Sinn <lucas.sinn@wolfvision.net>
> + - Sascha Hauer <s.hauer@pengutronix.de>
> +
> +description:
> + Rockchip's in-house JPEG/MJPEG hardware decoder, known downstream as the
> + VDPU720. The same core is integrated into a number of Rockchip SoCs, which
> + differ only in the clocks, resets and power domain they are wired to. A
> + dedicated Link List Processor (LLP) register block, located at offset 0x300
> + within the same register window, allows the hardware to decode a chain of
> + frames autonomously ("link mode").
> +
> +properties:
> + compatible:
> + enum:
> + - rockchip,rk3568-jpegd
> + - rockchip,rk3588-jpegd
> +
> + reg:
> + maxItems: 1
> + description:
> + The decoder register window. It covers both the task (function)
> + registers at offset 0x000 and the LLP (link table) registers at
> + offset 0x300.
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + items:
> + - description: AXI clock
> + - description: AHB clock
> +
> + clock-names:
> + items:
> + - const: aclk
> + - const: hclk
IMO, match resets and drop the obvious "clk" from here.
Fine otherwise.
pw-bot: changes-requested
Thanks,
Conor.
> +
> + resets:
> + items:
> + - description: AXI reset line
> + - description: AHB reset line
> +
> + reset-names:
> + items:
> + - const: axi
> + - const: ahb
> +
> + power-domains:
> + maxItems: 1
> +
> + iommus:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clocks
> + - clock-names
> + - resets
> + - reset-names
> + - power-domains
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/rockchip,rk3588-cru.h>
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> + #include <dt-bindings/power/rk3588-power.h>
> + #include <dt-bindings/reset/rockchip,rk3588-cru.h>
> +
> + video-codec@fdb90000 {
> + compatible = "rockchip,rk3588-jpegd";
> + reg = <0xfdb90000 0x400>;
> + interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH 0>;
> + clocks = <&cru ACLK_JPEG_DECODER>, <&cru HCLK_JPEG_DECODER>;
> + clock-names = "aclk", "hclk";
> + resets = <&cru SRST_A_JPEG_DECODER>, <&cru SRST_H_JPEG_DECODER>;
> + reset-names = "axi", "ahb";
> + iommus = <&jpegd_mmu>;
> + power-domains = <&power RK3588_PD_VDPU>;
> + };
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 8014b9f8253ed..baea7e42663a7 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -23424,6 +23424,14 @@ F: Documentation/userspace-api/media/v4l/metafmt-rkisp1.rst
> F: drivers/media/platform/rockchip/rkisp1
> F: include/uapi/linux/rkisp1-config.h
>
> +ROCKCHIP JPEG DECODER DRIVER
> +M: Lucas Sinn <lucas.sinn@wolfvision.net>
> +M: Sascha Hauer <s.hauer@pengutronix.de>
> +L: linux-media@vger.kernel.org
> +L: linux-rockchip@lists.infradead.org
> +S: Maintained
> +F: Documentation/devicetree/bindings/media/rockchip,jpeg-decoder.yaml
> +
> ROCKCHIP RK3568 RANDOM NUMBER GENERATOR SUPPORT
> M: Daniel Golle <daniel@makrotopia.org>
> M: Aurelien Jarno <aurelien@aurel32.net>
>
> --
> 2.47.3
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-08-24 16:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-24 7:01 [PATCH 0/4] media: rockchip: Add JPEG decoder driver Sascha Hauer
2026-08-24 7:01 ` [PATCH 1/4] media: dt-bindings: Add Rockchip JPEG decoder Sascha Hauer
2026-08-24 16:35 ` Conor Dooley [this message]
2026-08-25 7:21 ` Krzysztof Kozlowski
2026-08-25 7:39 ` Sascha Hauer
2026-08-25 12:30 ` Nicolas Dufresne
2026-08-24 7:01 ` [PATCH 2/4] media: rockchip: Add JPEG decoder driver Sascha Hauer
2026-08-24 7:01 ` [PATCH 3/4] arm64: dts: rockchip: rk3588: Add JPEG decoder node Sascha Hauer
2026-08-24 7:01 ` [PATCH 4/4] arm64: dts: rockchip: rk356x: " Sascha Hauer
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=20260824-catlike-human-502f2aa3150b@spud \
--to=conor@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=lucas.sinn@wolfvision.net \
--cc=mchehab@kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox