Skip to content
Permalink
Martin-Kepplin…
Switch branches/tags

Commits on Jun 16, 2021

  1. Documentation: i2c-cardlist: add the Hynix hi846 sensor

    Add the SK Hynix Hi-846 8M Pixel CMOS image sensor to the i2c-cardlist.
    
    Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
    merge authored and intel-lab-lkp committed Jun 16, 2021
  2. arm64: defconfig: enable VIDEO_HI846

    build the driver for the Hi-846 camera by default on arm64, where it's
    going to be used on at least the imx8mq-librem5 board.
    
    Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
    merge authored and intel-lab-lkp committed Jun 16, 2021
  3. media: i2c: add driver for the SK Hynix Hi-846 8M pixel camera

    The SK Hynix Hi-846 is a 1/4" 8M Pixel CMOS Image Sensor. It supports
    usual features like I2C control, CSI-2 for frame data, digital/analog
    gain control or test patterns.
    
    This driver supports the 640x480, 1280x720 and 1632x1224 resolution
    modes. It supports runtime PM in order not to draw any unnecessary power.
    
    The part is also called YACG4D0C9SHC and a datasheet can be found at
    https://product.skhynix.com/products/cis/cis.go
    
    The large sets of partly undocumented register values are for example
    found when searching for the hi846_mipi_raw_Sensor.c Android driver.
    
    Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
    merge authored and intel-lab-lkp committed Jun 16, 2021
  4. dt-bindings: media: document SK Hynix Hi-846 MIPI CSI-2 8M pixel sensor

    Document the bindings used for the SK Hynix Hi-846 CMOS camera driver.
    
    Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
    Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    merge authored and intel-lab-lkp committed Jun 16, 2021
  5. dt-bindings: vendor-prefixes: Add SK Hynix Inc.

    SK Hynix built the already supported hi556 sensor (and probably much
    more). For more information, see https://www.skhynix.com/
    
    Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
    Acked-by: Rob Herring <robh@kernel.org>
    merge authored and intel-lab-lkp committed Jun 16, 2021

Commits on Jun 8, 2021

  1. media: hantro: IMX8M: add variant for G2/HEVC codec

    Add variant to IMX8M to enable G2/HEVC codec.
    Define the capabilities for the hardware up to 3840x2160.
    G2 doesn't have a postprocessor, uses the same clocks and has it
    own interrupt.
    
    Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
    Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
    Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Benjamin Gaignard authored and mchehab committed Jun 8, 2021
  2. media: hantro: Introduce G2/HEVC decoder

    Implement all the logic to get G2 hardware decoding HEVC frames.
    It supports up level 5.1 HEVC stream.
    It doesn't support yet 10 bits formats or the scaling feature.
    
    Add HANTRO HEVC dedicated control to skip some bits at the beginning
    of the slice header. That is very specific to this hardware so can't
    go into uapi structures. Computing the needed value is complex and requires
    information from the stream that only the userland knows so let it
    provide the correct value to the driver.
    
    Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
    Co-developed-by: Adrian Ratiu <adrian.ratiu@collabora.com>
    Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
    Co-developed-by: Ezequiel Garcia <ezequiel@collabora.com>
    Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Benjamin Gaignard authored and mchehab committed Jun 8, 2021
  3. media: hantro: handle V4L2_PIX_FMT_HEVC_SLICE control

    Make sure that V4L2_PIX_FMT_HEVC_SLICE is correctly handled by the driver.
    
    Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
    Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Benjamin Gaignard authored and mchehab committed Jun 8, 2021
  4. media: uapi: Add a control for HANTRO driver

    The HEVC HANTRO driver needs to know the number of bits to skip at
    the beginning of the slice header.
    That is a hardware specific requirement so create a dedicated control
    for this purpose.
    
    Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Benjamin Gaignard authored and mchehab committed Jun 8, 2021
  5. media: hantro: Only use postproc when post processed formats are defined

    If the variant doesn't support postprocessed formats make sure it will
    be ok.
    
    Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
    Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Benjamin Gaignard authored and mchehab committed Jun 8, 2021
  6. media: hantro: Define HEVC codec profiles and supported features

    Define which HEVC profiles (up to level 5.1) and features
    (no scaling, no 10 bits) are supported by the driver.
    
    Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
    Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Benjamin Gaignard authored and mchehab committed Jun 8, 2021
  7. media: hantro: change hantro_codec_ops run prototype to return errors

    Change hantro_codec_ops run prototype from 'void' to 'int'.
    This allows the driver to cancel the job if an error occurs while configuring
    the hardware.
    
    Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
    Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Benjamin Gaignard authored and mchehab committed Jun 8, 2021
  8. media: hevc: Add decode params control

    Add decode params control and the associated structure to group
    all the information that are needed to decode a reference frame as
    is described in ITU-T Rec. H.265 section "8.3.2 Decoding process
    for reference picture set".
    
    Adapt Cedrus driver to these changes.
    
    Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
    Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Benjamin Gaignard authored and mchehab committed Jun 8, 2021
  9. media: hevc: Add fields and flags for hevc PPS

    Add fields and flags as they are defined in
    7.4.3.3.1 "General picture parameter set RBSP semantics of the
    H.265 ITU specification.
    
    Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
    Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Benjamin Gaignard authored and mchehab committed Jun 8, 2021
  10. media: imon: use DEVICE_ATTR_RW() helper macro

    Use DEVICE_ATTR_RW() helper macro instead of DEVICE_ATTR(), which is
    simpler and more readable.
    
    Due to the names of the read and write functions of the sysfs attribute is
    normalized, there is a natural association.
    
    Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
    Signed-off-by: Sean Young <sean@mess.org>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Zhen Lei authored and mchehab committed Jun 8, 2021
  11. media: rc: add keymap for Toshiba CT-90405 remote

    This is an NEC remote control device shipped with some Toshiba TVs.
    
    Signed-off-by: Alexander Voronov <avv.0@ya.ru>
    Signed-off-by: Sean Young <sean@mess.org>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    crvux authored and mchehab committed Jun 8, 2021
  12. media: st_rc: Handle errors of clk_prepare_enable()

    Hadle errors of clk_prepare_enable() in st_rc_hardware_init() and its
    callers.
    
    Found by Linux Driver Verification project (linuxtesting.org).
    
    Signed-off-by: Evgeny Novikov <novikov@ispras.ru>
    Signed-off-by: Sean Young <sean@mess.org>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    eunovm authored and mchehab committed Jun 8, 2021
  13. media: cinergyt2: make properties const

    The dvb_usb_device_properties can be const. This makes it clear that
    the static can be shared across threads.
    
    Signed-off-by: Sean Young <sean@mess.org>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    seanyoung authored and mchehab committed Jun 8, 2021
  14. media: dvd_usb: memory leak in cinergyt2_fe_attach

    When the driver fails to talk with the hardware with dvb_usb_generic_rw,
    it will return an error to dvb_usb_adapter_frontend_init. However, the
    driver forgets to free the resource (e.g., struct cinergyt2_fe_state),
    which leads to a memory leak.
    
    Fix this by freeing struct cinergyt2_fe_state when dvb_usb_generic_rw
    fails in cinergyt2_frontend_attach.
    
    backtrace:
      [<0000000056e17b1a>] kmalloc include/linux/slab.h:552 [inline]
      [<0000000056e17b1a>] kzalloc include/linux/slab.h:682 [inline]
      [<0000000056e17b1a>] cinergyt2_fe_attach+0x21/0x80 drivers/media/usb/dvb-usb/cinergyT2-fe.c:271
      [<00000000ae0b1711>] cinergyt2_frontend_attach+0x21/0x70 drivers/media/usb/dvb-usb/cinergyT2-core.c:74
      [<00000000d0254861>] dvb_usb_adapter_frontend_init+0x11b/0x1b0 drivers/media/usb/dvb-usb/dvb-usb-dvb.c:290
      [<0000000002e08ac6>] dvb_usb_adapter_init drivers/media/usb/dvb-usb/dvb-usb-init.c:84 [inline]
      [<0000000002e08ac6>] dvb_usb_init drivers/media/usb/dvb-usb/dvb-usb-init.c:173 [inline]
      [<0000000002e08ac6>] dvb_usb_device_init.cold+0x4d0/0x6ae drivers/media/usb/dvb-usb/dvb-usb-init.c:287
    
    Reported-by: syzbot+e1de8986786b3722050e@syzkaller.appspotmail.com
    Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
    Signed-off-by: Sean Young <sean@mess.org>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    mudongliang authored and mchehab committed Jun 8, 2021
  15. media: cxd2880-spi: Fix some error messages

    Fix some erroneous function names in some error messages.
    Remove some spurious or useless trailing and leading character in some
    messages.
    
    Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
    Signed-off-by: Sean Young <sean@mess.org>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    tititiou36 authored and mchehab committed Jun 8, 2021
  16. media: mxl692: make a const array static, makes object smaller

    Don't populate the const array fw_hdr on the stack but instead it
    static. Makes the object code smaller by 5 bytes:
    
    Before:
       text    data    bss     dec    hex filename
      31948   12072     64   44084   ac34 drivers/media/dvb-frontends/mxl692.o
    
    After:
       text    data    bss     dec    hex filename
      31879   12136     64   44079   ac2f drivers/media/dvb-frontends/mxl692.o
    
    (gcc version 10.3.0)
    
    Signed-off-by: Colin Ian King <colin.king@canonical.com>
    Signed-off-by: Sean Young <sean@mess.org>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Colin Ian King authored and mchehab committed Jun 8, 2021
  17. media: MAINTAINERS: add xisc files to isc driver entry

    Add XISC driver and binding files to the ISC driver entry.
    
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ehristev authored and mchehab committed Jun 8, 2021
  18. media: MAINTAINERS: update ISC driver bindings file

    ISC driver was converted to yaml. Update maintainers file.
    
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ehristev authored and mchehab committed Jun 8, 2021
  19. media: atmel: atmel-isc: add microchip-xisc driver

    Add driver for the extended variant of the isc, the microchip XISC
    present on sama7g5 product.
    
    [hverkuil: drop MODULE_SUPPORTED_DEVICE, no longer exists]
    [hverkuil: made isc_sama7g5_config_csc et al static]
    [hverkuil: made sama7g5_controller_formats et al static]
    
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ehristev authored and mchehab committed Jun 8, 2021
  20. media: dt-bindings: media: add microchip,xisc device bindings

    Add bindings for the Microchip eXtended Image Sensor Controller.
    Based on the atmel,isc.yaml binding.
    
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ehristev authored and mchehab committed Jun 8, 2021
  21. media: dt-bindings: media: atmel-isc: convert to yaml

    Convert the Atmel ISC to yaml binding format.
    
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ehristev authored and mchehab committed Jun 8, 2021
  22. media: atmel: atmel-isc-sama5d2: remove duplicate define

    Remove a duplicate definition of clock max divider
    
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ehristev authored and mchehab committed Jun 8, 2021
  23. media: atmel: atmel-isc-base: add support for more formats and additi…

    …onal pipeline modules
    
    Add support for additional formats supported by newer pipelines, and for
    additional pipeline modules.
    
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ehristev authored and mchehab committed Jun 8, 2021
  24. media: atmel: atmel-isc-regs: add additional fields for sama7g5 type …

    …pipeline
    
    Add additional fields for registers present in sama7g5 type pipeline.
    Extend register masks for additional bits in sama7g5 type pipeline registers.
    
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ehristev authored and mchehab committed Jun 8, 2021
  25. media: atmel: atmel-isc: create an adapt pipeline callback for produc…

    …t specific
    
    Once the pipeline is set in the base code, create a callback that will adapt
    the ISC pipeline to each product.
    Create the adapt_pipeline callback that will be used in this fashion.
    
    [hverkuil: made isc_sama5d2_adapt_pipeline static]
    
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ehristev authored and mchehab committed Jun 8, 2021
  26. media: atmel: atmel-isc: move the formats list into product specific …

    …code
    
    The list of input and output formats has to be product specific.
    Move this list into the product specific code.
    Have pointers to these arrays inside the device struct.
    
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ehristev authored and mchehab committed Jun 8, 2021
  27. media: atmel: atmel-isc: create callback for RLP submodule product sp…

    …ecific
    
    The RLP submodule is a part of the atmel-isc pipeline, and stands for
    Rounding,Limiting and Packaging. It used to extract specific data from the
    ISC pipeline. For example if we want to output greyscale 8 bit, we would
    use limiting to 8 bits, and packaging to Luma component only.
    
    Create a product specific callback for initializing the RLP submodule
    of the pipeline
    
    [hverkuil: made isc_sama5d2_config_rlp static]
    
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ehristev authored and mchehab committed Jun 8, 2021
  28. media: atmel: atmel-isc: create callback for GAM submodule product sp…

    …ecific
    
    The GAM submodule is a part of the atmel-isc pipeline, and stands for
    Gamma Correction. It is used to apply the gamma curve to the incoming pixels.
    Create a product specific callback for initializing the GAM submodule
    of the pipeline.
    For sama5d2 product, there is no special configuration at this moment,
    thus this function is a noop.
    
    [hverkuil: made isc_sama5d2_config_gam static]
    
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ehristev authored and mchehab committed Jun 8, 2021
  29. media: atmel: atmel-isc: create callback for DPC submodule product sp…

    …ecific
    
    The DPC submodule is a part of the atmel-isc pipeline, and stands for
    Defective Pixel Correction. Its purpose is to detect defective pixels and
    correct them if possible with the help of adjacent pixels.
    Create a product specific callback for initializing the DPC submodule
    of the pipeline.
    For sama5d2 product, this module does not exist, thus this function is a noop.
    
    [hverkuil: made isc_sama5d2_config_dpc static]
    
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ehristev authored and mchehab committed Jun 8, 2021
  30. media: atmel: atmel-isc: create product specific v4l2 controls config

    Create product specific callback for initializing v4l2 controls.
    Call this from v4l2 controls init function.
    
    [hverkuil: made isc_sama5d2_config_ctrls static]
    
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ehristev authored and mchehab committed Jun 8, 2021
Older