From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDB17CA9ECE for ; Thu, 31 Oct 2019 09:02:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BD05F2087F for ; Thu, 31 Oct 2019 09:02:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726897AbfJaJCa (ORCPT ); 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 Content-Type: text/plain 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 -- 2.9.2