Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2701021pxj; Mon, 14 Jun 2021 05:17:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVdwTQTUHiKSZKaGVCi0Iccgv4NtGBuSywGS9xc+hKLOSgsg7b/x0IZoBv/8GMavJrDOOC X-Received: by 2002:a05:6402:22f9:: with SMTP id dn25mr16650869edb.241.1623673079220; Mon, 14 Jun 2021 05:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623673079; cv=none; d=google.com; s=arc-20160816; b=GY0EFQ77fibjmdyKQXVNkYX2AWjahfa9j5zMA0Xx39fNFLZNth1mwElkhf2yPUQSAZ ChtX2ptXtbX7AFGesG5GTY/MVuScdlyIc3yIkpT6UtRSStjfTvwUtoyGVVS76EDG0jrx 0Y7/cCq76DTA5ObC68TGErnKyCCWsle+uM6EgxWOg6SbPn9Y5/PdetFJesIz9UqZ+KgA YGtRB7YaDDYPUCAoxvb7WGuYFS67BGk2q8Kwp1CHfdwOX7ui2D0UkjDC0GdUMykuvei9 vVPMnTXcf6P/9fOqTHIhY13W9YaXcbh5aKSvEOulms9Ud1OHFcudXRLGt/u6oghqnHYi 5HQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:date :subject:cc:to:from; bh=YOsjxWCGNYWsK3tZAD7BzFc7spf3NUpwjZ5OPIu6BmU=; b=oERDcb9EitL/dOnn0i9b70axR4AkuD+snOzCg9v+D03AjItNK751aRknvHPxeKYM3g sA6L8EDZWnAOmuZLbUz6s+SlR4PjSs7KQDVsHBsxWVLBjzrL25LCoSY1dFgpsNvaD+00 RvofXLxdzWtIr0VFQi2M3zPSWEDz5KMPYBDoqHtij5VBZv2PN0dLX+Wnx75ISQMbopHy 7O2PMqFUAHQyzGpuG8NrmGoUNqC4YdVpb8SGzRc4L5x5+5/IL+fCgFme+usugPRRIelZ eYyQqvU2/BUiIQlo7lEsP9QxgzUYxkHEG5xBe5ah5A0zsO6J+nHpqtJtFL0zxh3+giLp 8hRQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m15si10873965ejb.707.2021.06.14.05.17.36; Mon, 14 Jun 2021 05:17:59 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233280AbhFNMSS (ORCPT + 99 others); Mon, 14 Jun 2021 08:18:18 -0400 Received: from comms.puri.sm ([159.203.221.185]:56530 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232559AbhFNMSS (ORCPT ); Mon, 14 Jun 2021 08:18:18 -0400 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 639BCE145C; Mon, 14 Jun 2021 05:15:45 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GxXrigckZaEu; Mon, 14 Jun 2021 05:15:44 -0700 (PDT) From: Martin Kepplinger To: martin.kepplinger@puri.sm, laurent.pinchart@ideasonboard.com Cc: devicetree@vger.kernel.org, festevam@gmail.com, kernel@pengutronix.de, kernel@puri.sm, krzk@kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, mchehab@kernel.org, phone-devel@vger.kernel.org, robh@kernel.org, shawnguo@kernel.org, slongerbeam@gmail.com, m.felsch@pengutronix.de Subject: [PATCH v4 0/3] media: imx: add support for imx8mq MIPI RX Date: Mon, 14 Jun 2021 14:15:19 +0200 Message-Id: <20210614121522.2944593-1-martin.kepplinger@puri.sm> Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi, This patch series adds a driver for the i.MX8MQ CSI MIPI receiver / controller. It includes the driver, the dt-bindings and the DT addition to the SoC dtsi. This is the vendor driver I'm basing the hardware-side of the driver on: https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/media/platform/imx8/mxc-mipi-csi2_yav.c?h=imx_5.4.70_2.3.0 Thanks Laurent who helped a lot. I'm happy for any feedback, martin revision history ---------------- v4: (thank you Rob and Marco) * create fsl,mipi-phy-gpr custom dt property instead of confusing "phy" * add imx8mq-specific compatibile to imx8mq.dtsi for future use v3: (thank you, Rob and Laurent) among minor other things according to v2 review, changes include: * better describe the clocks * rename DT property "phy-reset" to "reset" and "phy-gpr" to "phy" https://lore.kernel.org/linux-media/20210608104128.1616028-1-martin.kepplinger@puri.sm/T/#t v2: (thank you, Dan and Guido) among fixes according to v1 reviews, changes include: * remove status property from dt-bindings example * define a few bits in order to have less magic values * use "imx8mq_mipi_csi_" as local function prefix * read DT properties only during probe() * remove dead code (log_status) * add imx8mq_mipi_csi_release_icc() * fix imx8mq_mipi_csi_init_icc() https://lore.kernel.org/linux-media/20210531112326.90094-1-martin.kepplinger@puri.sm/ v1: https://lore.kernel.org/linux-media/20210527075407.3180744-1-martin.kepplinger@puri.sm/T/#t Martin Kepplinger (3): dt-bindings: media: document the nxp,imx8mq-mipi-csi2 receiver phy and controller media: imx: add a driver for i.MX8MQ mipi csi rx phy and controller arm64: dts: imx8mq: add mipi csi phy and csi bridge descriptions .../bindings/media/nxp,imx8mq-mipi-csi2.yaml | 171 +++ arch/arm64/boot/dts/freescale/imx8mq.dtsi | 102 ++ drivers/staging/media/imx/Makefile | 1 + drivers/staging/media/imx/imx8mq-mipi-csi2.c | 994 ++++++++++++++++++ 4 files changed, 1268 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/nxp,imx8mq-mipi-csi2.yaml create mode 100644 drivers/staging/media/imx/imx8mq-mipi-csi2.c -- 2.30.2