From nobody Sun May 24 20:36:32 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 A7C333D524A; Thu, 21 May 2026 12:44:20 +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=1779367460; cv=none; b=cOi3LTEAjnBS1+0jKPNZL0g3yh4/BfwLWCknOCCugJjNd1KuYvE8BjNzWqZ+HSlNIpnOIbJx6EcFe23ChhHvSbF4CzD44R+yXq1xCmC1Mf/ss9j4HfFFKcM6uHnDmbsCkzw9K5emO1mdgz8Au24kiwrUmcjNDXQIu5jaKdvwSzI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779367460; c=relaxed/simple; bh=cpDukcPxVJzXko/L0eFDwxYderoS/dpMlVO2IjtjjHE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VA0Y9LdTjxds8kLjfQmTn2qFvPLfhLEQBRv7I3UynExwSaAmjJrXVD+vUBonGcvPpqRMx/me+Nl3MkNvNFK3jg27zb6F/uWqHWviTYyTxjr2yf78tuqfDmE/Rl6fhhu1o5pO1VExeSqzZ0YvygJaaRmfxSvrNCdd8oeCMNnIW00= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TyPeOPLc; 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="TyPeOPLc" Received: by smtp.kernel.org (Postfix) with ESMTPS id 63F31C2BCB4; Thu, 21 May 2026 12:44:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779367460; bh=cpDukcPxVJzXko/L0eFDwxYderoS/dpMlVO2IjtjjHE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=TyPeOPLcrmlaamZuTK7yIhnb/aF4UCajgbAAeuSqS/cFz09Dz3WoEFiJvng1temaa PMdNLljOuchh0C8CxcY+K/2rRXaks/VOHZeE8I2+MuIpqlIiGJFRm8re5ky58zkRM4 z95vguBuXIvOTUkQdyUND7n9+6xmT8LK5wtaEkAU+R4phYf09jNpgddWRoNrmKwlt1 99TzoJtK0+9whYoBdSbuaKY9cnGDuMX2MbU6DeeBnL7igxm3B9nyUVchis01wZ18Aa riEQu8H5K8Cr/0sveEBs4uygbym7bsoUbKvWzbgmCwSxXUJsuW1AV45ru6PczC6grt HXmerCrGah7zQ== 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 46207CD4F5E; Thu, 21 May 2026 12:44:20 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Thu, 21 May 2026 15:44:07 +0300 Subject: [PATCH v12 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: <20260521-gmsl2-3_serdes-v12-1-b26d92931196@analog.com> References: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@analog.com> In-Reply-To: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@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: 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=1779367457; l=4211; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=j75z8BDeqCgnWrq6GF1INTACeRkTAkS70gXnWGmC/2E=; b=fM10zBIkbzoeBOFLdbhqXebMWk1zWd4Eq3OSHDvp2HCt9SGuVRoOtfV7WTvqyY0DEhj0nc5KT SILjAcT0LFSDOD0FEmFGdsknJ41MtsYzUTQXId3WDVn9QOkmqGO4X0c 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 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 Sun May 24 20:36:32 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 A7A903D16FC; Thu, 21 May 2026 12:44:20 +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=1779367460; cv=none; b=IHK+hYinHV6mIFNnHyafAinJCMPjujjSNSzf4i0kptEo6ZdGYsSeHs3eprOS1j/+jFNtHTq/7FjUopx0ObvqfhT+qTv2LjW2zwlmvCG2en9FP/j8pChf6q84dkrrxlwk6rDubl+BItcyivewMxxSkcGWIVtNBvUqmJHMHfM6MR0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779367460; 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=rbOYqe7OgZ/TKIB3FYn9A7LpN03i/SWrdMzhY9MyjrApmjJi+rvz9vVMd53F+ImDkyJJVI4gBMUpfaeww01d6VxCNXEVBXdSyov/kwmkGR6rlxVZ4Jlb17BVOTAW1qpnlzQNFZqbNuWAwKNHFQwL5xW+kT/+6YyRwulpcIC3c64= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sEUtApO9; 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="sEUtApO9" Received: by smtp.kernel.org (Postfix) with ESMTPS id 75335C2BCC4; Thu, 21 May 2026 12:44:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779367460; bh=m/Lw3D9Sn7b/iEdL6eTGT3K2tR/KZoA6l9gCS1mqNBI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=sEUtApO9MmQZQzKTtOBcM7/E6vt7LusmvN7WteQd02qcXOSYb4JiRESSWkUSe5WYB zOtnLWBTAwdVEMPtkYVlD/iJkKf7UaL6MdSS80w1nAgApTe0Zg+Tw7cGix+sU3SNP2 XIX2j4wuWl5JMBqXjzBzVSrMo8EVxxPnj9xZlES07mK7PPdsrk2BBGfbQXG4KFZzO6 3yIZuulTQycYxrG8+TTTf7XkeXBsSz8Suy7O+JhvEe+SKXyTYMqSUNO0GH2IN9ZQjY wKhfgnk09jfuQP1QnzTjOG8z3mHMo1eaiKLxUUvaOdzHV+IYYQm6TNRftUH7N/GoaS 4Mp8BewQyULDQ== 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 614D7CD5BB0; Thu, 21 May 2026 12:44:20 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Thu, 21 May 2026 15:44:08 +0300 Subject: [PATCH v12 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: <20260521-gmsl2-3_serdes-v12-2-b26d92931196@analog.com> References: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@analog.com> In-Reply-To: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@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: 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=1779367457; l=1814; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=OiYJqgg6XnogVXqu3cCeY60g1Qzx0eB+PgiVHCOJen4=; b=rUq65+k9q/xNLJ2PgN5t5PoevMnjOqv4TqZDs4AY9LvE69SuQbEtslKXC3ak8SQ7OmJlXXrMT 1td9CHzAFkHDJOrl/dP6AMSjgUT0jG/tpzl87y/bmuqlhUStHBngyh+ 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.53.0 From nobody Sun May 24 20:36:32 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 B03B03D5C15; Thu, 21 May 2026 12:44:20 +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=1779367460; cv=none; b=VNgFggBh1p/yeM2/41vJx6Ujb8UK1SvvfUekXz8qi+P+ijR5cAOmpLBzDeWnTkSdkI7YsRJ703Mz8LrYfhQbdWCtA+ETrgFDzYhqHaJoOCsNtYLyNO+sf4aeEAWRO6YNYBpMpzOUYzQ9yAtJFGwbKVzZamn/YD3P9OgOnCzxE5U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779367460; c=relaxed/simple; bh=+zzdgbeUTZ1N1DTgq5TxUwR+zP+wJLNITthqc1e88Zc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ru7ZT4/BDCEMLiEXDAa1KQD+en9+yMgOLheKu4J3KfFW+hg8W1hhfJkiqr003EZgLIfSTIZqWyVzJ1wdK8+O991VWsPcL6J8TJnGY+dHhdesp0GWwqCv9GSZSqWHz+H2g5Ek+ZB227j8E++SgaVAsR29Ec1Vo4+MRmP+9hoNaJw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=K5fSnhC2; 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="K5fSnhC2" Received: by smtp.kernel.org (Postfix) with ESMTPS id 8D3B0C4AF09; Thu, 21 May 2026 12:44:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779367460; bh=+zzdgbeUTZ1N1DTgq5TxUwR+zP+wJLNITthqc1e88Zc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=K5fSnhC2uq1dmpIOVWzTt5a37xmWBKPBSW0oXs20O5kxa0Ef9cFguonP7rUPicHBR CWejVxBGwU+ckGKurpB9YOe3tZDVfvJTOq8ZhBd5bD5tg0vb4GdzKD37818umOz8RP 7t3r5jBD7xNr+xYxkdSUOv2PkMQ6H6AmFl0Kb/UEGl1+IJn3OG4cvcWmwWLiOgYUjt 43BpQRAhXLYrubIUh8zrg82/iCDBC4t6S6iXy1KSvlYhhOTyih+nkRhBF88SHpK6XI bby2+itqVmZUatHNG9lwnbiGMrJ9EolKmlNAFc+POqFjqFXVHiGVVPSCoCK71NASBM E8oy91YwLpCLw== 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 80D82CD5BA4; Thu, 21 May 2026 12:44:20 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Thu, 21 May 2026 15:44:09 +0300 Subject: [PATCH v12 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: <20260521-gmsl2-3_serdes-v12-3-b26d92931196@analog.com> References: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@analog.com> In-Reply-To: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@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: 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=1779367457; l=4016; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=SrxXRhbQ3GCquuhQkKB0cKcz5eSmglqqWPozYcuiRVM=; b=FeLDPthYWk3EIxnqqU4MaPO/9rCpRFBp+Up+GticIhQ3TqRS6Cn0JwrQO+4y1Q7djUPdJZfY0 JhAQb8dqOarCC9JH8rQo4aUcWwGxL6IZc6rNvlVuzKO1qQ8ZBU7BmvT 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.53.0 From nobody Sun May 24 20:36:32 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 C8C6D3D5C26; Thu, 21 May 2026 12:44:20 +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=1779367460; cv=none; b=ppkwKho14jC+ywEZ1nPQuBeAQyBBHWAUrBC7MDhuLiwwNoxqahe7i2RE1mCVHM0mhOO7pdinCu1/l5n8J3+vkC29zwMR8lAZx7FwX/2OX2kkKwxnMGJycQi98UkEqOYRbPky5mioyQuTH35auAxYVfkVK9BhgguqttIyB2vhUqk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779367460; c=relaxed/simple; bh=0LRurGs30izWp59o8FPmIaT+p/OC5LyJScZ6dv8wqHc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NqAYgw5SuxGv6ylC86hXKblNfR0nz8K5AYB7JjNH5N3EjF02rcUIdTxioleR8HaJ/f86tyot+9A3FlgCNJp/lTBjFdtl9zpJ1xdsV9pD/dj+EJLDsXtNpf6vPZB8Br4kKz2odSanqBO9CwDeI2Z2FXdShJTqmWOYN11E8sW9bE4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OWt5x1yt; 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="OWt5x1yt" Received: by smtp.kernel.org (Postfix) with ESMTPS id A7352C2BCF6; Thu, 21 May 2026 12:44:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779367460; bh=0LRurGs30izWp59o8FPmIaT+p/OC5LyJScZ6dv8wqHc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=OWt5x1ytle1c59goSwGkctknWlFaMC7qEDsT3w/5NhbMGwyZ0k0lhYAt4eqgZRo7w sks5qsrDB6GRhvh3OsXREqz3OQVzesfA20dpjia7F+qn8ePrDQ6GdldKYhrQEzpSqP nFBEegcM9JLZSBU1oh7G83qpmy5PjTND/4w6BDsrQIkaKOM/QVD8TlGsAWPBNJD0KZ UpXKPbG4STgCQihTMiETveZTWSGhNU2kjpN0nv24cYNWuEmflTpip6zRniiNO+pD2I ckQI75c60XJd/RS79h+H2YUT3FvCVSU7iDrVrPd5npcobZzefNz2Q6l+7nF6sf1DuV ybbLmIAKwtbQA== 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 9D9A7CD5BAC; Thu, 21 May 2026 12:44:20 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Thu, 21 May 2026 15:44:10 +0300 Subject: [PATCH v12 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: <20260521-gmsl2-3_serdes-v12-4-b26d92931196@analog.com> References: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@analog.com> In-Reply-To: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@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: 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=1779367457; l=1215; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=vJv87PlKhZ/JJOLIT/BDLODjizDSGOosxrrf6SXpE7Q=; b=+gFvhUqINS13oy6ShQpjND6Z1e7JOOHoTxZDeZKPWRWCqB6OWdGwH+vQfQumgLwSWyxWx8UDc 6cokxDRZs3oB/sjAqpAnxISKz+Upy+Qgbp0WhFkzqknYEYaYojXpJ34 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.53.0 From nobody Sun May 24 20:36:32 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 DCF9E3D75B6; Thu, 21 May 2026 12:44:20 +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=1779367460; cv=none; b=rCMf+eZw6u7PXsa0ROBmrUMf7tC6fq6EPtI8xYU02Db5Py3TmMyo26hNbATBhlJzmP9CS9uuI0VFJah4VyOsNv90rOQ6tSGqMW24NamCUaZz4km3KbmmGVTVkFPDHwFfWe6xpoOjqlaiKE3+B+vx1fSq9XO4TEjLafbQG2ejfws= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779367460; c=relaxed/simple; bh=BKRnyLSX59IE0zfiNOQX8tE/TWnmktZCFFeLRCV2Ecw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XcGI0qBE3TNlJ0NyeVLwh0stddLFRSmc3H/WJd3SANrqvl48REoH8Cf7xpVX5flvwGJSg+5A2Lk1p41iu9mhrkc+SITzgVSUaK2jjjQgYjjWZmRveGQr0XSHAKQDjWjcwoQx4tdr0mNoCgWXkrv6c/WiqXwTt8HLcxqSIl9Ue0I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hgQfwc1R; 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="hgQfwc1R" Received: by smtp.kernel.org (Postfix) with ESMTPS id BC1ACC2BCF4; Thu, 21 May 2026 12:44:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779367460; bh=BKRnyLSX59IE0zfiNOQX8tE/TWnmktZCFFeLRCV2Ecw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=hgQfwc1RrKayV8jxCP4krmcdQHrzvKxYvB9RBoNPMgMGaW2VLW0Y8wSoH1efBCiPH Y2aHx5MFbFt0SZ+Qv/vb9/P2uNQYlFMtYb3niwYQYXJ3q0H2wf+BE6NRNCRLhAXHyG hPFPZDQ446nDLOPNIFN8FqcngbVAYuGJHJ/SookuLNbgII88MacMV5YfQLATOzKSZ+ m4unHd6CgwK1Qjo2ko1GORkVyikVuCUe8sHsNLYJ5ljXwfSBrcS5j+lKF08yuLJOt4 VR5eItDYBgsr5sUu6bVKqhcJFuLA02mrX4SCdmxCbq4B7ZYx0UadycvoWVPS1xfYk6 KdH4iF7OHQRaQ== 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 B2875CD5BB0; Thu, 21 May 2026 12:44:20 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Thu, 21 May 2026 15:44:11 +0300 Subject: [PATCH v12 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: <20260521-gmsl2-3_serdes-v12-5-b26d92931196@analog.com> References: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@analog.com> In-Reply-To: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@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: 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=1779367457; l=1028; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=kdE8G2f/TkU4Jd90/mcz/ibtYHam2bXzp5xv8fAXHto=; b=lpWFbwxKc+dEsPDFYaii18gCUVV9uCdmslm+oUcyA6shdhzIpAi0hqmf1noglH/ljwGfkq0I/ yxSlxZ1yEqCDNjf9ovco6HMvUofvM8+NBKqTW3LEXGl9tOPbWUWwa54 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.53.0 From nobody Sun May 24 20:36:32 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 135223D7D80; Thu, 21 May 2026 12:44:21 +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=1779367461; cv=none; b=r7fRpugbZ0JHJ1yGcxcOE6VDFvbRG+KytYiXf+XvME/KDrbtW+E4Z+eknx7vAxB4IR5QbqpBNS11iBXDpM+eX3GFpahgNYD6mrr8UTJTSy3t13dkospI9ZTa0hClYbtbcAilHJ902VmDRO1OPcvH5L1aDVeOk4HYODhVcFVFg+A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779367461; c=relaxed/simple; bh=8TupqbovUH4f8Ft7S3k5VMJFfXq22X6CyPw4uwxsut8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kG+ycwPh7kroonzeNzrgPtwYwJNEe6XFv9DNdT9cy3UvzudgCrn2F7ExWLyeFQQXaLa280GZWqJTT7P92h/YEMSkaFa4L4FMQYehERc1LW4hfQycrSlavpRkixJQ4oNk9rB7XxDBR1q9gRdJ8rhpODabS4krxbuarj+7vjmHsq4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IRMz4Pv1; 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="IRMz4Pv1" Received: by smtp.kernel.org (Postfix) with ESMTPS id D6954C2BCC6; Thu, 21 May 2026 12:44:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779367460; bh=8TupqbovUH4f8Ft7S3k5VMJFfXq22X6CyPw4uwxsut8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=IRMz4Pv1XsoLAZNglpgxWR8Fv600JXLTdAQs329NubOOf3l46QoSe3/Npt83CIsk2 x56qHO1ynYwlLe6NgeZI5AHoH6g/w5/A4IOX91pqpYpd5b1UlHO+Y+h6t0EtZY4rbj u1O9Xv+jtP0S+QGXuWKvOgwcWOZ9Fz9I/PoiFD0r66vJkgIzNNgi1rijwajicbxNJ1 /3HGUTqLHh7IumOnZjG+ObAk8yzNvjMM4um2SVU8r6n7dV3uoTSNeLAJu72KsHvoR0 s0Sz4HT9vzfmF62dn2e3ZsmwWgLfmYWbXbpGjdWekDr6DRfHb7H0ee0z1MyTdfYDRS MWGED0JUd6Z/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 CB665CD4F5E; Thu, 21 May 2026 12:44:20 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Thu, 21 May 2026 15:44:12 +0300 Subject: [PATCH v12 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: <20260521-gmsl2-3_serdes-v12-6-b26d92931196@analog.com> References: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@analog.com> In-Reply-To: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@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: 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=1779367457; l=2057; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=I52ZK89SDidgv9Kh0KUq2eBXwlYMLSWhPo+aSFUbLXE=; b=5mjwaItuwF3lLO+YJBMogjqb7h7UOlV3d9r7F3n/V1K3O3ryRSMRB9rhBLl+qLyyezsbNgA1O ZUeKgqZbRkfBJxWJpirwqOu7Kq1ndw1GGmfPx/gt9dqI92udLxaUREm 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.53.0 From nobody Sun May 24 20:36:32 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 133783D1712; Thu, 21 May 2026 12:44:21 +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=1779367461; cv=none; b=mPs9qldU9icCvWsvA202n+QFf+MYVVB+ye4zpAzcvEncoBuXemZSwWsGmAf3nRU3PCcLZhWCpX9kSxCXhZcXp731fKpznVrNxjiPafzMbvUmaqSKrXetCBYgoySqmoaQrejoeghlD37soJRR02zD4opz4DdiPi1pXdOtfTwRT6w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779367461; c=relaxed/simple; bh=oRQbdno+uMhuHFTbdmanYF8cim3BHh4wpJplXog8vQk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=vGhpoK6lqBvAPBRX7sNQBLEzPefmd/FfkUUGDu0btHyS1YDCAfMGYIr9G0tZ4bkuc++A818h80veCSQv13IVYlRhsMYEUCkk2K3BrJ1zjO/JJkmts5oyXGDB9COgWUal2RzSfavvk5uLWd4zzI6tC567VREw8BpmPx616IfmJOE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pPaUM/rf; 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="pPaUM/rf" Received: by smtp.kernel.org (Postfix) with ESMTPS id EC0BEC2BCB4; Thu, 21 May 2026 12:44:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779367461; bh=oRQbdno+uMhuHFTbdmanYF8cim3BHh4wpJplXog8vQk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=pPaUM/rfE8nKqBlEaYn7+fa3iN6lEtzfjGr7XYq7WdemyyCHflQUVS/uoX68A7b/f R4T3c/b/g+2patrnCPCEwL7fISkAW+W1hVtH22mIHXJOatXCwhNQ0lrG2YiOOpxL21 buW9FQCbaFrT0ig235qxr/898+Iam4tDSTh7OxUnaR+mBK+ZlS0+Rb/KO4d6uut1T0 zxD63WlToFhQ7KaiCZUYXrv+F+f7FvLDb/0lpOj9wbuoOXhfgk0D3gETAZoTErpbo7 6nTO6r0iqaf1u9q9ayEaIvUl8vT+SBu/blUv673Gv/2jjgjeNxxz7hOALa+a3IgXlZ 7uGIgSjUm7dsw== 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 E1A70CD5BAC; Thu, 21 May 2026 12:44:20 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Thu, 21 May 2026 15:44:13 +0300 Subject: [PATCH v12 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: <20260521-gmsl2-3_serdes-v12-7-b26d92931196@analog.com> References: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@analog.com> In-Reply-To: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@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: 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=1779367457; l=1871; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=Wtq87WP6HuN2ExCP/a1ucfnQWkLmzlzMjUynofXhUVc=; b=y+kAg2jTOClMALl+F94m+ySnPeiYgEX95KpxLzM1OZ+i533CPcIStcRTywdhUsYPEJ4MBImM4 sTppbDMAKlXABB/mxCUwaxesy+JAoc31fxZPYLeIsbc/kKGKt6Y38zv 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.53.0 From nobody Sun May 24 20:36:32 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 3C5643D75C1; Thu, 21 May 2026 12:44:21 +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=1779367461; cv=none; b=rdg7H2FNopFucWZRaT0AbC1vJOq2DsHfQY6i/gLjKPp25BxprGNGFjfCiPPnkzAlyxFYpH1RU7cDnterzkHdCL7tdbRHi2Sabp0nZy1Xz03mF7HPAmdHJpjvYRHtPzYupGbHyQHPxfwx1hiY8DrQq2WC3Y2cq6uHAaTcV+cGsxU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779367461; c=relaxed/simple; bh=uqnWPcYuomOdK+CZnQbIn/W5p1Thhpmu4YbDCuYmLeQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=j184X6kG2vPpoTg9nVpCSGs/hTwuUGfWnXAmSqXjykEGJCwNNOjn7L9el8vJ6EUYmPItvn/G427h+pMQwDAKBybjWRT6Dez6o9cHO6Tkv+3On8pMWEFuEJwkSXO8DjnjNDde7M9HDhT3B+GsYgqtWZ2RUrqoRn8eQ5jEeXkQb+0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=V0OxHwSS; 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="V0OxHwSS" Received: by smtp.kernel.org (Postfix) with ESMTPS id 08BC9C2BCC7; Thu, 21 May 2026 12:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779367461; bh=uqnWPcYuomOdK+CZnQbIn/W5p1Thhpmu4YbDCuYmLeQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=V0OxHwSSr9kN55ZQ+ilkbzcHVoLjsv4MDBWBA5IJypVgAv9PTlM6AQVUjRaH9/Ipd SWaFdA4AVCboIocCvBbYIQ7tZ0rpfFSAZTWvwUPHfqHjB7Z7i8kHQ+sH12pCuXvtnQ 26Jq4ZEpKS79Yih75GBpW0YkttFVB8cq+iACiNwN69iJmGmaw7IGlCcUW1QcH1VoL9 B0RGwN4hljCWPn5hBN2QpOG2EY3Akn3ohjs+gswiPK3xC/Xq8jF7/VThd3GtliwUmD lW0Lwd1fd/DGRLy5PTF+iFMg4ja2thThcnWX9iG0JFnD/LI5wDoqmX+7m1CG/nUL37 FX6TCXa+iPnzA== 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 023FACD5BB0; Thu, 21 May 2026 12:44:21 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Thu, 21 May 2026 15:44:14 +0300 Subject: [PATCH v12 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: <20260521-gmsl2-3_serdes-v12-8-b26d92931196@analog.com> References: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@analog.com> In-Reply-To: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@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: 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=1779367457; l=998; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=4ZvMQ1EkeJ2w8dRWwF+03VM9oahvM+Q5lLU48mndSLo=; b=ZX+PR3IT2IyDLgb0vglhrWQltmH8eNImVdvT+G201n0d1byjLbfWmRaszlJlquhQy6AS1HxWP rgAaVjHTvaHAjpCj0LKpOCHpPia1pR4/SiPcEN1KAvneemwQHhe4ZsZ 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.53.0 From nobody Sun May 24 20:36:32 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 438A13D88E9; Thu, 21 May 2026 12:44:21 +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=1779367461; cv=none; b=AvTfPbRF1Yy5tbRwAs6JAAzUzBsudbDqDzfg3gQ+wsTONAS1DSzP8dlMt39rMrDS39zWYKE94nKqZzRiMGObpCwxtAqDAs8ZxlljlB2nDjRWzqh/+O7e1vTjtFmmoxMddeMsRFIo1FmzLRax0PLd/pz7ZYNHixHDtolCTMtjZXY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779367461; c=relaxed/simple; bh=IVMjQPi6cuXsnNOAOBqZV5+FmGTZcU/k97taVGCOIoE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JARtMIB0IemP7LkcEH1veYtRUvuzbiRC4SP+WdGgsw948MpRBgAbXtSVTZ5ONbFR4AtXoQgR546q0bzafrPx8eEIE2LHMMYxUQyt458nfnFPhFIxH7n+FjAZCe5vDZnmQvt+xghQUR9bav9S7YbpU5uk5fwiFY482/dqw2ubeoA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gc5q8KUi; 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="gc5q8KUi" Received: by smtp.kernel.org (Postfix) with ESMTPS id 26900C2BCF6; Thu, 21 May 2026 12:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779367461; bh=IVMjQPi6cuXsnNOAOBqZV5+FmGTZcU/k97taVGCOIoE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=gc5q8KUidgNfb3Y84vrqySNxsZwZzjtNsuAzlUSsrGYRFFnuGOAm2033NFo61BWm8 9VMfjIhxV+vikvVrRSPCXCiPI6XeSVwfFJnaWqbEK91T/zhkrxjfLptKkfYPR0zykM Ni1dcqRaazLDY8Q3ZXmuKY4StKBIe0INcZ7tBeHF+DquFAwdZDem/81N6fB/Uonlah HPSE5S+Atd71jUj8eZ5B6yYWaHucvJnfz8S2ThObi6+WMLZTExrgNVxuxebOlBEmSP wnAQWBvwj45Rtc7traH2HkuKdJkFbPeT5tXnTga6eRmiqtvnNoKxPr5ZwpA1aQsEiO mJ4FKyVymR5XQ== 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 1B5D5CD4F5E; Thu, 21 May 2026 12:44:21 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Thu, 21 May 2026 15:44:15 +0300 Subject: [PATCH v12 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: <20260521-gmsl2-3_serdes-v12-9-b26d92931196@analog.com> References: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@analog.com> In-Reply-To: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@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: 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=1779367457; l=1289; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=ZSTakNbBz4Qus1NiPPbe76vFnVEQ3NLtF7fl+Vgxvf8=; b=65Y2bwVcYsk/XbzbG6NETHs/hT2yrZaOyPlOwFUQzh9Jkf0lWj+AtZpQKYyPMDe2Ivs/GSxVp OhilUJ/gbqpB9SNYZi/RpiyCV+uF45aSdiPKh47oFdLHXPu7cfDAV50 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.53.0 From nobody Sun May 24 20:36:32 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 57AC63D8913; Thu, 21 May 2026 12:44:21 +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=1779367461; cv=none; b=nJjNzEcdFEdbWvB9chAG9px9MMFq3rlk3gqA/qsE6McYsUIGoBP3NBtACNWDXeAYeZ3gVPcHWDR3nIzo742SCL/cEpURE7UDN/V8dAmPHvuefvH4v0ROBwGwqJvoHlSCGQjxlzXDm9IPA9uH0HMNf8bPeKLz6baHj7TJS4SHYWM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779367461; c=relaxed/simple; bh=tWwbEs8FGaSWXCHu7fkyMkarjjIYlQ6rEDB4ChST04E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=n+9gEorT1mqsNaqfXNbIewKpxQDVqf4WL4nl3i1w6kKrjqidrEMt51ZzbHEQy83y5tUvN184RVMp1wxX7PHVt9KPBcjO1cjBc12/SVOA1yHeVo/CpQxIQHID8Gq3a0v3HQsiZT8/lbBLjUyKVwdhuf0vc8O1TkEhhLhsyVTTtLU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H8VXVwjF; 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="H8VXVwjF" Received: by smtp.kernel.org (Postfix) with ESMTPS id 3D52FC2BCB4; Thu, 21 May 2026 12:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779367461; bh=tWwbEs8FGaSWXCHu7fkyMkarjjIYlQ6rEDB4ChST04E=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=H8VXVwjF1VTX24td/rx/novEuPc389aP6yEKmLTL0JrBiix2H+MK9YTdJlrcPd3qP TTJyQj3zwSa308afS52QFq7OkqXJCX8W3rAIhjMpxcRMpJuIpXHTf4D5l0tm+s9rUk 0SKKCH4dQ0UE5hPYMHPLSdhSN3HBcdPX5vdb1BhZpIF/RN7UabXWdwcOVZFZDYBB9A rq1jWaBhp2+BzOOxfIUi9unwoh1gTdrS4P0pha5XccKJm88ymXT7/L3OjGMbVEIt8v RAyDj8eJiR/PZQyNvsBHprl4oMU1aGll9eFHXil5jKHw3KcGKCfPMXQkgovdKJbgF5 Or1YFIdJ4I71w== 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 32C12CD5BAC; Thu, 21 May 2026 12:44:21 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Thu, 21 May 2026 15:44:16 +0300 Subject: [PATCH v12 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: <20260521-gmsl2-3_serdes-v12-10-b26d92931196@analog.com> References: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@analog.com> In-Reply-To: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@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: 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=1779367457; l=1192; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=WKlYD0eiVlHNx0Fb7+p6Th7PFjpFBfxW7UWVkEB+CEM=; b=MqSTYJY0KmbFDYttBHiDm/N8xv4B8LQa721Z2xTuyDDxXMSgS3DPbOj1BtbhAeIcp+NweRIoK Ny9Ni60AklsAqJ3OPNdBawFclJusZlOVVAxPLSyHsTWJsD1eEZL8erh 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.53.0 From nobody Sun May 24 20:36:32 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 6AB363D9024; Thu, 21 May 2026 12:44:21 +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=1779367461; cv=none; b=SnkOJdbu+8Gx4NsANJV9Am/omafEyazfRRIWRPZoUFEOWIWqXbA4vpH4Xo9jKk7q3GUexC01U6YQngNbFWwu+bvMCpj5tO1hBWu4w8vsI95GnP6LafZ+Sq2Lf+twlUaOCf/lqF28I+jIxO3iTC0ar2bnb9WOhGUyPmf6wUiIPd0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779367461; c=relaxed/simple; bh=P5T0QdiUtUUc3yfg+4YRcekBidFP3FtN9qvlxhJwdCA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=d3XEQi1XCnWsPjgMUMEL6VGyBZSFvmakhdBXjxmWw2WW1kCfGY9kijBDZZyRAkZeLpZX9+sfHAQWAOw+2wtS1caLBeGUCdyM2Lbhh7JaigtFu86bXiySZjNvOO24PgxHnob70eeWAQmk+zLJ2Ra5N7PIbS9D+DkZPvhTw+iXoSw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tLSS6wn9; 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="tLSS6wn9" Received: by smtp.kernel.org (Postfix) with ESMTPS id 4F97BC2BCB9; Thu, 21 May 2026 12:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779367461; bh=P5T0QdiUtUUc3yfg+4YRcekBidFP3FtN9qvlxhJwdCA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=tLSS6wn9qbY8QND+AyG2s+bvG2fN1kTYGnQJi+QcsWZkKwXzpKj+XHxEsATy5th/u hLtoxqJuNWGFX2jwTD22jytxNiIN37YiPUMzTzxTFw5fCLdhE6Vw4kSu//5XJbsF1n 5PEYGZOrpPjmKRg5fUOBuqiehVCow0R5ToJ+C4SUQb0HYp8TSAoco6URPDl6pktjvu iK9nV6XRBSLnzB6JjUiBOWdhhQ+qRXO6jdG9RYk1ty0c3neIxeT640/RDYHRycHuEu 0DS+HH9zJGcLvQjdwSvXq/Niu02WAGpjJpR8zUeDIeBFE9PxFcMdLzp4TUYQDMXCeP 5H+VlmrEcs/GQ== 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 47D69CD5BB0; Thu, 21 May 2026 12:44:21 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Thu, 21 May 2026 15:44:17 +0300 Subject: [PATCH v12 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: <20260521-gmsl2-3_serdes-v12-11-b26d92931196@analog.com> References: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@analog.com> In-Reply-To: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@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: 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=1779367457; l=1267; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=zOCbIvONkBm9sImxMI6AYdByC42n/O8SZsebFGXPD4g=; b=xucykASysrTNSIqGD486fm9s/CS5waezC0BISW1OVxVPeoT+vi0WerrhLARK0X6tzgMWr29rP l+tAiq2gLw3AmajkOhx3EYZNRbRZCw9RfeQMI6UW1MRbzNVgqh3gFv3 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.53.0 From nobody Sun May 24 20:36:32 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 8590B3D966F; Thu, 21 May 2026 12:44:21 +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=1779367461; cv=none; b=h0wLABD0Ix/2hyWWkIC7h1mxjxRlhAqV0n13EYa1CZVi8yxm8Nhqe1t1FfyktzTNaPlOI6DPOeCRihquGnNIGl2R8hP1GC6vcLqXhDelDcrnmSVsArXcw+bvvVIh9h7PEzyHx7zAZv/aVE/WjetR16PwcDRY3PCsOHLyqgTQI4Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779367461; c=relaxed/simple; bh=oOaEEW6GmpDwPz3O9FJ6PpObO13kLIxHFXrYwg6p9IM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mFCNgteRzM26rNvKNew7QTMtChKyiqZEyPOQIu70zPRB14lZfrtqzNHXVlQXR03zMnp7ZS1yl4EpbY5Ow99POkwOLtBZasWhDjreiMzzWP0YnK7WxkqEKC5CkZMJiNRAcvvX31uEvAV6TcAw5XwuZQBSEVIUuqbSssm6pt/1whQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tVP5qPNs; 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="tVP5qPNs" Received: by smtp.kernel.org (Postfix) with ESMTPS id 6B137C2BCF4; Thu, 21 May 2026 12:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779367461; bh=oOaEEW6GmpDwPz3O9FJ6PpObO13kLIxHFXrYwg6p9IM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=tVP5qPNswG72jOpeeW4cfFKsF3xkNRMaEFsRFms0Gn5Pxaqm6X+cAMzbI7rhjJNIt zvr2SJoClAiB8MQYGwPjwGoLMSJkJ2Xdg+e//JnnmkwINK0psZ3P7b7kdoaZKHXn2b ZXyQZS8WTDMjevTx0VXC+8moFF1oGjZK8aqrWymU4Dq08NfpoburzB56FPF1KczTa9 d12uswfDmWPX+zkylFQzoc7OrYk/CSwgfMjN+1zWmrxeZblZ9LIYhe6St0a5p1AwAh 4sKzPpGeOLqF8RrRWnIIwOtHUUSHfOmLKdGnAar6OUAJE8tbz2j7L06qnwFrIamyGV tensPpUy3gFxA== 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 5F103CD4F5E; Thu, 21 May 2026 12:44:21 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Thu, 21 May 2026 15:44:18 +0300 Subject: [PATCH v12 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: <20260521-gmsl2-3_serdes-v12-12-b26d92931196@analog.com> References: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@analog.com> In-Reply-To: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@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: 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=1779367457; l=9145; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=+zifY+GuC6DAa+vAj4VdfkWOEI0cWkU/ZE/iw49ySYc=; b=CNqKmJuS5k3krZpXUVUlFYjXrWXZ3Bg3FfmW1Ti140N+iaH5VDYvAjqpL0u7fMC5HtZQjyfbc AAy0qKsWO9lBWTwpS8QaYqpRhigKzv9skdGyEVqygcURPtaPriV8DMP 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 63389fea5d15..f9bdc133b52d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15763,6 +15763,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 Sun May 24 20:36:32 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 A187C3D969D; Thu, 21 May 2026 12:44:21 +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=1779367461; cv=none; b=J0C0aomVfk/fiGZRUsxCVw3GPYFAjyXBdCtW678peZgRYc9a0tP3mcMfU4zHyDCUgEmcHK6d8QUYj2YofusAXqLyCQti8nCi+RsAd9hg9L5aPZVLNWYyCBy6y7AZTaMVU5CBQPH6z+PKiT+qa68MxYp2QM6vcFyuR7IjaRgyCko= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779367461; c=relaxed/simple; bh=ARmi/vJe5aGHMxA4lKNQYXS732yNIDgPIdpRlN/b704=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fmLZlKnwyd3tgcWTPSjyOY3BIH2kwcXztY2UtujG01sPIrNFtfZCyf2LUxNb1fJSN+/KnRMtW3JLy47UrWLyGiG4WDHCuBEKG/+xiBz+ybJtMFIjgSvowqoVdwix5xcuHvdoOwvnQ5wTgvXXM8+HUnTFwYwDAJ9BnMHEZySTuo8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZlBliXbM; 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="ZlBliXbM" Received: by smtp.kernel.org (Postfix) with ESMTPS id 85C79C2BCC4; Thu, 21 May 2026 12:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779367461; bh=ARmi/vJe5aGHMxA4lKNQYXS732yNIDgPIdpRlN/b704=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ZlBliXbM8P6vGy473Y8aNZkOjn1K9mSFqyt9MRZXjNk/FAztumtNkmjUZAa4JqzDf f/SM0co4acOhQal+JUaeU2sb0NY215h0WfJLXu5eZii24bn9BMRbxOdLYMt15t1CnH 8BbdBbulcJ978A/aEvP5WrFeri1GG3AS7h/LqXlxKgSbWs8wYZtXeD8yKuXodmK3bN saVrClZOhECYD6/WKpoxAHyMu4+51uUWfXdrPNG3aNbCbqxpis5X+Pt/29bGhv+FWp JhPRkkf6dO41N3ToIrDuet05CMcSjmO1GLkwIOb4/7SMJmgQQpgEAJnxThRS5ZdLbf Or6c4hGuHipyw== 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 78E13CD5BAC; Thu, 21 May 2026 12:44:21 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Thu, 21 May 2026 15:44:19 +0300 Subject: [PATCH v12 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: <20260521-gmsl2-3_serdes-v12-13-b26d92931196@analog.com> References: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@analog.com> In-Reply-To: <20260521-gmsl2-3_serdes-v12-0-b26d92931196@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: 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=1779367457; l=19460; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=OwE7ZXVn5SS6h9IMLI8t9eBkgRJ8jLJ5fp1Q96+S2WY=; b=6E7cDsBCsjSvI9xXe6zRZD2EkOd5cfKwYfbbNiw6OqAFp0s4HEMvTTHPibyx8x7M2ql5lOGhW QZLQeIvqx+DAd3R+b5hPTepvOtJ54PtMmTRmy+rd7uyuFAFAONj8F4z 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 | 181 ++++++++++++ 7 files changed, 618 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f9bdc133b52d..75ee49bc612b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15768,6 +15768,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 a3ab48607dcf..42cb53c5395d 100644 --- a/drivers/media/i2c/Kconfig +++ b/drivers/media/i2c/Kconfig @@ -1786,6 +1786,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 90b276a7417a..9af890f8c298 100644 --- a/drivers/media/i2c/Makefile +++ b/drivers/media/i2c/Makefile @@ -72,6 +72,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