From patchwork Thu Oct 31 09:02:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongchun Zhu X-Patchwork-Id: 59733 Received: from vger.kernel.org ([209.132.180.67]) by www.linuxtv.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQ6Lf-0000dN-Ry; Thu, 31 Oct 2019 09:02:32 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726897AbfJaJCa (ORCPT + 1 other); Thu, 31 Oct 2019 05:02:30 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:2792 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726776AbfJaJC3 (ORCPT ); Thu, 31 Oct 2019 05:02:29 -0400 X-UUID: c6fa13f813ab4e2f9a6293d6b065807b-20191031 X-UUID: c6fa13f813ab4e2f9a6293d6b065807b-20191031 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1913279059; Thu, 31 Oct 2019 17:02:23 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 31 Oct 2019 17:02:19 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 31 Oct 2019 17:02:19 +0800 From: Dongchun Zhu To: , , , , , , , , CC: , , , , , , , , Subject: [V3, 0/2] media: ov8856: Add YAML binding and sensor mode support Date: Thu, 31 Oct 2019 17:02:11 +0800 Message-ID: <20191031090213.27727-1-dongchun.zhu@mediatek.com> X-Mailer: git-send-email 2.9.2 MIME-Version: 1.0 X-MTK: N Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hello, This series adds new DT bindings in YAML and two more sensor modes for users to call. From the latest ov8856 datasheet, it is proposed to adopt the resolution of 1632*1224 and 3264*2448, together with Bayer Order of BGGR. Here two more scenario settings are provided. The hardware revision of ov8856 could be distinguished from one OTP SRAM register R700F. PLL register R3614 requires to be correspondingly updated. For instance, 0x20 is suggested for 1B camera module. Finally, The driver has been validated in camera features on CrOS application. Changes of V3 mainly address comments from Andy, Tomasz, Sakari, Rob. - Convert text documentation to YAML schema. - Enable VSYNC singal output - Add ov8856_runtime_suspend() which would call __ov8856_power_off() - Add ov8856_runtime_resume() which would call __ov8856_power_on() - Fix other reviewed issues in V2 Mainly changes of V2 are addressing the comments from Sakari, Tomasz, including, - Add clock-frequency and link-frequencies in DT - Re-define some macros like R3614, R3d84, n_shutdn - Rename OV8856_MCLK to OV8856_XVCLK per datasheet - Refine ov8856_update_otp_reg, ov8856_configure_regulators and ov8856_cal_delay - Set the bayer order in the mode struct, and directly links to register R3808, R3809 - Remove or refine redundant log print - Fix other reviewed issues in V1 Dongchun Zhu (2): media: dt-bindings: ov8856: Document YAML bindings media: i2c: ov8856: Add support for more sensor modes .../devicetree/bindings/media/i2c/ov8856.yaml | 126 ++++ MAINTAINERS | 1 + drivers/media/i2c/ov8856.c | 661 ++++++++++++++++++++- 3 files changed, 779 insertions(+), 9 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/i2c/ov8856.yaml