From patchwork Thu Dec 16 16:34:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 12682061 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F4C1C433F5 for ; Thu, 16 Dec 2021 16:33:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236208AbhLPQd6 (ORCPT ); Thu, 16 Dec 2021 11:33:58 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:59523 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232915AbhLPQd6 (ORCPT ); Thu, 16 Dec 2021 11:33:58 -0500 Received: (Authenticated sender: jacopo@jmondi.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 6328E10000B; Thu, 16 Dec 2021 16:33:51 +0000 (UTC) From: Jacopo Mondi To: Geert Uytterhoeven , Magnus Damm , Laurent Pinchart , Kieran Bingham , =?utf-8?q?Niklas_S=C3=B6d?= =?utf-8?q?erlund?= Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v8 0/7] arm64: dts: renesas: Enable MAX9286 on Eagle and Condor Date: Thu, 16 Dec 2021 17:34:32 +0100 Message-Id: <20211216163439.139579-1-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Hello, v8 is rebased on lates renesas-drivers. Minor changes compared to v7: address Geert's comments on the 'gpio-poc' property parsing and power enable/disable routine. The new property parsing logic reads like ret = of_property_read_u32_array(); if (ret == -EVINAL) { /* Use regulator */ return 0; } /* Make sure the property is well formed. */ if (ret || gpio_poc[0] > 1 && (gpio_poc[1] != HIGH/LOW) return -EINVAL; return 0; Same as in v7: I have removed depencies on the post_register() v4l2 subdev operation to have this integrated separately. This change upports BSP 5.1 commit https://github.com/renesas-rcar/linux-bsp/commit/28fdde07b28d5ae17ad6fb472ff4b52a4835cbee The usual note about condor: Condor has 2 GMSL channels, something the current version of the MAX9286 driver does not support. However the DTS integration can be upstreamed but a single channel can be used at a time. Integration of the new "maxim,gpio-poc" property required for Eagle/Condor is fully reviewed and can be eventually fast-tracked. The series has been tested on Eagle V3H board, while only compile tested for Condor. Jacopo Mondi (4): dt-bindings: media: max9286: Re-indent example dt-bindings: media: max9286: Define 'maxim,gpio-poc' media: i2c: max9286: Use "maxim,gpio-poc" property arm64: dts: renesas: condor: Enable MAX9286 Kieran Bingham (3): arm64: dts: renesas: eagle: Enable MAX9286 arm64: dts: renesas: Add GMSL cameras .dtsi DNI: arm64: dts: renesas: eagle: Include eagle-gmsl .../bindings/media/i2c/maxim,max9286.yaml | 275 +++++++++------ arch/arm64/boot/dts/renesas/gmsl-cameras.dtsi | 332 ++++++++++++++++++ .../arm64/boot/dts/renesas/r8a77970-eagle.dts | 112 ++++++ .../boot/dts/renesas/r8a77980-condor.dts | 193 ++++++++++ drivers/media/i2c/max9286.c | 124 +++++-- 5 files changed, 899 insertions(+), 137 deletions(-) create mode 100644 arch/arm64/boot/dts/renesas/gmsl-cameras.dtsi --- 2.33.1