From nobody Sat Sep 26 18:55:09 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 D5ACC418A46; Mon, 31 Aug 2026 13:21:38 +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=1788182498; cv=none; b=ijjWC4nv7xlFM7MGiOw7rjhnSBQBOIQkfBYncMqcuuYl7KK0UX7MBtSpkXotK659+ILnRX+A5ReUf1sPCr7W8tKc+l0ypxIDKhsxdDOjKiZkgBSLUEO+mmzPSpcqVcdVenxZ47ytz84RTxk7R89ZFqUsgt2wShsr76ePMhBQ6uE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788182498; c=relaxed/simple; bh=cpDukcPxVJzXko/L0eFDwxYderoS/dpMlVO2IjtjjHE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lRfSxUzIHtLcmgsY4elTsylV0vvRukOLcJhJGQQzWiM0KZXqcinEXo6cD/eSRHaFYRkBcoP0Z1auBPSaHwXEDTo+tNxGaSv/nwVcYr22mnSTnUX4fwmPfs3FRsQz8VUPBXK2EFXGR/1j+H88SmpR4CcETx3UsGBsCw/WvZMs/h4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lDcwXZDi; 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="lDcwXZDi" Received: by smtp.kernel.org (Postfix) with ESMTPS id 8DD3DC2BCFA; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788182498; bh=cpDukcPxVJzXko/L0eFDwxYderoS/dpMlVO2IjtjjHE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=lDcwXZDilNiSvoPDbe5iIj6E2ckVnTMVgq4WQTYkjYMpKj/JI0ZGfnQ6AbuB0lyEy W+/vBKUn94IqMyhuGupAva+r8A+YXXGxBlbgdp/h0ozuhcK5h6SABvT/vPqBlwFX3d 2/uRSmvg0k1yHUR4WU6nor7vZE75sogtUz3ZI8XHmQe2DiBKSdsiSd9D23qS7ptruv vGR6zVpn8r6Uv458cFhmxC95P5Y+3yjy14XWJRpvtm+dQOes4VaSBlCzCwSVEf8RwX IyeY8H3U7h47yp7uCWl8UD9bDTfo78k1w2YE4eflN0LXORuAKRxte2qr63L9pUwC2V Ze2zWa8WP1skQ== 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 684A9C624A4; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 31 Aug 2026 16:21:20 +0300 Subject: [PATCH v16 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: <20260831-gmsl2-3_serdes-v16-1-4fa6e08bb514@analog.com> References: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@analog.com> In-Reply-To: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@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 Cc: Tomi Valkeinen , Dumitru Ceclan , 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 , Andrian Suciu X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788182495; l=4211; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=j75z8BDeqCgnWrq6GF1INTACeRkTAkS70gXnWGmC/2E=; b=URHaBEmEfzoWoM+e20CYqne/cfYPDI1bpsWxAN3uLVV4VL7iOIMs9Rh37U0tIIwic9c9PkDZg pzn1HaapvlFA4zGOt6ZEpWpMbJsAgPNZTB3wMooh0Jz0tcChLkhpEId 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 Tested-by: Tomi Valkeinen --- .../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 3fa0bc687851..7938f785e2e3 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.53.0 From nobody Sat Sep 26 18:55:09 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 DDFBA418A4E; Mon, 31 Aug 2026 13:21:38 +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=1788182498; cv=none; b=YNANf75vpdNA7ylI7sq6iVf+CoLDp4wnFZhjIXwj52Vg55Eane/E7SuWyJezooH/fGtDMru7kuW6DuxF5qhOruFMckCOJB+y0XTH6/6fTcowI9L/sNdnsnvw2atfPq4IqfrbThWOGRT1O3VIjMHENSZHkHhM24JQHVMMOzLTFHo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788182498; c=relaxed/simple; bh=m/Lw3D9Sn7b/iEdL6eTGT3K2tR/KZoA6l9gCS1mqNBI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Sefewgx9/rd8TTb/ajMAJIitGZTv7cQfRfl19wu7iq/ZXJGNsEp4YxYPScQBA0Og70A0NmLMLtYH4OJ0gx4ybasWSKL6fhXueqhepg3dGtpbh8We1huI3/euLijdbhaPoowfhaRgrY6ucIS3NqFiVoqAL16mgPSPrc51KyXlVgw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gwXjAklc; 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="gwXjAklc" Received: by smtp.kernel.org (Postfix) with ESMTPS id 9962AC2BCFC; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788182498; bh=m/Lw3D9Sn7b/iEdL6eTGT3K2tR/KZoA6l9gCS1mqNBI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=gwXjAklc08e5FUupdsN0UPN75sJF2QUwglVSfXOG+es0itDWY85BKFuxbOi7DFuX7 xd3US5SoUWPPCk5u2UJX68Z8a05IbNgAkg6COwHyEDor5AvwOOkk1wmQmydJhsP1QJ l6Yu3ypcAspxxi6r9c0VLMRccOIFP2A+FCGfFDqk4nmcp8oYSIfI8/zH46XF7Imc+B Wr2G/Rpj5oKFgPyRQxzS6GO0whawAfRSSkaUJJnhqrxLIUy9T4XrIaeKxD4vR283BE r7ZFjyoutdWk2Q06kFuhB7IuFIl5QJo+DAGKMOcwrbv+8GhYTT5QeT0ZqSLsazmRzp ih6DXCZSxQ4Cg== 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 7B21EC624C6; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 31 Aug 2026 16:21:21 +0300 Subject: [PATCH v16 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: <20260831-gmsl2-3_serdes-v16-2-4fa6e08bb514@analog.com> References: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@analog.com> In-Reply-To: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@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 Cc: Tomi Valkeinen , Dumitru Ceclan , 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 , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788182495; l=1814; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=OiYJqgg6XnogVXqu3cCeY60g1Qzx0eB+PgiVHCOJen4=; b=PlzhOi1fZfzGjan1M/xLpEOieIWyuJT5/7ju2z9GVL+5pbx7jb/wAzbspbwqmDS4B+ZUi1pZP nhcqNyRN5BnCkPR7asOxYwvaOxCOMv2Wcub9tSjmNm6KJibHyufuAdG 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) Tested-by: Tomi Valkeinen --- .../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.53.0 From nobody Sat Sep 26 18:55:09 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 E2504418A51; Mon, 31 Aug 2026 13:21:38 +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=1788182499; cv=none; b=poanxrJc/c0RwbhqPGqgHAqUpgTu6iO63/wmyLHn3LZhlfRj8DfKdJIpcQgxXpIVMMm6m5qInfmRTOuhXZGOdk5o3wwl5saCVQcc5hBenAD0VjRaJCB+RwNGGTVCU6RvxgxaWC0ver1JzccPPfoJHzLbr/dJ7VrJvUTrFwct6jg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788182499; c=relaxed/simple; bh=Wba5CQF1y7ds7CwTK0ZvESbYaFum+BzWklJyol8FtSw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SpcSnH2SqohLcf3Vxyq760MYov9JT1OWUUtdFkeo1qk/bZL+D7G30/VLQ1AiJcCl2PpZlePZ+NP/WT+ppkgobz03J8wFaLAS/s0iOAJfdQJzCKjwoRGO8bjawx3jUi4Uej5ZgiLh2lrA1SOFdtYnc6hoFADH5RLeE7c3IjFZmhU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MmRDGlhz; 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="MmRDGlhz" Received: by smtp.kernel.org (Postfix) with ESMTPS id B0732C2BCFD; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788182498; bh=Wba5CQF1y7ds7CwTK0ZvESbYaFum+BzWklJyol8FtSw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=MmRDGlhz7GmFbbbVTtbP640xhe2isQZqwG01gj5inbV/iEbxH/Seod1bJgpUs7Ifm CvUpNrfEoc1YZYQYU3YXHBZkB/rSQHdXM5psc9y0o/nyCHIJvF7mde63tfzJ0aY4bw D3RvORhriD0nDB9+f9/aNxLnqawsCQiZ7fv14AGXwQdNrWQZzk2ChWSBJsG0X4DSfP EeXM0VqB3xlBA9WMclW5gZiGE4WbItOHpWEU61Nj0yb4bi2AwNcVLctRqpB5yHbNqK fC/vwERxbu4FQgdH49XEQBDYke6yefTEGbop7YhBcQK8+4JlGnjXbJqiINDJ7Wn13J gdIwa6QpOyxYQ== 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 8EA9EC624C9; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 31 Aug 2026 16:21:22 +0300 Subject: [PATCH v16 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: <20260831-gmsl2-3_serdes-v16-3-4fa6e08bb514@analog.com> References: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@analog.com> In-Reply-To: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@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 Cc: Tomi Valkeinen , Dumitru Ceclan , 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 , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788182495; l=4231; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=5lRbHYKfZwp/I2W4JE0GJodbbP1OzCtpa5Kw/wAAA2o=; b=jD1qgXgR2yTyEVPRJWonsLcl54au0JTDLLKsS4bkugRL0diMmf+m2+OEIqGfKMR6MEsJM3ex1 XWCLCnmbvUhCJUyijv3LCRHE2MiQWaag0YN8/BIeHbaODTs8R6Fx/O/ 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) Tested-by: Tomi Valkeinen --- .../bindings/media/i2c/maxim,max96717.yaml | 114 +++++++++++++++++= ++++ 1 file changed, 114 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml index 976f6dd2c164..d73a98085b7f 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml @@ -120,6 +120,120 @@ 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] + + - if: + required: + - slew-rate + then: + properties: + pins: + items: + enum: [mfp0, mfp1, mfp2, mfp3, mfp4, mfp7, mfp8] + additionalProperties: false =20 allOf: --=20 2.53.0 From nobody Sat Sep 26 18:55:09 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 1DE4641A4E7; Mon, 31 Aug 2026 13:21:38 +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=1788182499; cv=none; b=p/cIEteUCo1eSifeQ+WfVUA1gaCK8XZqGACV/KfLQdTNLc3JtHUN3BiWseTB9LajlHmMl2hRAQO+NmmOU8SvqUoVfQ+P4rqDc/KdVQOl6S0MArlFcOU9RFACMsSEz0t2mr44ENt43TKW3gu4TuKdiE2KvLzsNaLoDzRsNbout7w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788182499; c=relaxed/simple; bh=I3h9hQGlU1YMsgX1RxSoZMy52SHT8/nvyrAeviXhdnA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=njf6h8yeUu/ZL2PLMFllCpoFWPdozIQOfqedvfUeqoXklU0DwG3nguZ33cI99vYRyXXP2Rzc6EafUt3bhXx4Hc3/Q+CF1DJscThorUGuL98+VFYW4HKptkhsB3E9agBoFHtaYzFXbKiP6kdnVo6C7SX/Hq6cS/qvH8OwsO4GoiI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dFhE59Dt; 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="dFhE59Dt" Received: by smtp.kernel.org (Postfix) with ESMTPS id BDA6BC2BD05; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788182498; bh=I3h9hQGlU1YMsgX1RxSoZMy52SHT8/nvyrAeviXhdnA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=dFhE59Dtg7e+IP1ga4hc/d5Kbaoy6ljIBtanJyvJLgvAlJctXSUlr+A1nEuZoTIva G66AdzYDGoMMUkUiuzC4s0HdVDbnbrrvn2xtP7EjBR2KUBuHQmSWeUGuChWZ4P9s8Z dGb59FHKAq9GvOWwyFZQrrVDJUpHEuKcqw0CaQkxMSYMK+XWaJPFXAVftGe2kXwF1T NFwq+ItRPOQs5KlNjd9/pmxQbAVDrB0hDoTtBIoqciUYAp/VTXMM8x8A32SP7KoNkJ XtT16VZzK64B7HjgTHVC03pGIg525kLB1cbIAs7tw9TTbsS53EsWZmIGSCWADyGm/w W7yzNdIjaEMXw== 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 9F4B4C624CC; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 31 Aug 2026 16:21:23 +0300 Subject: [PATCH v16 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: <20260831-gmsl2-3_serdes-v16-4-4fa6e08bb514@analog.com> References: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@analog.com> In-Reply-To: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@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 Cc: Tomi Valkeinen , Dumitru Ceclan , 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 , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788182495; l=1215; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=8hWuoYop1wDIFmyFO5TmTVYZuV9B9OvV8bCi4HWxDJk=; b=n1EGBo9Njuw+NVkjIfRT6bQc1F6IIa9ec+OsAJcsgrxmcBK9ZnaOQmGK6ky2J1jh7UlnylV06 Dm69ybdq/oGBOAAsB9CDj+ZMvbVFFkMsZbDoi4ZPpuhGt3INlGm4B/e 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) Tested-by: Tomi Valkeinen --- 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 d73a98085b7f..2159fd85a9bf 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.53.0 From nobody Sat Sep 26 18:55:09 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 1DD3E41A4E6; Mon, 31 Aug 2026 13:21:39 +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=1788182499; cv=none; b=sswIytkG7+RkJ9qMvX9e2Mvye4j6LwVgfWxlaaUPGUjFq1pPkgngm1UXEPry+WShShQulB+DnnwLQm9L1zJXMZXTlTWisPytRHhTlMVqTFxr5mTiDcIS1jtDXgCivT3u2HRH0Acrfnow2FL2tTUFWAK2ar3lFv1T5ScTcDaVues= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788182499; c=relaxed/simple; bh=SLNI/XAGMKZfggxtvBJlDIgU5ZuLWdwi+/5L7Fr6k9o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IxHrTTBWBBHfyhgjuHhnOwhxlE+mD7qk7TFtVg8dUsUrjS+JFkHfQVa13KI5NB+eAG4cgB/GguXLUhkygn55nZmX3Z0qYWbrQzRAbsEWNPq0GIJSuQ68cn3CPMQiuuT5aKsBuUQqhCgYrPVL/9E/n4NkBeiXkkWYCOlUNxixZHg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NUH+kCXF; 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="NUH+kCXF" Received: by smtp.kernel.org (Postfix) with ESMTPS id C41F4C2BD01; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788182498; bh=SLNI/XAGMKZfggxtvBJlDIgU5ZuLWdwi+/5L7Fr6k9o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=NUH+kCXFrebQiQ4YWV1H4hithLUxY1FU1Mps2yY0jkrO4lpKk+va+FkLGdirpc/Vf WvAZMwx00rUkLPnZk4lBN+HWW+42itNcepZxCe//a2b7v4zgeS24Wmq4LkUJQk8QBE cbQda7FhkAPAfChtc977WFEwoU0aPN+DrBKaDopX4UREN+v50nc8i5x/zPW+sVuZ2Z Sv8Nen+FRk8qeGo38NQr8BoEUgrcmnJB2PO+LBZjxlJSdm0T66jHA6HdtR8omAnTjw hGm/xDQ6aFoMDPHG10O1JZvZQHmXYaxfLdO9vc04NDIq+OD3Jr2uyKrwajGJoZgGuZ g9poo+733qryg== 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 B22F6C61DE2; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 31 Aug 2026 16:21:24 +0300 Subject: [PATCH v16 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: <20260831-gmsl2-3_serdes-v16-5-4fa6e08bb514@analog.com> References: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@analog.com> In-Reply-To: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@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 Cc: Tomi Valkeinen , Dumitru Ceclan , 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 , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788182495; l=1028; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=5T+tpCCmLzMZaxPkOt0UaUd/8TUY4jmophGIYdhTq/w=; b=MSfTmAQKXURvud3KTgdLq60Pxu2OyY9mGRIbZg8RsNuR56Ddkqss9XdWUioJnqhs7Padx5Sgb z7yt8i68RZeBuXSxAAVe3hjq8WxegSlFtVPBquNcFYFg0hq+t7ztIbK 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) Tested-by: Tomi Valkeinen --- 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 2159fd85a9bf..eea0f974874f 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.53.0 From nobody Sat Sep 26 18:55:09 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 26B3A41A4E8; Mon, 31 Aug 2026 13:21:39 +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=1788182499; cv=none; b=K9wvxtNLzUCi8CLfjpYUTHtiCc3UdbV7/wHx6Ei3AWQD+ebZUF93/YFjtJMJic5furEd5X2/7WTqpRFozqDebBzS5+wz+p8yFyda7MhQ6rmu1Wo7Oj/ZmqLKN7ZZyt+vRCJ5MdI5+gk60Shj8oTcYngh3Oi2WXwZr9hvHQDgC7A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788182499; c=relaxed/simple; bh=8TupqbovUH4f8Ft7S3k5VMJFfXq22X6CyPw4uwxsut8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dUtJ+Xbrx7kzLrjDWYonBPTI2tAawFnp97sGxC3lKPoR5rJwNWAAiJuySpZwcPZcISrkV6E1IRxfO9eiBs7GrHW0ybNZt+3ZsX/++4AQ0VTRGMEZ84ldZ76Ez3KVizn96CCaqwy8OvmkjJrmIE+AWL3FttyK+AyN3OvNb4FDeV8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JnUHccA8; 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="JnUHccA8" Received: by smtp.kernel.org (Postfix) with ESMTPS id D8534C4AF0B; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788182498; bh=8TupqbovUH4f8Ft7S3k5VMJFfXq22X6CyPw4uwxsut8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=JnUHccA8FJw0LilnVuq9u5mrVM4hfXiO1nfciMgONZgd0/Cc0ALLn+MRvnndbsT6C NH9RWHtx3MLbSpI7PTgg88ItKI0MhROJaVUKyMzR/YWDushY+wbsXjdORz5eQE/tpq U3lfWDYlGgmzQwaK0kJHtzSNX5rVg5fh1fpCztTIST22g+Le9oirSZt2UGXMmzX9dM Pt5k72nD6BpjkwsBNZQkseUq3nDHF7ylJocEhtah4AVvo1H9iom+ngGsyHeIEkYtLF D66kiEsz5GO37X/7NZHKf0XsDqWOhi69qgqaEFv1AUjOfC6azQSZ6YwfboRPlQ2BTM P0gOdwyFGs5bA== 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 C3953C61DD3; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 31 Aug 2026 16:21:25 +0300 Subject: [PATCH v16 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: <20260831-gmsl2-3_serdes-v16-6-4fa6e08bb514@analog.com> References: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@analog.com> In-Reply-To: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@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 Cc: Tomi Valkeinen , Dumitru Ceclan , 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 , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788182495; l=2057; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=I52ZK89SDidgv9Kh0KUq2eBXwlYMLSWhPo+aSFUbLXE=; b=tsAB71uuSnoh/mZWjFj2U9HwX2VA4B6ybMQSPZPi51GZfimdsgVHc5Gfp2on/HU9TNAcCNnIw qcxqX+dkklUAHCMgjNcsc7i+iFUCUeC8/SmLv8aGFzdBGQAGcJrE5+h 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 Tested-by: Tomi Valkeinen --- .../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.53.0 From nobody Sat Sep 26 18:55:09 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 13616419FD4; Mon, 31 Aug 2026 13:21:39 +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=1788182499; cv=none; b=izLSl1Ze0ArKRB+7kgwxixr+5eLK5MCnWy+8HnnFP/6qFHwEvXRmdYrXxJkLdORlI2paMnno+Sgdke1/kcAjAk/5hkq5RIibQjy4RtjbyvC4uGFSISYDr7fIy2Aessv8lRmQ7qHP0G0m8HRKD8GQ8l7nTQcrR9UNApLES8p+S8k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788182499; c=relaxed/simple; bh=oRQbdno+uMhuHFTbdmanYF8cim3BHh4wpJplXog8vQk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Y3WPcDCQmfFcPPUxXi4R8d7CVuFuAGFDPXgMpnJ4/cAhnzuN5v+V+SQL0shfYlVDR0Hb7MYpv0Xf/4UDa4zuvvCaKbS3QqCMsWq1cdKupEjtmtoRSA/bKTFD11Tcn3jJnfuizTQgAWp/+UwKGowM3S5nvZS1saLA8SpvaOo6T7c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fzIdqECp; 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="fzIdqECp" Received: by smtp.kernel.org (Postfix) with ESMTPS id E76E1C32782; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788182499; bh=oRQbdno+uMhuHFTbdmanYF8cim3BHh4wpJplXog8vQk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=fzIdqECpF8ZT3ypNyKnWO4rTfjy1YR+SSTDqBJ/FveZzbTxaE2yrcTwQE+mTzOvAg sddbqjKz//RJdcV4FgWqV9S+pJA6g5MpBYJ5YCCaNtpscrxcR7EU+h350g8Ecv0ZyE PS4dhKPWpE7hgDQYQSn5GXn/0SU2eXSwB9tdTK1BcC7oivUGM+9IBz7E9npBN5Kgdf O37sjfiXjjGvGEbTFpsctW9sT64aKA34CctXqpxgSOF3pRDds5zBSLRON5EKpziptD /qOKmDn2AfUUYnhhduRwvo+yMpQGUmMBax7Uphe9j0fopl/Ku/c/nn1HyoZzylYmki P2l1TwafUtnWA== 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 D5458C624C6; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 31 Aug 2026 16:21:26 +0300 Subject: [PATCH v16 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: <20260831-gmsl2-3_serdes-v16-7-4fa6e08bb514@analog.com> References: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@analog.com> In-Reply-To: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@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 Cc: Tomi Valkeinen , Dumitru Ceclan , 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 , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788182495; l=1871; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=Wtq87WP6HuN2ExCP/a1ucfnQWkLmzlzMjUynofXhUVc=; b=45tu91SFMTKnPqcMnioHNruBt0iHzqIZvvEbu2RCttNgBVeir1G1GxB8RNIHjQsEbUKNWATdN SkwzdKMYJvvAAmlh8OGKJYQD+8jgNu9wno6J40mNjQ27JnOlu7q4oXD 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) Tested-by: Tomi Valkeinen --- .../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.53.0 From nobody Sat Sep 26 18:55:09 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 3976441A55B; Mon, 31 Aug 2026 13:21:39 +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=1788182499; cv=none; b=VhntFFimiAJGzCaBKeKvu8PlIfhi4vRNA/u0wxcEuBOAYrRApj0LgtYbGjz8iVa+jIx3W367pgeNawoKSbrbDW+nDJAC12QJS0zIVNBFoNqb1ugJj3Zrt4IFPzET9gUec3TFk5SGY0BUiE5V6q0vNCFuLQBU/sb8VlM/p1iqnac= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788182499; c=relaxed/simple; bh=uqnWPcYuomOdK+CZnQbIn/W5p1Thhpmu4YbDCuYmLeQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OUDmxi6H6gngsbA3Klxk6Zn+BRpnM5k2tO/T8tGyZvKMFjoBVQ90rBZUk++0hkihsult/RYjv335EqIYv+hXdjPdM0pvI2/l6a+nDcK6KwtKd4xGe8KsH1Q29fKV+P2b6iCsAr6hGrnaKrOZcLCdHekx0INa/K4tHxoNR9ihaCQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=I18ELUFh; 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="I18ELUFh" Received: by smtp.kernel.org (Postfix) with ESMTPS id 03CCFC2BCFA; Mon, 31 Aug 2026 13:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788182499; bh=uqnWPcYuomOdK+CZnQbIn/W5p1Thhpmu4YbDCuYmLeQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=I18ELUFhrS0R6qdfbi+dZn7gJeDWmOGK9Twh9Sd8tWLZHISFNP6AbBOWE1s6fKN2f hK99nG6XidkHGg8jqTcdrZJa2L1Pb7UYrKo/QTkjJQxOoHnyIadZWF71651723D3Uh n0y7RCMlRzSIShLZdK8BGlpEEnanKZUw1CcdyG3WkeWu23ufSSKt53Uk6ef2aywlgN PrcFcBJOGWL4d/89l5qoFhMqQD5Uw7zFCHHu7y4dqpfRpjx+KsdH735nwUq+ai4Pi9 6PE1WPU8TzpCDWal8a1iobSXH2BYjuFiJhxsuU97s/1kzCspDQcehif064FyX6SFa8 RFO/iNfGL2zAQ== 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 E47A1C624A4; Mon, 31 Aug 2026 13:21:38 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 31 Aug 2026 16:21:27 +0300 Subject: [PATCH v16 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: <20260831-gmsl2-3_serdes-v16-8-4fa6e08bb514@analog.com> References: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@analog.com> In-Reply-To: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@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 Cc: Tomi Valkeinen , Dumitru Ceclan , 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 , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788182495; l=998; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=4ZvMQ1EkeJ2w8dRWwF+03VM9oahvM+Q5lLU48mndSLo=; b=tVN7Yw/FF1kUStgXH6bB5JVC4UCh0oEtRgBjjBRM0B+NDNQ3Voc1oMLHoS9XcW/H4VEvnkboH wq6csz+wDt3BluuuOMBYt0f0IESct2lIptzGev9ipzO4pVwdw1ihWhD 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 Tested-by: Tomi Valkeinen --- 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.53.0 From nobody Sat Sep 26 18:55:09 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 3F8CA41A55D; Mon, 31 Aug 2026 13:21:39 +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=1788182499; cv=none; b=EO+N+0IJKs1fsn3KFKQS2rb0AmcB9MIMiEWmLEBIsKZNWB1osvlli9IYSg4gmC3KXU7ARYv2YFCqZWsncatQVWgH6hSrW4k3QbSRXXMhVejxjPhLSerW9HejiBp44oR0VWQ04hs8I7qFbgmT+ZYWNk5ItQu24OF31ObT8Sf1U18= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788182499; c=relaxed/simple; bh=IVMjQPi6cuXsnNOAOBqZV5+FmGTZcU/k97taVGCOIoE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RxWgqBedFNcc1KT/rkjCoFA/BSoO1KJkmKaXMj387/u7i4CyVxKwSFJ3tBtSR533T4q1FqPaD/7nKd4BlGCgzVug3vT9QG9LpDIhYqOcrvB6Rth9261nmDsK88HLGac4kxXCjIA7WCJpbMRRiSGVA1AXZn+XXWcieRj5QFy/rPE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EG7WL4Ih; 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="EG7WL4Ih" Received: by smtp.kernel.org (Postfix) with ESMTPS id 13FDAC4AF0E; Mon, 31 Aug 2026 13:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788182499; bh=IVMjQPi6cuXsnNOAOBqZV5+FmGTZcU/k97taVGCOIoE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=EG7WL4IhAi/P0cxisT7RtmWoVj69W5pvPU4iQPGkv9yAZuvLj+cCJBqQpSIyTiSQA 5RTZ13gdnzU7lpxf8mDAB7FvCjpyHe3UzZWj1HBaGeCsRBl47DMHE+/E8fJhrIVI7f xLsoAH2waEo2Mse+6RnlLb9+zQd6wglmrm61uLIpKb6d0AuYI0oK9fa8+bdv3iGD46 4oAvg/6VSidH6EgWdXgw27NL2PNTQ1dzCyAYSanGVXrSmpZWyeJkVBqu97IbsdgW/b R+fLijm1jNd1TUR2YOt8+sjFpV+WbLYEXgcO3495cEatgyioT+8WS8nqhuDC1Mdd1u qWqfXHiPcOboQ== 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 01067C61DE2; Mon, 31 Aug 2026 13:21:39 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 31 Aug 2026 16:21:28 +0300 Subject: [PATCH v16 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: <20260831-gmsl2-3_serdes-v16-9-4fa6e08bb514@analog.com> References: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@analog.com> In-Reply-To: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@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 Cc: Tomi Valkeinen , Dumitru Ceclan , 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 , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788182495; l=1289; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=ZSTakNbBz4Qus1NiPPbe76vFnVEQ3NLtF7fl+Vgxvf8=; b=R2fYt3o/Bp31d2tWrDHkBVlVQoy4t2i6f1eKYJeFilVnxNRIHzyeQPXBp7PnheTgnUEw5A/CR a/zO3H3eANvDaAmKthgrODBEr/d0KUfJPiQFDO0FAp/gjr4R7bjAfAW 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 Tested-by: Tomi Valkeinen --- 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.53.0 From nobody Sat Sep 26 18:55:09 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 4049841A55F; Mon, 31 Aug 2026 13:21:39 +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=1788182499; cv=none; b=O9MEjatYXWc/XrQ3I/3WQuFC5AKOJj8jNiNyJwmAz5im3gXyLVgASkJGrXUawQ64rEDc6Yn5OfN7CkRxopMY1emwDCPMZnmeICK4RMmw6zYsQKC+XhQWeglGehbN9jgjXZqvoMPgOEJRdmieYcdwkQvmwNjMN4gR2ugHJ25byZk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788182499; c=relaxed/simple; bh=Dtu/uLQC/VBH/ebsINFo2Ugv0zQarsUez6ULS9EDjKI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WvtlZyJsZ/YVLIEWy5QRHA5ZNgr1cI9GwaAoY5C34GivblOANbcEVSwQTxfIF6/PFhozXCr6jhpf4Dixo+0s3TPOD4PRpCbKZkHXtduj2vAuM82umecI/p77/rvr4O12TRFI23wMyOxab43xOnEA9UsW0QD3Fk0ORQGyH7ZRj+k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kyJyO70A; 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="kyJyO70A" Received: by smtp.kernel.org (Postfix) with ESMTPS id 239FFC4AF09; Mon, 31 Aug 2026 13:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788182499; bh=Dtu/uLQC/VBH/ebsINFo2Ugv0zQarsUez6ULS9EDjKI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=kyJyO70Aqg3REfvY5fuLz3NxjCJCNve+hJ/QwGA9tDlCx4abUMiQzC5Ce/heIBgbl refSWYmD4xOfBFdnWTpCvluty90mVpj+CWziKi3feESlqV8/9mt6YiSYPod94kS8dY VG9aVU+yY5DeLdYZX2Pz2MG8YfzZes0u4nRLgh6cYCZlUCemoWgoAAMvWuI9ffPKZN UTPUlAm9lOIM/v6joBVlfIJBnE8SMfDdQXF8FZ/o74ZP0krZ9pKQDOBTCm6WriD5JR IERtNL5BY5Y2ArlW8HrhUM5/Bf571qhdHlSuR41p71n2nlQwDf729Swk3Wxq7aqrrU 2GMFzz2mzUuIQ== 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 10D37C624CC; Mon, 31 Aug 2026 13:21:39 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 31 Aug 2026 16:21:29 +0300 Subject: [PATCH v16 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: <20260831-gmsl2-3_serdes-v16-10-4fa6e08bb514@analog.com> References: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@analog.com> In-Reply-To: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@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 Cc: Tomi Valkeinen , Dumitru Ceclan , 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 , Andrian Suciu , Vivekananda Dayananda X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788182495; l=1210; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=zHQWciR44LLL2n9JRuufsEezIBfNdUsq5fR2eFezGHc=; b=jr87Bh5DYzeurM7uVqdc90D4kZgj9q6VU3vwLEThUbkaSZ5kP9cGum6DT6ftS2sPuDBX+aXum bl3KRVSfD1FAh6YgzGWxdHnSWoBxQKUceRYWl1SzZqy/SkkW3dQUykE 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) Tested-by: Tomi Valkeinen --- Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml | 9 ++++++= +++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index 161d40acdd28..ab1dcd8ff8e7 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -41,6 +41,15 @@ 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] + default: 0 + i2c-alias-pool: maxItems: 4 =20 --=20 2.53.0 From nobody Sat Sep 26 18:55:09 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 5192441A902; Mon, 31 Aug 2026 13:21:39 +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=1788182499; cv=none; b=EodWDcUkDnOmwbFt5nK3AN2+Wu6yIuc8ZL5yVqsSPeZuDhehoCM0l1q1QVOK59M0fCnZUZbwibLAuHkNIBq0M4XqzSOL7AN5hK6d3n2qlQLLUDGB6aEtkqxUr/xBXCD7K9KDCEZJuIJv+YkOU2lfe1ogpbWhCvaImkiScDZKtig= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788182499; c=relaxed/simple; bh=P5T0QdiUtUUc3yfg+4YRcekBidFP3FtN9qvlxhJwdCA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rV/iR2N0BclP8K5XJ6PorcKl2HNWqFwmDohRb14KBw3ycOmnTBlwLRG3MfxNWZet+h5O2YdPLnLmy+G1AoYBBs9VO2Bv85rcrtwUK5AZNmcZQnhqalIdfraaFU7y/Fjze9ZTDzrvUVWsgdtTvF8X6wO7HwDhneJP4xYdqlM21cs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=e77kn687; 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="e77kn687" Received: by smtp.kernel.org (Postfix) with ESMTPS id 32E87C32786; Mon, 31 Aug 2026 13:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788182499; bh=P5T0QdiUtUUc3yfg+4YRcekBidFP3FtN9qvlxhJwdCA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=e77kn687WtzE7CjcQnirWWxQnHcZ+5A1kDuCmav1KV4JBzEyTyHcKTlD5UdaGAtM5 N/cDEdW+kB/Oimhp343GTZ1hnA4K8m+WTdE2zORrp7LKzfhJYFCs6Wviahtm+yWnxB kwWJQCYmBUxKqSRXjQjsl/LFM4x3UyM5TVl0eRCoimYr/XykQfxPkujdeGgsYplQVG +6g4/kQgBQ5VmugIfjpJEALQWu7TVXRIZvdMxYXHbyMoP7NUcMs8yEWdBJyeSfVMQF rln6ZeWNGxSK5WL8eJv81dZ9T8N8AsQRWy3Ub7OPNwYzcZEF4snxH0j7Y2tTLFwWI1 SlUBD7EGIp++Q== 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 21874C624C6; Mon, 31 Aug 2026 13:21:39 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 31 Aug 2026 16:21:30 +0300 Subject: [PATCH v16 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: <20260831-gmsl2-3_serdes-v16-11-4fa6e08bb514@analog.com> References: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@analog.com> In-Reply-To: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@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 Cc: Tomi Valkeinen , Dumitru Ceclan , 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 , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788182495; l=1267; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=zOCbIvONkBm9sImxMI6AYdByC42n/O8SZsebFGXPD4g=; b=TBxpwhgdlkSJyNfpuyEORT7VnQ5JMnqiUUJp3xEEnhH/bjhk3hN+/rjvrRufTMh/RrHzeCzeB T2kzUQUTERJBDUmxNhdsj8U95qI0xwxS2r8RI/1ik96I353vu6Wx3RU 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) Tested-by: Tomi Valkeinen --- 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.53.0 From nobody Sat Sep 26 18:55:09 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 649DD41BA81; Mon, 31 Aug 2026 13:21:39 +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=1788182499; cv=none; b=oRm6okihgbLrXmM1+768i29YQECuYVRwh+HhZRHrhbjQPI57suKdZkavS4tRcKuNn1ElsCWpCShBx+r6kD9Z2dSVyovldGlZ1kJZ6KNeXhZByQLvdPocLzZGbVr2mB0jD9aW8Cbz8jpnC8tZQgXyCAHuC/8Y+hDGW3ztatPQXY8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788182499; c=relaxed/simple; bh=3kEEsCz+zknfSd5LSXeQSrz7kyk5bfwyAvcGGMRoXcM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=O0nq3iZdxpM/ZM65ztgyZYnqTAASv6pljZ9PSX2LfhS3PU8giEE9VK6p6aK9Be/FciKw8fEoi6aN0trjQNRjTo94sxqO3d3k7wvkv08dP0Du69mGail6sORa5v2tK06vTjz1h7W0pSxCDXhQb0I5SEb9/RWAR+xqEGF3QrZMZg0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dkuOAAyJ; 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="dkuOAAyJ" Received: by smtp.kernel.org (Postfix) with ESMTPS id 43956C2BCB8; Mon, 31 Aug 2026 13:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788182499; bh=3kEEsCz+zknfSd5LSXeQSrz7kyk5bfwyAvcGGMRoXcM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=dkuOAAyJUCf14MkLFTr9BfnZJ01G8ZuFZBrkG4y5we/mV8Y0H0/UpZm0HpJ07wSCi 3SNq0dFClw4PbuEmw6IL3nX4VCFRPgdB2IQjvQGj6N58bksDGcimOV4T8MBGCL4DNY D3G44HqLNJ9hocnfqnH97kIgAN1ififXGixZf6d9q7AHeXYeWd3fIDBzRMmIXz5Cjb JptcKpJSfvW8YhUi68vDauxj474OWn5VwM2Bl5Wds9Q6PqV57nVj/SMHeqsp1RIVOp ZDxryHY8So3y0B4DEsCITFqJY2uaLx95NPAdxtffAl+KDMUx8x0bAYaT5oJ8GvcBi1 517yjA5wb2zww== 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 31A72C624A4; Mon, 31 Aug 2026 13:21:39 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 31 Aug 2026 16:21:31 +0300 Subject: [PATCH v16 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: <20260831-gmsl2-3_serdes-v16-12-4fa6e08bb514@analog.com> References: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@analog.com> In-Reply-To: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@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 Cc: Tomi Valkeinen , Dumitru Ceclan , 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 , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788182495; l=9145; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=67cOlkerGEjDRKRCh6DiYgwXZjOUIe+CB7F9fF7eNgs=; b=HK5O+MnSK+/zelHQCTDIfOGHarG+SWNUmXzJf/rasEh0qSTjPJeV2DRdZDIp5jI9nDIKJLN02 YJCs6rQSl/UCg6073WeQrt/c3GvyQlR85eV/Cf3dPoqCE+04bSAtREx 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) Tested-by: Tomi Valkeinen --- .../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 03febbc91a06..80f92b73cc39 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16014,6 +16014,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.53.0 From nobody Sat Sep 26 18:55:09 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 79B6141CB2E; Mon, 31 Aug 2026 13:21:39 +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=1788182499; cv=none; b=kcAjP5YptqZ1lbPyS1cpJ78/Drb2/ghun8CUXELkjW/9Mbq5B5aMyH99I/ogY1LMepRm8oxteBK4DwrjSPYwn/EOvSU1tJvIoZ1NEiKo7tGuzKUrLYX0ee+RKhCL0R8SQbdwN+GvBg9TmcuWqCSP3ZE1fco12DbMMGO10qCQWW0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788182499; c=relaxed/simple; bh=lHo2/ZUMj4sYGHqd8b1Ca0NSi/GORtjGV5/LGUc4nJM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=p7gJMtkZB7IDZrbkR0QN2seBXTKnRUy/VT//pda3rRx6iNNTxA47eRl/mZtjnWge3RY1uB8ZOI9y7SG2yhkYX/2XJg/0IWgqx3hlA4ndxf+BmI+/IcB0V+IGRqga/QVDZ5g3xVcVTUduHk9vg3PB+Ue71k87wcKOxuKY30lZh0s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iI7dRn3a; 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="iI7dRn3a" Received: by smtp.kernel.org (Postfix) with ESMTPS id 57B8CC2BCFD; Mon, 31 Aug 2026 13:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788182499; bh=lHo2/ZUMj4sYGHqd8b1Ca0NSi/GORtjGV5/LGUc4nJM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=iI7dRn3aXRbFFh8HtQULaJ1mUpHD7ab4izuggOUQuqQ1eqrYbUfGnUilTnearLTX7 HT3IIiRbeLm2XtyVG44lRJp+dXQCi1Zy+ZQHD04i/ZpHujXFYWzTlkMnNK5fFIeSbF hfRW/rrZHrvFp93Uwh4aGq1T+m/kjIsmNd6LnXHYrDBLLCPwVdKxbHWp3hS9aqajaR DVoTAj8lf9GBMBAerKD6rQvFkWUt+rEkz+UfsIGs2mCUNKtAzh6EUd9uVyzCFKvCGU sJyxQ2SAn5TBNHTxLiM57UIhql1TW/be5845Q6gQSeOidohh5wLsR+Bc38QOFxvDS3 NxE6ajI0YQd9w== 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 44F3AC61DD3; Mon, 31 Aug 2026 13:21:39 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 31 Aug 2026 16:21:32 +0300 Subject: [PATCH v16 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: <20260831-gmsl2-3_serdes-v16-13-4fa6e08bb514@analog.com> References: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@analog.com> In-Reply-To: <20260831-gmsl2-3_serdes-v16-0-4fa6e08bb514@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 Cc: Tomi Valkeinen , Dumitru Ceclan , 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 , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788182495; l=19468; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=ou2cboCK7HaD+y4+yymDX4KSZXP4zUwb+jWrYDc45H4=; b=qU7TLOFLzqwyA3NssT3PAELAQo7sMyO4d9Aw6rPJu4I8seEEq51dgPfNuaZ8GLH1U9txYno5B KsRjElEgAgXBEwKLjg2EgXrMu996oU1zkV7W5v69xZWdIwHRf5NDL8Q 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 Tested-by: Tomi Valkeinen --- 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 | 181 ++++++++++++ 7 files changed, 618 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 80f92b73cc39..b8c2e60de666 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16019,6 +16019,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 5c52007f9cbe..d4c49c834ec4 100644 --- a/drivers/media/i2c/Kconfig +++ b/drivers/media/i2c/Kconfig @@ -1811,6 +1811,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 d04bd5724552..9d5c2bfc4f4c 100644 --- a/drivers/media/i2c/Makefile +++ b/drivers/media/i2c/Makefile @@ -74,6 +74,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..7d013c4739d1 --- /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