media: rockchip: rkisp1: carry ip version information
authorHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Thu, 21 Jan 2021 14:44:06 +0000 (15:44 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 28 Jan 2021 10:31:08 +0000 (11:31 +0100)
commitfc672d806bd77eff26117479e90ccdcfd2a8ecb4
treeba30ea214e2eb5e508fbd11c9b8081b3745bf684
parent66d81de7ea9d2b0775e5bfd5e770483a1c24b9ca
media: rockchip: rkisp1: carry ip version information

The IP block evolved from its rk3288/rk3399 base and the vendor
designates them with a numerical version. rk3399 for example
is designated V10 probably meaning V1.0.

There doesn't seem to be an actual version register we could read that
information from, so allow the match_data to carry that information
for future differentiation.

Also carry that information in the hw_revision field of the media-
controller API, so that userspace also has access to that.

The added versions are:
- V10: at least rk3288 + rk3399
- V11: seemingly unused as of now, but probably appeared in some soc
- V12: at least rk3326 + px30
- V13: at least rk1808

[fix checkpatch warning don't use multiple blank lines]

Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Documentation/admin-guide/media/rkisp1.rst
drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c
include/uapi/linux/rkisp1-config.h