From nobody Sat Jun 13 02:10:07 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5668B39FCCD; Mon, 11 May 2026 12:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; cv=none; b=pijnJFZWDsOpbeAdrqhqyKghNWLQ3Mk/YeWmIfPQGDiXu79S2ccbSUGlCqy+eIiWxI0g5H62xrt0sqSyBVG9nY0jUzTv8VQycN2zqZ55HRKy/+zpAj5yyivXkf8COn0qASRSRzNUt02WeuGwEXYMHasY445eH6oaR5gjzmBQ+7U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; c=relaxed/simple; bh=slk4MNgaSC+kx7c2W231pz1R1uk/0PZTCyNeXo53Hek=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DYt8N2J+ZKaiOwATT+5WjgK3yGD30hWBq+g5tRTbL/UQ4mbEDV7rR3akgKdW12b8N5UhfydGH8N/kbe5mIVoTK+vSAUgRedMfp79q7/tDLN/WDtmaMDGcDoZNZEAYlpUFDDBxNse3ji9csiBvkcrGNwLvOivSyOTt/Rrws/Sn1M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q4nL+V2M; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q4nL+V2M" Received: by smtp.kernel.org (Postfix) with ESMTPS id 02BDAC2BD01; Mon, 11 May 2026 12:26:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778502404; bh=slk4MNgaSC+kx7c2W231pz1R1uk/0PZTCyNeXo53Hek=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Q4nL+V2MpnFlz8nsgFwg3adhnoVZxqCTpkPFXdjZW/cfXm5LmhNXaqh7iWG1A7D/q BPO3imiuEzCt3es2iv1ciCT3iXiFooecMJcUNOmsHAfZgUGUglWEpSh3dNcMjm1pNw 0lPWfJIvjLqiMDFgIhtArD4bQM4S3HWswfQ8wXjEG167Sj7KuXzkwmNMXb3srhpW6C V3J8jY4dPtHa+WQeDPTcIP52FORQcxrNHc2zVOzRJ7/x+7y4S8F592kRbH5LwZJxpQ N8wfHOcX6RECaj9Ur9qjV3rpR6I+ymo2K3XFyD4YS1Ul4YV3V7j9obqSwUEKii+GR6 +MEiJce37qsSA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E38CECD37B9; Mon, 11 May 2026 12:26:43 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 11 May 2026 15:26:24 +0300 Subject: [PATCH v11 01/22] media: mc: Add INTERNAL pad flag Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260511-gmsl2-3_serdes-v11-1-fc163073c16b@analog.com> References: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> In-Reply-To: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman , Cosmin Tanislav Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Tomi Valkeinen X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778502401; l=4211; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=AreK0kDB/CS0mvU6CVYiJXYgsOXsG4rDStXAaRX8fng=; b=OuUPgcInqTuKesSkMIqazhRnEVlP4lskczPkTNFFjs6L945I1h94lw7F2I4bo/w+ieCc1iTpU ALzhgp+E+m7Cigm3XLdbaQoJJIpyRkX3aZ+hpIDzQwhiNSh0FnOoSjU X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Sakari Ailus Internal sink pads will be used as routing endpoints in V4L2 [GS]_ROUTING IOCTLs, to indicate that the stream begins in the entity. Internal sink pads are pads that have both SINK and INTERNAL flags set. Also prevent creating links to pads that have been flagged as internal and initialising SOURCE pads with INTERNAL flag set. Signed-off-by: Sakari Ailus Reviewed-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- .../userspace-api/media/mediactl/media-types.rst | 9 +++++++++ drivers/media/mc/mc-entity.c | 15 +++++++++++= +--- include/uapi/linux/media.h | 1 + 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/Documentation/userspace-api/media/mediactl/media-types.rst b/D= ocumentation/userspace-api/media/mediactl/media-types.rst index 6332e8395263..200c37a1da26 100644 --- a/Documentation/userspace-api/media/mediactl/media-types.rst +++ b/Documentation/userspace-api/media/mediactl/media-types.rst @@ -361,6 +361,7 @@ Types and flags used to represent the media graph eleme= nts .. _MEDIA-PAD-FL-SINK: .. _MEDIA-PAD-FL-SOURCE: .. _MEDIA-PAD-FL-MUST-CONNECT: +.. _MEDIA-PAD-FL-INTERNAL: =20 .. flat-table:: Media pad flags :header-rows: 0 @@ -381,6 +382,14 @@ Types and flags used to represent the media graph elem= ents enabled links even when this flag isn't set; the absence of the flag doesn't imply there is none. =20 + * - ``MEDIA_PAD_FL_INTERNAL`` + - The internal flag indicates an internal pad that has no external + connections. As they are internal to entities, internal pads shall not + be connected with links. + + The internal flag may currently be present only in a sink pad where it + indicates that the :ref:``stream `` originates + from within the entity. =20 One and only one of ``MEDIA_PAD_FL_SINK`` and ``MEDIA_PAD_FL_SOURCE`` must be set for every pad. diff --git a/drivers/media/mc/mc-entity.c b/drivers/media/mc/mc-entity.c index 9519a537bfa2..df20356fa98b 100644 --- a/drivers/media/mc/mc-entity.c +++ b/drivers/media/mc/mc-entity.c @@ -209,11 +209,16 @@ int media_entity_pads_init(struct media_entity *entit= y, u16 num_pads, mutex_lock(&mdev->graph_mutex); =20 media_entity_for_each_pad(entity, iter) { + const u32 pad_flags =3D iter->flags & (MEDIA_PAD_FL_SINK | + MEDIA_PAD_FL_SOURCE | + MEDIA_PAD_FL_INTERNAL); + iter->entity =3D entity; iter->index =3D i++; =20 - if (hweight32(iter->flags & (MEDIA_PAD_FL_SINK | - MEDIA_PAD_FL_SOURCE)) !=3D 1) { + if (pad_flags !=3D MEDIA_PAD_FL_SINK && + pad_flags !=3D (MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_INTERNAL) && + pad_flags !=3D MEDIA_PAD_FL_SOURCE) { ret =3D -EINVAL; break; } @@ -1118,7 +1123,8 @@ int media_get_pad_index(struct media_entity *entity, = u32 pad_type, =20 for (i =3D 0; i < entity->num_pads; i++) { if ((entity->pads[i].flags & - (MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_SOURCE)) !=3D pad_type) + (MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_SOURCE | + MEDIA_PAD_FL_INTERNAL)) !=3D pad_type) continue; =20 if (entity->pads[i].sig_type =3D=3D sig_type) @@ -1148,6 +1154,9 @@ media_create_pad_link(struct media_entity *source, u1= 6 source_pad, return -EINVAL; if (WARN_ON(!(sink->pads[sink_pad].flags & MEDIA_PAD_FL_SINK))) return -EINVAL; + if (WARN_ON(source->pads[source_pad].flags & MEDIA_PAD_FL_INTERNAL) || + WARN_ON(sink->pads[sink_pad].flags & MEDIA_PAD_FL_INTERNAL)) + return -EINVAL; =20 link =3D media_add_link(&source->links); if (link =3D=3D NULL) diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 1c80b1d6bbaf..80cfd12a43fc 100644 --- a/include/uapi/linux/media.h +++ b/include/uapi/linux/media.h @@ -208,6 +208,7 @@ struct media_entity_desc { #define MEDIA_PAD_FL_SINK (1U << 0) #define MEDIA_PAD_FL_SOURCE (1U << 1) #define MEDIA_PAD_FL_MUST_CONNECT (1U << 2) +#define MEDIA_PAD_FL_INTERNAL (1U << 3) =20 struct media_pad_desc { __u32 entity; /* entity ID */ --=20 2.51.0 From nobody Sat Jun 13 02:10:07 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 565AE39F182; Mon, 11 May 2026 12:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; cv=none; b=X+LUkJKVbCIj2CwzFKollSNxLqzSi/g/rLJ4r7tn0sFX2+ySLhs+4OpHmXZIS7dN3r9k5+p5NJcgZEkSAm1zSg06g9+u/G4yzoQ3q+Goh1mKooGxrWbo3Yy+QgLI3u9IPPI61CFyOvFjR1UM9hLWb1TPBEJ8ilpTjc4RQZRxf1A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; c=relaxed/simple; bh=Xn5/p8wZ+o0On/psUllQui3rTHU86ibt8plFhXgBEtw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AMxjfuQpy89I6XuxHBgHpF9eSbWI9q0/IpQg8XPSn/tNVgFeGbfOWWUzyauXhAIj/+YH380gAJv1gkQnpnsVwf+ANNBCrTTYmjuJtycalB6RM8DN1sldmLGzngEbnK+um+O48Q9vnwMEGy4D41p04TXdBf/uZm2SpeDByhJa+1o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZAALgIB+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZAALgIB+" Received: by smtp.kernel.org (Postfix) with ESMTPS id 1350FC2BD00; Mon, 11 May 2026 12:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778502404; bh=Xn5/p8wZ+o0On/psUllQui3rTHU86ibt8plFhXgBEtw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ZAALgIB+3z2O8INJDYhsz7y4ao5y2cw+2v8/qxxT+EkBZCrd+dyOJ7/aV+G8swN+D iA6+nj3afBympO5PRwrpsX66imutuf07Gchzu7YV2zMq3MMUTLM1iGLSthD2M/RNtQ t0sH9nFnSK9TxRFi64PYUukfWZCaFvNnIwG7JQ9wL0ZjKiuTY9nOThn1UD+xX4JCnM P3EHSLCTlp+M6ACJseGDzvpeMUt6cmsWVp5ujS6UdRP26tmKO/pSSn5Sv3p25SGgnn RmNYX3PZ5LuBL7GYv3glyoVpKUETQNyURPP6iSi5b05e7k5UPch+Nsly/rNROZ1Cz8 cu66eJ+BD5kTA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00DC7CD4846; Mon, 11 May 2026 12:26:44 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 11 May 2026 15:26:25 +0300 Subject: [PATCH v11 02/22] dt-bindings: media: i2c: max96717: add support for I2C ATR Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260511-gmsl2-3_serdes-v11-2-fc163073c16b@analog.com> References: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> In-Reply-To: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman , Cosmin Tanislav Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778502401; l=1814; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=qfde6m/Zuq9hlZ5MNFTWYc4DyblJJG2tEqlBoZZrCn8=; b=mqvHX6F0v8WTcbApSF4r1ArR47h7mkeGAAQIxcPNvQdlM3rjqrz6IIUGa6gDDN8lMTspe2haN a2OQHOFQvVwBzEXt0QN8k7pODMEqeZa3CAs5aZaB7GT/lETEXAbesYE X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav MAX96717 is capable of address translation for the connected I2C slaves. Add support for I2C ATR while keeping I2C gate for compatibility to support this usecase. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) --- .../bindings/media/i2c/maxim,max96717.yaml | 39 ++++++++++++++++++= ++++ 1 file changed, 39 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml index d1e8ba6e368e..976f6dd2c164 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml @@ -91,6 +91,30 @@ properties: incoming GMSL2 link. Therefore, it supports an i2c-gate subnode to configure a sensor. =20 + i2c-alias-pool: + maxItems: 2 + + i2c-atr: + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + '^i2c@[01]$': + $ref: /schemas/i2c/i2c-controller.yaml# + unevaluatedProperties: false + properties: + reg: + items: + minimum: 0 + maximum: 1 + required: - compatible - reg @@ -98,6 +122,21 @@ required: =20 additionalProperties: false =20 +allOf: + - $ref: /schemas/i2c/i2c-atr.yaml# + + - anyOf: + - oneOf: + - required: [i2c-atr] + - required: [i2c-gate] + + - not: + required: [i2c-atr, i2c-gate] + +dependentRequired: + i2c-atr: [i2c-alias-pool] + i2c-alias-pool: [i2c-atr] + examples: - | #include --=20 2.51.0 From nobody Sat Jun 13 02:10:07 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5640B38F630; Mon, 11 May 2026 12:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; cv=none; b=lBjeBAbveCQ78o0wLzAXTtn7vW0P0IgzKJa2ZQXjFpPQ4Qe5Z6XrajOgM4iwM2FTO4kpsGMt4Qa3jpadTNN7vRYvfXhFiKGC5TB2ehPa+Z8QYMZyuEOPGOWIBgZD3hmE2CDxtqlc6sEBYY+An0euHvBrS035dysYZBCSglFH/ZY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; c=relaxed/simple; bh=TN5gW6iNB2jW1IrzWJimE/kYjWyumxoU2kSZpdU/BtA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rQbPMhZub/mhI09CKXmaY/iiLqzzAEJ9k9uoTYLRyuAMxbnLWMdPYM7tm4az9NVjM5uRypKpj2GlErazhpKKtASKvJ9B9Gz/62w+xuQX9YeFtWV8SMIW2QaSYBh5rAv/3ZVzV3OoEanu+nyUZtPhfEEuz7yuOi3hI8YgiIbqEto= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BToGzpcG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BToGzpcG" Received: by smtp.kernel.org (Postfix) with ESMTPS id 27837C2BCFC; Mon, 11 May 2026 12:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778502404; bh=TN5gW6iNB2jW1IrzWJimE/kYjWyumxoU2kSZpdU/BtA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=BToGzpcGkY8dRquvF+DHTYnSD0PPLVaixdJ8Urk4I107Qe6OrEEV8tn0gQLrOWd4Z PrjO8p1TiQCqqtm6QKFbg6bbbRHhxIXSIf9WQRmXg39vwfWpFVlbzrwiJx99rH/btP +US578n3SAl0fBsa25GjYJxjmuQGlSabaxM5EIrqLO/lN/M2S90X5SZZlQ8pIR7dGL wn18jzoS4IeJeSiHFPoR4MxLZIfAontz0kMHikfV9tKrHlOJ1F9G4Dt6eKtgJOu4Ty PHRkpqvnzYoht/l2VZXphaw87TSKvU/jd0oseSuhHQhl83oSVPtqDEAdJZK7LTCzBn YZ+5kto55GeHg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 181C8CD37AC; Mon, 11 May 2026 12:26:44 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 11 May 2026 15:26:26 +0300 Subject: [PATCH v11 03/22] dt-bindings: media: i2c: max96717: add support for pinctrl/pinconf Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260511-gmsl2-3_serdes-v11-3-fc163073c16b@analog.com> References: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> In-Reply-To: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman , Cosmin Tanislav Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778502401; l=4016; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=sExaJUhOeiAGEBZqr9l/7UndPhdjAg2W2En5kv5tuKE=; b=6zybRjleAUARIY4N/ogBndNUYxw0MQ6Oclo8/ZI5WPjGgHUvbgJTCv/qZ03ai06Ye2qDyC38w T6BD/KLRDijBTYldxAgkef6hxRwi9eiFDhYMgwWvoBOquwEFW6rgkqE X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav MAX96717 is capable of configuring various pin properties. Add pinctrl/pinconf properties to support this usecase. Signed-off-by: Cosmin Tanislav Reviewed-by: Rob Herring (Arm) --- .../bindings/media/i2c/maxim,max96717.yaml | 105 +++++++++++++++++= ++++ 1 file changed, 105 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml index 976f6dd2c164..d507cad18edc 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml @@ -120,6 +120,111 @@ required: - reg - ports =20 +patternProperties: + '-pins$': + type: object + additionalProperties: false + + properties: + function: + enum: [gpio, rclkout] + + pins: true + drive-open-drain: true + drive-push-pull: true + bias-disable: true + output-disable: true + output-enable: true + output-low: true + output-high: true + input-enable: true + + slew-rate: + description: | + Slew rate. + Rise and fall times represent the time needed for a GPIO to go + from 20% to 80% of VDDIO. + 0 - Fastest + rise: 1.0ns @ 1.8V, 0.6ns @ 3.3V, + fall: 0.8ns @ 1.8V, 0.5ns @ 3.3V + 1 - Fast + rise: 2.1ns @ 1.8V, 1.1ns @ 3.3V, + fall: 2.0ns @ 1.8V, 1.1ns @ 3.3V + 2 - Slow + rise: 4.0ns @ 1.8V, 2.3ns @3.3V, + fall: 10.0ns @ 1.8V, 5.0ns @3.3V + 3 - Slowest + rise: 9.0ns @ 1.8V, 5.0ns @3.3V, + fall: 10.0ns @ 1.8V, 5.0ns @3.3V + maximum: 3 + + bias-pull-up: + oneOf: + - type: boolean + description: Enable regular 40kOhm pull-up + - enum: [ 40000, 1000000 ] + description: Enable either the 40kOhm or the 1MOhm pull-up + + bias-pull-down: + oneOf: + - type: boolean + description: Enable regular 40kOhm pull-down + - enum: [ 40000, 1000000 ] + description: Enable either the 40kOhm or the 1MOhm pull-down + + maxim,jitter-compensation: + type: boolean + description: | + Enables jitter compensation. + Jitter compensation is used to minimize the jitter of the + signals transmitted from the deserializer to the serializer + by adding a fixed delay to every transition on the serializer + side. This can be used for pulse generation where timing is + critical. + + maxim,tx-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Enable transmission of the pin state from the serializer to + the deserializer using the specified identifier. + maximum: 31 + + maxim,rx-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Enable transmission of the pin state from the deserializer to + the serializer using the specified identifier. + maximum: 31 + + required: + - pins + - function + + allOf: + - $ref: /schemas/pinctrl/pincfg-node.yaml# + - $ref: /schemas/pinctrl/pinmux-node.yaml# + + - if: + properties: + function: + const: gpio + then: + properties: + pins: + items: + enum: [mfp0, mfp1, mfp2, mfp3, mfp4, mfp5, mfp6, mfp7, + mfp8, mfp9, mfp10] + + - if: + properties: + function: + const: rclkout + then: + properties: + pins: + items: + enum: [mfp2, mfp4] + additionalProperties: false =20 allOf: --=20 2.51.0 From nobody Sat Jun 13 02:10:07 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5CFF639FCDD; Mon, 11 May 2026 12:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; cv=none; b=D00rwlwT3eP/0HNZUcSfKGlJ1QPhCB4T+qbwqdNAzmyIXH3Dh9tiq2CG9uk4S081htIcOn9mRu1/9WEOfJWaj3C1YjD33Ui7B7+bFTer3QF+VS48HzQm2KOs54AEueqoTLcLVgF8mqEtAPsLUfeQJDLqejzjTZipOar0QF2CWM0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; c=relaxed/simple; bh=Sry+uDii319VRYofHQb5iOaUnnf0yvES4yy/guIbB1I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TNcMADir0qKxbyiILpTL4qaVJTgsmVNPYF0HK9ekfKRyL/LpN6snYSGPzWyrexaYm6qWjIcMjKhqYmrxjnvxXg67VQnRqB2NePBo8Rr7JfOvyRRIcfYtj/HCoEfZKLZ4GAYwugGlhPIKpxldMvKf0JM6Jl908U3dQmCIoc5KpS8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YPjULR5z; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YPjULR5z" Received: by smtp.kernel.org (Postfix) with ESMTPS id 32A98C32786; Mon, 11 May 2026 12:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778502404; bh=Sry+uDii319VRYofHQb5iOaUnnf0yvES4yy/guIbB1I=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=YPjULR5zKLHOsFuMBdz3uefGnPhZzEa4jOayvJz2fUK5QS7sBi7hd9wlVlGgs2hJd HHIroYjFWCIq2BXQcvMTJ5pRbvqKV6tb9wzCXDkfCp+Xa2W+o4SaJ+6zxmsSJeqOES 1Vr0ZwKuIGucu68Zf16c1IKfjOrTOTPPAtedfY054NU/h8itXp9tcCRYvXAz688yfe vzNMle+RAqOP57gXsUS2StYyLrs3G99D8I1by+joM4safDMlAlddTYRsSp46jaL7b3 didCbXFVNQhDuOC2+LOs6KZ1bBYJogYVh1T8o2Rrq34Vre1y18MVEI1yWNC8y1S/pA s0VhMBYlKTfCA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28A6ACD4847; Mon, 11 May 2026 12:26:44 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 11 May 2026 15:26:27 +0300 Subject: [PATCH v11 04/22] dt-bindings: media: i2c: max96717: add support for MAX9295A Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260511-gmsl2-3_serdes-v11-4-fc163073c16b@analog.com> References: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> In-Reply-To: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman , Cosmin Tanislav Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778502401; l=1215; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=8jacOUwQxTYOOAqlRYCuRO4h/l1w0TlJWVRJXtwaMxI=; b=xlI7ZjY+5i2bdivln+fqkbF0IjxoSpACvYnfhXJM5f8aKeuk3QxOnksQEGu8jVa1IPoH7AlSl JydSVejHYvWBFKfQhqOTS7TTO4LI09AN2hh+uI46h8XcQF8kSn9aPRo X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav MAX9295A is an older variant of the MAX96717 which does not support tunnel mode. Document the compatibility. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml index d507cad18edc..bbb38b3de7df 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml @@ -24,12 +24,17 @@ description: =20 The GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the forward direction and 187.5Mbps in the reverse direction. + MAX96717F only supports a fixed rate of 3Gbps in the forward direction. =20 + MAX9295A only supports pixel mode. + properties: compatible: oneOf: - - const: maxim,max96717f + - enum: + - maxim,max9295a + - maxim,max96717f - items: - enum: - maxim,max96717 --=20 2.51.0 From nobody Sat Jun 13 02:10:07 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7EB8E3A1682; Mon, 11 May 2026 12:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; cv=none; b=dD/Ln/Sxk1JGtVL4fSLPC0grHbVrutTklrtPI7m1RHIR7E8DZwoqEENlazypvxKf8tGgqH1YztOZqXWhl5HHxxEQaFKVQhQmxCO+y2405Bjz0T+7F0NlO6a1pESxWtTvXdtYSBgCQijG6Z5jWYOQsZuee31MvwXzUjGJm0VdsXA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; c=relaxed/simple; bh=xMIlwRdst1SeOe2HLSassKpp6FloKB+OdNNB6+GEXuc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IMe8HemyV1Pi4PRj3Q8jQHVOJISdtTWNH1MBNOU8DkX4s5TuyqAACyXZlrca03ISSA16tYjGtxJUeP39nlDe8+HS5RN/UeT1gkJUsUL8xagjWUxh06aFX9nvYiFvpp0VOW+34h3v8qaZlci/ewzBXGEdjsl4vcpZrahlTTxn+QA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AuHi543+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AuHi543+" Received: by smtp.kernel.org (Postfix) with ESMTPS id 4123CC2BCB0; Mon, 11 May 2026 12:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778502404; bh=xMIlwRdst1SeOe2HLSassKpp6FloKB+OdNNB6+GEXuc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=AuHi543+FzpxC10ezDESz2rrgaDK+OWp/9MgDgWuKWDzroGn16QCVtsYC2KftqVDt o9btr7wt2M2K20TlodN1LZc8f8Mgpvc+jB9y9lBYWZFe8xQsnMugcv/oscrF6Y8MvL OHl/NfTX5RJ+aeJoE9NzbtsfA/A17fCFTQ0uFuTBgFLbhiIDDu586gBuNiVlQ9M8Sr F0U7bZMmZ2Y2O+o32yto1oFH6LqP47tg0v6lzGxvZ+/JfhVkAWu0KGZuv2ZZhSLvOU 1TxOTSgrzsZrr2jT37D/ktAHnFDpj5UHXANSuv2zNxPfyONnx5ewQ3RE/prlh623fg Wq9PxxcqCkiPA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38504CD4846; Mon, 11 May 2026 12:26:44 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 11 May 2026 15:26:28 +0300 Subject: [PATCH v11 05/22] dt-bindings: media: i2c: max96717: add support for MAX96793 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260511-gmsl2-3_serdes-v11-5-fc163073c16b@analog.com> References: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> In-Reply-To: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman , Cosmin Tanislav Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778502401; l=1028; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=41yLSzOEvoj0Jv3WU/O/DMBlpijKUM4gvomwlNGqTSk=; b=eWkqchVCtISMyyXrKnvmbV4kGxFAm92uVXRKGnMTDlF8DuMzKWd09j7Ty3xhuG1B/bFOm7tDz SyC+6Ab3T3PDSryA4kY33npBWnWkcSLe6uUfGxHoQ3m0P9KyUH+TmgL X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav MAX96793 is a newer variant of the MAX96717 which also supports GMSL3 links. Document this compatibility. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml index bbb38b3de7df..0d53637a6991 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml @@ -29,6 +29,8 @@ description: =20 MAX9295A only supports pixel mode. =20 + MAX96793 also supports GMSL3 mode. + properties: compatible: oneOf: @@ -38,6 +40,7 @@ properties: - items: - enum: - maxim,max96717 + - maxim,max96793 - const: maxim,max96717f =20 '#gpio-cells': --=20 2.51.0 From nobody Sat Jun 13 02:10:07 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 820433A16AB; Mon, 11 May 2026 12:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; cv=none; b=WpEBl2jum1QOYCN7TDj/z7FwPcvQ2VJGB3j0BGa41aXLjTo6dvnMW25EwuR/i+TyooCHRCu6O0Fb/2AxP/20yPX3BM2zoIpFKVnvHCHhVjf1m36Vz+Y56yKLjzWl1jkU2QDM6bBh3BS0rIN9IHjoMzpBmS69ESwaJzSZYlg8Uag= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; c=relaxed/simple; bh=IQBwMweUNw6Rt0TiIjy8p83MEuUtBZbfZ7258tl1oDQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Hs82kzQqfsrUz65oUF28P8InEFULJui0dSipSv26DZMMPNc7JTTLCPjWbV1lSgrSxrGulTFBUaei3wZxVyz22sWjnSxAVgmh9PDNhdp0l2e2rBEt1/Tp+/NON+cIRe4BD/P4wk2vxJrR8yiJRlwxMAGQnzWpm4qLMBT3DJn4bW8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HWRfF7L0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HWRfF7L0" Received: by smtp.kernel.org (Postfix) with ESMTPS id 4FFAFC2BCC9; Mon, 11 May 2026 12:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778502404; bh=IQBwMweUNw6Rt0TiIjy8p83MEuUtBZbfZ7258tl1oDQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=HWRfF7L08vSajomH6JKPY4Z3xN1JcrZu4Zh9TOqLE1rYg551sFlhv6N3zRynX3+uQ Y9VEyaRvGSxBfhFZRUit3Q5bN0fuVWlKsrr7Ya8J8sdzOxgTe0J3ig7gDhmVRrGdHe JzQtWbVT5g6SHLajwwMF75dERH6i+KZWdOKf6O44qBFhBrV7tb/EOy+cFhMHbMcJCr VZwE/eK7VGfBoOZbaYfJtfj5faFNU9KQoUatdJu4UZZ/q8M4BEFAcllAfl060/VJSL P0eiEy/SN+Oxj2K5G/N1TcIb5YtHsQioyE9ewn8uM7i57bUHgvDTgkRSH9YLAL6LW9 kf8mI7xDVdWxw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4972BCD37B9; Mon, 11 May 2026 12:26:44 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 11 May 2026 15:26:29 +0300 Subject: [PATCH v11 06/22] dt-bindings: media: i2c: max96712: use pattern properties for ports Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260511-gmsl2-3_serdes-v11-6-fc163073c16b@analog.com> References: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> In-Reply-To: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman , Cosmin Tanislav Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778502401; l=2057; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=jS3B9xKEhVOSCEaka8S3gGwbqQ79uBc4o5geNrA6dpY=; b=gyekJKFenho4G5SJHfq4TqJdvKMzvgIRKI+QX1lvFglUyIQTFwYWrlM06E/Ih5senasu7ETkD 3AAzD0Nd1CaDi12bY797FRoDI3230j7JqauRNEb50D52jDQTQGJjdvP X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav The MAX96712 and MAX96724 support up to 4 separate PHYs, depending on the selected PHY configuration. Use patternProperties to document this. The input ports are all the same, use patternProperties for them. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) Reviewed-by: Niklas S=C3=B6derlund --- .../bindings/media/i2c/maxim,max96712.yaml | 29 ++++++++----------= ---- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index 26f85151afbd..583bbd60157c 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -39,27 +39,15 @@ properties: ports: $ref: /schemas/graph.yaml#/properties/ports =20 - properties: - port@0: + patternProperties: + '^port@[0-3]$': $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 0 + description: GMSL Input ports 0-3 =20 - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 1 - - port@2: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 2 - - port@3: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 3 - - port@4: + '^port@[4-7]$': $ref: /schemas/graph.yaml#/$defs/port-base unevaluatedProperties: false - description: CSI-2 Output + description: CSI-2 Output port 0-3 =20 properties: endpoint: @@ -77,8 +65,11 @@ properties: - data-lanes - bus-type =20 - required: - - port@4 + anyOf: + - required: [port@4] + - required: [port@5] + - required: [port@6] + - required: [port@7] =20 required: - compatible --=20 2.51.0 From nobody Sat Jun 13 02:10:07 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9D2833A3813; Mon, 11 May 2026 12:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; cv=none; b=GPHfTutDNktjrm1iwykynA+H+z8UOAkvY0mA6AZNK5zxbfEuT33I1eKRrUlC3Tum8J3y0UgYvauHturc6ggTDcCQ6n71V6qFF64IOq00ZXIlKKLn6g0wCdyR0eZHPvEDatY+Zi7Znh6zSERjCkK1NbU+zIVOUSVZJJo4o7rc43Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; c=relaxed/simple; bh=GGsSB1d2PoY/kuEuTnxLtG47ZzK+g95451GAUdj53K0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XmgUYETVdB2f2KOPv43ZBPaBciBEurNzRiqkAre7Ao3GGNiAVDtSBJNEhiz0Zu5sQd2LuIgObgUbubqtwlhuHFmwPtY5cj2P4+sfDWC+bdHmbslB2nQ6WaGDWtw0S1ulgpwcjhUKIN26zae/3Y/IHsW56Dgr5HjRy7x+pFgPcTs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qM7WRuQR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qM7WRuQR" Received: by smtp.kernel.org (Postfix) with ESMTPS id 6C8FAC2BCFB; Mon, 11 May 2026 12:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778502404; bh=GGsSB1d2PoY/kuEuTnxLtG47ZzK+g95451GAUdj53K0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=qM7WRuQR6gLiPvGtGLKenCEoPR+XGC8zRIoIxZWmSlOR3ODE4umsPKpV5PGKQ4MU8 tNZs69WQ4O1VtCd/5cVlw4sh8/9RJYYGAH3kl2oSwqIT59z2e/5duvX/DTVSYsbjBM PoEl2r/nmRGJKrn2tvJjIMCf0i6o8nA7x6nGT4X+I4w6vRL2oG4D+WHNi2XW1zscyq yzVCeRpf1ucyGAmPiV8RU+sszjpICmHGDENnWPRnMHKjZ/TFlhdrvl5VKm5G/R9Ry+ gFPW2B2w5mVuFVQrAPmj3GVz1520I1sT7XJX+3daQCjLlzLRAnVEBTtN4FE6T1YPMB JZwb5PAWzNf4A== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5DA0ECD37AC; Mon, 11 May 2026 12:26:44 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 11 May 2026 15:26:30 +0300 Subject: [PATCH v11 07/22] dt-bindings: media: i2c: max96712: add support for I2C ATR Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260511-gmsl2-3_serdes-v11-7-fc163073c16b@analog.com> References: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> In-Reply-To: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman , Cosmin Tanislav Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778502401; l=1871; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=RSvh87m8UTUuPKmdiJPBrCURSGQkmSAhRt3cRzeUwAs=; b=LId3ReWR1dg+k7eEh2bvx790OgZntiJBVt2Q4HR2xvaQdyEg5NCryXd60yiBTrD5FfHShNVQU 4wixTlyo6OXAaz89TO2NflC5yjk3mqSfJBtCdZOZUm9kMhSGrpTnEFF X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav MAX96712 and MAX96724 have more than one GMSL2 link, and each link is capable of connecting to a separate serializer. If these serializers have the same CFG pins configuration, they will also have the same I2C address, causing conflicts unless the deserializer changes the address of the connected serializers. The MAX96712 and MAX96724 support changing the I2C address of the connected serializers. Document this capability. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) --- .../bindings/media/i2c/maxim,max96712.yaml | 31 ++++++++++++++++++= ++++ 1 file changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index 583bbd60157c..abacc3c874a9 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -36,6 +36,30 @@ properties: =20 enable-gpios: true =20 + i2c-alias-pool: + maxItems: 4 + + i2c-atr: + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + '^i2c@[0-3]$': + $ref: /schemas/i2c/i2c-controller.yaml# + unevaluatedProperties: false + properties: + reg: + items: + minimum: 0 + maximum: 3 + ports: $ref: /schemas/graph.yaml#/properties/ports =20 @@ -78,6 +102,13 @@ required: =20 additionalProperties: false =20 +allOf: + - $ref: /schemas/i2c/i2c-atr.yaml# + +dependentRequired: + i2c-atr: [i2c-alias-pool] + i2c-alias-pool: [i2c-atr] + examples: - | #include --=20 2.51.0 From nobody Sat Jun 13 02:10:07 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 AFB833793A8; Mon, 11 May 2026 12:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; cv=none; b=qhqRNpe9xKjsNq6kgR3SxXipp//PVY+MiN/boljc5Jd4e9Fs6gNafTfivTLgwANhzE9242+itnb2DLYx5v/apNdS7pgUg5EJM2a8nFfONBFPGXHFgpHZ9jZEt3iurJYs36P3b/boCgOPXisY8V/U3zofz0d2jQV+bkEmm7vu7dU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; c=relaxed/simple; bh=jdUh6DHiZcC8xmAK/C829JnMcr3ixwqGWi9aHZissgg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tbmIlH7CEAfGnJD41E7JE2z0r6I/1vcj+dxvT6Y3dBx39ERNNwQzTAGSrNa/AX/Oow5+e8NqIhYiEmCx86axLpIUYNWAWoJq7qFCNaDKbI7/wSRaS84ZvS8emkh/82Cgt+IAlYfGjNe3IZY30x9aiuGGQ7XjK5yfYGn4YdVsKp0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BTaJEIap; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BTaJEIap" Received: by smtp.kernel.org (Postfix) with ESMTPS id 7BFE7C2BCF7; Mon, 11 May 2026 12:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778502404; bh=jdUh6DHiZcC8xmAK/C829JnMcr3ixwqGWi9aHZissgg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=BTaJEIap/0HH5odYmMed3HKeKCj1EuBf0WuYbhO4pPic44PN4DBWYaatJ60QqOjPJ cEa8LGlTYbNRtC5t39yYqJIdOtAa0+jcYOy2/feFmIcwORz+1xMUh+OPEwl9yccIjS H1COh41W+hbre5T6atxihxC7hCCDeQM6bhQjOuOnvvGLM+opwuyzi7dNnTvOMzNdK4 +kd1pX7oyShCfmaoN+jXQy3t9ccWqKDpOTyG/AxLCFAfUyKc+nKz4kwll4J6KRgIk9 Oxj7xUJNlNQHU6TofnKksinbFKFUM7Cw6ZgApv3vHTUgh7ZRC/dh/K922bljbFaqyG 68L9SxnezmOEw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72464CD4846; Mon, 11 May 2026 12:26:44 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 11 May 2026 15:26:31 +0300 Subject: [PATCH v11 08/22] dt-bindings: media: i2c: max96712: add support for POC supplies Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260511-gmsl2-3_serdes-v11-8-fc163073c16b@analog.com> References: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> In-Reply-To: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman , Cosmin Tanislav Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778502401; l=998; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=qHuwnHnH5Gp9JKhOtp7Ej/Lg9rykd9GgxcARp32ip7E=; b=aTbScgHOkOlxa0paAipqrzNJLBflpFJTgUPagABAZaAjtWw4Cbzwff/aSXp4Y0e2BlZOOiD8o KvDkKnoyZP3DEeOQMszrBmC2pMKrN5pAMZyiCUGFcYm980CXo1rvXhM X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav The GMSL links can carry power to the serializer when using coaxial cables. Document this capability. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) Reviewed-by: Niklas S=C3=B6derlund --- Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index abacc3c874a9..d2dd72f2e924 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -95,6 +95,10 @@ properties: - required: [port@6] - required: [port@7] =20 +patternProperties: + '^port[0-3]-poc-supply$': + description: Regulator providing Power over Coax for GMSL ports + required: - compatible - reg --=20 2.51.0 From nobody Sat Jun 13 02:10:07 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B38AE39FCD2; Mon, 11 May 2026 12:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; cv=none; b=cW8cyhKnxkTHnebfF7EKn9mI0s4LvAcdWtZ4IoXMBbaBReUx6BAa9zciZ7hyuTdEJbBo+pd+/u3y/k+jNzqfmUa5DS1reVcMLpXG3+G6aAjHrPd4Z4r2jK4EM63PZTBnO8lSERmEOO0ILWLa6JoXblBhbcTv0qbaHlJ9BJwUeUU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; c=relaxed/simple; bh=Naw/eq3duVjNCge473NEbRgpjB3MiSzNqdh3TZ55RKM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fVro/x8QXvnEO7ixNJ4EMjSZR3+gCNfSgvyOCWY/SeyXJwur1AisuRnK/yg6/uOGGSUEpjCaRImjDNkk2848OevfP3rPHhNlT2Lg0Fo9j2mdy97f0DycFHVcP/pJ5dABF3IicDKQcKm81TfEA9zE5DHHPe+XzY7kAPHKImtcYVg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f7gdF9Vj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="f7gdF9Vj" Received: by smtp.kernel.org (Postfix) with ESMTPS id 8EADCC2BCFF; Mon, 11 May 2026 12:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778502404; bh=Naw/eq3duVjNCge473NEbRgpjB3MiSzNqdh3TZ55RKM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=f7gdF9VjRH8tzgfwlzDOckpMtNOa9dwnIJ+EUDqUOXAFIE0v+aqFhxcY77Kct1exb KOYWBhyyc/bKkVOiHqfDDBFW3biBQbzd4owL10fkO7Vp9opr3bxMwDZh0BfhT8LGwC ZKDubK9U4+gKhXq8zhVBVfXwXvTvsUusSCxyWOoOp1CqAbmElwvalmlsMjLaIGf1wI NKsWMF1SzvhF7x3X7dkeqvRk4owtsC9raYmIas5DY8jPDnvOiNCFvmNqRHFfQVyhNH vc2PZ3zgDcZsDnLm0DKJP9AyQWSu+hWVDsscd+C+LGYzj4B+XS//JVVtMRbZDao2Hf hMytnvPy7mFxg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8501ACD4842; Mon, 11 May 2026 12:26:44 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 11 May 2026 15:26:32 +0300 Subject: [PATCH v11 09/22] dt-bindings: media: i2c: max96712: add support for MAX96724F/R Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260511-gmsl2-3_serdes-v11-9-fc163073c16b@analog.com> References: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> In-Reply-To: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman , Cosmin Tanislav Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778502401; l=1289; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=X7Z5jo9cVDCZvZQWGTLLa9EvhT59pgE3U0xPNb18WHI=; b=pvaMcTGG34Bxhb8vVGr/Ox5j0i+gJD/ATqlfc3onua23JSNTV4U3UImzahkQTZqTrib9z6HDG gN2+1IekowKAb+mgtzW4wM1FkuUPmymSENA5sUhcUNnQYLhwCxOeEt/ X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav MAX96724F/MAX96724R are a lower capability variant of the MAX96724 which only support a fixed rate of 3Gbps in the forward direction. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) Reviewed-by: Niklas S=C3=B6derlund --- Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index d2dd72f2e924..161d40acdd28 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -23,12 +23,17 @@ description: | MAX96712 can be paired with first-generation 3.12Gbps or 1.5Gbps GMSL1 serializers or operate up to 3.12Gbps with GMSL2 serializers in GMSL1 mo= de. =20 + MAX96724F and MAX96724R only support a fixed rate of 3Gbps in the forward + direction. + properties: compatible: items: - enum: - maxim,max96712 - maxim,max96724 + - maxim,max96724f + - maxim,max96724r =20 reg: description: I2C device address --=20 2.51.0 From nobody Sat Jun 13 02:10:07 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BD92B3A381C; Mon, 11 May 2026 12:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; cv=none; b=YBiHF7PfB9iELYmgBnsUSonAKUI07dG+Os+l/qiU0KeDqyFwftcm6HsqCW3gviYflstJ794dGyQMOfMXRTRImn4Rss9VBzNg3ZjUJbRoOK1Kb9eoZ6o95Lv5FYJ3KgO40OGPDQiIvBPF4+soPXbsDeoNt41mQGMI8E/TrFBW41I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; c=relaxed/simple; bh=NUURp62WwopTr77TB4GIFPU9ksmIOZKI4x5MeVndKAg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UJDCQP9A+ibmssTX03JdV8BwwuekQaZHn6JXrEheEMDHLh2i1aMA876HNpdwbKkDxfPMlFN1GVTsAF0BmbE+HWmXlvHWbHB8gqy6kX8jjhFq7n6NEXZVNmWXZoSW2C8moe1RQZTsbcCwVy1HSBmsxBhxpqReoYpAekF/Yg5VIWo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UQ+mxTXD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UQ+mxTXD" Received: by smtp.kernel.org (Postfix) with ESMTPS id A0094C2BCFA; Mon, 11 May 2026 12:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778502404; bh=NUURp62WwopTr77TB4GIFPU9ksmIOZKI4x5MeVndKAg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=UQ+mxTXD6W8tWUuZNn27U9ZMST6aohtTrE5sFhNSAGdixjZ3gtKz5pHgAWaiohB5T UE2XjvmsodEtM3W6l+ojvTwAABygeEir6FUwoomrOqEi4vZzltZ/M5q3TG2+dqI8pw c46NOSqiqjsdcvdRb0kpE9MxUFMxmO21RCRn+k3XpSEAKEqTkcy9d/WfeWvFgPwqk6 CAkv8bBtl7f0oerOQLQHn5GSc3a0ric/C9Q2hApxyiqCCXtDhmTleP1lWtQlq120HR eqZufDARy9X/ZCkZzq/3CS54ZCh2RwqJmbRuDZm59TY+mRUahl4Ltr8TINrSFK6teY +RwwsqANXZ/RQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98823CD4846; Mon, 11 May 2026 12:26:44 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 11 May 2026 15:26:33 +0300 Subject: [PATCH v11 10/22] dt-bindings: media: i2c: max96712: add control-channel-port property Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260511-gmsl2-3_serdes-v11-10-fc163073c16b@analog.com> References: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> In-Reply-To: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman , Cosmin Tanislav Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Vivekananda Dayananda , Dumitru Ceclan X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778502401; l=1192; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=IA/m8rGuBEmpF2gcpL400GZdflPXopNmk1jtZEjpf1M=; b=2y3RWpfC/oIXAMq/zlp3NV+WfEfRIJO0Qm2t2ooLMoQim5jd8tWR7dfF11spbyCBm9XbhCxMf aFKA0S0P37aDyWljq5Vqog41fdrS1Or0XHkK+eLxr60XdlAZ8hIoA5E X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Dumitru Ceclan Add maxim,control-channel-port property to allow platforms choose which control-channel port MAX96724 exposes to the upstream I2C host. Suggested-by: Vivekananda Dayananda Signed-off-by: Dumitru Ceclan Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml | 8 ++++++= ++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index 161d40acdd28..538b639d4f54 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -41,6 +41,14 @@ properties: =20 enable-gpios: true =20 + maxim,control-channel-port: + description: + Selects which deserializer control-channel port is connected to the + upstream I2C segment when the device resets. 0 selects port 0, 1 sel= ects + port 1. Defaults to 0 when omitted. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + i2c-alias-pool: maxItems: 4 =20 --=20 2.51.0 From nobody Sat Jun 13 02:10:07 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D012A3A381D; Mon, 11 May 2026 12:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; cv=none; b=H9fM/xH/3CAHMQdWIXWNy0ScwnBCL8znH3AF+Sq0AjjJ6aRQ3h0fE2G4H6kmIlZWPz0q2E6F2jKMjR093bFr0UA4Q2r84DbqaW6NvHDpG8CcqHL0g+egj5syNpluhXMtAL6gmITpiitguNqFpqBRkrOYPS+x5wn7F8mn7j7UgR4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502404; c=relaxed/simple; bh=YsjXeUcn9qhbYLaqF5kqQeAp3Xr+WGO7JYIzMmEbR2o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cBCpxfhWes2BHNCAmlDkdVhMMThdzWR/T07h16/98Y+o+PuMimiiJsK5PnzbhJ5n3ClmjF9U7PjbS4D4IaS4cuRKVMagCYrk7ZzGo1lYnyn9mCuMFW9zGdeANS8BFe5v3ZR8aLunwgAxQqua07DKN6QRCCpXw4Jt3VLpo2WjgFg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nQEuNmB3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nQEuNmB3" Received: by smtp.kernel.org (Postfix) with ESMTPS id B47F4C2BD01; Mon, 11 May 2026 12:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778502404; bh=YsjXeUcn9qhbYLaqF5kqQeAp3Xr+WGO7JYIzMmEbR2o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=nQEuNmB3uiJvfRWsVfGhL+pBP0Iwd/l/d6zqY2VSGWL3l4vieMZKD6yOHOpoR6Vae y7oCs1iTi8vucWoZsIzA8OzDjEXnQLwVlQyHegNw+kjMT/0VAPF8FTVIgCB5YTm7qH pOYHFM59kxdYFJcOBixr3k5B01iP2H8bIz1c3FBVaybZmfyO5S6Y80iivcO+BeGio4 /7UkNU2+xy+NCRBg+ltqYcb20ko2fFhb+2y8RCOqK3CmlpuQ8g5gF+65+5CIWXPf/g Z+Fr+4FRn/dC3i31ROgvZYN3HG+u4ZVlQpCn7/YVdzw9TxS/4qCGUHNui8Pdrn9XVf OulS0fxye+GUw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAF79CD37AC; Mon, 11 May 2026 12:26:44 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 11 May 2026 15:26:34 +0300 Subject: [PATCH v11 11/22] dt-bindings: media: i2c: max96714: add support for MAX96714R Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260511-gmsl2-3_serdes-v11-11-fc163073c16b@analog.com> References: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> In-Reply-To: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman , Cosmin Tanislav Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778502401; l=1267; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=7ctH/2Vx+KX20AODScSmND3oP+TtSyOrnfglXDuMGh0=; b=SKbYJgWk8bNxbxCkx7LRIiba/J5rSe3+oFl8q/LoK0G3mmMo6Q9XCtwwb/6nMFUSVrxbPXld/ ofGqG9OHpcbDKWOsK437rrcokQtX6nv/wHM9p/mxNaIqIhLDRo95sXl X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav MAX96714R is a lower capability variant of the MAX96714 which only supports a fixed rate of 3Gbps in the forward direction. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml index 3ace50e11921..ec6a91c4a51c 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml @@ -22,7 +22,9 @@ description: =20 The GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the forward direction and 187.5Mbps in the reverse direction. - MAX96714F only supports a fixed rate of 3Gbps in the forward direction. + + MAX96714F and MAX96714R only support a fixed rate of 3Gbps in the forward + direction. =20 properties: compatible: @@ -31,6 +33,7 @@ properties: - items: - enum: - maxim,max96714 + - maxim,max96714r - const: maxim,max96714f =20 reg: --=20 2.51.0 From nobody Sat Jun 13 02:10:07 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 12B4F3A4523; Mon, 11 May 2026 12:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502405; cv=none; b=mL9r2fn2GjwDt/zOrDEutiw4rNM7N+DEJCpJoOohPeQaE1p89G9HwIr3TMLEEok72+dCqwYV5dwbkklaZcZWHCKxaykrCxQXia7XJobt3z3UHQP5w6EKcZnrfY1Gyn50ch6msbAXgKul0yXnc1z43SJZhTVJiDiixo3exp3Nhd8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502405; c=relaxed/simple; bh=9bUvO9jmr4n76eZcAAb+VBJtZRbGcpHo0LOtElQF2Ag=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=J/o1qXjj5EWXm8+YQLfUj2HfqflxbxUOZf58AJ7Pko/szu2Zhc/q3eYXfzCMGHYvCGcwfEAnzUR6E6VPdYymwkMLoHvPnLgvkLQsmHJ/LrdPlCkRLfeNFtJ8wE9YD+retHve1exsG6Iq5qqs1RymaKsF9JP3ohiI+mOS74C28zg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NCeT1Vs0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NCeT1Vs0" Received: by smtp.kernel.org (Postfix) with ESMTPS id C9CD8C4AF0B; Mon, 11 May 2026 12:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778502404; bh=9bUvO9jmr4n76eZcAAb+VBJtZRbGcpHo0LOtElQF2Ag=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=NCeT1Vs0mHc2fd/udHNtrTwF/NvEoy1NHs6eMMQIT9HZ70TSq9+hLHJiZCknE2ztK fcgb9/jwouuAf+spsBgqcFlY6APdc8GfRTYJcTGNLMuAn7NeAaXKmhIR8fk4B6UmLi d53VSdyZSg9iI01x36RcnEUr0Cjb/qhRsJk8DO1vXHgYTTCK16eDRu9lOLUEAK3Wvk SflxGLRACxfeASlPyfRuE7ZhDT502QN5iHG+ORShtXeVkT6x1QTE9qMYlU2WCF+Dms 7s6ezPHpV/3U1jZxcFPHdMnpxl/ady1zVXG90dp/J2dIWjqpGf2jNWh9VjQ05odV9T tP7T6W6XF2AWg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF821CD4848; Mon, 11 May 2026 12:26:44 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 11 May 2026 15:26:35 +0300 Subject: [PATCH v11 12/22] dt-bindings: media: i2c: add MAX9296A, MAX96716A, MAX96792A Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260511-gmsl2-3_serdes-v11-12-fc163073c16b@analog.com> References: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> In-Reply-To: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman , Cosmin Tanislav Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778502401; l=9145; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=GFhV03TLaPhYeU6NX16v5DxydRNe7OhIGfvX3Ww4CWM=; b=3W+1CoFZvkRMuZhxZWD1BtMiOogQga6zpZYq2s4jUrS2xN1b/22e+lvZtQTV/G6rChFt74dBs U+uRouhi8X6DCBmASUuV0oeRjB6yDBWl2sE4FxS1a+Q9N5lj6NB/myZ X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav The MAX9296A deserializer converts single or dual serial inputs to MIPI CSI-2 outputs. The GMSL2 links operate at a fixed rate of 3Gbps or 6Gbps in the forward direction and 187.5Mbps in the reverse direction. In GMSL1 mode, each serial link can be paired with 3.12Gbps or 1.5Gbps GMSL1 serializers or operate up to 4.5Gbps with GMSL2 serializers with GMSL1 backward compatibility. The MAX9296A supports mixed GMSL2 and GMSL1 links. The serial inputs operate independently, allowing videos with different timings and resolutions to be received on each input. MAX96716A supports both tunnel and pixel mode. MAX96792A supports both tunnel and pixel mode, and has two GMSL3 links. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) --- .../bindings/media/i2c/maxim,max9296a.yaml | 242 +++++++++++++++++= ++++ MAINTAINERS | 6 + 2 files changed, 248 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml new file mode 100644 index 000000000000..de6bfcec5dc6 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml @@ -0,0 +1,242 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2024 Collabora Ltd. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/maxim,max9296a.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX9296A GMSL2 to CSI-2 Deserializer + +maintainers: + - Cosmin Tanislav + +description: > + The MAX9296A deserializer converts single or dual serial inputs to + MIPI CSI-2 outputs. The GMSL2 links operate at a fixed rate of 3Gbps + or 6Gbps in the forward direction and 187.5Mbps in the reverse + direction. In GMSL1 mode, each serial link can be paired with 3.12Gbps + or 1.5Gbps GMSL1 serializers or operate up to 4.5Gbps with GMSL2 + serializers with GMSL1 backward compatibility. The MAX9296A supports + mixed GMSL2 and GMSL1 links. The serial inputs operate independently, + allowing videos with different timings and resolutions to be received + on each input. + + MAX96716A supports both tunnel and pixel mode. + + MAX96792A supports both tunnel and pixel mode, and has two GMSL3 links. + +properties: + compatible: + enum: + - maxim,max9296a + - maxim,max96716a + - maxim,max96792a + + reg: + maxItems: 1 + + powerdown-gpios: + maxItems: 1 + description: Specifier for the GPIO connected to the PWDNB pin. + + port0-poc-supply: + description: Regulator providing Power over Coax for GMSL port 0 + + port1-poc-supply: + description: Regulator providing Power over Coax for GMSL port 1 + + i2c-alias-pool: + maxItems: 2 + + i2c-atr: + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + '^i2c@[0-1]$': + $ref: /schemas/i2c/i2c-controller.yaml# + unevaluatedProperties: false + properties: + reg: + items: + minimum: 0 + maximum: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + patternProperties: + '^port@[0-1]$': + $ref: /schemas/graph.yaml#/properties/port + description: GMSL Input ports 0-1 + + '^port@[2-3]$': + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: CSI-2 Output ports 0-1 + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 4 + + lane-polarities: + minItems: 2 + maxItems: 5 + + link-frequencies: + maxItems: 1 + + required: + - data-lanes + + anyOf: + - required: + - port@2 + - required: + - port@3 + +required: + - compatible + - reg + - ports + +additionalProperties: false + +allOf: + - $ref: /schemas/i2c/i2c-atr.yaml# + +dependentRequired: + i2c-atr: [i2c-alias-pool] + i2c-alias-pool: [i2c-atr] + +examples: + - | + #include + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + deserializer@28 { + compatible =3D "maxim,max9296a"; + reg =3D <0x28>; + powerdown-gpios =3D <&main_gpio0 37 GPIO_ACTIVE_LOW>; + + i2c-alias-pool =3D <0x40 0x41>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + des_gmsl_in_0: endpoint { + remote-endpoint =3D <&ser_0_gmsl_out>; + }; + }; + + port@1 { + reg =3D <1>; + des_gmsl_in_1: endpoint { + remote-endpoint =3D <&ser_1_gmsl_out>; + }; + }; + + port@2 { + reg =3D <2>; + des_csi_out: endpoint { + data-lanes =3D <1 2 3 4>; + link-frequencies =3D /bits/ 64 <400000000>; + remote-endpoint =3D <&csi_in>; + }; + }; + }; + + i2c-atr { + #address-cells =3D <1>; + #size-cells =3D <0>; + + i2c@0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0>; + + serializer@40 { + compatible =3D "maxim,max96717", "maxim,max96717f"; + reg =3D <0x40>; + gpio-controller; + #gpio-cells =3D <2>; + #clock-cells =3D <0>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + ser_0_csi_in: endpoint { + data-lanes =3D <1 2>; + remote-endpoint =3D <&sensor_0_out>; + }; + }; + + port@1 { + reg =3D <1>; + ser_0_gmsl_out: endpoint { + remote-endpoint =3D <&des_gmsl_in_0>; + }; + }; + }; + }; + }; + + i2c@1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <1>; + + serializer@40 { + compatible =3D "maxim,max96717", "maxim,max96717f"; + reg =3D <0x40>; + gpio-controller; + #gpio-cells =3D <2>; + #clock-cells =3D <0>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + ser_1_csi_in: endpoint { + data-lanes =3D <1 2>; + remote-endpoint =3D <&sensor_1_out>; + }; + }; + + port@1 { + reg =3D <1>; + ser_1_gmsl_out: endpoint { + remote-endpoint =3D <&des_gmsl_in_1>; + }; + }; + }; + }; + }; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index ddecf1ef3bed..5ae68688008d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15252,6 +15252,12 @@ S: Maintained F: Documentation/devicetree/bindings/iio/proximity/maxbotix,mb1232.yaml F: drivers/iio/proximity/mb1232.c =20 +MAXIM GMSL2/3 SERIALIZERS AND DESERIALIZERS +M: Cosmin Tanislav +L: linux-media@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml + MAXIM MAX11205 DRIVER M: Ramona Bolboaca L: linux-iio@vger.kernel.org --=20 2.51.0 From nobody Sat Jun 13 02:10:07 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 165993A4527; Mon, 11 May 2026 12:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502405; cv=none; b=uJP52XvUw4kGyM3dsLqb47QC7drqxagaYXDRD4sDH2So6M8xYIIS7bSjzvEJzPZJ3KBy68EqfO18B88EYnrpcjbflK31WY9LWTfrfmKyuUSsQIK3CaZo36G6f/ZUMZKg+kDpSIV0Acve0sWNECWRZXsXPHC+byVxZ8ZrqYazcWE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778502405; c=relaxed/simple; bh=VDql+Hfavigfh9ovTYOy1u+FLCxCrHF81DbvX/UyK60=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=U4TTvTIxLfBCyYYPgjq8Si78lcFRaj77qt38hdVC8gZ7KJMF+avUJSRpZfMT556yAj5LYzMYuZTpUVpEmhyTSPn1wZey4zLUe1mYdoHXGnWb7KPSnw6ms2E8eEv9I9N+d/FxkszftfLZwr1Bu0FcYT09XXY5ScHuvJvOX38NjV0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UYcY1wGj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UYcY1wGj" Received: by smtp.kernel.org (Postfix) with ESMTPS id DFE91C4AF1B; Mon, 11 May 2026 12:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778502404; bh=VDql+Hfavigfh9ovTYOy1u+FLCxCrHF81DbvX/UyK60=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=UYcY1wGjPQ7HCwMlLepBIJ/ulUX3JO0X1S/bn3/O2u0MuQmIR/M1uyi+Qoqj9XOBP Ztz/ZqfHvQoIe8UtPcEaGumBDneOLLBy8e1Ax2ChGiRiNIy8LmgpaSEvVS6vWL+eAK QwoQBY44SaushcfhnX5Bcd33V23R/+QK4EYz2otKbfjGmPYXCDZdOtTzvRm9rjzZtl cVpa1Zn0jjHWz5IDxGi0Z6uKq4esiZvqSHWh7tCrHxXFhXQosJmm5lhM4TUThsFc03 SjWu3EeYOCzOFHrMDuli/JGdPg2sNrl5XET56lKb0Zq2UiwbN5WSROFXbWGVRcUbK4 J+z9n5UHPyQ/g== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3B69CD4842; Mon, 11 May 2026 12:26:44 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 11 May 2026 15:26:36 +0300 Subject: [PATCH v11 13/22] media: i2c: add Maxim GMSL2/3 serializer and deserializer framework Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260511-gmsl2-3_serdes-v11-13-fc163073c16b@analog.com> References: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> In-Reply-To: <20260511-gmsl2-3_serdes-v11-0-fc163073c16b@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman , Cosmin Tanislav Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778502401; l=19564; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=22zVA0S1E2kxUS8lsopB3O7rVP2X5lwDlJqeQf9rdVA=; b=RGDVz0hb8xk+EdIMeDn0Ui/2tjwve1n0MbTbwbpAWEt9LCmRKhdiL4Xr3j+0aWSKs08lE7gfJ gQRPoxXhQe+D/4JPv5J8LYh1EFkS0lt4I9LppbwT/c+stbYN2qzWBdn X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav These drivers are meant to be used as a common framework for Maxim GMSL2/3 serializers and deserializers. This framework enables support for the following new features across all the chips: * Full Streams API support * .get_frame_desc() * .get_mbus_config() * I2C ATR * automatic GMSL link version negotiation * automatic stream id selection * automatic VC remapping * automatic pixel mode / tunnel mode selection * automatic double mode selection / data padding * logging of internal state and chip status registers via .log_status() * PHY modes * serializer pinctrl * TPG Signed-off-by: Cosmin Tanislav --- MAINTAINERS | 1 + drivers/media/i2c/Kconfig | 2 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/maxim-serdes/Kconfig | 17 ++ drivers/media/i2c/maxim-serdes/Makefile | 3 + drivers/media/i2c/maxim-serdes/max_serdes.c | 413 ++++++++++++++++++++++++= ++++ drivers/media/i2c/maxim-serdes/max_serdes.h | 183 ++++++++++++ 7 files changed, 620 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5ae68688008d..70d3eeef8bfe 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15257,6 +15257,7 @@ M: Cosmin Tanislav L: linux-media@vger.kernel.org S: Maintained F: Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml +F: drivers/media/i2c/maxim-serdes/ =20 MAXIM MAX11205 DRIVER M: Ramona Bolboaca diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig index cdd7ba5da0d5..37f86e6de969 100644 --- a/drivers/media/i2c/Kconfig +++ b/drivers/media/i2c/Kconfig @@ -1718,6 +1718,8 @@ config VIDEO_MAX96717 To compile this driver as a module, choose M here: the module will be called max96717. =20 +source "drivers/media/i2c/maxim-serdes/Kconfig" + endmenu =20 endif # VIDEO_DEV diff --git a/drivers/media/i2c/Makefile b/drivers/media/i2c/Makefile index 57cdd8dc96f6..be3200b23819 100644 --- a/drivers/media/i2c/Makefile +++ b/drivers/media/i2c/Makefile @@ -71,6 +71,7 @@ obj-$(CONFIG_VIDEO_MAX9271_LIB) +=3D max9271.o obj-$(CONFIG_VIDEO_MAX9286) +=3D max9286.o obj-$(CONFIG_VIDEO_MAX96714) +=3D max96714.o obj-$(CONFIG_VIDEO_MAX96717) +=3D max96717.o +obj-$(CONFIG_VIDEO_MAXIM_SERDES) +=3D maxim-serdes/ obj-$(CONFIG_VIDEO_ML86V7667) +=3D ml86v7667.o obj-$(CONFIG_VIDEO_MSP3400) +=3D msp3400.o obj-$(CONFIG_VIDEO_MT9M001) +=3D mt9m001.o diff --git a/drivers/media/i2c/maxim-serdes/Kconfig b/drivers/media/i2c/max= im-serdes/Kconfig new file mode 100644 index 000000000000..f5a4ca80a263 --- /dev/null +++ b/drivers/media/i2c/maxim-serdes/Kconfig @@ -0,0 +1,17 @@ +# SPDX-License-Identifier: GPL-2.0 + +config VIDEO_MAXIM_SERDES + tristate "Maxim GMSL2/3 Serializer and Deserializer support" + depends on VIDEO_DEV + depends on I2C + select I2C_ATR + select I2C_MUX + select MEDIA_CONTROLLER + select V4L2_FWNODE + select VIDEO_V4L2_SUBDEV_API + help + This driver supports the Maxim GMSL2/3 common Serializer and + Deserializer framework. + + To compile this driver as a module, choose M here: the module + will be called max_serdes. diff --git a/drivers/media/i2c/maxim-serdes/Makefile b/drivers/media/i2c/ma= xim-serdes/Makefile new file mode 100644 index 000000000000..630fbb486bab --- /dev/null +++ b/drivers/media/i2c/maxim-serdes/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 +max-serdes-objs :=3D max_serdes.o +obj-$(CONFIG_VIDEO_MAXIM_SERDES) +=3D max-serdes.o diff --git a/drivers/media/i2c/maxim-serdes/max_serdes.c b/drivers/media/i2= c/maxim-serdes/max_serdes.c new file mode 100644 index 000000000000..bed70b8ce99a --- /dev/null +++ b/drivers/media/i2c/maxim-serdes/max_serdes.c @@ -0,0 +1,413 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2025 Analog Devices Inc. + */ + +#include +#include +#include +#include + +#include + +#include