Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753277AbdFVPNt (ORCPT ); Thu, 22 Jun 2017 11:13:49 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:52186 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752592AbdFVPNq (ORCPT ); Thu, 22 Jun 2017 11:13:46 -0400 From: Hugues Fruchet To: Maxime Coquelin , Alexandre Torgue , Mauro Carvalho Chehab , Hans Verkuil CC: , , , , Benjamin Gaignard , Yannick Fertre , Hugues Fruchet Subject: [PATCH v1 0/5] Camera support on STM32F746G-DISCO board Date: Thu, 22 Jun 2017 17:12:46 +0200 Message-ID: <1498144371-13310-1-git-send-email-hugues.fruchet@st.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.73] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-06-22_06:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1545 Lines: 40 This patchset enables OV9655 camera support of STM32F4DIS-CAM extension board plugged on connector P1 of STM32F746G-DISCO board. Tested by doing a fullscreen preview with a modified version of yavta [1] which redirects captured frames to framebuffer: yavta -s 480x272 -n 1 --capture=-1 /dev/video0 -D (note the unofficial "-D" option for "Display output") First part of patches brings few fixes in DCMI driver and introduces internal crop support in order to enable fullscreen preview (480x272) by cropping VGA sensor output. Second part relates to devicetree and configuration to enable DCMI on STM32F746 MCU then enable DCMI and OV9655 support on STM32F746G-DISCO [2]. [1] http://git.ideasonboard.org/?p=yavta.git;a=summary [2] due to STM32F746G-DISCO support not yet in media tree (4.13-rc1), devicetree patches related to STM32F746G-DISCO are not yet provided. =========== = history = =========== version 1: - Initial submission for code review with restrictions [2]. Hugues Fruchet (5): [media] stm32-dcmi: catch dma submission error [media] stm32-dcmi: revisit control register handling [media] stm32-dcmi: crop sensor image to match user resolution ARM: dts: stm32: Enable DCMI support on STM32F746 MCU ARM: configs: stm32: DCMI + OV9655 camera support arch/arm/boot/dts/stm32f746.dtsi | 31 +++++++++++++ arch/arm/configs/stm32_defconfig | 9 ++++ drivers/media/platform/stm32/stm32-dcmi.c | 72 ++++++++++++++++++++++++++----- 3 files changed, 101 insertions(+), 11 deletions(-) -- 1.9.1