devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv3 00/15] atmel-isi/ov7670/ov2640: convert to standalone drivers
@ 2017-03-06 14:56 Hans Verkuil
  2017-03-06 14:56 ` [PATCHv3 08/15] atmel-isi: move out of soc_camera to atmel Hans Verkuil
                   ` (4 more replies)
  0 siblings, 5 replies; 34+ messages in thread
From: Hans Verkuil @ 2017-03-06 14:56 UTC (permalink / raw)
  To: linux-media-u79uwXL29TY76Z2rM5mHXA
  Cc: Guennadi Liakhovetski, Songjun Wu, Sakari Ailus,
	devicetree-u79uwXL29TY76Z2rM5mHXA

From: Hans Verkuil <hans.verkuil-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>

This patch series converts the soc-camera atmel-isi to a standalone V4L2
driver.

The same is done for the ov7670 and ov2640 sensor drivers: the ov7670 was
used to test the atmel-isi driver. The ov2640 is needed because the em28xx
driver has a soc_camera include dependency. Both ov7670 and ov2640 sensors
have been tested with the atmel-isi driver.

The first 5 patches improve the ov7670 sensor driver, mostly adding modern
features such as DT support.

The next three convert the atmel-isi and move it out of soc_camera.

The following 5 patches convert ov2640 and drop the soc_camera dependency
in em28xx. I have tested that this works with my 'SpeedLink Vicious And
Divine Laplace webcam'.

The last two patches add isi support to the DT: the first for the ov7670
sensor, the second modifies it for the ov2640 sensor.

These two final patches are for demonstration purposes only, I do not plan
on merging them.

Tested with my sama5d3-Xplained board, the ov2640 sensor and two ov7670
sensors: one with and one without reset/pwdn pins. Also tested with my
em28xx-based webcam.

I'd like to get this in for 4.12. Fingers crossed.

Regards,

	Hans

Changes since v2:
- Incorporated Sakari's and Rob's device tree bindings comments.
- ov2640: dropped the reset/power changes. These actually broke the em28xx
  and there was really nothing wrong with it.
- merged the "ov2640: allow use inside em28xx" into patches 10 and 11.
  It really shouldn't have been a separate patch in the first place.
- rebased on top of 4.11-rc1.

Changes since v1:

- Dropped MC support from atmel-isi and ov7670: not needed to make this
  work. Only for the ov2640 was it kept since the em28xx driver requires it.
- Use devm_clk_get instead of clk_get.
- The ov7670 lower limit of the clock speed is 10 MHz instead of 12. Adjust
  accordingly.


Hans Verkuil (15):
  ov7670: document device tree bindings
  ov7670: call v4l2_async_register_subdev
  ov7670: fix g/s_parm
  ov7670: get xclk
  ov7670: add devicetree support
  atmel-isi: document device tree bindings
  atmel-isi: remove dependency of the soc-camera framework
  atmel-isi: move out of soc_camera to atmel
  ov2640: update bindings
  ov2640: convert from soc-camera to a standard subdev sensor driver.
  ov2640: use standard clk and enable it.
  ov2640: add MC support
  em28xx: drop last soc_camera link
  sama5d3 dts: enable atmel-isi
  at91-sama5d3_xplained.dts: select ov2640

 .../devicetree/bindings/media/atmel-isi.txt        |   90 +-
 .../devicetree/bindings/media/i2c/ov2640.txt       |   22 +-
 .../devicetree/bindings/media/i2c/ov7670.txt       |   44 +
 MAINTAINERS                                        |    1 +
 arch/arm/boot/dts/at91-sama5d3_xplained.dts        |   60 +-
 arch/arm/boot/dts/sama5d3.dtsi                     |    4 +-
 drivers/media/i2c/Kconfig                          |   11 +
 drivers/media/i2c/Makefile                         |    1 +
 drivers/media/i2c/{soc_camera => }/ov2640.c        |  151 +--
 drivers/media/i2c/ov7670.c                         |   69 +-
 drivers/media/i2c/soc_camera/Kconfig               |    6 -
 drivers/media/i2c/soc_camera/Makefile              |    1 -
 drivers/media/platform/Makefile                    |    1 +
 drivers/media/platform/atmel/Kconfig               |   11 +-
 drivers/media/platform/atmel/Makefile              |    1 +
 drivers/media/platform/atmel/atmel-isi.c           | 1398 ++++++++++++++++++++
 .../platform/{soc_camera => atmel}/atmel-isi.h     |    0
 drivers/media/platform/soc_camera/Kconfig          |   11 -
 drivers/media/platform/soc_camera/Makefile         |    1 -
 drivers/media/platform/soc_camera/atmel-isi.c      | 1167 ----------------
 drivers/media/usb/em28xx/em28xx-camera.c           |    9 -
 21 files changed, 1696 insertions(+), 1363 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/media/i2c/ov7670.txt
 rename drivers/media/i2c/{soc_camera => }/ov2640.c (92%)
 create mode 100644 drivers/media/platform/atmel/atmel-isi.c
 rename drivers/media/platform/{soc_camera => atmel}/atmel-isi.h (100%)
 delete mode 100644 drivers/media/platform/soc_camera/atmel-isi.c

-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2017-03-10 12:01 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-06 14:56 [PATCHv3 00/15] atmel-isi/ov7670/ov2640: convert to standalone drivers Hans Verkuil
2017-03-06 14:56 ` [PATCHv3 08/15] atmel-isi: move out of soc_camera to atmel Hans Verkuil
     [not found]   ` <20170306145616.38485-9-hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-03-10 10:43     ` Sakari Ailus
2017-03-06 14:56 ` [PATCHv3 10/15] ov2640: convert from soc-camera to a standard subdev sensor driver Hans Verkuil
2017-03-08 18:39   ` Frank Schäfer
     [not found] ` <20170306145616.38485-1-hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-03-06 14:56   ` [PATCHv3 01/15] ov7670: document device tree bindings Hans Verkuil
     [not found]     ` <20170306145616.38485-2-hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-03-09 18:01       ` Sakari Ailus
2017-03-10  9:38         ` Hans Verkuil
2017-03-06 14:56   ` [PATCHv3 02/15] ov7670: call v4l2_async_register_subdev Hans Verkuil
2017-03-06 14:56   ` [PATCHv3 03/15] ov7670: fix g/s_parm Hans Verkuil
     [not found]     ` <20170306145616.38485-4-hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-03-09 18:19       ` Sakari Ailus
2017-03-06 14:56   ` [PATCHv3 04/15] ov7670: get xclk Hans Verkuil
2017-03-09 20:38     ` Sakari Ailus
     [not found]       ` <20170309203816.GQ3220-S+BSfZ9RZZmRSg0ZkenSGLdO1Tsj/99ntUK59QYPAWc@public.gmane.org>
2017-03-10  8:55         ` Hans Verkuil
     [not found]           ` <4ecb5aa4-40b6-5d78-03ba-239efbd0137e-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-03-10  9:11             ` Sakari Ailus
2017-03-10  9:41               ` Hans Verkuil
2017-03-06 14:56   ` [PATCHv3 05/15] ov7670: add devicetree support Hans Verkuil
     [not found]     ` <20170306145616.38485-6-hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-03-09 20:45       ` Sakari Ailus
2017-03-10  9:32         ` Hans Verkuil
2017-03-10 10:41           ` Sakari Ailus
2017-03-06 14:56   ` [PATCHv3 06/15] atmel-isi: document device tree bindings Hans Verkuil
     [not found]     ` <20170306145616.38485-7-hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-03-10  9:19       ` Sakari Ailus
2017-03-06 14:56   ` [PATCHv3 07/15] atmel-isi: remove dependency of the soc-camera framework Hans Verkuil
2017-03-10 10:39     ` Sakari Ailus
2017-03-10 11:11       ` Hans Verkuil
     [not found]       ` <20170310103920.GW3220-S+BSfZ9RZZmRSg0ZkenSGLdO1Tsj/99ntUK59QYPAWc@public.gmane.org>
2017-03-10 11:25         ` Hans Verkuil
     [not found]           ` <e9f9a41c-c1bb-dfca-646c-c0c24e99d939-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-03-10 12:01             ` Sakari Ailus
2017-03-06 14:56   ` [PATCHv3 09/15] ov2640: update bindings Hans Verkuil
2017-03-06 14:56   ` [PATCHv3 11/15] ov2640: use standard clk and enable it Hans Verkuil
2017-03-06 14:56   ` [PATCHv3 12/15] ov2640: add MC support Hans Verkuil
2017-03-06 14:56   ` [PATCHv3 13/15] em28xx: drop last soc_camera link Hans Verkuil
     [not found]     ` <20170306145616.38485-14-hverkuil-qWit8jRvyhVmR6Xm/wNWPw@public.gmane.org>
2017-03-10 10:44       ` Sakari Ailus
2017-03-06 14:56 ` [PATCHv3 14/15] sama5d3 dts: enable atmel-isi Hans Verkuil
2017-03-06 14:56 ` [PATCHv3 15/15] at91-sama5d3_xplained.dts: select ov2640 Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).