From patchwork Tue Sep 29 12:41:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dumitru Ceclan via B4 Relay X-Patchwork-Id: 2313597 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=qh7dnXpV; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=linux-gpio+bounces-44309-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvY8D3y2sz1y1S for ; Wed, 30 Sep 2026 08:42:04 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id 3043D2A1E9 for ; Tue, 29 Sep 2026 22:42:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A16494CEE53; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qh7dnXpV" X-Original-To: linux-gpio@vger.kernel.org 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 4CACE3DB320; Tue, 29 Sep 2026 22:41:55 +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=1790721715; cv=none; b=sS3QuMAF4j1JFhrlefITqAcANxNeUoT1RXCNN4R7zF0g4tfohnX+n41WZbEXBMFHlJypcrZdm17zqlU+LpBwqKjiuRUySUBHbmFansDRBck097jUHPDDWmcj8LriM0vkycFyZvKTcXUHqR6niXkjwHvllyGXWwgYzKGEQboiacE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790721715; c=relaxed/simple; bh=0T3gCO8tWZxos4GP1TYHCuCatUIYaQOBRijsytZ3s1k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OoQUrXM3dVn8id7oeZnp20frCzGtDK0JAbTtGwR4hQGM4cgBBTc1leKiAJzEu4iMH/HE3cjFtbxlSKAxRxXugPnAPR1JdZRsj8SbyFFPG3BaUNIpPRoRubcBJkYksdeiZKqWUr3JzG4GVPDL8Dt7Rn7f5MJaJGSt4fddGfTv+Y0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qh7dnXpV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id EBF9BC4AF0B; Tue, 29 Sep 2026 22:41:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790721715; bh=0T3gCO8tWZxos4GP1TYHCuCatUIYaQOBRijsytZ3s1k=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=qh7dnXpV+z3a+gVdgBnW/l1YHWFRjGqmPfOhRmXBgU5K29gJqFcmYana6ot07tKmh /We+uyi4cMAqvfONiwhq8iABpkYcrn1maSSM837udnjoI6YfYDuX1ek17AdT0jgPyC cu8AfX7BYeEClYqVj0hxq59Ms01ZssmAqzfYk/V27+fSa5iCAdNBvjzuxPYeBxBJdV fMTyqwd3Rb7FtVFUcihC04jwY4mxhOxUOmpjcSYXu4jpA4g779zu9O1jN6H5kHy3ki VWnvwY9v+OLKgEBtPXGu6CfbzA4Lnn6WHUi0xzlmptb757fG93krk4GlNMxkwn731o 4gQvwRU7aL3qA== 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 C9039CA5FA5; Tue, 29 Sep 2026 22:41:54 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 30 Sep 2026 01:41:35 +0300 Subject: [PATCH v18 01/23] media: mc: Add INTERNAL pad flag Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260930-gmsl2-3_serdes-v18-1-43117818f499@analog.com> References: <20260930-gmsl2-3_serdes-v18-0-43117818f499@analog.com> In-Reply-To: <20260930-gmsl2-3_serdes-v18-0-43117818f499@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 , Martin Hecht X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790721712; l=4257; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=AjWI5epk+kN0BnyzM5CLFxA3YXSEUO2r8K59QBAwlF0=; b=f06A+2YjGjtRyyg0V428C1PlouL2v28b5oEwXfqJMArBMxTGsi9A4JgpYA8JhZ2OG/Udm2smd hHEMJ7/2VWpAx7H/YbLBrsGmbpwMlhjf9pkOI4apmxvKrMGzGgiO8kB 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: Martin Hecht --- .../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/Documentation/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 elements .. _MEDIA-PAD-FL-SINK: .. _MEDIA-PAD-FL-SOURCE: .. _MEDIA-PAD-FL-MUST-CONNECT: +.. _MEDIA-PAD-FL-INTERNAL: .. flat-table:: Media pad flags :header-rows: 0 @@ -381,6 +382,14 @@ Types and flags used to represent the media graph elements enabled links even when this flag isn't set; the absence of the flag doesn't imply there is none. + * - ``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. 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 *entity, u16 num_pads, mutex_lock(&mdev->graph_mutex); media_entity_for_each_pad(entity, iter) { + const u32 pad_flags = iter->flags & (MEDIA_PAD_FL_SINK | + MEDIA_PAD_FL_SOURCE | + MEDIA_PAD_FL_INTERNAL); + iter->entity = entity; iter->index = i++; - if (hweight32(iter->flags & (MEDIA_PAD_FL_SINK | - MEDIA_PAD_FL_SOURCE)) != 1) { + if (pad_flags != MEDIA_PAD_FL_SINK && + pad_flags != (MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_INTERNAL) && + pad_flags != MEDIA_PAD_FL_SOURCE) { ret = -EINVAL; break; } @@ -1118,7 +1123,8 @@ int media_get_pad_index(struct media_entity *entity, u32 pad_type, for (i = 0; i < entity->num_pads; i++) { if ((entity->pads[i].flags & - (MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_SOURCE)) != pad_type) + (MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_SOURCE | + MEDIA_PAD_FL_INTERNAL)) != pad_type) continue; if (entity->pads[i].sig_type == sig_type) @@ -1148,6 +1154,9 @@ media_create_pad_link(struct media_entity *source, u16 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; link = media_add_link(&source->links); if (link == 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) struct media_pad_desc { __u32 entity; /* entity ID */ From patchwork Tue Sep 29 12:41:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dumitru Ceclan via B4 Relay X-Patchwork-Id: 2313601 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=WQnLoc0T; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=linux-gpio+bounces-44310-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvY8t2TbTz1y1S for ; Wed, 30 Sep 2026 08:42:38 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 499B86237A for ; Tue, 29 Sep 2026 22:42:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B23454E3235; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WQnLoc0T" X-Original-To: linux-gpio@vger.kernel.org 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 4CB6C3DB629; Tue, 29 Sep 2026 22:41:55 +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=1790721715; cv=none; b=jSGYEwqJYw/Ej00FSmQsMG6zbFsGnels9VjKn9uHVJt3b0QUpA5y9eYQRp5DZxDTjIzSEU1VVC1+Hbo3fBNGHezcCI5l1H+uuELKgY39KmM5K1D9Ux/x80ZGaUV0NCPTqtm5P/L6A+xVS1RqgN/Si4DKxl2GtNpWfZ1bKqldc1U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790721715; c=relaxed/simple; bh=IWo6C53o7BBn21g5qxfEWy0PwIZwKG/xu/aFILlkTy8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=i0xsePBAtf5Nv4/qW2jgGXdITcXoNBrg+svSXpGPwXejFByFDG9tvpQn4WBCSh1DXe4qZy8Vl9c3gAbDvaqRNhQIx/6MCE2UvjMIZK7jF6TuW9yGthoP9CXqL53fOtezsJeUOEgAM4uF0ZSB8IBqX6rSVui/3UXLxGd1MWMb/hY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WQnLoc0T; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 00A59C4AF14; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790721715; bh=IWo6C53o7BBn21g5qxfEWy0PwIZwKG/xu/aFILlkTy8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=WQnLoc0Tm/bK30uxEW3M5vk9o9ldCIf4wL1SsuNE0xCp2DvGZwcCZ//kgvFMCGbzx nJpjhVlHekYmUSonHaWf2FxLq2pbY7TfnuLDvvc17OfJbI3uQvjfb+Ma5jY+xU0yIA 5u9k4o3gHaduoSoyrPuZwxcj93kcGG54kCXNDzhZ1ksrmdtIGbAhPxq62r1D9IOCAJ lBj5F9rELd0oDmH8xjbF1D5sKxVvnT1wJ2gMi87L5dxGtsM+RbaFdGZlWYgtlKVSVP dXxPxWHvCPsDBIEb7lnpjJ0gdhauzFTj2RpEsNgZsSQIhWs/WIKBA9xMXQPpQHzVuF kpyvTa/LIKJtw== 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 D768ECA5FA7; Tue, 29 Sep 2026 22:41:54 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 30 Sep 2026 01:41:36 +0300 Subject: [PATCH v18 02/23] dt-bindings: media: i2c: max96717: add support for I2C ATR Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260930-gmsl2-3_serdes-v18-2-43117818f499@analog.com> References: <20260930-gmsl2-3_serdes-v18-0-43117818f499@analog.com> In-Reply-To: <20260930-gmsl2-3_serdes-v18-0-43117818f499@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 , Martin Hecht X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790721712; l=1860; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=19K8whDi9ooip8WDNvUhBo2VCgpgo+2q5c1SyuKe/3g=; b=LO15icSNsrikIkV+b4mDq3l56NVgJld5UvFog8+SEwcgvK5IXp6SpQxeF3eY2T3dISH79GcNR vAvWYQVk9H1BwqB6ejxGftFz2oqdSTqyqbp5i4T1xwYVjUPelLZs5rT 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: Martin Hecht --- .../bindings/media/i2c/maxim,max96717.yaml | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml 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. + 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: additionalProperties: false +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 From patchwork Tue Sep 29 12:41:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dumitru Ceclan via B4 Relay X-Patchwork-Id: 2313604 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=Y4C3NASf; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=linux-gpio+bounces-44312-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvY9C2FXJz1y1S for ; Wed, 30 Sep 2026 08:42:55 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 5372A3D20C for ; Tue, 29 Sep 2026 22:42:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCC1F4E4C58; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Y4C3NASf" X-Original-To: linux-gpio@vger.kernel.org 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 522EC3E2777; Tue, 29 Sep 2026 22:41:55 +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=1790721715; cv=none; b=Tz2dMvX69IVVB/KNNMLPYLd6B+OVHyPq1GNxpFlbYphQrfQIlLUCaMvapbxQYw8o8svfKISDLv2xS43knmud+zQK0qf0Uu7fcR3ZzfDLSKobNqfdGI4v4FXomFW4E0QwaUgFOnoA3y1dDggU5IxUUwgA1/CRf6sfoMReZfUkdOQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790721715; c=relaxed/simple; bh=Zxq7CSZS7IRj/mkk9CE95P6m2A/xkyNeCy3VW+GIdiE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EYNqoyM8Fc0/Vd0vHVOhhJSIhxqzz6Q3yclRhb6KIJa/rXD1w45EvULnwvbGyyeS5S4BBM8sMPmiATAafRuY6OfF7pYq7bBMnpMX11qkVFuCGiWSKkWvmsGOBLlmpIT31HgokxZlZ5orXl1zebHsEJ9JmdNh3jPZe9KZD/kd3bg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Y4C3NASf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 0F354C4AF18; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790721715; bh=Zxq7CSZS7IRj/mkk9CE95P6m2A/xkyNeCy3VW+GIdiE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Y4C3NASfXRIrGQKhGPIx+gXzIZRDkG9cuGeTtPXxTq6w6csy2jJrD4N44gV4noE0l t2sJKjd07hyvO44A8JXWdmDVjTddAKo05kXPJy6hAuHY6FFvKKLdyhsJetcRmm/0Pj o/zJOOiBMAKIbhV0FesCRKiXs3nZPfzDIvAICghwAn/6yByjHr5cA5RUjkCfFiuprB A+0sMePgLcAkPleF9lMWLDcC0x9NlLcyqj8f0PY8QBpDgbvThhEczkAre77IS4s43k 5x3bVtqCe/P7HnbKi6bWfX++k7V2WBPAMwDH1LX7jJVx5+t5/eBcr1bMlD3IKmVZiV q3etDQnOXCKzg== 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 E5E38CA5FB3; Tue, 29 Sep 2026 22:41:54 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 30 Sep 2026 01:41:37 +0300 Subject: [PATCH v18 03/23] dt-bindings: media: i2c: max96717: add support for pinctrl/pinconf Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260930-gmsl2-3_serdes-v18-3-43117818f499@analog.com> References: <20260930-gmsl2-3_serdes-v18-0-43117818f499@analog.com> In-Reply-To: <20260930-gmsl2-3_serdes-v18-0-43117818f499@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 , Martin Hecht X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790721712; l=4277; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=XmNfnPnMBgMsa4uvJKmiItZY2cGgIGo1m0KOSL56acE=; b=Obbkwjo+mgR2F7eO5CgpvSzF1S45Lw/7ziR6Pk4VIV7bqANikE12gF92rIlMh+LSB9kfBBrzC 6hrkPhTbhheAA9qIAE6lrQZ3NJ5a9WeDxUCX1Lou+GiamH2CLR03Si3 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: Martin Hecht --- .../bindings/media/i2c/maxim,max96717.yaml | 114 +++++++++++++++++++++ 1 file changed, 114 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml 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 +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 allOf: From patchwork Tue Sep 29 12:41:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dumitru Ceclan via B4 Relay X-Patchwork-Id: 2313610 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=UM53WAKa; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=linux-gpio+bounces-44313-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvYB75c4vz1yGP for ; Wed, 30 Sep 2026 08:43:43 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id E975064C24 for ; Tue, 29 Sep 2026 22:42:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDC9E4E4C59; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UM53WAKa" X-Original-To: linux-gpio@vger.kernel.org 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 5F14D3E49F9; Tue, 29 Sep 2026 22:41:55 +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=1790721715; cv=none; b=kBE4/cuEaBww0sA1LgdNCrtfrQc9RbloyNPrljTU1eJZXIL4kLjM3VCy+Z3ujXTO8hAB05Qk5NO3CFpyo/myi4NKoFr9HanGc9Re/pOp69GSkS5ibaY9ru/q0qCtthtnCHxSddnvu9C1xgPJMQAaQsQeN8vq3uZdh5CPNE/Boik= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790721715; c=relaxed/simple; bh=bbdlEKxfVmMIogrYFozji+iEag4Dcqczl+se77xpFRI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fZdrOixRbl+9XIFczabTn5DHARZftvz8LZ4T/4iWdV8Xdgvh8j8YKDL1scG3hMI9LsPHu2yVVGRTY1+5LgqXYa2B0gkzgAaAuwa29ErIgOcNeTciF9SBWaD652xrY99cuEon7N3AWqfwMdEHJ2FDLoaYRHsNWe7Q1Tc1LiC2+Gc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UM53WAKa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 1F8AAC4AF15; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790721715; bh=bbdlEKxfVmMIogrYFozji+iEag4Dcqczl+se77xpFRI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=UM53WAKawD6CHfN54J5p4lwh88NpGKu2UAfqNCLkS3OU/MtfJ1OE7cS5dSWbfEkCi fUQKDfeKfRM30DoFZ8tBT2wsUcrmCH24iMb7aORS9Ym29/I6Lm820K35a+vNjZGFbb 9Jvy+XDcyhFjf9eSJ4nttEU9yyq/AQFSPKYSteDMkiDoh1vsv/aEaiqQ7slGA++qYT Pw/M22GYWZ9fPFmWRAV9uaz0zrLNQHBv4OspjH7Fsd7lal90IE64b6dDuHUXk6EEme 1G2cOZ5NCvKseYBp1AnoH8v+zl7ZJaNLLZibaqThBMMy/78KucmTFK9Y6CT1/sZXme HO3iFcm4vpesg== 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 01EE4CA5FB5; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 30 Sep 2026 01:41:38 +0300 Subject: [PATCH v18 04/23] dt-bindings: media: i2c: max96717: add support for MAX9295A Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260930-gmsl2-3_serdes-v18-4-43117818f499@analog.com> References: <20260930-gmsl2-3_serdes-v18-0-43117818f499@analog.com> In-Reply-To: <20260930-gmsl2-3_serdes-v18-0-43117818f499@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 , Martin Hecht X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790721712; l=1261; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=TbNeadpqqVmm085aoBPl4Xj9EAKiacWXhSoOjkOycxA=; b=AW4KMLV3KFghOEwJBNZjjuRc2WlcSk0x2TuOoAHKiABjjJDifcqgPg+1P1g2aq222mU3xU3z1 vFW8eSWM4EDAAVMiDy0laViKf+rUONXVPYQg7w5a0PmWziblQN+SyBv 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: Martin Hecht --- 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.yaml 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: 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. + MAX9295A only supports pixel mode. + properties: compatible: oneOf: - - const: maxim,max96717f + - enum: + - maxim,max9295a + - maxim,max96717f - items: - enum: - maxim,max96717 From patchwork Tue Sep 29 12:41:39 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dumitru Ceclan via B4 Relay X-Patchwork-Id: 2313608 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=pkY44rwM; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=linux-gpio+bounces-44317-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvYB2485yz1y1S for ; Wed, 30 Sep 2026 08:43:38 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 7B963649AC for ; Tue, 29 Sep 2026 22:42:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17B4A4F4CE4; Tue, 29 Sep 2026 22:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pkY44rwM" X-Original-To: linux-gpio@vger.kernel.org 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 8DF7B48AE0F; Tue, 29 Sep 2026 22:41:55 +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=1790721715; cv=none; b=rrlwaDF6gevA1mUH+VaLsQRc81JcTLl5QmiMMhBDKINhmLBBcm2aPgnyn+3PgMkYq3RtLv01vlvmbkWKyhk01j+2ikc5vN44e+vUmA/o/5iIQ2CaXGXb+J1FAx6y2LUdIA7O8i57OAJvcXlTG1Cl1Gk6OKWoCwLBWmU7QmxGGR0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790721715; c=relaxed/simple; bh=UrrKPntd8pKjX8A0W7uxId0B5R7t3LfBfdro11a+7Y4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mGXYRJg2oDRvtqR4T/NrYJdAvS8vK6k2A7U+1Gu95LJ8UG2nrGaOi81t73yyvIeFYT7Deem8QP6ZZXyWmSYAfBdNETmTV3A3e8sLRbALtGRkakg6uUmKxxyMalpN5Y+jqCsM1BLffpiJaJZm3KJ+C3GtzhzyKxcwK4XFtENQsZs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pkY44rwM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 2B9C2C4AF48; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790721715; bh=UrrKPntd8pKjX8A0W7uxId0B5R7t3LfBfdro11a+7Y4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=pkY44rwMz+au7RAtx8NqpZnnkL8afiwrYnVtT4R5jl/4f8Qm7bkWtfYcCQFklWOL+ fD94d3m9BkKaKj896a4MwPJEplgdf4sBz7dXlRg62i+/XPsIMPeIMlqvX0IBv9aZIZ 45sVe96xlOj8/3I/XlTSejkmp+VszalSDyvn17L7ob0gBQTC0CgV5k0VOy79gAnAEP 9gVzPpaGR2Lawa2wSw1wzPy08AxaCNJuBYrz7q7Lk0j6w+PRdcQFRrKXDCZWLBn11z ACOwESIbyYQW9IXlLWTBBW9TiPbMDVhU/F/cOeWEn3gVH9GBAc1bJLiLDzGaye4dp4 6B5H0l+vz7lpQ== 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 137CECA5FB6; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 30 Sep 2026 01:41:39 +0300 Subject: [PATCH v18 05/23] dt-bindings: media: i2c: max96717: add support for MAX96793 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260930-gmsl2-3_serdes-v18-5-43117818f499@analog.com> References: <20260930-gmsl2-3_serdes-v18-0-43117818f499@analog.com> In-Reply-To: <20260930-gmsl2-3_serdes-v18-0-43117818f499@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 , Martin Hecht X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790721712; l=1074; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=m5jA1gg0q41gyUvWTef61o5rcopXPb/mVs+RuRWcN4s=; b=8htDbpdHe1eWwFTdyIOwn7j/0WEDWKXn6iUJKMkY/qQkWQzt2HVsLARplTkj8uprLn6o7MaG/ yqwfICVM9H8AVrOimAkcQMtRX5aNrp+fla3ynv/xR31/4BsoFwEgVSn 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: Martin Hecht --- Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml 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: MAX9295A only supports pixel mode. + MAX96793 also supports GMSL3 mode. + properties: compatible: oneOf: @@ -38,6 +40,7 @@ properties: - items: - enum: - maxim,max96717 + - maxim,max96793 - const: maxim,max96717f '#gpio-cells': From patchwork Tue Sep 29 12:41:40 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dumitru Ceclan via B4 Relay X-Patchwork-Id: 2313605 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=NkJhn/Mi; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=linux-gpio+bounces-44316-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvY9L1Tbkz1y1S for ; Wed, 30 Sep 2026 08:43:02 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 5BCF3635C6 for ; Tue, 29 Sep 2026 22:42:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 18B7D4F4D07; Tue, 29 Sep 2026 22:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NkJhn/Mi" X-Original-To: linux-gpio@vger.kernel.org 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 8B20F47CC87; Tue, 29 Sep 2026 22:41:55 +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=1790721715; cv=none; b=uKBOub+5BudoZ7XnmhHpllvtrTZzcDrM64EtAll1WB/m0w/+vfRNZRPDBl6QSG1eCU8BdQUkjWZCkUVgNE0t4TvSQl4LXtSH9rpPQAuKdGuWEcoNJAUVMM4gEJvji3d73iLpnT3mSXPxPQsRPXYfH3jCJHyB2mfbaGz/tNmxHyA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790721715; c=relaxed/simple; bh=Lj8trtWQfaFBHXdt0QqGJtFpFf56yIwo4fW2wTI2b7Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aGOnsm8AIX0fLiYL/O9Rp2bcDRYTGSAU/BxUKOWkDxLfKJ/26qGsT5GpzBVQY2v250MXnCyWZSIsxQ99IylTS/76HjD6GPEo64mNgMGlR1okI1yy93XoC9kMP0gICdE2CAG1K0wxWKmTmbcxPNAy2jGycnw/rYxmXaDh0zHKrSM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NkJhn/Mi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 36577C4AF19; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790721715; bh=Lj8trtWQfaFBHXdt0QqGJtFpFf56yIwo4fW2wTI2b7Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=NkJhn/MiQHFSb5iiGBM4K5XbVvirLc2GDhWHlcseCrm/EzJHL9Z3ilkFJPmLODcBi ZCwoPkKc9CdHM9bjoj4McI6EV13oJcCR6mbLUPJhJwsuf/Gg8cM0A3EYM5UhBWxjgP Q0l9cJWAOu19J0HiBQP/Bq4OGxb+IrHxO4ZPAteLSO8Hr9vUgoxF3y6OHWIWlmUldU 6FP7p4YTKOYam4VrdzFb55TLGPHFWof1L1ijoc3YxO6jgfW95Si/m8JqVlZ254l7CC vBQLWaZIMFUbjAav1uj8CYKB87oYE/KHIo70z2g24bp3bJ65MFfcvsXreVF8w5SxbG 94YaLrHMKT42A== 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 24566CA5FA7; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 30 Sep 2026 01:41:40 +0300 Subject: [PATCH v18 06/23] dt-bindings: media: i2c: max96712: use pattern properties for ports Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260930-gmsl2-3_serdes-v18-6-43117818f499@analog.com> References: <20260930-gmsl2-3_serdes-v18-0-43117818f499@analog.com> In-Reply-To: <20260930-gmsl2-3_serdes-v18-0-43117818f499@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 , Martin Hecht X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790721712; l=2103; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=m0o3H8TQMy5eBukVge3aDky1f03UCMkFBStUWV3bDPc=; b=9Pi4aRjCbFjYWz5jTOjc0+A0p/1vMnDkHfmzi1vGOEytlIoUArOPat938s85fDmfj7cBtrOX6 9pyFopUvwIuBQ9MvQmKq0OH4b6F6RDjSVp8NR3yKt0A3OqRHsvqXWln 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öderlund Tested-by: Martin Hecht --- .../bindings/media/i2c/maxim,max96712.yaml | 29 ++++++++-------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml 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 - properties: - port@0: + patternProperties: + '^port@[0-3]$': $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 0 + description: GMSL Input ports 0-3 - 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 properties: endpoint: @@ -77,8 +65,11 @@ properties: - data-lanes - bus-type - required: - - port@4 + anyOf: + - required: [port@4] + - required: [port@5] + - required: [port@6] + - required: [port@7] required: - compatible From patchwork Tue Sep 29 12:41:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dumitru Ceclan via B4 Relay X-Patchwork-Id: 2313606 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=CdlemPV4; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=linux-gpio+bounces-44314-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvY9v6hwrz1y1S for ; Wed, 30 Sep 2026 08:43:31 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 2861164719 for ; Tue, 29 Sep 2026 22:42:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CB924F30E5; Tue, 29 Sep 2026 22:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CdlemPV4" X-Original-To: linux-gpio@vger.kernel.org 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 8289D471277; Tue, 29 Sep 2026 22:41:55 +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=1790721715; cv=none; b=KFJy5zTSH/2nY2f6kvghN14NzWJnlbWlLZBZZOBcabQtcYSN14uu0suviahzgZVCx4e2RdIZ1sv11UZq02PXHYa+UwPiKeJOehUuSLqqu1GGfOZJG9HKgKcaUN+XzQYktZDG9FEBCB8n4Yas5NkfWH2EpAwXIY3ERpHX1j3TBSU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790721715; c=relaxed/simple; bh=UdmvrBha/avhb7i0arFpe0Vk/ZJOpKP088vWmjUNHbA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YPvTHKzynTuO+T02kGqwYO7WdRBQ/OYUJ/oKD3NgijVKFs4Z/GKXgS5EM1nTv/78RKx/PnbtAWco56yDeO7mUwj9zmIlHZUZelP2wY7aGZnz2m8zyguiZcfjxnjPOtP0lZBsv/W4AlU+Gx8KT1YEoV39HcWEkO/seB4aY5Uv3Uc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CdlemPV4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 4740CC4AF50; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790721715; bh=UdmvrBha/avhb7i0arFpe0Vk/ZJOpKP088vWmjUNHbA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=CdlemPV4OTvmQdwiU5X6t/U4C374AQgVfUI35Q91no/9FeQsA89xsNfQBa4wOjz7Y Od5SZ7eKANf8XNOCpmgW/dU3ycW0p/Dm6cyWjbWgJ3ZRIfAqcbt3gMJnRH6RCqJ056 8qvy4NDpSQCrsA8lDjGJHalZjbT3lxlQ6yXo6ftEcb9kKq/zcvFUK3iweiaPIBNh12 D7rxk/oCpyY9yvQVI9V+YhDsQg8r+GZ4p5HtbqIVXNLF8YCPevue/O7zCUF4BBmWxh D5+oshHS2/E4us9sA4wdTX120ftCNnpCfuWGY2eIZoTqzNBW/uZn8vIQsUnOBjktN9 /pXza0p09e1Ig== 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 348DACA5FA5; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 30 Sep 2026 01:41:41 +0300 Subject: [PATCH v18 07/23] dt-bindings: media: i2c: max96712: add support for I2C ATR Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260930-gmsl2-3_serdes-v18-7-43117818f499@analog.com> References: <20260930-gmsl2-3_serdes-v18-0-43117818f499@analog.com> In-Reply-To: <20260930-gmsl2-3_serdes-v18-0-43117818f499@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 , Martin Hecht X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790721712; l=1917; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=NQq6Rk8qyFV5dkfIhNUCYEZ47HcvVLo5LPAGdJenp2s=; b=ys+NiMiu/OAqrYbhoA/5th1zD0dzuYKlgRB71nK8kiBf+kHh5hZIAVyXX0uHvzugP0pzfVedL t4SMZYsrRtnC9dmqbHAzi8zGyj/SfrINt5eKUr2NPaR09LzfRzyA1UC 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: Martin Hecht --- .../bindings/media/i2c/maxim,max96712.yaml | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml 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: enable-gpios: true + 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 @@ -78,6 +102,13 @@ required: additionalProperties: false +allOf: + - $ref: /schemas/i2c/i2c-atr.yaml# + +dependentRequired: + i2c-atr: [i2c-alias-pool] + i2c-alias-pool: [i2c-atr] + examples: - | #include From patchwork Tue Sep 29 12:41:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dumitru Ceclan via B4 Relay X-Patchwork-Id: 2313607 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=LaJfl/De; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=linux-gpio+bounces-44315-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvY9y0BsNz1y1S for ; Wed, 30 Sep 2026 08:43:34 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 48990647D1 for ; Tue, 29 Sep 2026 22:42:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CF594F391A; Tue, 29 Sep 2026 22:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LaJfl/De" X-Original-To: linux-gpio@vger.kernel.org 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 84A844718D0; Tue, 29 Sep 2026 22:41:55 +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=1790721715; cv=none; b=uZkgtFnT5FYl5Ew2+W0Fg9U6/o4MgscDZJYEEIs5nZEBLegab6iGw2LAvKmfPH1obME3iQV4DPfUQsj7Twzc8oVKnRZZ1NlaGuXqNZT18/aM7+xtgsrwvALnY1jqcdRuTCLBePewL0gNUCTDHQgzOmc4Wtdhg3M/6Flb9anim1s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790721715; c=relaxed/simple; bh=VrWfsW6CjpQfvmN0zpYVVCQqhqmgmSoGOWEyw+Ndxts=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WsWn2PBIDpY7q7EfWd+DdoDAnfgXrASFiQSTUq7938AWklGmmHGmEmwjRTwXt3hWy3Q7RcfT/pXIuq0Gv/MGlPp53Lwm9S/DQs7CjBFEeX9EWehNqIku9HPrYUFFLBSoWHqumx8spp3xzmBNwTjZCbS/nSJyhtV1iHV5DTNDVGM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LaJfl/De; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 56EABC4AF53; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790721715; bh=VrWfsW6CjpQfvmN0zpYVVCQqhqmgmSoGOWEyw+Ndxts=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=LaJfl/DeDDKeJp3v1ojavPkN9j5AAwxWr5we79clepFZpVV4EmaV6xbYBEL20Muqt uT/iNY8zXk49MHxL442d/N55wGLn6drsQl7gvw62jLrtRmzR0q8n39JJr5axbkjcof 60nvM0Z48KN92X6mLivaE6zHWEU/9TWEkxX6m2wU6vexqKInAsIxBcqtoDy0Dl9mL/ 0WEIcGGcfSgRqd5Qc+dLKc5DOTiiqkD7Etli6oMy7jiZpfPytJOvUnnlBQVhYiEev/ f+OAXwL0VVeXnLt3C/tK4X5F90pKq7T7qgiFNNpr2Kpq9OZWtGGtgI2qeiVz7WVxBw mxm3+jjMJCr1g== 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 4310BCA5FB3; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 30 Sep 2026 01:41:42 +0300 Subject: [PATCH v18 08/23] dt-bindings: media: i2c: max96712: add support for POC supplies Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260930-gmsl2-3_serdes-v18-8-43117818f499@analog.com> References: <20260930-gmsl2-3_serdes-v18-0-43117818f499@analog.com> In-Reply-To: <20260930-gmsl2-3_serdes-v18-0-43117818f499@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 , Martin Hecht X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790721712; l=1044; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=p9KjT6ikJkH8J/D1ap0cHBnQIHGqhwXx31a5tBGD8+I=; b=SUWszkAXLNOFD3noO/dxGm/XLvku8l3CR+T6Mk3b+PSKztm+k5tWQBBwUU7XwacWyurXeSDzm 4JIuTEN1DBFDX/HCApNMt9OyYk/brSpabNaekylXbwc8ZQVe01+ADET 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öderlund Tested-by: Martin Hecht --- Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml 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] +patternProperties: + '^port[0-3]-poc-supply$': + description: Regulator providing Power over Coax for GMSL ports + required: - compatible - reg From patchwork Tue Sep 29 12:41:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dumitru Ceclan via B4 Relay X-Patchwork-Id: 2313609 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=jpPbHe4f; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=linux-gpio+bounces-44318-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvYB70sN4z1y1S for ; Wed, 30 Sep 2026 08:43:43 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id CE10464B5E for ; Tue, 29 Sep 2026 22:42:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E58E4F55B3; Tue, 29 Sep 2026 22:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jpPbHe4f" X-Original-To: linux-gpio@vger.kernel.org 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 946ED4BA1EF; Tue, 29 Sep 2026 22:41:55 +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=1790721715; cv=none; b=hgzk9S3h0XBrHIn5GuZYLZXoVC5NrhM+XU0uPNgvmTulcrfffl9ySiYCChbnm2W7XYsSjk60Ucpo9RPYm4j3F3Nq1bMUX7COHTA6SlxEC2CxdEgEDJnyU3rZRAKOugluY5147bzK2Ms9EdxTDKGd6KFpnNs62VIprQeBjo3iGl0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790721715; c=relaxed/simple; bh=2UNaYaDUC+KOUqbXhrMeZ127wFlSjuGWYCf+/BWeMx0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JwKdJQ2WymS+/VRS/Xhvu/u7UVQ/HAE8nObNSHBZGS1/LE21iu06Zvavns2eSS5yQLvSPIHCDi6E2w6j4p1TlHY8GL1fQzt3ZxLZBp0JphwoScNTM3it2vRZt63Bx+/cyd+LMCk8uJ8pvdk/PubUWRW9BNjqT+iWFaItNBVfKxU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jpPbHe4f; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 649A6C4AF4D; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790721715; bh=2UNaYaDUC+KOUqbXhrMeZ127wFlSjuGWYCf+/BWeMx0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=jpPbHe4fLHLMktkBFvZH9uheFwDKFPFvS5a0EqMgc4xKRKN8P7a7sIokGbTAIrSSt DWba1TKHOtHbHWPOz6xJe36tRIuA6OETvHMyf5dtRn/UyLxkpRa4XukmLR7FjG/Yi9 9tp6P0Co4vICxRIOASd9nEpPD7VE0PTwdsHWfETKh+bIysIcV1bzAUh23ipcTXvA1I mGD58qqYIIbMd7A7EpPQoCzcxVKCeMCXO2Qn8Ye5DwXigYv+Gr448mrYT+YXE1w/a0 aZWQq8FETzyGN1UuxtQKzROgZivtOTv25J5IZeO+T5+iFRyk10GA7AZxiwcruG1P2+ C2ii7cbOwAADw== 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 52EFACA5FA7; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 30 Sep 2026 01:41:43 +0300 Subject: [PATCH v18 09/23] dt-bindings: media: i2c: max96712: add support for MAX96724F/R Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260930-gmsl2-3_serdes-v18-9-43117818f499@analog.com> References: <20260930-gmsl2-3_serdes-v18-0-43117818f499@analog.com> In-Reply-To: <20260930-gmsl2-3_serdes-v18-0-43117818f499@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 , Martin Hecht X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790721712; l=1335; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=3Sc2CAKuNty9q1xAmiQ226o79bhZNCidxmwGjXQzLEY=; b=qaCF7Q2l6mdfbWBoV86nR8dt/+5PF2uHxjHElHDH06+Q4q0T7pHHhWzB2oJKEvgyZ66rHuvo8 af9xQlOP0xSBKsYt6zb/9iEWZ4C6Bk2Ky36D1Rh6uaumymNaSeSFLFQ 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öderlund Tested-by: Martin Hecht --- Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml 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 mode. + 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 reg: description: I2C device address From patchwork Tue Sep 29 12:41:44 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dumitru Ceclan via B4 Relay X-Patchwork-Id: 2313612 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=PsnR61+m; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=linux-gpio+bounces-44319-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvYCF3Ngkz1y1S for ; Wed, 30 Sep 2026 08:44:41 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 5065E66570 for ; Tue, 29 Sep 2026 22:42:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 446B34F96A2; Tue, 29 Sep 2026 22:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PsnR61+m" X-Original-To: linux-gpio@vger.kernel.org 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 A84564DA52E; Tue, 29 Sep 2026 22:41:55 +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=1790721715; cv=none; b=R3pDqywyBpID7b9SY8TBcr8gIKQpgjCaTW8jg7ZfhWzQ3rXzY/1T3aGcv3vADQVx9cQxYcA3Exwhp4XIAJBe2Qt0Sn5DKcC0PIZUIFEQrvgbp30oqgIbPtLwG4OAtGm7/MyRYyN+ai+7gzaQdAp3NGnKznvqqY/Q2prxFFuXfJI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790721715; c=relaxed/simple; bh=ilmIfB7Sm4pxIHWCIOKE3lzGxrZgJE5PgFYm4cxUfnE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hAIYys4ujSCSnH7jMTR2DthF7+82D6zOj1sS5/VW1Z6QJogseXS7qFbqQGsjQ3PHE13G5jqHb2Do5iFtocHmT0M0P2j7+5bYInmiCK4zG/8XgFEJulms4zPNdym4vfsl84RtOkG1w58/NT5w5/Yd5ZZh1FjWJ/06mit1Tp+BlG0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PsnR61+m; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 7574DC4AF0B; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790721715; bh=ilmIfB7Sm4pxIHWCIOKE3lzGxrZgJE5PgFYm4cxUfnE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=PsnR61+mTVgxWUQvj41tQKG3anky3kE4JGfweMXg2X7OZevjj9dBFAYjKPpffZPrU k/64NnptPqnC5tRC9dVAyaINX5nOvAIGWI+CzQWiautTj+m3Ux7TzCNUbsPGf51b2Z ZoP1gaAg9XW2tEUV4FgZuaB7T10hM4ZDf6TafmF5W0qiOT8MhGIpGJ1GOXhT932Ka6 JqlZVpYDOrTQYr9581WCwdF7eDRZus7lwMfMF+8kZl+fr0BYxz5j1TQSIYNJ7au2I2 nyCM21X0cZF5iEqC5J69lejF/5mYCMMYebvsJj4CGIvGG5o+DW15EAMx8Ha3owE7lD N3ofEqhBnqF4Q== 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 62608CA5FA5; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 30 Sep 2026 01:41:44 +0300 Subject: [PATCH v18 10/23] dt-bindings: media: i2c: max96712: add control-channel-port property Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260930-gmsl2-3_serdes-v18-10-43117818f499@analog.com> References: <20260930-gmsl2-3_serdes-v18-0-43117818f499@analog.com> In-Reply-To: <20260930-gmsl2-3_serdes-v18-0-43117818f499@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 , Martin Hecht X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790721712; l=1256; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=5YZsYgjvEsQx9dVoKJEbOSbnIutNllMjL7dikk1Vmqk=; b=nF7E51wpvwOZA92qZFaJIv+yqXPepXz/+StRda0R0S91DksJI5ai8b4JPGt1uxRqTlmZyFKt0 QFKzSnl5MoADp/jlI90cmIHwuRxirja0+nVuk3Cpox8iZTrnj8oH7x5 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: Martin Hecht --- Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml 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: enable-gpios: true + 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 selects + port 1. Defaults to 0 when omitted. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + default: 0 + i2c-alias-pool: maxItems: 4 From patchwork Tue Sep 29 12:41:45 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dumitru Ceclan via B4 Relay X-Patchwork-Id: 2313613 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=VRACTutq; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=linux-gpio+bounces-44321-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvYCH1ym1z1y1S for ; Wed, 30 Sep 2026 08:44:43 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 7117966647 for ; Tue, 29 Sep 2026 22:42:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A2924F96D3; Tue, 29 Sep 2026 22:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VRACTutq" X-Original-To: linux-gpio@vger.kernel.org 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 BC7914E3ED0; Tue, 29 Sep 2026 22:41:55 +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=1790721715; cv=none; b=EtJYCKI295fjYDyToTyip+abTZSurfpws5pJMWOlLvfKmZxoHfZXJFngXfh/x2ewpBPECU+P0MmCe0vCKKs77wZC0ghlEOkyY6L1DWV1751hQDHpFbxTNUYAm7bkD6Tp98G8pJ0tzZzk8vsuQxiSBhqNdm/YilsDnYdDQ8AKR1s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790721715; c=relaxed/simple; bh=gPQ+PRuexMb6ktXazMToadmhFmEo2i45TrXvKycWEmY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Izv1cb+vdhuzyfFZJjBrOut+FPi4PjlrOmg93bgJxr3yD1B9bImEU2fBsy2urGlVq0oHc50DvLsjbijVZUXbSg/5FnYYBY+GpEaU48C832KuvFioIGEU2aKq/tzXxGmxNxIN8qlIyfG+5qmvWBylQeWyRNVFj0KJrD1RZ92W6LU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VRACTutq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 85F93C2BCF6; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790721715; bh=gPQ+PRuexMb6ktXazMToadmhFmEo2i45TrXvKycWEmY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=VRACTutq2xraZ5jG85WCvYy3tD9QuRYJCAEYycCboR0pCW6481TNbGQWnkFiMvH0Z wZSXgR2EjIKw/QwnaO1CakSi/rszlZYyy54SRvT+Nn3RB4Xl5Tg8k543OylTIKW5xK n8DY3uKYyl8BUK4rY9ibW5SVrIJEcsdqFk4798Xlm1KTX7mfO3taWt7xHRJISyLFw+ +tVi2xR+4Evdd0zerGSgL+SN3SGMzxrtL6RUvfIbvSWm4MEGxb4kHxUyLMmA7DyW0c b4NWtrlwET0qw3k22oy4oBu08XzwibK/Wyak9CRkXNh22Ib3vh5ce94KYE8nVZV6KK 3AcpbEIBivwlg== 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 73DD5CA5FAD; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 30 Sep 2026 01:41:45 +0300 Subject: [PATCH v18 11/23] dt-bindings: media: i2c: max96714: add support for MAX96714R Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260930-gmsl2-3_serdes-v18-11-43117818f499@analog.com> References: <20260930-gmsl2-3_serdes-v18-0-43117818f499@analog.com> In-Reply-To: <20260930-gmsl2-3_serdes-v18-0-43117818f499@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 , Martin Hecht X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790721712; l=1313; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=khss6mvGYvbkpkf3Q8qKMNyh22EWZUkOn2aoSY55PKc=; b=xanvGn/1AORFUH2hom2D9Y3Uv+A4OfQ3sYkVdvktYEUi3aMFxso3v90NnkhgmGV2WM8yKpd+m pKVKYpvrVJUCagVkfQVMUsxQjQb04InOy9pW7vBa4KTPaC/qmlNItKG 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: Martin Hecht --- 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.yaml 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: 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. properties: compatible: @@ -31,6 +33,7 @@ properties: - items: - enum: - maxim,max96714 + - maxim,max96714r - const: maxim,max96714f reg: From patchwork Tue Sep 29 12:41:46 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dumitru Ceclan via B4 Relay X-Patchwork-Id: 2313611 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=T0SfLjN+; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=linux-gpio+bounces-44320-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvYBq4Jnfz1y1S for ; Wed, 30 Sep 2026 08:44:19 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 78CD165E0B for ; Tue, 29 Sep 2026 22:42:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C3424FB9AF; Tue, 29 Sep 2026 22:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T0SfLjN+" X-Original-To: linux-gpio@vger.kernel.org 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 B263E4E3247; Tue, 29 Sep 2026 22:41:55 +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=1790721715; cv=none; b=BMnF+TmsYPP/40PS7MmwfkVtCXfV3+3QROYbcC3diT18+HXZ1fzGlIiirx280QUT8PLdHQ8v/PRzg7lVp+bPYaTIwKw/bVlzHLDS5r4w7LJwpSK/mn9nsPhn12a9u/C6gnsGhX4x5rF/EiP6MTUKR28ATogdspELcWH2oBkuFOY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790721715; c=relaxed/simple; bh=4WJAFZry4YIXoyz0DgPlY1/1lde0KVCkaNOsXqpgme8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=moKybXmvBOlT/lwB2/VCi1WAyXbIHkQWfIguZQ8Zh6HvSV7Ga6V5RZHkDqYpPQ95RJZeVOJ8xv2FZ+L/L7qrtp05rrQyEOyBm7hkZqNtFsKKLQsUsszX2Grwf9UxSI6S1SgBom/TQv+qWN21caqU6KXBOEnsnVM/2fwrbRfSYTk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T0SfLjN+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 96C40C4AF14; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790721715; bh=4WJAFZry4YIXoyz0DgPlY1/1lde0KVCkaNOsXqpgme8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=T0SfLjN+BF7kIEVybZuL6pDdakbba39/dXnC5dnCUtnWrrJ5N+SdU1jl4HvvjvK+K 9JnCO5K86Ny7ceJw3hNnV2s75hikPMVcLGerXuDyQnf9EMOUU3jICIYM3QQl6AP0w3 FDC84+AYCcEid/53nHvJ7XHkgxxRBftbSZVfIcKD9rOrGRbtNmdfC7uf4HKzFBskLr g9x9PUnf9/GR0stJbqB8XoA18IgU6DzMMdHGGWkyT9bDqrlGMfZeXX1EBcNOtjw7wo YQwulOwcIbd7gfh6DCkV+yBBqKqMT6QLB/xqs3uQ5BV65hpL2zARJ0ZN7gYEWoKEl0 2Pbv/6hVq5tiQ== 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 843DACA5FB3; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 30 Sep 2026 01:41:46 +0300 Subject: [PATCH v18 12/23] dt-bindings: media: i2c: add MAX9296A, MAX96716A, MAX96792A Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260930-gmsl2-3_serdes-v18-12-43117818f499@analog.com> References: <20260930-gmsl2-3_serdes-v18-0-43117818f499@analog.com> In-Reply-To: <20260930-gmsl2-3_serdes-v18-0-43117818f499@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 , Martin Hecht X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790721712; l=9191; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=Q2VDcBYFNT4jMoxnY71SgZt4iM2o8di6eqp8eCSMymM=; b=wYejPqo108re3z88o5L951GO1LgLQ8Rh4uUDjtE7X1AmMG1zfiUNz5r7ZGmgGR2xC6rl1p4Xl Rl2XzMSvpfkBhqVafxCEGJYcS4FRLxFxW4yQLqVC86wYFJqwMKt8/CJ 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: Martin Hecht --- .../bindings/media/i2c/maxim,max9296a.yaml | 242 +++++++++++++++++++++ MAINTAINERS | 6 + 2 files changed, 248 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml 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 = <1>; + #size-cells = <0>; + + deserializer@28 { + compatible = "maxim,max9296a"; + reg = <0x28>; + powerdown-gpios = <&main_gpio0 37 GPIO_ACTIVE_LOW>; + + i2c-alias-pool = <0x40 0x41>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + des_gmsl_in_0: endpoint { + remote-endpoint = <&ser_0_gmsl_out>; + }; + }; + + port@1 { + reg = <1>; + des_gmsl_in_1: endpoint { + remote-endpoint = <&ser_1_gmsl_out>; + }; + }; + + port@2 { + reg = <2>; + des_csi_out: endpoint { + data-lanes = <1 2 3 4>; + link-frequencies = /bits/ 64 <400000000>; + remote-endpoint = <&csi_in>; + }; + }; + }; + + i2c-atr { + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + serializer@40 { + compatible = "maxim,max96717", "maxim,max96717f"; + reg = <0x40>; + gpio-controller; + #gpio-cells = <2>; + #clock-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + ser_0_csi_in: endpoint { + data-lanes = <1 2>; + remote-endpoint = <&sensor_0_out>; + }; + }; + + port@1 { + reg = <1>; + ser_0_gmsl_out: endpoint { + remote-endpoint = <&des_gmsl_in_0>; + }; + }; + }; + }; + }; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + serializer@40 { + compatible = "maxim,max96717", "maxim,max96717f"; + reg = <0x40>; + gpio-controller; + #gpio-cells = <2>; + #clock-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + ser_1_csi_in: endpoint { + data-lanes = <1 2>; + remote-endpoint = <&sensor_1_out>; + }; + }; + + port@1 { + reg = <1>; + ser_1_gmsl_out: endpoint { + remote-endpoint = <&des_gmsl_in_1>; + }; + }; + }; + }; + }; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 2d137a339940..22f9aee7cdd1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16315,6 +16315,12 @@ S: Maintained F: Documentation/devicetree/bindings/iio/proximity/maxbotix,mb1232.yaml F: drivers/iio/proximity/mb1232.c +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 From patchwork Tue Sep 29 12:41:47 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dumitru Ceclan via B4 Relay X-Patchwork-Id: 2313598 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=Dmsq15UK; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org; envelope-from=linux-gpio+bounces-44322-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sto.lore.kernel.org (sto.lore.kernel.org [IPv6:2600:3c09:e001:a7::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvY8b1gyTz1y1S for ; Wed, 30 Sep 2026 08:42:23 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id DBF1160DD00 for ; Tue, 29 Sep 2026 22:42:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E3BE4FD7AE; Tue, 29 Sep 2026 22:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Dmsq15UK" X-Original-To: linux-gpio@vger.kernel.org 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 C37084E4320; Tue, 29 Sep 2026 22:41:55 +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=1790721715; cv=none; b=Zjq0SZ9nW26GFFWejIeIcHuSXtpaE67/yKgg7UyOaD38rHcgHZfzXtC9qBIUxlUt6/RInwU9D5zvuMssFDvurW9UTdv9PuT9n8sCCZs2u8BiWXEfv7+aeOHIBSNBYFv4Uqv/NtGTPzhf3KcZoqmTycrjhrXmfWd/snO8+oV6h6s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790721715; c=relaxed/simple; bh=9RKZraDwM9H1ZhvKjKzDRZ+HYrQ9YCXpHoPHv6I9kCM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uRyzp9mBZFmUsQvUQUxSm1N0mW8o8x9YpaUuCuQup1w2dUUBzpYxfadEg56vZKwjkN86YIInfCo5ZkRNyhACtKYn19jupX4AQrijei9YkJjs1XJV1l0Q3fKZzi+rkCvKn3AZSZUXaxjhaRmwQiKCKhFSQb7v9KAtgHOKzf226VA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Dmsq15UK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id A88E1C4AF16; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790721715; bh=9RKZraDwM9H1ZhvKjKzDRZ+HYrQ9YCXpHoPHv6I9kCM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Dmsq15UKOwz5VTLiiMxjTGZOxnG7pdB7OKAfyRRb5D2sDaUxM/w+d0WEcAe/cKJDQ GrXdV6X6mPQVQe9B6jMmGE2/VqbAL4caUBmGuGRlqV3cKOSSw1w98XaVUOqrt7li8S +TUwVk1k+e5JKZJWS7JybYrBA3HfT2zmJHz0FHXiK8dO1dqkM2V1FghAj4sXZVfLcm IqumifB3WyaRzlUKetp1GDBREHU2oySCgMjL0+iJIDVW/EoE25hHT87M76QwhJqtfk LO5X1YoiioO3SGDC2OAZzcaAU6r16+7tVn4ZEjat66MbogXCSLJQbv0GzQFYRiT5Rx F9ThxOC0B4lxQ== 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 954DBCA5FA7; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 30 Sep 2026 01:41:47 +0300 Subject: [PATCH v18 13/23] i2c: atr: serialize attach/detach against bus transfers Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260930-gmsl2-3_serdes-v18-13-43117818f499@analog.com> References: <20260930-gmsl2-3_serdes-v18-0-43117818f499@analog.com> In-Reply-To: <20260930-gmsl2-3_serdes-v18-0-43117818f499@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 , Quentin Freimanis X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790721712; l=2334; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=BzonsaTzVGAWmnVOwQz2Jf0/RUn4KnlpIxawiVR7AoQ=; b=C1QBwqxybTM1bxDc6LTnDuQ6m4r/vV+1XwFcu/LR5JqndWRjINmw91+AV1cAZgXXJ6GxuITu6 tePWjxjqyQtDrZeNBKwvSfyp24EzM6DcrjmDZnpufhX4RHIeHzG13Bj 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 The attach_addr() and detach_addr() callbacks may need to reconfigure the remote side of the bus. Maxim GMSL deserializers, for example, disable all links but one to reach a serializer at its default address, since all serializers power up at the same address. Transfers on other channels of the same ATR can run concurrently with these callbacks and fail with -EIO while the links are disabled. Take the ATR bus lock around both callbacks, before alias_pairs_lock. i2c_atr_replace_mapping_by_addr() already calls them under this lock, so ATR drivers see no new constraint. Suggested-by: Quentin Freimanis Signed-off-by: Dumitru Ceclan --- drivers/i2c/i2c-atr.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/i2c/i2c-atr.c b/drivers/i2c/i2c-atr.c index ca29633dcd62..b98442ffff94 100644 --- a/drivers/i2c/i2c-atr.c +++ b/drivers/i2c/i2c-atr.c @@ -540,6 +540,12 @@ static int i2c_atr_attach_addr(struct i2c_adapter *adapter, struct i2c_atr_alias_pair *c2a; int ret = 0; + /* + * attach_addr() may reconfigure the remote side of the bus, keep + * transfers on other channels out until it is done. + */ + mutex_lock(&atr->lock); + mutex_lock(&chan->alias_pairs_lock); c2a = i2c_atr_create_mapping_by_addr(chan, addr); @@ -557,6 +563,8 @@ static int i2c_atr_attach_addr(struct i2c_adapter *adapter, out_unlock: mutex_unlock(&chan->alias_pairs_lock); + mutex_unlock(&atr->lock); + return ret; } @@ -567,6 +575,8 @@ static void i2c_atr_detach_addr(struct i2c_adapter *adapter, struct i2c_atr *atr = chan->atr; struct i2c_atr_alias_pair *c2a; + mutex_lock(&atr->lock); + atr->ops->detach_addr(atr, chan->chan_id, addr); mutex_lock(&chan->alias_pairs_lock); @@ -574,6 +584,7 @@ static void i2c_atr_detach_addr(struct i2c_adapter *adapter, c2a = i2c_atr_find_mapping_by_addr(chan, addr); if (!c2a) { mutex_unlock(&chan->alias_pairs_lock); + mutex_unlock(&atr->lock); return; } @@ -586,6 +597,7 @@ static void i2c_atr_detach_addr(struct i2c_adapter *adapter, i2c_atr_destroy_c2a(&c2a); mutex_unlock(&chan->alias_pairs_lock); + mutex_unlock(&atr->lock); } static int i2c_atr_bus_notifier_call(struct notifier_block *nb, From patchwork Tue Sep 29 12:41:48 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dumitru Ceclan via B4 Relay X-Patchwork-Id: 2313614 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=O7DUCUd+; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=linux-gpio+bounces-44323-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hvYCm24gcz1xyX for ; Wed, 30 Sep 2026 08:45:08 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id D3F5167443 for ; Tue, 29 Sep 2026 22:42:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1DF44FE2F3; Tue, 29 Sep 2026 22:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="O7DUCUd+" X-Original-To: linux-gpio@vger.kernel.org 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 D3D174E5355; Tue, 29 Sep 2026 22:41:55 +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=1790721715; cv=none; b=fMDq0Oj6VNJx8ibT1DapjwcBWbg+NnZq4D1gVCYCmIwUaX7EHLrB0OJY+H+sfav0k5O7avUiIPg1ZyAR8dZY0m+neKIAsc9vvhBKiJGxOiL2DlbwuQ5zcC05mOMEOacD63mOWy7rHlXqw0NDFIhbGhcV93MHj1gJ5wtYAHmDxVQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790721715; c=relaxed/simple; bh=acChwxRddwhoQ+xIOFtQXkxu4xUehX2Tspz9wfFIzr0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GNs51VHBfFZhQgWyDEv7lSrWLslaHdnlvHsPMcPM5xJzzUTVB7X5yV+vGuU2FgUOXPVOdTY5GL1y0l1qpaljSiNUWSy1VfcYPnTrMkaqEk2FyviVzd/wKngQG2MdxX9Fmt+ERSENCAtY4vwBuiIGsvnjxqtxfk4hnSCuXuiUlp0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=O7DUCUd+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id B7FA2C4AF19; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790721715; bh=acChwxRddwhoQ+xIOFtQXkxu4xUehX2Tspz9wfFIzr0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=O7DUCUd+sJVLhVJ4MpkLEPHMt23QLTLn5iQ79z36gl+92Fmcs967NthBKjZ0jCIAg i3k40Mnwr5C/YpdN0j2oEk7PYP//SmhKevu/Hi9K3mb+rZfEobP5PioWK3RFBgXc+v e4+ueT64XBEf9QlLwxmiMeu+PeY97lSO81W3XZxpzaFUjPDRRIonnkSb9xVK9MJ3aJ cSoMlatTPY86tqzS50p0zUnvQR4fABm1rcJCR+6ziOm73rruOKC6yZb1Lc8Zo8K2tu +Ci5dYJrtUElmRcL7wNfK7OBsr0+ZjrGZZNBNTh3hDnz7MpywTlNuzXehdtHFrVWNJ TC3iVkYD2yajw== 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 A6602CA5FA5; Tue, 29 Sep 2026 22:41:55 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 30 Sep 2026 01:41:48 +0300 Subject: [PATCH v18 14/23] media: i2c: add Maxim GMSL2/3 serializer and deserializer framework Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20260930-gmsl2-3_serdes-v18-14-43117818f499@analog.com> References: <20260930-gmsl2-3_serdes-v18-0-43117818f499@analog.com> In-Reply-To: <20260930-gmsl2-3_serdes-v18-0-43117818f499@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 , Martin Hecht X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790721712; l=19514; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=DEDjE1p80YBcOXzvVw1AkE5Q17rLli6gbSkj+9QQ3Rw=; b=KUa8cIz5dY9epiapJ+4c05rEGQMmXo9Vr/3vmuu0erGtOpCjTwtbMJRuF/NksiNzoohgEfujU BsJhc+5e8CvDbhqaMFnpn9n8wsAItDRkRP6V+E8XBfRr93kCO29T9dW 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: Martin Hecht --- 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 22f9aee7cdd1..5b92e45a6c5f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16320,6 +16320,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/ MAXIM MAX11205 DRIVER M: Ramona Bolboaca diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig index 9b28e91b8a67..6ac133ce0d1b 100644 --- a/drivers/media/i2c/Kconfig +++ b/drivers/media/i2c/Kconfig @@ -1842,6 +1842,8 @@ config VIDEO_MAX96717 To compile this driver as a module, choose M here: the module will be called max96717. +source "drivers/media/i2c/maxim-serdes/Kconfig" + endmenu endif # VIDEO_DEV diff --git a/drivers/media/i2c/Makefile b/drivers/media/i2c/Makefile index fd1cb25718c0..ffa79a520956 100644 --- a/drivers/media/i2c/Makefile +++ b/drivers/media/i2c/Makefile @@ -76,6 +76,7 @@ obj-$(CONFIG_VIDEO_MAX9271_LIB) += max9271.o obj-$(CONFIG_VIDEO_MAX9286) += max9286.o obj-$(CONFIG_VIDEO_MAX96714) += max96714.o obj-$(CONFIG_VIDEO_MAX96717) += max96717.o +obj-$(CONFIG_VIDEO_MAXIM_SERDES) += maxim-serdes/ obj-$(CONFIG_VIDEO_ML86V7667) += ml86v7667.o obj-$(CONFIG_VIDEO_MSP3400) += msp3400.o obj-$(CONFIG_VIDEO_MT9M001) += mt9m001.o diff --git a/drivers/media/i2c/maxim-serdes/Kconfig b/drivers/media/i2c/maxim-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/maxim-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 := max_serdes.o +obj-$(CONFIG_VIDEO_MAXIM_SERDES) += max-serdes.o diff --git a/drivers/media/i2c/maxim-serdes/max_serdes.c b/drivers/media/i2c/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