All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>,
	robh+dt@kernel.org, mark.rutland@arm.com, mchehab@kernel.org,
	sakari.ailus@linux.intel.com, crope@iki.fi
Cc: chris.paterson2@renesas.com, laurent.pinchart@ideasonboard.com,
	geert+renesas@glider.be, linux-media@vger.kernel.org,
	devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v4 3/7] media: i2c: max2175: Add MAX2175 support
Date: Fri, 5 May 2017 14:13:59 +0200	[thread overview]
Message-ID: <f4cda576-5ed1-05d0-1651-bc284387022c@xs4all.nl> (raw)
In-Reply-To: <20170502132615.42134-4-ramesh.shanmugasundaram@bp.renesas.com>

On 05/02/17 15:26, Ramesh Shanmugasundaram wrote:
> 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: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>
> ---
> v4:
>  - Addressed v4l2_ctrl name string convention (Hans)
>   - "HSLS above/below" to "HSLS Above/Below"
>   - "RX MODE" to "RX Mode"
> ---
>  Documentation/media/v4l-drivers/index.rst   |    1 +
>  Documentation/media/v4l-drivers/max2175.rst |   60 ++
>  drivers/media/i2c/Kconfig                   |    4 +
>  drivers/media/i2c/Makefile                  |    2 +
>  drivers/media/i2c/max2175/Kconfig           |    8 +
>  drivers/media/i2c/max2175/Makefile          |    4 +
>  drivers/media/i2c/max2175/max2175.c         | 1437 +++++++++++++++++++++++++++
>  drivers/media/i2c/max2175/max2175.h         |  108 ++
>  8 files changed, 1624 insertions(+)
>  create mode 100644 Documentation/media/v4l-drivers/max2175.rst
>  create mode 100644 drivers/media/i2c/max2175/Kconfig
>  create mode 100644 drivers/media/i2c/max2175/Makefile
>  create mode 100644 drivers/media/i2c/max2175/max2175.c
>  create mode 100644 drivers/media/i2c/max2175/max2175.h
> 
> diff --git a/Documentation/media/v4l-drivers/index.rst b/Documentation/media/v4l-drivers/index.rst
> index a606d1cdac13..d8cade53d496 100644
> --- a/Documentation/media/v4l-drivers/index.rst
> +++ b/Documentation/media/v4l-drivers/index.rst
> @@ -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
> diff --git a/Documentation/media/v4l-drivers/max2175.rst b/Documentation/media/v4l-drivers/max2175.rst
> new file mode 100644
> index 000000000000..201af8f217e9
> --- /dev/null
> +++ b/Documentation/media/v4l-drivers/max2175.rst
> @@ -0,0 +1,60 @@
> +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.
> +
> +.. 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 sck

'sck' is short of 'sample clock' or something like that? I recommend that you
write this in full at least once in this documentation.

> +    rate, 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.

Regards,

	Hans

  reply	other threads:[~2017-05-05 12:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-02 13:26 [PATCH v4 0/7] Add V4L2 SDR (DRIF & MAX2175) driver Ramesh Shanmugasundaram
2017-05-02 13:26 ` [PATCH v4 1/7] media: v4l2-ctrls: Reserve controls for MAX217X Ramesh Shanmugasundaram
2017-05-02 13:26 ` [PATCH v4 2/7] dt-bindings: media: Add MAX2175 binding description Ramesh Shanmugasundaram
     [not found]   ` <20170502132615.42134-3-ramesh.shanmugasundaram-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
2017-05-02 16:16     ` Geert Uytterhoeven
2017-05-02 16:16       ` Geert Uytterhoeven
2017-05-02 13:26 ` [PATCH v4 3/7] media: i2c: max2175: Add MAX2175 support Ramesh Shanmugasundaram
2017-05-05 12:13   ` Hans Verkuil [this message]
2017-05-02 13:26 ` [PATCH v4 4/7] media: Add new SDR formats PC16, PC18 & PC20 Ramesh Shanmugasundaram
2017-05-02 13:26 ` [PATCH v4 6/7] dt-bindings: media: Add Renesas R-Car DRIF binding Ramesh Shanmugasundaram
     [not found]   ` <20170502132615.42134-7-ramesh.shanmugasundaram-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
2017-05-08 16:00     ` Rob Herring
2017-05-08 16:00       ` Rob Herring
     [not found] ` <20170502132615.42134-1-ramesh.shanmugasundaram-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
2017-05-02 13:26   ` [PATCH v4 5/7] doc_rst: media: New SDR formats PC16, PC18 & PC20 Ramesh Shanmugasundaram
2017-05-02 13:26     ` Ramesh Shanmugasundaram
2017-05-02 13:26   ` [PATCH v4 7/7] media: platform: rcar_drif: Add DRIF support Ramesh Shanmugasundaram
2017-05-02 13:26     ` Ramesh Shanmugasundaram
2017-05-05 12:17 ` [PATCH v4 0/7] Add V4L2 SDR (DRIF & MAX2175) driver Hans Verkuil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f4cda576-5ed1-05d0-1651-bc284387022c@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=chris.paterson2@renesas.com \
    --cc=crope@iki.fi \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mchehab@kernel.org \
    --cc=ramesh.shanmugasundaram@bp.renesas.com \
    --cc=robh+dt@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.