From patchwork Fri Nov 2 16:00:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 10665761 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CDBFE14BD for ; Fri, 2 Nov 2018 16:00:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9FC82C375 for ; Fri, 2 Nov 2018 16:00:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE0F42C277; Fri, 2 Nov 2018 16:00:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EC052C245 for ; Fri, 2 Nov 2018 16:00:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727277AbeKCBIa (ORCPT ); Fri, 2 Nov 2018 21:08:30 -0400 Received: from vsp-unauthed02.binero.net ([195.74.38.227]:30474 "EHLO vsp-unauthed02.binero.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbeKCBI3 (ORCPT ); Fri, 2 Nov 2018 21:08:29 -0400 X-Halon-ID: 70d8b565-deb8-11e8-874f-005056917f90 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [89.233.230.99]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id 70d8b565-deb8-11e8-874f-005056917f90; Fri, 02 Nov 2018 17:00:51 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Kieran Bingham , Laurent Pinchart , Jacopo Mondi , linux-media@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [PATCH v3 0/4] i2c: adv748x: add support for CSI-2 TXA to work Date: Fri, 2 Nov 2018 17:00:05 +0100 Message-Id: <20181102160009.17267-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, This series allows the TXA CSI-2 transmitter of the adv748x to function in 1-, 2- and 4- lane mode. Currently the driver fixes the hardware in 4-lane mode. The driver looks at the standard DT property 'data-lanes' to determine which mode it should operate in. Patch 1/4 lists the 'data-lanes' DT property as mandatory for endpoints describing the CSI-2 transmitters. Patch 2/4 refactors the initialization sequence of the adv748x to be able to reuse more code. Patch 3/4 adds the DT parsing and storing of the number of lanes. Patch 4/4 merges the TXA and TXB power up/down procedure while also taking the configurable number of lanes into account. The series is based on the latest media-tree master and is tested on Renesas M3-N in 1-, 2- and 4- lane mode. Niklas Söderlund (4): dt-bindings: adv748x: make data-lanes property mandatory for CSI-2 endpoints i2c: adv748x: reuse power up sequence when initializing CSI-2 i2c: adv748x: store number of CSI-2 lanes described in device tree i2c: adv748x: configure number of lanes used for TXA CSI-2 transmitter .../devicetree/bindings/media/i2c/adv748x.txt | 4 +- drivers/media/i2c/adv748x/adv748x-core.c | 235 ++++++++++-------- drivers/media/i2c/adv748x/adv748x.h | 1 + 3 files changed, 135 insertions(+), 105 deletions(-) Tested-by: Jacopo Mondi