[PATCH v2 3/3] arm64: dts: rockchip: Add Hantro encoder node to rk356x
Nicolas Frattaroli
frattaroli.nicolas at gmail.com
Fri May 13 09:36:30 PDT 2022
Hi Rob,
On Freitag, 13. Mai 2022 17:23:58 CEST Rob Herring wrote:
> On Fri, May 13, 2022 at 10:07:51AM -0300, Ezequiel Garcia wrote:
> > [...]
> >
> > I didn't ignore it, I just didn't reply to it. You think this is about
> > changing a dt-binding, but you are actually introducing a new dt-binding
> > since you are adding a new compatible string.
> >
> > You are doing so by extending an existing dt-binding.
> >
> > I am explaining you the _existing_ dt-binding models the (incorrect) idea
> > of a combined decoder and encoder. Since your device is encoder-only
> > and has a single interrupt line, you should omit the interrupt-names,
> > because it doesn't not add anything.
>
> While in general I agree on single entries don't need -names, given just
> 'vdpu' is already allowed I would go with symmetry here and allow it for
> the encoder.
>
> If you wanted to mark 'vdpu' alone as deprecated, then that would be
> fine too. No need for an if/then schema to disallow interrupt-names
> either. Eventually, I plan to (optionally) remove deprecated schemas
> from validation and that would have the effect of requiring
> interrupt-names to have 2 entries here.
>
> Rob
After some discussion in the #linux-media IRC channel on OFTC, we've
come to the conclusion that moving forward with a separate binding for
encoder-only instances would probably be a wise move, as the VPU binding
assumes we'll always have a decoder, and breaking this assumption will
just make it more complex the longer we go on not separating these.
While I was writing such a separate binding for v4 of my series, I
discovered that this makes things quite a bit simpler. Especially
looking into the near future, there will be between one to two
additional compatibles that will be added to this binding for the
RK3588, as it has no less than 5 instances capable of encoding
JPEG, and I believe at least one of them is capable of other
formats as well.
Regards,
Nicolas Frattaroli
More information about the linux-arm-kernel
mailing list