From nobody Tue Sep 29 13:20:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0CE54746D7; Fri, 7 Aug 2026 13:02:49 +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=1786107770; cv=none; b=MWsGDwI17NThn3heg8iooHVlUK9/PCwPf/jLdmkFa3OFW1SVboQECN/Ge4ve9gFS44wZhg0gQL2dDeoWiJkrOxGPG6SKaCvFdXaTS2KnhOdadte+yeK9GopCeAv19wP22W7pkEXrhRgAY0yNeUMnIaDymtaM5QyXL7hnY9Jkxho= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786107770; c=relaxed/simple; bh=cpDukcPxVJzXko/L0eFDwxYderoS/dpMlVO2IjtjjHE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pIVjzrHolI0vDI2NfcFsbOvd/w8xhfXedP6lE/an4inuzLKkv2guaVHsEP1/gV/kv9jFJhNWnx4ZkDZQlC2pTRZeoj4G3FvZIybdKUcJG/EKXE7eHn6yNbrbyY7wa4k9zI83dkMH+5Mp7b/MVZkBjNqUkgsrBhcOJBFkFnwC2Q4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZDOUHWaS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZDOUHWaS" Received: by smtp.kernel.org (Postfix) with ESMTPS id 998A4C19425; Fri, 7 Aug 2026 13:02:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1786107766; bh=cpDukcPxVJzXko/L0eFDwxYderoS/dpMlVO2IjtjjHE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ZDOUHWaSUQb8bjM+jL0mqa22y9vZhIr8Oqc8E0eTe1EXY+pHTdFJWWlM4cez4ATY8 5ckCRIaKJddwS/UqZ/9PUHeK+gKSpcUdy35utaIN8AVjIZ8YPWa4zCw3BlNwQxwwMd +Qa0BDBfl3WQzBMhPKdCdyv6f1wWl0fqJebpx1S/NosL6Y+dj89OEkOg6SHyBaHCAY 7Dj8DmgGX3/IDEOqx/bIu259JDlDVGIt5QLvW06oMC/G5wejQgn1kcBvyInQ7HrAHA G35/4nHUSYO/jff3F1p4/yjlhr7jXbQIoelT3B9MBKmlcSRGNu3dpNN2cvDSjGRzp3 as807VkpMCMAw== 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 74969C5AC7C; Fri, 7 Aug 2026 13:02:46 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Fri, 07 Aug 2026 16:02:36 +0300 Subject: [PATCH v15 01/22] media: mc: Add INTERNAL pad flag Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260807-gmsl2-3_serdes-v15-1-7212e9e5156a@analog.com> References: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> In-Reply-To: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Andrian Suciu , Tomi Valkeinen X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786107763; l=4211; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=j75z8BDeqCgnWrq6GF1INTACeRkTAkS70gXnWGmC/2E=; b=eV/ZagfXNN2LH/n7gS48+hpHFdFxvtXcQLLPWNJsc3vpdQdwHIsLaMR2Ab08oRRUkVwaNMzeB 3NYI9BZC6cABu5dm8Jm0vYanH21l9mW54Yr2sFnKwhpaJ89POHfvP9B X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Sakari Ailus Internal sink pads will be used as routing endpoints in V4L2 [GS]_ROUTING IOCTLs, to indicate that the stream begins in the entity. Internal sink pads are pads that have both SINK and INTERNAL flags set. Also prevent creating links to pads that have been flagged as internal and initialising SOURCE pads with INTERNAL flag set. Signed-off-by: Sakari Ailus Reviewed-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart Tested-by: Tomi Valkeinen --- .../userspace-api/media/mediactl/media-types.rst | 9 +++++++++ drivers/media/mc/mc-entity.c | 15 +++++++++++= +--- include/uapi/linux/media.h | 1 + 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/Documentation/userspace-api/media/mediactl/media-types.rst b/D= ocumentation/userspace-api/media/mediactl/media-types.rst index 6332e8395263..200c37a1da26 100644 --- a/Documentation/userspace-api/media/mediactl/media-types.rst +++ b/Documentation/userspace-api/media/mediactl/media-types.rst @@ -361,6 +361,7 @@ Types and flags used to represent the media graph eleme= nts .. _MEDIA-PAD-FL-SINK: .. _MEDIA-PAD-FL-SOURCE: .. _MEDIA-PAD-FL-MUST-CONNECT: +.. _MEDIA-PAD-FL-INTERNAL: =20 .. flat-table:: Media pad flags :header-rows: 0 @@ -381,6 +382,14 @@ Types and flags used to represent the media graph elem= ents enabled links even when this flag isn't set; the absence of the flag doesn't imply there is none. =20 + * - ``MEDIA_PAD_FL_INTERNAL`` + - The internal flag indicates an internal pad that has no external + connections. As they are internal to entities, internal pads shall not + be connected with links. + + The internal flag may currently be present only in a sink pad where it + indicates that the :ref:``stream `` originates + from within the entity. =20 One and only one of ``MEDIA_PAD_FL_SINK`` and ``MEDIA_PAD_FL_SOURCE`` must be set for every pad. diff --git a/drivers/media/mc/mc-entity.c b/drivers/media/mc/mc-entity.c index 3fa0bc687851..7938f785e2e3 100644 --- a/drivers/media/mc/mc-entity.c +++ b/drivers/media/mc/mc-entity.c @@ -209,11 +209,16 @@ int media_entity_pads_init(struct media_entity *entit= y, u16 num_pads, mutex_lock(&mdev->graph_mutex); =20 media_entity_for_each_pad(entity, iter) { + const u32 pad_flags =3D iter->flags & (MEDIA_PAD_FL_SINK | + MEDIA_PAD_FL_SOURCE | + MEDIA_PAD_FL_INTERNAL); + iter->entity =3D entity; iter->index =3D i++; =20 - if (hweight32(iter->flags & (MEDIA_PAD_FL_SINK | - MEDIA_PAD_FL_SOURCE)) !=3D 1) { + if (pad_flags !=3D MEDIA_PAD_FL_SINK && + pad_flags !=3D (MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_INTERNAL) && + pad_flags !=3D MEDIA_PAD_FL_SOURCE) { ret =3D -EINVAL; break; } @@ -1118,7 +1123,8 @@ int media_get_pad_index(struct media_entity *entity, = u32 pad_type, =20 for (i =3D 0; i < entity->num_pads; i++) { if ((entity->pads[i].flags & - (MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_SOURCE)) !=3D pad_type) + (MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_SOURCE | + MEDIA_PAD_FL_INTERNAL)) !=3D pad_type) continue; =20 if (entity->pads[i].sig_type =3D=3D sig_type) @@ -1148,6 +1154,9 @@ media_create_pad_link(struct media_entity *source, u1= 6 source_pad, return -EINVAL; if (WARN_ON(!(sink->pads[sink_pad].flags & MEDIA_PAD_FL_SINK))) return -EINVAL; + if (WARN_ON(source->pads[source_pad].flags & MEDIA_PAD_FL_INTERNAL) || + WARN_ON(sink->pads[sink_pad].flags & MEDIA_PAD_FL_INTERNAL)) + return -EINVAL; =20 link =3D media_add_link(&source->links); if (link =3D=3D NULL) diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 1c80b1d6bbaf..80cfd12a43fc 100644 --- a/include/uapi/linux/media.h +++ b/include/uapi/linux/media.h @@ -208,6 +208,7 @@ struct media_entity_desc { #define MEDIA_PAD_FL_SINK (1U << 0) #define MEDIA_PAD_FL_SOURCE (1U << 1) #define MEDIA_PAD_FL_MUST_CONNECT (1U << 2) +#define MEDIA_PAD_FL_INTERNAL (1U << 3) =20 struct media_pad_desc { __u32 entity; /* entity ID */ --=20 2.53.0 From nobody Tue Sep 29 13:20:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC46A46AF2A; Fri, 7 Aug 2026 13:02:49 +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=1786107770; cv=none; b=HKFmQY9QGX2fAwl9Yx+5SjJgW/6vqNTjL4aZQjvjIHVLRaVXigT08IC/kiDDDFUUzKWfB9HaEyRcrOrFruckyBE/LuRHnH/TOeIs6XwFn9ZBn5qZP1Xxm+7bj9x079j8MfQ0Wye37iPRAZUeSGejkEd13d/8aMV2pEXj6GkUty0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786107770; c=relaxed/simple; bh=m/Lw3D9Sn7b/iEdL6eTGT3K2tR/KZoA6l9gCS1mqNBI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SYU9iz8FgxuTgPf8z1rgDT/IA/Pl9ct7ezYR87uSD165qvQYi4AbBSiqm0FCEkIkASRXU5aMyNTpMWqLWEdfxAYsBGU6hr6ySWQ4OsvfINVdcVseiuxl0Fhfze3ZJpLWrFcIGc5oqtt8+UFJC+cX/TkpEHEB+bo8OeeMU8m5JCg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Qk4tRIQ8; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Qk4tRIQ8" Received: by smtp.kernel.org (Postfix) with ESMTPS id B8931C2BCF7; Fri, 7 Aug 2026 13:02:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1786107766; bh=m/Lw3D9Sn7b/iEdL6eTGT3K2tR/KZoA6l9gCS1mqNBI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Qk4tRIQ8RPq1NLlIKDB+GVRumfyzytXdPDuyrzeUcN2JAHdmFXeHzl2/H7kNXVNij 8jaHTGsKJRDkT+6MO18GlVTQnlfhYquAz70o1AdNtLYbDtMFslc5FPbEZGy2thMBEk 0cjkTiGnDX/6oyj8IjIyPjLO5NjQJ3wDKgLcBm5FyYChsHtEh+Pi42LlUouIG8YQMz PamMbCDTHC4LtkVKU2rpEVtev+mwM2BZQlXYrNtl0PjuUtSd56igalRANQo2+QLF/u IHydxQX55y5Qky2GmgjRVcl3uBmIzIj/yi5XGbqPbxwAaogUHwy+r/6ygm3EkrNKbv jpqScAOZHQEKQ== 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 96B3FC2A09B; Fri, 7 Aug 2026 13:02:46 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Fri, 07 Aug 2026 16:02:37 +0300 Subject: [PATCH v15 02/22] dt-bindings: media: i2c: max96717: add support for I2C ATR Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260807-gmsl2-3_serdes-v15-2-7212e9e5156a@analog.com> References: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> In-Reply-To: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786107763; l=1814; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=OiYJqgg6XnogVXqu3cCeY60g1Qzx0eB+PgiVHCOJen4=; b=6Dma+5FSIeW+JBhxGUi6mUuYZ2qwaBUAPiMWDmxC9j1vEEoXbw/dP0z+PYkU25FJmMJ9pESA6 UPEiw/30maqAz20QR93Mx9CF8y/pncPGMzvsKIdZobbCDp101MTPmXA X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav MAX96717 is capable of address translation for the connected I2C slaves. Add support for I2C ATR while keeping I2C gate for compatibility to support this usecase. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) Tested-by: Tomi Valkeinen --- .../bindings/media/i2c/maxim,max96717.yaml | 39 ++++++++++++++++++= ++++ 1 file changed, 39 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml index d1e8ba6e368e..976f6dd2c164 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml @@ -91,6 +91,30 @@ properties: incoming GMSL2 link. Therefore, it supports an i2c-gate subnode to configure a sensor. =20 + i2c-alias-pool: + maxItems: 2 + + i2c-atr: + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + '^i2c@[01]$': + $ref: /schemas/i2c/i2c-controller.yaml# + unevaluatedProperties: false + properties: + reg: + items: + minimum: 0 + maximum: 1 + required: - compatible - reg @@ -98,6 +122,21 @@ required: =20 additionalProperties: false =20 +allOf: + - $ref: /schemas/i2c/i2c-atr.yaml# + + - anyOf: + - oneOf: + - required: [i2c-atr] + - required: [i2c-gate] + + - not: + required: [i2c-atr, i2c-gate] + +dependentRequired: + i2c-atr: [i2c-alias-pool] + i2c-alias-pool: [i2c-atr] + examples: - | #include --=20 2.53.0 From nobody Tue Sep 29 13:20:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0F17476048; Fri, 7 Aug 2026 13:02:49 +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=1786107770; cv=none; b=AhAhUB3WkGhwTp3vZVTfcCLCyROld0EvNyU/ImfDcCarGdbKG3ZXMwiKe3cKEdRY9QUR9iSbDkyrObQp4Lnl6U5YlwPVHAVL9AR21GlPG78fzHgAYS9U8XI0/wI/u0ZbInN8W7igHZA/xbf1aML39PlEwlNwyCGndWhDoVG5PPI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786107770; c=relaxed/simple; bh=+zzdgbeUTZ1N1DTgq5TxUwR+zP+wJLNITthqc1e88Zc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IOM6PVJiMMK8BpuGNybERZUEr55XLmqUd9ZYf+qjVgvaJkuJ0Mc/0EOy4+uFLA1qTfICFy6F2Doy0kNKVN9DAOgv+PIL588vlxoo9t/zvfFOklcguAy34fL0NzzhdZgmQurpIJqYas4UIqwifsliv5MRIl/z4VU+ehRmoERt7f0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LW5c+yGi; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LW5c+yGi" Received: by smtp.kernel.org (Postfix) with ESMTPS id C8FC7C2BCFA; Fri, 7 Aug 2026 13:02:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1786107766; bh=+zzdgbeUTZ1N1DTgq5TxUwR+zP+wJLNITthqc1e88Zc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=LW5c+yGieU2IteWHgvudEe14Fer0QNrkGmDjvYkxp9MbRD8iJKcM62d5fFad3oN4q CdgTGOiyOJJI0u1gN7PPgHG1AXIaQH98vV0rBugcakKoeSCypnzys06MPN3CI3N5na wQ71dbgwI1PG/W9RzmsxsTnBEI6uEUoRlYF2zzOAkEKUHP6g/83CFkxl/kjZlyBnDK EoZopD4Dwx+igmGTs7rUz+2sjvUC/kxnmePGRKHlhtoZnNEb/MT6MlXDcjdL9BzT6d x0UrGZA/lIsaJ/d6ctoRUcMbNUfr4eOW8N4N1RzNt5HITvWThVtEPqniMcJXABHEC7 oJoYT5zmtuC+g== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B51EBC5AC7A; Fri, 7 Aug 2026 13:02:46 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Fri, 07 Aug 2026 16:02:38 +0300 Subject: [PATCH v15 03/22] dt-bindings: media: i2c: max96717: add support for pinctrl/pinconf Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260807-gmsl2-3_serdes-v15-3-7212e9e5156a@analog.com> References: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> In-Reply-To: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786107763; l=4016; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=SrxXRhbQ3GCquuhQkKB0cKcz5eSmglqqWPozYcuiRVM=; b=3aKQKW6/wNCikM4zdZypCOvvvYqVrRBbgv80UsI87JI/dPIuxDyUa5fNoznfr5Ae+qw0vW2M1 ogXDdu91iUDBlCe4Ymge8Mfo4R6WkP6fRbnacuB/4wBOy8r2OICZB+i X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav MAX96717 is capable of configuring various pin properties. Add pinctrl/pinconf properties to support this usecase. Signed-off-by: Cosmin Tanislav Reviewed-by: Rob Herring (Arm) Tested-by: Tomi Valkeinen --- .../bindings/media/i2c/maxim,max96717.yaml | 105 +++++++++++++++++= ++++ 1 file changed, 105 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml index 976f6dd2c164..d507cad18edc 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml @@ -120,6 +120,111 @@ required: - reg - ports =20 +patternProperties: + '-pins$': + type: object + additionalProperties: false + + properties: + function: + enum: [gpio, rclkout] + + pins: true + drive-open-drain: true + drive-push-pull: true + bias-disable: true + output-disable: true + output-enable: true + output-low: true + output-high: true + input-enable: true + + slew-rate: + description: | + Slew rate. + Rise and fall times represent the time needed for a GPIO to go + from 20% to 80% of VDDIO. + 0 - Fastest + rise: 1.0ns @ 1.8V, 0.6ns @ 3.3V, + fall: 0.8ns @ 1.8V, 0.5ns @ 3.3V + 1 - Fast + rise: 2.1ns @ 1.8V, 1.1ns @ 3.3V, + fall: 2.0ns @ 1.8V, 1.1ns @ 3.3V + 2 - Slow + rise: 4.0ns @ 1.8V, 2.3ns @3.3V, + fall: 10.0ns @ 1.8V, 5.0ns @3.3V + 3 - Slowest + rise: 9.0ns @ 1.8V, 5.0ns @3.3V, + fall: 10.0ns @ 1.8V, 5.0ns @3.3V + maximum: 3 + + bias-pull-up: + oneOf: + - type: boolean + description: Enable regular 40kOhm pull-up + - enum: [ 40000, 1000000 ] + description: Enable either the 40kOhm or the 1MOhm pull-up + + bias-pull-down: + oneOf: + - type: boolean + description: Enable regular 40kOhm pull-down + - enum: [ 40000, 1000000 ] + description: Enable either the 40kOhm or the 1MOhm pull-down + + maxim,jitter-compensation: + type: boolean + description: | + Enables jitter compensation. + Jitter compensation is used to minimize the jitter of the + signals transmitted from the deserializer to the serializer + by adding a fixed delay to every transition on the serializer + side. This can be used for pulse generation where timing is + critical. + + maxim,tx-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Enable transmission of the pin state from the serializer to + the deserializer using the specified identifier. + maximum: 31 + + maxim,rx-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Enable transmission of the pin state from the deserializer to + the serializer using the specified identifier. + maximum: 31 + + required: + - pins + - function + + allOf: + - $ref: /schemas/pinctrl/pincfg-node.yaml# + - $ref: /schemas/pinctrl/pinmux-node.yaml# + + - if: + properties: + function: + const: gpio + then: + properties: + pins: + items: + enum: [mfp0, mfp1, mfp2, mfp3, mfp4, mfp5, mfp6, mfp7, + mfp8, mfp9, mfp10] + + - if: + properties: + function: + const: rclkout + then: + properties: + pins: + items: + enum: [mfp2, mfp4] + additionalProperties: false =20 allOf: --=20 2.53.0 From nobody Tue Sep 29 13:20:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F037B474258; Fri, 7 Aug 2026 13:02:49 +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=1786107770; cv=none; b=gEzAXkpWIcrCELOjbxDFK1P7GNo01rHI1g2+sRBAGWRZ9NhfSt2SWBb04FHONBe76+LSSV5wEOTcvjIAVgq/AWk8t+RyhQ+d7QOQEbBVgE/AivfWyUUIwrHX7cOIs/xCcgz2JII3RN5yvPYoQQHxUC2wKf2Rp87BBYhd3gSs6uQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786107770; c=relaxed/simple; bh=0LRurGs30izWp59o8FPmIaT+p/OC5LyJScZ6dv8wqHc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kk46ipGr0PljtV1OAzcXP+sa7KbKQWDrhFVHTzHqbTKKJq100hr1lyKORxogUQ4fopQ0aW4+vznhMy+/Cdp6tmrdMFqkwaxtWXORttkK4Uz9dRSV3QiuxrHrI0biVg19mGYk4R1KCAlMnzMtz/I1GqutxU0xm5ODh3JPAmoBvNc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rfhg77wo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rfhg77wo" Received: by smtp.kernel.org (Postfix) with ESMTPS id E97F9C2BCFB; Fri, 7 Aug 2026 13:02:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1786107767; bh=0LRurGs30izWp59o8FPmIaT+p/OC5LyJScZ6dv8wqHc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=rfhg77wo3CJFfADztJyLDWMFd3FTaDdy/6el8f4jpnKmdkbwh+XNjmv7YfNbEVsjf RiXR8VuMdpAyzYSQHRCySZB7TN//Y+tZ/9WqhCsyTePq3U4l5+YcQ5Pbi1pR/i24yi wI5cc8/l22kJOeP9J5P3Gep/ctOoPikl28G91YgyVoYFcBA+nVVhdi7SLR4YBBcPPB cRcWMBu5a32c6UBNQ7awWWDvlVB1qFXtAtLLX/nfvYflkHBarEcqx+uZpGRQsSOMkb RQyKAMi0xskxM2z8qWSkMtjWveflBjkw8f3eh+fprN61wSbu24BvN4OPXb0iBFIto3 5sfBqKZC6K+AA== 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 D17C6C2A09B; Fri, 7 Aug 2026 13:02:46 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Fri, 07 Aug 2026 16:02:39 +0300 Subject: [PATCH v15 04/22] dt-bindings: media: i2c: max96717: add support for MAX9295A Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260807-gmsl2-3_serdes-v15-4-7212e9e5156a@analog.com> References: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> In-Reply-To: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786107763; l=1215; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=vJv87PlKhZ/JJOLIT/BDLODjizDSGOosxrrf6SXpE7Q=; b=L7J5BAMVHe8GPMwOepkt4vfHVn/3b16rmRCfiyYvky+ArV3SKm5eu5W1cTb2+7tY7CVs99G/s LQ6jnqWzO4qDLZuhSagu9uIHI0IaqAeKVNJbolKTQNmVI0brPBCQLxG X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav MAX9295A is an older variant of the MAX96717 which does not support tunnel mode. Document the compatibility. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) Tested-by: Tomi Valkeinen --- Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml index d507cad18edc..bbb38b3de7df 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml @@ -24,12 +24,17 @@ description: =20 The GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the forward direction and 187.5Mbps in the reverse direction. + MAX96717F only supports a fixed rate of 3Gbps in the forward direction. =20 + MAX9295A only supports pixel mode. + properties: compatible: oneOf: - - const: maxim,max96717f + - enum: + - maxim,max9295a + - maxim,max96717f - items: - enum: - maxim,max96717 --=20 2.53.0 From nobody Tue Sep 29 13:20:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2420F47669C; Fri, 7 Aug 2026 13:02:53 +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=1786107773; cv=none; b=MicSgEPY7oEzyxoD8ra+fmu/8jMhkTsZccksc2vEsj0DWP9gd54LwIpIXFQ2L/fqWcDayGHEH1LVNCZK8HQ3ehurdJk7NUXripWPOWpoY9WbrGXrrmn0B0zcBzPso65Z4Z+DP5TZ4uEhX7aN6hfXzNyGvLR9dz3ef+9IUuI47eQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786107773; c=relaxed/simple; bh=BKRnyLSX59IE0zfiNOQX8tE/TWnmktZCFFeLRCV2Ecw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=X8TfTpo1wf3efQ9hUYLhyYjtcvpwsQ0C2Ra09X/OaDpBRclQdHWySOr53YNw0BOC9qP58mVGbrDvH6CxFTcsHEc54QweLDBwFIEqy2cRJqI2qgqJB4iqYczpUskUOi3La9uf2XVnH1bvbN8ukhnH4b2w8PHfIyRV0s85z600vQM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mjsUjq8r; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mjsUjq8r" Received: by smtp.kernel.org (Postfix) with ESMTPS id 13798C2BCFC; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1786107767; bh=BKRnyLSX59IE0zfiNOQX8tE/TWnmktZCFFeLRCV2Ecw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=mjsUjq8rU5JepUucjyygPtfPldB0y0gRfS5xkYHWhYPpTocAGHivmFdjENUpioUkH YBOfAbEtB5AXqGl56aLkfzJakzaAwRV4ZZ1ptmlPoVvlbWiLBC5eislAs62Lv+JWUU rO/BG6fjE+hvWjvWvYAC5vFZdIyOpbJhpS3A719/jE+aj1GO+dZeUT76l38zY6BYPc h77UOAptef5olg1MA9yzs0f0s0VonpPuTqk0K9xyqi1xNn4OlcPX6c5JtxOralbbuS b3cZlWvVsAzTD8VF0nTZxCEhU+TEJhCxcVtkC/CLXbn8+TiTHYbUBASOPQCJocXdjc 6NkytuWL3jKcw== 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 F131AC5AC9F; Fri, 7 Aug 2026 13:02:46 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Fri, 07 Aug 2026 16:02:40 +0300 Subject: [PATCH v15 05/22] dt-bindings: media: i2c: max96717: add support for MAX96793 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260807-gmsl2-3_serdes-v15-5-7212e9e5156a@analog.com> References: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> In-Reply-To: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786107763; l=1028; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=kdE8G2f/TkU4Jd90/mcz/ibtYHam2bXzp5xv8fAXHto=; b=Zz9AIxC9+/ARKM8Eg2z3ojGrTUmlpuCXFOwQ0Yx4P2PHNOAeYXJRrSSoTv7nIg6JB66zwgRZA LWmiqw1xR+QCTWKiaVPVPwxbgdT4HDHFmaP0rVTeeAa+QFVgMBoEJVd X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav MAX96793 is a newer variant of the MAX96717 which also supports GMSL3 links. Document this compatibility. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) Tested-by: Tomi Valkeinen --- Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml index bbb38b3de7df..0d53637a6991 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml @@ -29,6 +29,8 @@ description: =20 MAX9295A only supports pixel mode. =20 + MAX96793 also supports GMSL3 mode. + properties: compatible: oneOf: @@ -38,6 +40,7 @@ properties: - items: - enum: - maxim,max96717 + - maxim,max96793 - const: maxim,max96717f =20 '#gpio-cells': --=20 2.53.0 From nobody Tue Sep 29 13:20:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AECA2479882; Fri, 7 Aug 2026 13:02:52 +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=1786107772; cv=none; b=AmhtqEaK44dTr314px8KRNrD6Ot83kobXMwxPLZzmg8B26++dvTkhrGyA4sUTXILkQ4/gIFBe0he9lBtgZ2PRTHWmr02HmxpJ/FMWe8cVMGDWFUh2jvDkwH+ddP0qXi8SIQvVX7NgygDsmbEUkrv2U4TL8WB2Wmy8fG0HdGFAgI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786107772; c=relaxed/simple; bh=8TupqbovUH4f8Ft7S3k5VMJFfXq22X6CyPw4uwxsut8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BHUbK660A1D8tM6x1SoEbR8oq4HoeaMnfB8BcOxDVCAWxI+Xvj0j6FtbQHYcxOy6U2MhQA5zMNfcmP17p12e4fWKcqOCKLWQtjT9jkEBMhdf+ud7ysQpFWTUdsyZ8KUoxYlxWOHmAx3Lv4uXOFwpgCWPHajifLCQsJPaZnba+Vs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QfimeleB; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QfimeleB" Received: by smtp.kernel.org (Postfix) with ESMTPS id 33D2BC2BCC7; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1786107767; bh=8TupqbovUH4f8Ft7S3k5VMJFfXq22X6CyPw4uwxsut8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=QfimeleBzEobanqYlK6tEAMREj5C0bhhLFE3OPP98Yuqz7ef9BDC8PAdg2U4cxfJm 7I54SRQi0d1AdcmXffgpsHTWHCDfOUzftCmygLMHviUUGOsbc18ofYpkj4xHgdQbV5 A5tEjRLpHbOETvnTHeGMXY+UxhDo6/Kh2NaaPur45qj9H8Vh5XLiL/M/4BuRip7uvv 2+9W+GRXI2fMVkA/7UUxd5HDiNTk9VlJSsr6czlihR4pG0ttZX9yjRVn3fncZkeEj1 mHoCBF3kcZY26SDyYdkzwPFopka3bnZ9tvsIkFteufQqlAHny4y/98+ZpEv9QF2qUg j4WK/kNWH2duw== 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 1D05EC5AC81; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Fri, 07 Aug 2026 16:02:41 +0300 Subject: [PATCH v15 06/22] dt-bindings: media: i2c: max96712: use pattern properties for ports Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260807-gmsl2-3_serdes-v15-6-7212e9e5156a@analog.com> References: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> In-Reply-To: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786107763; l=2057; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=I52ZK89SDidgv9Kh0KUq2eBXwlYMLSWhPo+aSFUbLXE=; b=8sNLZSrJthMMbSjnY0Ww2roJzsEpl+rg67qgqqKr8hK+PaeQ1Jj7BOhjPDqA3x1hfSibNLdWG VoH4thPslGyCgJTIeer7c8Z2BXKZOoZHpoCG2VEebY9llG6Ieaud2LS X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav The MAX96712 and MAX96724 support up to 4 separate PHYs, depending on the selected PHY configuration. Use patternProperties to document this. The input ports are all the same, use patternProperties for them. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) Reviewed-by: Niklas S=C3=B6derlund Tested-by: Tomi Valkeinen --- .../bindings/media/i2c/maxim,max96712.yaml | 29 ++++++++----------= ---- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index 26f85151afbd..583bbd60157c 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -39,27 +39,15 @@ properties: ports: $ref: /schemas/graph.yaml#/properties/ports =20 - properties: - port@0: + patternProperties: + '^port@[0-3]$': $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 0 + description: GMSL Input ports 0-3 =20 - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 1 - - port@2: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 2 - - port@3: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 3 - - port@4: + '^port@[4-7]$': $ref: /schemas/graph.yaml#/$defs/port-base unevaluatedProperties: false - description: CSI-2 Output + description: CSI-2 Output port 0-3 =20 properties: endpoint: @@ -77,8 +65,11 @@ properties: - data-lanes - bus-type =20 - required: - - port@4 + anyOf: + - required: [port@4] + - required: [port@5] + - required: [port@6] + - required: [port@7] =20 required: - compatible --=20 2.53.0 From nobody Tue Sep 29 13:20:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90E36476CE7; Fri, 7 Aug 2026 13:02:52 +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=1786107772; cv=none; b=FV1n0mYDMWty+LA77nI8d8EQVGPb7l+OSZ9OWaI1OTZidlS+vLxavkPBjHv2tlNaRhM1naAMBegNyFaNGC1J4vad75ahD+TNapVFHXHGTQrShchdm9h0b+ZPFUTGp4NWlaJkBce9QlN6sEt+jAHtY1rSoHf7K91I6SL8GFr7edU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786107772; c=relaxed/simple; bh=oRQbdno+uMhuHFTbdmanYF8cim3BHh4wpJplXog8vQk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=t25BdtmBYuLdeNeRog9CGv2dbTT6R+Gm6r2Xh8n9hbTuvT3iNo5N7Pdo3tA2VHzRiKqFRyiNYmAO1VA7TkM6jjiav4D3Pd7xpAHgOHymFJ4IR7aUG3+lSo2iyaFfPRcygmYY1J6UU5tvtOk1y0zbDXaxeEXmoiSS+KtSqIihA6o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uoGa4XIg; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uoGa4XIg" Received: by smtp.kernel.org (Postfix) with ESMTPS id 5C423C2BD00; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1786107767; bh=oRQbdno+uMhuHFTbdmanYF8cim3BHh4wpJplXog8vQk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=uoGa4XIgcAngTqPrHTyCV6fbISZfgdHs1H+r+nMcYQeRjE+QStXxzg9R4/8h3hg9S EHFAanAx4VENv28KQ+4uJOP0O2hv/WEF0U335LydAQEIvS9J3VDLxj4FNiT0AuUNyy xXurJlFaCbES5otiOxaEF13KF9RrtUFzRBbXL6f/eGv6dGDj13pj9XTZyTXsFZT4w7 BOcFbL7iSu3fuAfx8izoGurj3ekH47GbBKoREW3RtGVeJv5lHgu5sTyHn6dxOJf4BQ dg39qLuwkbyYDWO48YzaAhdR+SIG6xkEoyOzBjCbZkmRF0/AWL7S2AqaJ8CwOEqCjX dhGpf5q8cu7XQ== 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 44A5FC2A09B; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Fri, 07 Aug 2026 16:02:42 +0300 Subject: [PATCH v15 07/22] dt-bindings: media: i2c: max96712: add support for I2C ATR Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260807-gmsl2-3_serdes-v15-7-7212e9e5156a@analog.com> References: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> In-Reply-To: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786107763; l=1871; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=Wtq87WP6HuN2ExCP/a1ucfnQWkLmzlzMjUynofXhUVc=; b=lLRdhb+1XOs8x8QovzvAyvK4hknbkXrCq1D+zHP2I4meYeB7/fpmmchYORz60iswz1ZXFMN6L qUo1AFXw49KBU40VbQq2api5PgclU0cZYuwV6Am0VobQJUdXaQjza0H X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav MAX96712 and MAX96724 have more than one GMSL2 link, and each link is capable of connecting to a separate serializer. If these serializers have the same CFG pins configuration, they will also have the same I2C address, causing conflicts unless the deserializer changes the address of the connected serializers. The MAX96712 and MAX96724 support changing the I2C address of the connected serializers. Document this capability. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) Tested-by: Tomi Valkeinen --- .../bindings/media/i2c/maxim,max96712.yaml | 31 ++++++++++++++++++= ++++ 1 file changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index 583bbd60157c..abacc3c874a9 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -36,6 +36,30 @@ properties: =20 enable-gpios: true =20 + i2c-alias-pool: + maxItems: 4 + + i2c-atr: + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + '^i2c@[0-3]$': + $ref: /schemas/i2c/i2c-controller.yaml# + unevaluatedProperties: false + properties: + reg: + items: + minimum: 0 + maximum: 3 + ports: $ref: /schemas/graph.yaml#/properties/ports =20 @@ -78,6 +102,13 @@ required: =20 additionalProperties: false =20 +allOf: + - $ref: /schemas/i2c/i2c-atr.yaml# + +dependentRequired: + i2c-atr: [i2c-alias-pool] + i2c-alias-pool: [i2c-atr] + examples: - | #include --=20 2.53.0 From nobody Tue Sep 29 13:20:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB84A4779A5; Fri, 7 Aug 2026 13:02:52 +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=1786107772; cv=none; b=HJYTpV0KJ0EX9eM8JTSdmy459VLwadUY5ikUxnFOx9xw3JKFIqLhn1/d1rY5ORj4rFnJYhRmjNn71EiPjslCUPJm38tYe8BEk6e1kmHbqw3h4XAYyapOSzvK/j+FDg2U2qaRpQGlmncAq2ZvOsujDCFmK2DR3usp4wSn3wi89iY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786107772; c=relaxed/simple; bh=uqnWPcYuomOdK+CZnQbIn/W5p1Thhpmu4YbDCuYmLeQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IGPTotIzCMX2oEYRpuqy8leLbAv3cWn0Lg1kGspDPhodDDCRBvJaQFJrVERgBtSaJaMQ9WJuBYWtXBsLrdNN9wQ1nl++fNFqgQP3EBxsPzdKXzY1k4DnNekHcHuqgUhEy7mIXEHSlxZ7d3BAt7bXqhI68c17CCzEOcEoKdpU1E4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oA+6j8Ou; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oA+6j8Ou" Received: by smtp.kernel.org (Postfix) with ESMTPS id 74086C2BD01; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1786107767; bh=uqnWPcYuomOdK+CZnQbIn/W5p1Thhpmu4YbDCuYmLeQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=oA+6j8OuLaK+0lXdSzIIF93K2eNWhJM5Cqvh6f4+XzvWOSUpJZaWQdvNS4l0Mek0T wy5PDqheBueT8Jnse1jhJ7Ct+YAGpYyyBT3jHvAJz41rlyqBn6rpWuEj2A8/oG5El1 2vFcVp6vJKJzzcJwy4C4MtmpEveZ0gksDwRaMbpC9mg/3/+1/nhSncBCInrg8k3DJh ulL4HBzn4Ppmwn7jLHS4y0Z4L9euB3kCsVN60ZPVsPYDi0BfdZVd8YhKJvO5sWMyyV btmUvz3cO3J1npozJiPhFML4bClwJ/7VaVGRDdpC5HAbKPgHs2SWERqfHKIG7NKkMG bcCCctK8DeIvA== 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 5F48EC5AC7A; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Fri, 07 Aug 2026 16:02:43 +0300 Subject: [PATCH v15 08/22] dt-bindings: media: i2c: max96712: add support for POC supplies Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260807-gmsl2-3_serdes-v15-8-7212e9e5156a@analog.com> References: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> In-Reply-To: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786107763; l=998; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=4ZvMQ1EkeJ2w8dRWwF+03VM9oahvM+Q5lLU48mndSLo=; b=klvSqCoLlPq9ZozLZdnFMz444Y1dlQuDiVVd2Y/5U9INNtbY2qzXllgNfYWZAyrB/JHH64das dVIkEQbnXd+D95pSzI2+9faoR72M7VMYYyrS+YIxLRFDBbar/86rTr5 X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav The GMSL links can carry power to the serializer when using coaxial cables. Document this capability. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) Reviewed-by: Niklas S=C3=B6derlund Tested-by: Tomi Valkeinen --- Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index abacc3c874a9..d2dd72f2e924 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -95,6 +95,10 @@ properties: - required: [port@6] - required: [port@7] =20 +patternProperties: + '^port[0-3]-poc-supply$': + description: Regulator providing Power over Coax for GMSL ports + required: - compatible - reg --=20 2.53.0 From nobody Tue Sep 29 13:20:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DC5647A898; Fri, 7 Aug 2026 13:02:53 +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=1786107773; cv=none; b=LPBbhGk9Wl5Tk8Mtv+3KURzKcrYFb5A0ukO0n4C9CGsqIpAk95kEwwL+YhdzL+KJ8y5DNxgaMWPnRSNtgj3c6d4ThneFVXZTT8k2J7dBVLn6YD9gard5k4MxUhLTImSKxeISo98+l3daI/3GroKVPPnK5vTXw0z80IVB5wrwRTg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786107773; c=relaxed/simple; bh=IVMjQPi6cuXsnNOAOBqZV5+FmGTZcU/k97taVGCOIoE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ivTJJng+ygxEcfpkBFZL4mKtTBWq2AdFFrDbQzgFso/ZuNIcoXQbHrFhTKA1zzIzd5bVLNpRuDWtQmm9iM0Yg8Qsm5aDBp32KGlCNBr5GAZbcxAvkBRhohmuJNf5ORxaSRReoUTyx9l9qGCH9p4gjwzUXTBFaWgsfX3o06rzWpQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p4Y+07mn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p4Y+07mn" Received: by smtp.kernel.org (Postfix) with ESMTPS id 8C92EC2BCFD; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1786107767; bh=IVMjQPi6cuXsnNOAOBqZV5+FmGTZcU/k97taVGCOIoE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=p4Y+07mnaPcam+A0MRkuQzkMJZUVAYJedn2td1Fjoq3siK7kMWukOmkQ4VZOQ1SpO MS1tWbTKMDnxSFAOloZOlNTidk006aCZDeKwJGTfhkDeNCKas0TjRGlqR/uteOC65f 27ttpcWKqrO2Ngj6gfizH4JepXv8l8vDgDs8pFhWIwAVK8ieM2vwqgiyZ90hpbRGKu 9j7iqpmwCAiwX8ZFjUgM/OfvBEGryDu/pY615CH3Ix367b80cWtrJQTjPx/hMud9U/ DFWZy8g+Wx3fzP3ZkWd6zqzMOX05WGg4HHltF3JgvJKMmRvJ1sDX9eT53q40LmUh8X 5JItn0jti6mNQ== 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 76D92C2A09B; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Fri, 07 Aug 2026 16:02:44 +0300 Subject: [PATCH v15 09/22] dt-bindings: media: i2c: max96712: add support for MAX96724F/R Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260807-gmsl2-3_serdes-v15-9-7212e9e5156a@analog.com> References: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> In-Reply-To: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786107763; l=1289; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=ZSTakNbBz4Qus1NiPPbe76vFnVEQ3NLtF7fl+Vgxvf8=; b=aZZm+PxMebLMu7W+WKk14pgIvGlQ60Fe2nJL4WYEazhz1evT4CdeCeCXtdIpR0uaK3UpJ243D y3/xh5zDIceA48ZblwhMt+uhkLhHLmDvsFZwnrRAYVdHdajeQgGfrsX X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav MAX96724F/MAX96724R are a lower capability variant of the MAX96724 which only support a fixed rate of 3Gbps in the forward direction. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) Reviewed-by: Niklas S=C3=B6derlund Tested-by: Tomi Valkeinen --- Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index d2dd72f2e924..161d40acdd28 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -23,12 +23,17 @@ description: | MAX96712 can be paired with first-generation 3.12Gbps or 1.5Gbps GMSL1 serializers or operate up to 3.12Gbps with GMSL2 serializers in GMSL1 mo= de. =20 + MAX96724F and MAX96724R only support a fixed rate of 3Gbps in the forward + direction. + properties: compatible: items: - enum: - maxim,max96712 - maxim,max96724 + - maxim,max96724f + - maxim,max96724r =20 reg: description: I2C device address --=20 2.53.0 From nobody Tue Sep 29 13:20:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BFB947AF5D; Fri, 7 Aug 2026 13:02:53 +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=1786107773; cv=none; b=GQ1d0kOqe1Vn+WpOOBangealtA5zdwSx6Qlk4CtL1bl2vEhI6NqdY1Sb1hLTAT/hXKiKQSoA7P+gH0GVW7bZyFryVkPrwxMK4GHtubheM0V0zLaAqgHKXlNp0ky+q5WwhrhQOcJ7M+Xjh5/qCbqv95DO2JtWKipsC0X34zzy464= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786107773; c=relaxed/simple; bh=Dtu/uLQC/VBH/ebsINFo2Ugv0zQarsUez6ULS9EDjKI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bBKphoT0PLwCnyLKSpBae8KWddgMEQ/i3A1pFjHjLZTXqU4wwKZrTXsUMoSJOki3WIAkHHnFxyAe0+3yowV0IInddOCnamKXC8z9ETmz7xjF90dcUAackTqPVAjJpkRWMqUzpKGNLVYdhNFBq/NlKHnxKC0KvJQ04BeAYBNeRpQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=POnfQTMe; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="POnfQTMe" Received: by smtp.kernel.org (Postfix) with ESMTPS id A1E2DC2BD04; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1786107767; bh=Dtu/uLQC/VBH/ebsINFo2Ugv0zQarsUez6ULS9EDjKI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=POnfQTMeN1c0T/o8tRTrc5JpzjVVUftPWZvvU/j+exf3DFMDEfn+ZCZ3mzJwKSgyx u5pZ+ldfe6GHlXO6EX5aHg6PHxnmZ85dBwGB/K02Hu1A/tfz160tYFxQM2Ur4BfY9S U+WRQzSPb89Xc7G/Rtow9a3RPXfe+K7tRSaoUc3o/mxy2TC9ilRq3z7nQyhK3uuyLt zpxSc//cbngJNMb0OQ3PCNhMzsY7kOmwRrzIUGbkVmDMTVoKaS2fTCa9TfT4EYwlDx 0GdMqMSqR79fLRVBOYc+xPt9kzCDtYVFBz5gaMM0VE8tZBTj70Oydr+/QRFXAxmO78 Axa4nEy+v82cw== 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 8F2F8C5AC7A; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Fri, 07 Aug 2026 16:02:45 +0300 Subject: [PATCH v15 10/22] dt-bindings: media: i2c: max96712: add control-channel-port property Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260807-gmsl2-3_serdes-v15-10-7212e9e5156a@analog.com> References: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> In-Reply-To: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Andrian Suciu , Vivekananda Dayananda , Dumitru Ceclan X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786107763; l=1210; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=zHQWciR44LLL2n9JRuufsEezIBfNdUsq5fR2eFezGHc=; b=7SvQD38N50GbKWM9wi6JGnKekq7wE8cymiMLGmQPlC2TOpBRcegto3tcefcOSIbY8oT7oguY0 UOICGrHo2q9BeLK1s72z6oTt/et4fdPiDaZTP/JI8wRV/hlHGe/svUF X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Dumitru Ceclan Add maxim,control-channel-port property to allow platforms choose which control-channel port MAX96724 exposes to the upstream I2C host. Suggested-by: Vivekananda Dayananda Signed-off-by: Dumitru Ceclan Acked-by: Rob Herring (Arm) Tested-by: Tomi Valkeinen --- Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml | 9 ++++++= +++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index 161d40acdd28..ab1dcd8ff8e7 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -41,6 +41,15 @@ properties: =20 enable-gpios: true =20 + maxim,control-channel-port: + description: + Selects which deserializer control-channel port is connected to the + upstream I2C segment when the device resets. 0 selects port 0, 1 sel= ects + port 1. Defaults to 0 when omitted. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + default: 0 + i2c-alias-pool: maxItems: 4 =20 --=20 2.53.0 From nobody Tue Sep 29 13:20:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEB69470EA4; Fri, 7 Aug 2026 13:02:52 +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=1786107772; cv=none; b=DiD1OrY8ACR47dzMt4osL0Z7NcH1mGv45h6ltFCIsYRDtXAPuk5GgR8Q7J69DOAcjOGQRpSbTbAm2WrKAo1v8mBJ4wg3XvvAyaWJLiXaj34gYR7eb0sfUMj0olxs70E+6Yq2aTm6jCXIcIZ41/oUipfYqhihjJRDYAi4kmmFBl4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786107772; c=relaxed/simple; bh=P5T0QdiUtUUc3yfg+4YRcekBidFP3FtN9qvlxhJwdCA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FtdJpBJCY+4OxScjbSblWIP4cmOKRbmMBC4TN69JPwqRYSVUAlX6znqzamG3gbByaoBjRqYs6raqHyqY3CW3Wibi29cnFi34mjO8roY55+IMvJ6JrzV0qPBrls+CD3W/+NG3IKOd97LhTR0sYjxn1XbefpfjtVbnI3aGk+JiGuY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hg8R/Z2y; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hg8R/Z2y" Received: by smtp.kernel.org (Postfix) with ESMTPS id BABF9C32781; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1786107767; bh=P5T0QdiUtUUc3yfg+4YRcekBidFP3FtN9qvlxhJwdCA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=hg8R/Z2y9YIbVCNMOQB1zlU5tlMRusKfOZzNXyVF7CdLMXICJer2zShtV1ouV8Jjn FtwSXA+xZ8fnB/Ma9jxOM2JSQwpUnqis8quXjBMW+1rLFb2R/ngXh7nWBAqsOxwCCr Mfw9prSBmgyvv4luDalITuo4v8YvvBjGPF93UZr7ixuB42qRpQ2hJrz6wytAGv6doS 1cPUPjSMUC2cr1OiB36XVMsIpxUoCzXZ9ZgNxyVdaliGkf2T3D4SSJnVlaYO9WAjoz 34qhCwvFh/mBmi9wTbvJ55SSeMQ3T0wzFUj4O68IeAe+LV2D3rNI2PQVLCBvMTgRSt 3P1jWa8cufxKQ== 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 A60DAC2A09B; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Fri, 07 Aug 2026 16:02:46 +0300 Subject: [PATCH v15 11/22] dt-bindings: media: i2c: max96714: add support for MAX96714R Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260807-gmsl2-3_serdes-v15-11-7212e9e5156a@analog.com> References: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> In-Reply-To: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786107763; l=1267; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=zOCbIvONkBm9sImxMI6AYdByC42n/O8SZsebFGXPD4g=; b=6Z0lXxtMdxT/cAKS5u1LuWOr348hNWQsJz7NRGtoouQWDfkNyFkKKulnkpTvmAIHdYuKebNAC C4KuezHJGOHAmXCFLJdg0BoGcEWxAlwWat72c3384GU1tyHjwyN3KYq X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav MAX96714R is a lower capability variant of the MAX96714 which only supports a fixed rate of 3Gbps in the forward direction. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) Tested-by: Tomi Valkeinen --- Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml index 3ace50e11921..ec6a91c4a51c 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml @@ -22,7 +22,9 @@ description: =20 The GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the forward direction and 187.5Mbps in the reverse direction. - MAX96714F only supports a fixed rate of 3Gbps in the forward direction. + + MAX96714F and MAX96714R only support a fixed rate of 3Gbps in the forward + direction. =20 properties: compatible: @@ -31,6 +33,7 @@ properties: - items: - enum: - maxim,max96714 + - maxim,max96714r - const: maxim,max96714f =20 reg: --=20 2.53.0 From nobody Tue Sep 29 13:20:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B703D479886; Fri, 7 Aug 2026 13:02:52 +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=1786107772; cv=none; b=CDzEQcNhCwOF9FEHR64L5NkW7+Nj/m+QEogLHtoEtCwMTUwrxet89IiLiapApnIakAQ0Ovdmh+Vo2q8KFbc4Brc73ISOwu49luJUOXsLBglJcKvjvbXRlQt6Cq2LFk1i9BTFA8uqximD+HG9xJHurZuQQovs8j5nrXGyPLMBFxs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786107772; c=relaxed/simple; bh=3kEEsCz+zknfSd5LSXeQSrz7kyk5bfwyAvcGGMRoXcM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fffGQ1J9/h3pMgDyRQtffmJXgdJdfftUC/FAaUXRo104v/9tKXrUii7tZCHtP3CEX/jYXKmLZMco73i3f/t9abfafHJOgH1naI1xTP1aLXMf6cAxB+1p0/hO4ekNHsdUlzI2yr4cN2IAu5/4myss2lrBNzB3qL940qSn8EjB38s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VcJDvQHE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VcJDvQHE" Received: by smtp.kernel.org (Postfix) with ESMTPS id D2E91C2BD05; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1786107767; bh=3kEEsCz+zknfSd5LSXeQSrz7kyk5bfwyAvcGGMRoXcM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=VcJDvQHEfOXoD6qZJqHtwn2/m8unyy9rdSIsmQMicUehROY95XajDZQFeLcousUni xcPPfVSrNGXQ5YpdXEw9Gi5GB3+5pfz3IRNUXB/49eHYw/uoaUyp32I3bNBreKLEcx vz+10t0DUfAfCFVL8D0qnHGb4+9IgQ3kLDzIKU8qe6pQgIpuqzGpI0KbFOWxRlU0Di UreIeupNi394HVNPTrkPX4zHEVYTSzLCfSZekcGDkdySu7eAXsD+7bycCgtQZkM6lw IGGetgiYXhFnPfLc4fe94LIaDcDvDY9xowPoe9I3lInqwCglMK5iAKARQNEJCtPtTU 4KTpNO1Vf/ZQg== 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 C0335C5ACAB; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Fri, 07 Aug 2026 16:02:47 +0300 Subject: [PATCH v15 12/22] dt-bindings: media: i2c: add MAX9296A, MAX96716A, MAX96792A Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260807-gmsl2-3_serdes-v15-12-7212e9e5156a@analog.com> References: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> In-Reply-To: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786107763; l=9145; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=67cOlkerGEjDRKRCh6DiYgwXZjOUIe+CB7F9fF7eNgs=; b=/P1Ads3osjPRDRgKI+xWzBQhEKLZ3VG9UUxy9gcMQyaTjj/15RDQMz00JckFPNHYb+dlFbcCo eAoHrxlvWzBALmv75onlz1B9VKRPpUqQF8DvekxfqRIVZfgHXP/lS9O X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav The MAX9296A deserializer converts single or dual serial inputs to MIPI CSI-2 outputs. The GMSL2 links operate at a fixed rate of 3Gbps or 6Gbps in the forward direction and 187.5Mbps in the reverse direction. In GMSL1 mode, each serial link can be paired with 3.12Gbps or 1.5Gbps GMSL1 serializers or operate up to 4.5Gbps with GMSL2 serializers with GMSL1 backward compatibility. The MAX9296A supports mixed GMSL2 and GMSL1 links. The serial inputs operate independently, allowing videos with different timings and resolutions to be received on each input. MAX96716A supports both tunnel and pixel mode. MAX96792A supports both tunnel and pixel mode, and has two GMSL3 links. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) Tested-by: Tomi Valkeinen --- .../bindings/media/i2c/maxim,max9296a.yaml | 242 +++++++++++++++++= ++++ MAINTAINERS | 6 + 2 files changed, 248 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml new file mode 100644 index 000000000000..de6bfcec5dc6 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml @@ -0,0 +1,242 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2024 Collabora Ltd. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/maxim,max9296a.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX9296A GMSL2 to CSI-2 Deserializer + +maintainers: + - Cosmin Tanislav + +description: > + The MAX9296A deserializer converts single or dual serial inputs to + MIPI CSI-2 outputs. The GMSL2 links operate at a fixed rate of 3Gbps + or 6Gbps in the forward direction and 187.5Mbps in the reverse + direction. In GMSL1 mode, each serial link can be paired with 3.12Gbps + or 1.5Gbps GMSL1 serializers or operate up to 4.5Gbps with GMSL2 + serializers with GMSL1 backward compatibility. The MAX9296A supports + mixed GMSL2 and GMSL1 links. The serial inputs operate independently, + allowing videos with different timings and resolutions to be received + on each input. + + MAX96716A supports both tunnel and pixel mode. + + MAX96792A supports both tunnel and pixel mode, and has two GMSL3 links. + +properties: + compatible: + enum: + - maxim,max9296a + - maxim,max96716a + - maxim,max96792a + + reg: + maxItems: 1 + + powerdown-gpios: + maxItems: 1 + description: Specifier for the GPIO connected to the PWDNB pin. + + port0-poc-supply: + description: Regulator providing Power over Coax for GMSL port 0 + + port1-poc-supply: + description: Regulator providing Power over Coax for GMSL port 1 + + i2c-alias-pool: + maxItems: 2 + + i2c-atr: + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + '^i2c@[0-1]$': + $ref: /schemas/i2c/i2c-controller.yaml# + unevaluatedProperties: false + properties: + reg: + items: + minimum: 0 + maximum: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + patternProperties: + '^port@[0-1]$': + $ref: /schemas/graph.yaml#/properties/port + description: GMSL Input ports 0-1 + + '^port@[2-3]$': + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: CSI-2 Output ports 0-1 + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 4 + + lane-polarities: + minItems: 2 + maxItems: 5 + + link-frequencies: + maxItems: 1 + + required: + - data-lanes + + anyOf: + - required: + - port@2 + - required: + - port@3 + +required: + - compatible + - reg + - ports + +additionalProperties: false + +allOf: + - $ref: /schemas/i2c/i2c-atr.yaml# + +dependentRequired: + i2c-atr: [i2c-alias-pool] + i2c-alias-pool: [i2c-atr] + +examples: + - | + #include + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + deserializer@28 { + compatible =3D "maxim,max9296a"; + reg =3D <0x28>; + powerdown-gpios =3D <&main_gpio0 37 GPIO_ACTIVE_LOW>; + + i2c-alias-pool =3D <0x40 0x41>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + des_gmsl_in_0: endpoint { + remote-endpoint =3D <&ser_0_gmsl_out>; + }; + }; + + port@1 { + reg =3D <1>; + des_gmsl_in_1: endpoint { + remote-endpoint =3D <&ser_1_gmsl_out>; + }; + }; + + port@2 { + reg =3D <2>; + des_csi_out: endpoint { + data-lanes =3D <1 2 3 4>; + link-frequencies =3D /bits/ 64 <400000000>; + remote-endpoint =3D <&csi_in>; + }; + }; + }; + + i2c-atr { + #address-cells =3D <1>; + #size-cells =3D <0>; + + i2c@0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0>; + + serializer@40 { + compatible =3D "maxim,max96717", "maxim,max96717f"; + reg =3D <0x40>; + gpio-controller; + #gpio-cells =3D <2>; + #clock-cells =3D <0>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + ser_0_csi_in: endpoint { + data-lanes =3D <1 2>; + remote-endpoint =3D <&sensor_0_out>; + }; + }; + + port@1 { + reg =3D <1>; + ser_0_gmsl_out: endpoint { + remote-endpoint =3D <&des_gmsl_in_0>; + }; + }; + }; + }; + }; + + i2c@1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <1>; + + serializer@40 { + compatible =3D "maxim,max96717", "maxim,max96717f"; + reg =3D <0x40>; + gpio-controller; + #gpio-cells =3D <2>; + #clock-cells =3D <0>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + ser_1_csi_in: endpoint { + data-lanes =3D <1 2>; + remote-endpoint =3D <&sensor_1_out>; + }; + }; + + port@1 { + reg =3D <1>; + ser_1_gmsl_out: endpoint { + remote-endpoint =3D <&des_gmsl_in_1>; + }; + }; + }; + }; + }; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 03febbc91a06..80f92b73cc39 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16014,6 +16014,12 @@ S: Maintained F: Documentation/devicetree/bindings/iio/proximity/maxbotix,mb1232.yaml F: drivers/iio/proximity/mb1232.c =20 +MAXIM GMSL2/3 SERIALIZERS AND DESERIALIZERS +M: Cosmin Tanislav +L: linux-media@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml + MAXIM MAX11205 DRIVER M: Ramona Bolboaca L: linux-iio@vger.kernel.org --=20 2.53.0 From nobody Tue Sep 29 13:20:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 924E83C1D7B; Fri, 7 Aug 2026 13:02:52 +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=1786107772; cv=none; b=psnb+vG5xHj4D6a3DYCUWO61aQLr+U5catNX0E7BLgDIZ1C2OoLNPhpubCOd/cFAs9be2r0G8KQxNLCN1saZihejDkTyJb1IuB7FJd3NhCKEP4JOLZDOalk8kPYxRF5D14RxnSKMCVd3blt1w6V9TGeOWwmRH6F4dNwPLyZajUY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786107772; c=relaxed/simple; bh=lHo2/ZUMj4sYGHqd8b1Ca0NSi/GORtjGV5/LGUc4nJM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CXphL4GJJlOgUL1Ur6u0Z/WpfzCLhfzvZhM2ZIyln+edoPQ2rmhOdlAGsFvlDybWP+rdg6EOdMAkNmGFTITVl0iJecYQ1V26Gxn2myzwFq/ajupj3Q5VA+g609/6rRHv/AYG9ZbZO3bv9DECliatiFkYF1xfHhi92yf3ziduCME= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aSmrqCJn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aSmrqCJn" Received: by smtp.kernel.org (Postfix) with ESMTPS id EB94BC2BCFF; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1786107768; bh=lHo2/ZUMj4sYGHqd8b1Ca0NSi/GORtjGV5/LGUc4nJM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=aSmrqCJnY4p0WFF0ysepHOWXwInRaBZK7rkM0nwr3jIi18abhCkGHVNG6os1FLJ19 f6r6+EwaCOP/wGJHRC+IPz64aN/MJuGTl37Sm52jKbTqPPIsTQdk2nev5ItTCaVap0 771OzPe1fHrDquJuLO7eWl5ut5UkVsHelLQgnNk6fKS649T6X2YXG2q2PF/NZ2acjh n2bfi1GqkpzAuP0rO8z0lUBdpueJNq4UZUutBDvA/32c1IeoYpAZAylv/oNamJro0P m6X1mlNGXG7OfPleBzlRw2c0hflvG69HxdBhVTcdJsin7KoUFnTFZmDycYQI5qYTL4 Xx4nggQG/qiew== 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 D8B20C5AC9F; Fri, 7 Aug 2026 13:02:47 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Fri, 07 Aug 2026 16:02:48 +0300 Subject: [PATCH v15 13/22] media: i2c: add Maxim GMSL2/3 serializer and deserializer framework Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260807-gmsl2-3_serdes-v15-13-7212e9e5156a@analog.com> References: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> In-Reply-To: <20260807-gmsl2-3_serdes-v15-0-7212e9e5156a@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Andrian Suciu , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786107763; l=19468; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=ou2cboCK7HaD+y4+yymDX4KSZXP4zUwb+jWrYDc45H4=; b=x+QNIPKFr9ECNnR/Juf+txfiIW6aBVfdzH1K+qVnMMxapETPKz1huCy12xK4Uo0VcczS1JpKL URGbM0zoB8lA4GnCzKnfeqKL8dfj6+hSvYPFAKnGscPCcqAz5aHRErE X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav These drivers are meant to be used as a common framework for Maxim GMSL2/3 serializers and deserializers. This framework enables support for the following new features across all the chips: * Full Streams API support * .get_frame_desc() * .get_mbus_config() * I2C ATR * automatic GMSL link version negotiation * automatic stream id selection * automatic VC remapping * automatic pixel mode / tunnel mode selection * automatic double mode selection / data padding * logging of internal state and chip status registers via .log_status() * PHY modes * serializer pinctrl * TPG Signed-off-by: Cosmin Tanislav Tested-by: Tomi Valkeinen --- MAINTAINERS | 1 + drivers/media/i2c/Kconfig | 2 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/maxim-serdes/Kconfig | 17 ++ drivers/media/i2c/maxim-serdes/Makefile | 3 + drivers/media/i2c/maxim-serdes/max_serdes.c | 413 ++++++++++++++++++++++++= ++++ drivers/media/i2c/maxim-serdes/max_serdes.h | 181 ++++++++++++ 7 files changed, 618 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 80f92b73cc39..b8c2e60de666 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16019,6 +16019,7 @@ M: Cosmin Tanislav L: linux-media@vger.kernel.org S: Maintained F: Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml +F: drivers/media/i2c/maxim-serdes/ =20 MAXIM MAX11205 DRIVER M: Ramona Bolboaca diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig index 5c52007f9cbe..d4c49c834ec4 100644 --- a/drivers/media/i2c/Kconfig +++ b/drivers/media/i2c/Kconfig @@ -1811,6 +1811,8 @@ config VIDEO_MAX96717 To compile this driver as a module, choose M here: the module will be called max96717. =20 +source "drivers/media/i2c/maxim-serdes/Kconfig" + endmenu =20 endif # VIDEO_DEV diff --git a/drivers/media/i2c/Makefile b/drivers/media/i2c/Makefile index d04bd5724552..9d5c2bfc4f4c 100644 --- a/drivers/media/i2c/Makefile +++ b/drivers/media/i2c/Makefile @@ -74,6 +74,7 @@ obj-$(CONFIG_VIDEO_MAX9271_LIB) +=3D max9271.o obj-$(CONFIG_VIDEO_MAX9286) +=3D max9286.o obj-$(CONFIG_VIDEO_MAX96714) +=3D max96714.o obj-$(CONFIG_VIDEO_MAX96717) +=3D max96717.o +obj-$(CONFIG_VIDEO_MAXIM_SERDES) +=3D maxim-serdes/ obj-$(CONFIG_VIDEO_ML86V7667) +=3D ml86v7667.o obj-$(CONFIG_VIDEO_MSP3400) +=3D msp3400.o obj-$(CONFIG_VIDEO_MT9M001) +=3D mt9m001.o diff --git a/drivers/media/i2c/maxim-serdes/Kconfig b/drivers/media/i2c/max= im-serdes/Kconfig new file mode 100644 index 000000000000..f5a4ca80a263 --- /dev/null +++ b/drivers/media/i2c/maxim-serdes/Kconfig @@ -0,0 +1,17 @@ +# SPDX-License-Identifier: GPL-2.0 + +config VIDEO_MAXIM_SERDES + tristate "Maxim GMSL2/3 Serializer and Deserializer support" + depends on VIDEO_DEV + depends on I2C + select I2C_ATR + select I2C_MUX + select MEDIA_CONTROLLER + select V4L2_FWNODE + select VIDEO_V4L2_SUBDEV_API + help + This driver supports the Maxim GMSL2/3 common Serializer and + Deserializer framework. + + To compile this driver as a module, choose M here: the module + will be called max_serdes. diff --git a/drivers/media/i2c/maxim-serdes/Makefile b/drivers/media/i2c/ma= xim-serdes/Makefile new file mode 100644 index 000000000000..630fbb486bab --- /dev/null +++ b/drivers/media/i2c/maxim-serdes/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 +max-serdes-objs :=3D max_serdes.o +obj-$(CONFIG_VIDEO_MAXIM_SERDES) +=3D max-serdes.o diff --git a/drivers/media/i2c/maxim-serdes/max_serdes.c b/drivers/media/i2= c/maxim-serdes/max_serdes.c new file mode 100644 index 000000000000..7d013c4739d1 --- /dev/null +++ b/drivers/media/i2c/maxim-serdes/max_serdes.c @@ -0,0 +1,413 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2025 Analog Devices Inc. + */ + +#include +#include +#include +#include + +#include + +#include