From patchwork Thu Jan 11 13:03:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Massot X-Patchwork-Id: 18954 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1431088dyi; Thu, 11 Jan 2024 05:06:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbPHmQs+Kbyo+c3qkwu4TNOzbagBD6smIDsaVWsjPvWlSZqlIOuz8fM3Utc2MYZwx6yrOY X-Received: by 2002:a05:6870:4792:b0:206:52bc:355d with SMTP id c18-20020a056870479200b0020652bc355dmr1292191oaq.52.1704978368205; Thu, 11 Jan 2024 05:06:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704978368; cv=none; d=google.com; s=arc-20160816; b=kVC2LZ8GIgfTHPLPLhqNc1KKevGbSUA9/WkKMu008b1cQVFNvRyx4GzPWrMes6nMR1 Qq5KLGfcA9dBNc56+NwUOLU1GPptFNOdDR37OGTrqrHzxQrj1fFM6vOCLci5fLUw3WvX T2AKlyfl9fxjxinZhxYZaBtupuYylKxBxSOY816av0FOKbZi9lcD1FXLnmjkCel91M89 PKzBNWp6NYHKpGHGEdYGcGdbeqeUyB+SUR/p0yumrR5ldZBpnn4bn/cAE/rJyOmQxnYq aoH4/okivH6uRuLD+Ef0yWIRqC/VLwDQMR4M1qiX++SxLHbIIqkHbsm6rx0r0P4uWUqs 2OiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=AzjO3daSEUnMnoF5SlpypvapLl/zpj5+zXqudlXUEvU=; fh=Qpmriajln/b/jpTlgI7vdb999WUXjOvk3Gl9MyMaERA=; b=SR1858KLaOBk0j2y/PgwEm7K7ty1ydn+g3W+DIZCGGOpUx+SCtkLqSMussh+hZyN23 yNp0qZ+f6BfKzg5JpEmpPZbyp1yauz+9GeaY+xSU47g8lGWzyCI7WMspEtaUcPGZPnF2 3PMibmiJvkBrAu5nr1kwgzJESNyWsvBwi47PgjW8968m/GhjZnMH9XvD2SASlkiRqaqN s3uaYvTMVYynnapuDRWX2rSvlSIzEe8XjCccTw0It5HeceVr4pyDT8J5LQ9UqjMMZc5H p4/zt2FlkWE3zqzXX8oVxyWq39EhdtoONPgO2NPgDiPqXcYi3aX2GvmhKl8QPPMJDSF1 wrcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=J3Q3q05Y; spf=pass (google.com: domain of linux-kernel+bounces-23613-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23613-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a19-20020a63e413000000b005cdf940a0d9si1015363pgi.489.2024.01.11.05.06.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 05:06:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23613-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=J3Q3q05Y; spf=pass (google.com: domain of linux-kernel+bounces-23613-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23613-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 692F6288B09 for ; Thu, 11 Jan 2024 13:05:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DD36168DA; Thu, 11 Jan 2024 13:04:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="J3Q3q05Y" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04C4916427; Thu, 11 Jan 2024 13:04:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1704978264; bh=ooZvmBo1ViU5Ji4xyGAIUWPoVDHwEIYn3pOqQSNGq4M=; h=From:To:Cc:Subject:Date:From; b=J3Q3q05YRNunbSoVpob8ozuBPFjZ79aU52V6GY2mi7B1dPGhghLMQEmGiqqysr0xs MUEq67zQpKvKTR/QfooEzHNaPkDmJlD4/E7McujY20tboFJCs2CtvT4dM8C3IhIWFf AcOGb/8OpX2qE5Q0cbTaU/VYR4BSx78hKNGtn9TuE10HgczK4AkvJMOR/dxXqOJx0j Swax238DLsSAWHoPp3UamWXnhx4HSwKE9/rCoqj10Uh0jylK8Q5XlbFXlwrzKD/O7u HHcQ/gWyM1VIzixbkQyGPvQJu0auqquQ58YG7QJA0ZHV0uEj3Pyss5cpT054RHyoVx HUDE5kCIsL4nA== Received: from stla-brain-8255-1.home (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jmassot) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 5AC543781FCD; Thu, 11 Jan 2024 13:04:23 +0000 (UTC) From: Julien Massot To: linux-media@vger.kernel.org Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, Julien Massot Subject: [PATCH v3 0/4] Add support for MAX96714F and MAX96717F GMSL2 ser/des Date: Thu, 11 Jan 2024 14:03:45 +0100 Message-ID: <20240111130349.2776699-1-julien.massot@collabora.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787799397420278397 X-GMAIL-MSGID: 1787799397420278397 Change since v2: - Convert drivers to use CCI helpers - Use generic node name - Use 'powerdown' as gpio name instead of 'enable' - Add pattern generator support for MAX96714 These patches add support for Maxim MAX96714F deserializer and MAX96717F serializer. MAX96714F has one GMSL2 input port and one CSI2 4 lanes output port, MAX96717F has one CSI2 input port and one GMSL2 output port. The drivers support the tunnel mode where all the CSI2 traffic coming from an imager is replicated through the deserializer output port. Both MAX96714F and MAX96717F are limited to a 3Gbps forward link rate leaving a maximum of 2.6Gbps for the video payload. Julien Massot (4): dt-bindings: media: add Maxim MAX96717F GMSL2 Serializer dt-bindings: media: add Maxim MAX96714F GMSL2 Deserializer media: i2c: add MAX96717 driver media: i2c: add MAX96714 driver .../bindings/media/i2c/maxim,max96714f.yaml | 171 +++ .../bindings/media/i2c/maxim,max96717f.yaml | 147 +++ MAINTAINERS | 14 + drivers/media/i2c/Kconfig | 26 + drivers/media/i2c/Makefile | 2 + drivers/media/i2c/max96714.c | 1077 +++++++++++++++++ drivers/media/i2c/max96717.c | 956 +++++++++++++++ 7 files changed, 2393 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max96714f.yaml create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max96717f.yaml create mode 100644 drivers/media/i2c/max96714.c create mode 100644 drivers/media/i2c/max96717.c