[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220612155346.16288-1-frattaroli.nicolas@gmail.com>
Date: Sun, 12 Jun 2022 17:53:43 +0200
From: Nicolas Frattaroli <frattaroli.nicolas@...il.com>
To: Philipp Zabel <p.zabel@...gutronix.de>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Heiko Stuebner <heiko@...ech.de>,
Peter Geis <pgwipeout@...il.com>,
Michael Riesch <michael.riesch@...fvision.net>,
Liang Chen <cl@...k-chips.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Ezequiel Garcia <ezequiel@...guardiasur.com.ar>
Cc: Nicolas Frattaroli <frattaroli.nicolas@...il.com>,
linux-media@...r.kernel.org, linux-rockchip@...ts.infradead.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-staging@...ts.linux.dev
Subject: [PATCH v5 0/3] Enable JPEG Encoder on RK3566/RK3568
Hello,
this is v5 of my RK356x JPEG encoder patch set. It enables the Hantro
hardware encoder of the RK3566 and RK3568 line of SoCs, with JPEG being
the only format the driver currently supports encoding for.
The first patch adds a new binding, the rockchip,rk3568-vepu binding, to
describe this kind of hardware. The reason for going with a new binding
instead of modifying the vpu binding as the previous versions did is
that the vpu binding is getting quite long, and Ezequiel Garcia suggested
(on IRC) that we could document encoder only instances in their own
binding. This makes sense to me, especially considering that RK3588 will
have more Hantro instances like this to document.
The second patch makes the actual driver changes to support this variant.
The third and final patch makes the necessary device tree changes for
the rk356x device tree file to add both the node for the encoder and
its MMU.
The series has been tested on a PINE64 Quartz64 Model A with an RK3566
SoC using GStreamer.
Regards,
Nicolas Frattaroli
Changes in v5:
- rename rockchip-vepu.yaml to rockchip,rk3568-vepu.yaml
- fix #address-cells/#size-cells in bindings example
- fix indentation in bindings example
Changes in v4:
- bindings: move vepu to its own binding, also add it to MAINTAINERS
- driver: rename a stray rk3568_jpeg_enc_codec_ops to
rk3568_vepu_codec_ops
- devicetree: remove interrupt-names property
- rebase onto linux-next
Changes in v3:
- bindings: change consts to an enum
- bindings: add check to make sure devices with a -vepu compatible only
have the vepu interrupt
Changes in v2:
- rename compatible as it's not JPEG only
- rename device tree nodes as it's not JPEG only
- reword commits as it's not JPEG only
- get rid of a whole bunch of redundant struct definitions, as, you
guessed it, it's not JPEG only
Nicolas Frattaroli (3):
media: dt-binding: media: Add rk3568-vepu binding
media: hantro: Add support for RK356x encoder
arm64: dts: rockchip: Add Hantro encoder node to rk356x
.../bindings/media/rockchip,rk3568-vepu.yaml | 69 +++++++++++++++++++
MAINTAINERS | 1 +
arch/arm64/boot/dts/rockchip/rk356x.dtsi | 20 ++++++
drivers/staging/media/hantro/hantro_drv.c | 1 +
drivers/staging/media/hantro/hantro_hw.h | 1 +
.../staging/media/hantro/rockchip_vpu_hw.c | 25 +++++++
6 files changed, 117 insertions(+)
create mode 100644 Documentation/devicetree/bindings/media/rockchip,rk3568-vepu.yaml
--
2.36.1
Powered by blists - more mailing lists