From patchwork Sun Nov 20 18:52:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sathyakam M X-Patchwork-Id: 1978 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1363884wrr; Sun, 20 Nov 2022 19:07:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf4eqOu2KnkmIbKnLMyeWODaw1sqnw9Unt2hyI18iMG0jv2RvHzE+Y7e6TytjpAgweeiTv/A X-Received: by 2002:a63:155e:0:b0:476:95a8:de91 with SMTP id 30-20020a63155e000000b0047695a8de91mr15998030pgv.102.1669000069372; Sun, 20 Nov 2022 19:07:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669000069; cv=none; d=google.com; s=arc-20160816; b=m91U2T4KLdKd2kpjgNqs3IYY1xd6H8ot8itYJqCBIIKGDdoFf//AJRmhMSB8Ah9Zxd T+p6x1gBpMxCxbbEnd7blFi7J0Z6gNpn2Thxi2xThlBmBjYKdoeiuBibwCWmMTSJ2WV0 5D1vhg1NM6TsPzDWhzpvEHvFZWT5R8YxwyVr6BPisi1oVFmV5qTsyESNkLugg6LgDQpO yvdKwDdHp3CK4JKsdiI/v5yHsF6Mm3gKoJQ7nG5qZXh8hNuBIvMkkR44lbPGuF51/uzv kLXhy2gzmoOSbTUrYE0ioazpMjZCfKzEHElt06vvEgshDjSmccrZKcYtJi/9ZAG9Mmef k0Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=vjbfUFyJK93wID0lNnghGDCYcHsDlchldmX4KHuR58A=; b=WhADJ6AUFBE4cbfZCWhfDxQ+RgRLZXbs2GCMbZh6FS2I5MWw1+On2Ejnv427SCsvb4 bPkLfe19JEjX5DMq+G3ArDQTf0lR+9mrSwzB6KwLyCAucVGxDlknFL8e8tfFoM1EhzsC qBgApxC/Jt/xPVe48SdEK+oJMa9QboML+5YvvpzTNpL3ULCNmNQ0nHdSLfGka6e7YqES 7/77602Wi6ETa2WCI626oXP1sm7Na8Aqyc2UQ+hT2GCy5jYtEckQ+w6ja5lrNYsHedGb UaLRS8Ppjtni6p5x9KYsz88XqmFGT23zPS38hUrCHk61YNvaEwNZwGXzccJCH1krjpp8 Aasg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=E8ClenqF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c23-20020a63ea17000000b00476cd35390esi9247451pgi.238.2022.11.20.19.07.35; Sun, 20 Nov 2022 19:07:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=E8ClenqF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229922AbiKUDCK (ORCPT + 99 others); Sun, 20 Nov 2022 22:02:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229931AbiKUDCI (ORCPT ); Sun, 20 Nov 2022 22:02:08 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB59D31DFE for ; Sun, 20 Nov 2022 19:02:04 -0800 (PST) Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20221121030201epoutp019c74877c89d38be399dd2ff9cac91ee9~pemdRcCbp0482804828epoutp01l for ; Mon, 21 Nov 2022 03:02:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20221121030201epoutp019c74877c89d38be399dd2ff9cac91ee9~pemdRcCbp0482804828epoutp01l DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1668999721; bh=vjbfUFyJK93wID0lNnghGDCYcHsDlchldmX4KHuR58A=; h=From:To:Cc:Subject:Date:References:From; b=E8ClenqF1etN5uBw1yC3g1UNDn5TfwI7kaI8VAkTY9qd7iA47Z3/vCYIJxbSkakw3 bENMtaxM6B0aN6S97b9Xm1oOPahZZkBbaG0ZJZ+L/uzCRlEZgkJUhYcdFMZGC5Uv1k DFlA1MVinX6D8s/uNroN5jNXSGfy0rCcIDOO5CE8= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20221121030200epcas5p3fb56e78c633640ee7a6e155b63d95a73~pemcl68AI0188501885epcas5p3j; Mon, 21 Nov 2022 03:02:00 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.176]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4NFscQ556fz4x9Pv; Mon, 21 Nov 2022 03:01:58 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 14.1C.39477.62AEA736; Mon, 21 Nov 2022 12:01:58 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20221120184648epcas5p3e08766377944a2c5850f9600bf75cf8f~pX2FSUNgc0474704747epcas5p3X; Sun, 20 Nov 2022 18:46:48 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221120184648epsmtrp1b7b1c94339974b98eae8144b4987909d~pX2FOtdYE0246702467epsmtrp1K; Sun, 20 Nov 2022 18:46:48 +0000 (GMT) X-AuditID: b6c32a4a-007ff70000019a35-5b-637aea26ebc8 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id F1.E5.14392.8167A736; Mon, 21 Nov 2022 03:46:48 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221120184646epsmtip2a39b4e4feb3d410449cd7cf54fb2a1fe~pX2DNRgsC1606116061epsmtip21; Sun, 20 Nov 2022 18:46:46 +0000 (GMT) From: Sathyakam M To: sathya@samsung.com Cc: Kishon Vijay Abraham I , Krzysztof Kozlowski , Pankaj Kumar Dubey , Alim Akhtar , Aswani Reddy , Andi Shyti , Hans Verkuil , Ming Qian , Jacopo Mondi , Will Deacon , Shawn Guo , Marcel Ziswiler , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] media: add FSD MIPI-CSI2 Rx controller driver Date: Mon, 21 Nov 2022 00:22:16 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJsWRmVeSWpSXmKPExsWy7bCmlq7aq6pkg/eTVSwezNvGZrH4x3Mm i0Obt7JbXJx5l8Xi7vMWRoujrf+ZLfpePGS22PT4GqvF5V1z2CwaH69istg1fQe7xaKtX9gt vhx5zWjxYou4RcsdUwd+j+tLPjF7/L/xiNlj06pONo871/aweWxeUu+x8d0OJo++LasYPTa9 8vD4vEnO49TXz+wBXFHZNhmpiSmpRQqpecn5KZl56bZK3sHxzvGm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WpSXmKPExsWy7bCSvK5EWVWyQe8ZUYsH87axWSz+8ZzJ 4tDmrewWF2feZbG4+7yF0eJo639mi74XD5ktNj2+xmpxedccNovGx6uYLHZN38FusWjrF3aL L0deM1q82CJu0XLH1IHf4/qST8we/288YvbYtKqTzePOtT1sHpuX1HtsfLeDyaNvyypGj02v PDw+b5LzOPX1M3sAVxSXTUpqTmZZapG+XQJXxr995QVT5CuOfljA3MC4T7KLkZNDQsBE4t2i M2xdjFwcQgK7GSUeTXrKDJEQk9iw8h6ULSyx8t9zdoiiZiaJb5dPsoMk2ATUJNZ3nwMrEgFq uLLpFzNIEbPAHhaJ/50L2UASwgJOEhOnLwcrYhFQlTi+eAETiM0rYCrxef4nRogN8hKrNxxg nsDIs4CRYRWjZGpBcW56brFhgWFearlecWJucWleul5yfu4mRnAAa2nuYNy+6oPeIUYmDsZD jBIczEoivCLHKpOFeFMSK6tSi/Lji0pzUosPMUpzsCiJ817oOhkvJJCeWJKanZpakFoEk2Xi 4JRqYJoyzb5SPkzY6XKT2KVbh7+J3p0fedptYeB89b/eT1IjHxqXeDKkezzR4jTVmW31QqrX W1JkzZbaqWdOfOw88UqFce/1TSw6HuvCfJZFzGnmjJ/NEjlzxTq3wwJ8Cq4nuJZybS65Hsi3 Z9v1Tv/2BatrmSzbtWVa2OeuuRHpffzP0iPS5llnnXYm3fGaI2kSE2z2Vz9HX6Rtn2eX5WHj I95fjoQu3fQhqOWFzKF7r9asXF2X13639edF84yKTXu69roJLbu0astDUb6X7RzvVhnoe0nn T5X8KdjEl+rLqFu3YdNC9YDHETo5K3vuP2q9U1S86V5jq1l7h9DfVwIsz+9a5L4PXNhbnBQz d/a6vUosxRmJhlrMRcWJAPbRg4LPAgAA X-CMS-MailID: 20221120184648epcas5p3e08766377944a2c5850f9600bf75cf8f X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221120184648epcas5p3e08766377944a2c5850f9600bf75cf8f References: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750073416966192427?= X-GMAIL-MSGID: =?utf-8?q?1750073416966192427?= This patch series adds the V4L2 media driver for Tesla Full Self Driving (FSD) SoC MIPI-CSI2 Rx controller. The controller is compliant to MIPI CSI2 v1.3 specification. It receives images from camera sensors over the D-PHY interface. The D-PHY interface is compliant to MIPI D-PHY v1.2 specification. It supports up to maximum of 4 data lanes. V4L2 user control is provided to set the desired number of data lanes. Maximum of up to 4 streams can be received simultaneously by one Rx port. (Each streams identified by designated Virtual Channel Identifier). The controller instances consist of port property describing the endpoints. When combined with remote-endpoint property the driver instantiates video device nodes using V4L2 async subdev methods. Streaming formats supported: - YUV420 - RGB565, RGB666, RGB888 - RAW8, RAW10, RAW12 - JPEG The driver implementation is verified on FSD evaluation board. Thanks, Sathyakam Cc: Sathyakam M ,Vinod Koul Cc: Kishon Vijay Abraham I ,Rob Herring Cc: Krzysztof Kozlowski Cc: Pankaj Kumar Dubey ,Mauro Carvalho Chehab Cc: Alim Akhtar ,Shashank Prashar Cc: Aswani Reddy ,Chandrasekar R Cc: Andi Shyti ,Laurent Pinchart Cc: Hans Verkuil ,Jernej Skrabec Cc: Ming Qian ,Dmitry Osipenko Cc: Jacopo Mondi ,Catalin Marinas Cc: Will Deacon ,Bjorn Andersson Cc: Shawn Guo ,Arnd Bergmann Cc: Marcel Ziswiler ,Mark Brown Cc: linux-arm-kernel@lists.infradead.org,linux-phy@lists.infradead.org,devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org,linux-media@vger.kernel.org Sathyakam M (5): dt-bindings: phy: fsd: MIPI CSI2 Rx controller syscon node media: dt-bindings: fsd: MIPI CSI2 Rx controller device nodes arm64: dts: fsd: add device tree nodes for MIPI CSI2 Rx controller media: fsd: add MIPI CSI2 Rx controller driver arm64: defconfig: enable FSD MIPI CSI2 Rx controller driver .../bindings/media/tesla-fsd-csis.yaml | 148 + .../bindings/phy/fsd-csis-syscon.yaml | 48 + .../media/drivers/fsd-csis-uapi.rst | 78 + MAINTAINERS | 12 + arch/arm64/boot/dts/tesla/fsd-evb.dts | 232 ++ arch/arm64/boot/dts/tesla/fsd.dtsi | 162 + arch/arm64/configs/defconfig | 1 + drivers/media/platform/Kconfig | 1 + drivers/media/platform/Makefile | 1 + drivers/media/platform/fsd/Kconfig | 73 + drivers/media/platform/fsd/Makefile | 1 + drivers/media/platform/fsd/fsd-csis.c | 2664 +++++++++++++++++ drivers/media/platform/fsd/fsd-csis.h | 785 +++++ include/uapi/linux/fsd-csis.h | 19 + include/uapi/linux/v4l2-controls.h | 5 + 15 files changed, 4230 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/tesla-fsd-csis.yaml create mode 100644 Documentation/devicetree/bindings/phy/fsd-csis-syscon.yaml create mode 100644 Documentation/userspace-api/media/drivers/fsd-csis-uapi.rst create mode 100644 drivers/media/platform/fsd/Kconfig create mode 100644 drivers/media/platform/fsd/Makefile create mode 100644 drivers/media/platform/fsd/fsd-csis.c create mode 100644 drivers/media/platform/fsd/fsd-csis.h create mode 100644 include/uapi/linux/fsd-csis.h base-commit: 77c51ba552a1c4f73228766e43ae37c4101b3758