Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b47b79d8 authored by Ramesh Shanmugasundaram's avatar Ramesh Shanmugasundaram Committed by Mauro Carvalho Chehab
Browse files

[media] media: i2c: max2175: Add MAX2175 support



This patch adds driver support for the MAX2175 chip. This is Maxim
Integrated's RF to Bits tuner front end chip designed for software-defined
radio solutions. This driver exposes the tuner as a sub-device instance
with standard and custom controls to configure the device.

Signed-off-by: default avatarRamesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>
Signed-off-by: default avatarHans Verkuil <hansverk@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent a45509c0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ For more details see the file COPYING in the source distribution of Linux.
	davinci-vpbe
	fimc
	ivtv
	max2175
	meye
	omap3isp
	omap4_camera
+62 −0
Original line number Diff line number Diff line
Maxim Integrated MAX2175 RF to bits tuner driver
================================================

The MAX2175 driver implements the following driver-specific controls:

``V4L2_CID_MAX2175_I2S_ENABLE``
-------------------------------
    Enable/Disable I2S output of the tuner. This is a private control
    that can be accessed only using the subdev interface.
    Refer to Documentation/media/kapi/v4l2-controls for more details.

.. flat-table::
    :header-rows:  0
    :stub-columns: 0
    :widths:       1 4

    * - ``(0)``
      - I2S output is disabled.
    * - ``(1)``
      - I2S output is enabled.

``V4L2_CID_MAX2175_HSLS``
-------------------------
    The high-side/low-side (HSLS) control of the tuner for a given band.

.. flat-table::
    :header-rows:  0
    :stub-columns: 0
    :widths:       1 4

    * - ``(0)``
      - The LO frequency position is below the desired frequency.
    * - ``(1)``
      - The LO frequency position is above the desired frequency.

``V4L2_CID_MAX2175_RX_MODE (menu)``
-----------------------------------
    The Rx mode controls a number of preset parameters of the tuner like
    sample clock (sck), sampling rate etc. These multiple settings are
    provided under one single label called Rx mode in the datasheet. The
    list below shows the supported modes with a brief description.

.. flat-table::
    :header-rows:  0
    :stub-columns: 0
    :widths:       1 4

    * - ``"Europe modes"``
    * - ``"FM 1.2" (0)``
      - This configures FM band with a sample rate of 0.512 million
        samples/sec with a 10.24 MHz sck.
    * - ``"DAB 1.2" (1)``
      - This configures VHF band with a sample rate of 2.048 million
        samples/sec with a 32.768 MHz sck.

    * - ``"North America modes"``
    * - ``"FM 1.0" (0)``
      - This configures FM band with a sample rate of 0.7441875 million
        samples/sec with a 14.88375 MHz sck.
    * - ``"DAB 1.2" (1)``
      - This configures FM band with a sample rate of 0.372 million
        samples/sec with a 7.441875 MHz sck.
+12 −0
Original line number Diff line number Diff line
@@ -796,6 +796,18 @@ config VIDEO_SAA6752HS
	  To compile this driver as a module, choose M here: the
	  module will be called saa6752hs.

comment "SDR tuner chips"

config SDR_MAX2175
	tristate "Maxim 2175 RF to Bits tuner"
	depends on VIDEO_V4L2 && MEDIA_SDR_SUPPORT && I2C
	---help---
	  Support for Maxim 2175 tuner. It is an advanced analog/digital
	  radio receiver with RF-to-Bits front-end designed for SDR solutions.

	  To compile this driver as a module, choose M here; the
	  module will be called max2175.

comment "Miscellaneous helper chips"

config VIDEO_THS7303
+2 −0
Original line number Diff line number Diff line
@@ -86,3 +86,5 @@ obj-$(CONFIG_VIDEO_IR_I2C) += ir-kbd-i2c.o
obj-$(CONFIG_VIDEO_ML86V7667)	+= ml86v7667.o
obj-$(CONFIG_VIDEO_OV2659)	+= ov2659.o
obj-$(CONFIG_VIDEO_TC358743)	+= tc358743.o

obj-$(CONFIG_SDR_MAX2175) += max2175.o
+1453 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading