From nobody Thu Apr 9 05:49:09 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C67C53A7595; Wed, 11 Mar 2026 07:17:37 +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=1773213457; cv=none; b=hpxG4kmNE6qBMc+iP8zXbyIKAearfe+xFTgIMkYVFQWwQyQJoG/FT0KXiZ+05jkoywGc2FsJiz526vc9icvGcUweMIkvQH2WykjQLrB++UB49ZhRLYfJ3u4LXsMY/9L3CfXq0vUCwQvyh6gO8zb8EuCPJTVE0C0Q0/EgP/ttB8s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773213457; c=relaxed/simple; bh=IQBwMweUNw6Rt0TiIjy8p83MEuUtBZbfZ7258tl1oDQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YhG+rOJrXNgTn8p7YmiX+bOT9Vi8DN8zKoIJaqOQ8kulzmIuTBOg8vshBQyeiHD2fGVeX1N+ASPxIXf3ruslx+ynK/PiXo74cpk7aBi52U+2BN4I2x65aoYzMBTSuT7B82nX+sczjmp34Z4imQr3lHJs7JPeY0CFwdVzcMZTX1o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=e/34d9fw; 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="e/34d9fw" Received: by smtp.kernel.org (Postfix) with ESMTPS id 557C8C2BCB1; Wed, 11 Mar 2026 07:17:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773213457; bh=IQBwMweUNw6Rt0TiIjy8p83MEuUtBZbfZ7258tl1oDQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=e/34d9fwMPa5fjE2BgL5PhN43O3HIizQ/914BzILruuBnfFoHr6/Tr3b7uG4Ga1Ad phrQG28z9aiMdg7B9ZL3ybh+GPUUQ02rNMSznnOoprUJ77bVQb/K/fl053ZTmpIY1U qaRZGHnxUjm+nkMq9ELn8aaNepc/65RFpqs/+T65QHbdTap/M9t/N8hXEfUvJIsKxi u2y88roYvvGoJfbToeNIyIlqve+BQN65QB3t9a2LBpCywjY0b1T7E79qsXZSqpS8ge xVD3XIFBfmTxaIbF4PedalvIz34YBatAd9Ek2Kp9Dwj4c91tZrUeoaRhp01r6+fqSL TTVKDfbzVxUmg== 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 4BC69FD0640; Wed, 11 Mar 2026 07:17:37 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Wed, 11 Mar 2026 09:17:18 +0200 Subject: [PATCH v9 06/21] 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: <20260311-gmsl2-3_serdes-v9-6-41499f09004f@analog.com> References: <20260311-gmsl2-3_serdes-v9-0-41499f09004f@analog.com> In-Reply-To: <20260311-gmsl2-3_serdes-v9-0-41499f09004f@analog.com> To: Tomi Valkeinen , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Julien Massot , Rob Herring , =?utf-8?q?Niklas_S=C3=B6derlund?= , Greg Kroah-Hartman , Cosmin Tanislav Cc: mitrutzceclan@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Martin Hecht , Cosmin Tanislav X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773213453; l=2057; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=jS3B9xKEhVOSCEaka8S3gGwbqQ79uBc4o5geNrA6dpY=; b=wbCzCp+tOueXukmMAfH+UppWjJVXgkkWuX4OSXdJv6lS5R3S+6gWeJNsmVF4qUrT9M9Yjh/m9 7w1EE1maVQvDpKaEnu99nFa/Q/+KvjJoOlrMpSQe53tsJ9OePYB7n9B X-Developer-Key: i=dumitru.ceclan@analog.com; a=ed25519; pk=HdqMlVyrcazwoiai7oN6ghU+Bj1pusGUFRl30jhS7Bo= X-Endpoint-Received: by B4 Relay for dumitru.ceclan@analog.com/20240313 with auth_id=140 X-Original-From: Dumitru Ceclan Reply-To: dumitru.ceclan@analog.com From: Cosmin Tanislav The MAX96712 and MAX96724 support up to 4 separate PHYs, depending on the selected PHY configuration. Use patternProperties to document this. The input ports are all the same, use patternProperties for them. Signed-off-by: Cosmin Tanislav Acked-by: Rob Herring (Arm) Reviewed-by: Niklas S=C3=B6derlund --- .../bindings/media/i2c/maxim,max96712.yaml | 29 ++++++++----------= ---- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yam= l b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index 26f85151afbd..583bbd60157c 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -39,27 +39,15 @@ properties: ports: $ref: /schemas/graph.yaml#/properties/ports =20 - properties: - port@0: + patternProperties: + '^port@[0-3]$': $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 0 + description: GMSL Input ports 0-3 =20 - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 1 - - port@2: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 2 - - port@3: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 3 - - port@4: + '^port@[4-7]$': $ref: /schemas/graph.yaml#/$defs/port-base unevaluatedProperties: false - description: CSI-2 Output + description: CSI-2 Output port 0-3 =20 properties: endpoint: @@ -77,8 +65,11 @@ properties: - data-lanes - bus-type =20 - required: - - port@4 + anyOf: + - required: [port@4] + - required: [port@5] + - required: [port@6] + - required: [port@7] =20 required: - compatible --=20 2.51.0