From nobody Thu Apr 9 05:49:11 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 A6EE839D6E1; Mon, 6 Apr 2026 20:15:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775506521; cv=none; b=FzJLVhV1pLf72n2GOovV6vEdK/URx8CfaXIXV0GrSqiEozwVl8vGCU8ie77NhaNL0xjCCRdQUz4cYKPy0Egdj8c5CHKZRrITtMiJE7qG+gX3Wy4eEzSbeIw1EZfNP1zaEen/7btlurFM9XVqAn4MKLFx9EFzGtNm1RDeUM73Hr0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775506521; c=relaxed/simple; bh=IQBwMweUNw6Rt0TiIjy8p83MEuUtBZbfZ7258tl1oDQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CndtLUpLibzTw6L5l9Y09l5WmnmmC29iKI0jcUvWnKq8eBwUGcuziFeGADl+xQY1/dmvzyaPrXeSErndsGJZ4dL0KHnJq+ANQr1AciMaOoVO6XPx60GL5jrL+1f5KCHTxorRV2W0u+HqJSlArxD3Mv9bnGDJ9hes/UiUYv0qYjU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c5Dn8HPb; 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="c5Dn8HPb" Received: by smtp.kernel.org (Postfix) with ESMTPS id 875B7C2BCB1; Mon, 6 Apr 2026 20:15:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775506521; bh=IQBwMweUNw6Rt0TiIjy8p83MEuUtBZbfZ7258tl1oDQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=c5Dn8HPbJR6i75U0y4N1Do8FclnV036KKGC6/NAUEaMdgoX0a4YxeiOGwNVYdBD4i 0oBzS+DD7C0lyy72S1seROKLQDFfKwWHexOu3lbJIL9colfXGglpbaN5XHvq0yD3N+ qX+GI7vu4+88SPV9QxbNuQGqYhtm0LzS33AAKaNDMUfWM8r8qiQ+QZBOqZuvxU+dCm SoYHaB2qA43dLiTb/eCdVKlOvAJrcBFZuivVMltS14T+vrxSpTRUreKFAonrytgukj zSunhJBaSNRiFgmPAlohE6KF/8/7p9kk6ZFQdknahFpr9fHX3HQxYLaeg3KR4cvRS4 YWw3mGUApRf1g== 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 7B473F46C7C; Mon, 6 Apr 2026 20:15:21 +0000 (UTC) From: Dumitru Ceclan via B4 Relay Date: Mon, 06 Apr 2026 23:14:45 +0300 Subject: [PATCH v10 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: <20260406-gmsl2-3_serdes-v10-6-645560fedca5@analog.com> References: <20260406-gmsl2-3_serdes-v10-0-645560fedca5@analog.com> In-Reply-To: <20260406-gmsl2-3_serdes-v10-0-645560fedca5@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=1775506518; l=2057; i=dumitru.ceclan@analog.com; s=20240313; h=from:subject:message-id; bh=jS3B9xKEhVOSCEaka8S3gGwbqQ79uBc4o5geNrA6dpY=; b=bhkun5Y+Ph3DTaCcRhX8gK937XWKDeZ0E1ZzyGLf8Ls2Q4htReucSvwI/WWOqeSsOqs+Q/DG7 7q62zOndlcvBzLcTZoEPCpRLE2e0IMcNBl1cPRlXzxz9MDpIfzLbx1g 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