Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp490756pxb; Thu, 12 Nov 2020 08:39:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWWKqROZTwfATpcWTQOjTNt7AWjYsWp0MQ0qRxKtkhgf4p3wMfzCQS4TIZCtlnx8vCYumF X-Received: by 2002:a17:906:2e08:: with SMTP id n8mr129142eji.440.1605199146314; Thu, 12 Nov 2020 08:39:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605199146; cv=none; d=google.com; s=arc-20160816; b=LzIvbF2Jw4cvNiAyoR2ipCoIgp9vt/2kc7GckbaKlxzyqkBJPX4uxIy/87Ss5HBtYX d8dtp76do0tICPl6xGaG5h8KpF0d9igIcJmPMPJaXm3lEfD6Wg/O6TWa6JW9wzb2TwG8 hxqoDY3VDkanYakCb7aZcz/kFyiw5bYk77559+pgfFWlonGcI1Lw9E/krpr8Gm36wTBy 0QvI7gZrNn/+U5AGWxhaqP6kZ63VDjFcSPblp5dyRLtZJuaP+LTIgMPKJVwn9/4EFj3P 44S+syc8Bv3ehSHmnbLPx1QCbSdI93gF/BzQlTH8te2KCmULi0x7aE8xMuq8l95FTn14 SIPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=cL2BKB7YYepDa12u7yg9sGI60Ndqai/J7LjxSI+ycAk=; b=KGxW7zoMGTIprMOhKbhQ0TKLCHYSviCpPkqLicLfB9vlhJhqsiZMmLV6GjmuXFvES9 ykpds8Nm4084mTtl+PKd4ZDMCR1epAI31Bxn0KLoQ21YNtPTMPW8Dh3+j7uDj7LKAJ8c z9X5QQnqBxCtxOBRNNiDzN4HdcRTGwZzSwx/aYssiIuHkQIoJBsHz68Bdnaz81Q7zdAC mXd8kAGuZ7ytnmrG2V1GyFRRZo3pvUZvOA3zYQ8wXtnF+8EIZMMRLp8k/FDBX85IEhky 2il1EWTnSZM7j1IQQ+Q/HjC1ggR46T3upFZfzr7e1yvSwLLjGTpFDAQzLhuFUiaZp/3p diCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si3953836ejc.387.2020.11.12.08.38.42; Thu, 12 Nov 2020 08:39:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728395AbgKLQhO (ORCPT + 99 others); Thu, 12 Nov 2020 11:37:14 -0500 Received: from mslow2.mail.gandi.net ([217.70.178.242]:50934 "EHLO mslow2.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728089AbgKLQhO (ORCPT ); Thu, 12 Nov 2020 11:37:14 -0500 Received: from relay11.mail.gandi.net (unknown [217.70.178.231]) by mslow2.mail.gandi.net (Postfix) with ESMTP id DA7CD3B028F for ; Thu, 12 Nov 2020 16:28:08 +0000 (UTC) Received: from uno.lan (93-34-118-233.ip49.fastwebnet.it [93.34.118.233]) (Authenticated sender: jacopo@jmondi.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id AD989100011; Thu, 12 Nov 2020 16:27:43 +0000 (UTC) From: Jacopo Mondi To: kieran.bingham+renesas@ideasonboard.com, laurent.pinchart+renesas@ideasonboard.com, niklas.soderlund+renesas@ragnatech.se, geert@linux-m68k.org Cc: Jacopo Mondi , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Hyun Kwon , Manivannan Sadhasivam Subject: [PATCH v4 0/8] media: i2c: Add RDACM21 camera module Date: Thu, 12 Nov 2020 17:27:21 +0100 Message-Id: <20201112162729.101384-1-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.29.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, this v4 follows discussion on how to better handle the initial reverse channel amplitude and incorporate Geert's and Kieran suggestion to use the value in millivolts instead of relying on a boolean property. v4: - Replace 'maxim-high-threshold' with 'maxim,initial-reverse-channel-mV' - Increse delay when reading OV490 chip ID to give it a bit more time to exit reset v3: https://patchwork.linuxtv.org/project/linux-media/list/?series=3657 Background in v1 cover letter: https://www.spinics.net/lists/linux-renesas-soc/msg52886.html I have tested on Eagle V3M with 4 RDACM21, but the whole point of this series is to retain compatibility with RDACM20. For this reason I have included 2 patches on top, not intended for merge that re-propose DTS support for the MAXIM max9286 expansion board connected to Salvator-X and add the newly introduced property to the DTS file. Kieran, I know you have a working setup with RDACM20, the final two patches are meant for ease your testing. Can you give this series a spin ? Series based on latest renesas-drivers tag: renesas-drivers-2020-11-10-v5.10-rc3 If I get a confirmation this setup works on Salvator-X, I'll submit the new property for inclusion to devicetree people, which I have left out at the moment. Thanks j Jacopo Mondi (7): media: i2c: Add driver for RDACM21 camera module dt-bindings: media: max9286: Document 'maxim,,initial-reverse-channel-mV" media: i2c: max9286: Break-out reverse channel setup media: i2c: max9286: Make channel amplitude programmable media: i2c: max9286: Configure reverse channel amplitude [DNI] arm64: dts: renesas: salvator-x-max9286: Specify channel amplitude [DNI] arm64: dts: renesas: eagle: Specify channel amplitude Laurent Pinchart (1): arm64: dts: renesas: salvator-x: Add MAX9286 expansion board .../bindings/media/i2c/maxim,max9286.yaml | 23 + MAINTAINERS | 12 + .../arm64/boot/dts/renesas/r8a77970-eagle.dts | 1 + .../boot/dts/renesas/salvator-x-max9286.dtsi | 396 +++++++++++++ drivers/media/i2c/Kconfig | 13 + drivers/media/i2c/Makefile | 2 + drivers/media/i2c/max9286.c | 58 +- drivers/media/i2c/rdacm21.c | 539 ++++++++++++++++++ 8 files changed, 1031 insertions(+), 13 deletions(-) create mode 100644 arch/arm64/boot/dts/renesas/salvator-x-max9286.dtsi create mode 100644 drivers/media/i2c/rdacm21.c -- 2.29.1