From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E145A29ACDA for ; Mon, 12 May 2025 21:29:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747085350; cv=none; b=YqMM0nCI30QbNvdbi857vXDv6GPuHoJAsqJbv/JVoKt8Ng/kyEmP9gOcex+QWqa0mNFqsSziUIClV5r03Igabm6NYZcjudVEE7f2sP9aFyNM/zBl0seavit5vYSAYj7JpqHOhX6P0bdC1OM+5E0cdLdPcmeCP/MC2xxm3r95tCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747085350; c=relaxed/simple; bh=WyGMjpUj8obLNMrXmKLMENsPQIYMOQWUtLABrhx5IJw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HFkn5DansOE6UlmVmNcOsudhwF1VbtySb3wLdBqDZ0QUto51PqJU0ptHu7EBZmtXq5H8rjT9xg/G+4UztF2V9a3KtysSdxszaaKLQo2Z9A6KCI4UEI1O+FelNkVKGX7hiWseRUbTZ7o4oV/GFDoioQx9uEEu5r590brOd8tAH7Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=arpguJl2; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="arpguJl2" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5fbf007ea38so8138639a12.3 for ; Mon, 12 May 2025 14:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747085347; x=1747690147; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=I23kxN5qMcMgOaWczE+uWwEzlOhWFb9/1I34ITja72Y=; b=arpguJl2C+G2HFMb2C/ewdkeH5XI5JXuqW3zvja7OoYsxZrccyG+uzMWZcsGIqdjUN s4C65pqhAlsjEepbZCNjEDR7PkRorXYQaxZJMsKbY1cB+sPvvFZMd9+moxXLR6tSxd/l CLxfGQlRLHJAgqk03qF26/y3pdhPsDDrFTmvuMFntnlm8DAzdufWmIj6isJfGraAITbI /P71jcvQztXfTg416ulQ7FXD2bccdKMShIYpdNqymcNxWkVjU6tPw5K3isjYfmYUCm/l CW/uH3GuIT5Din7bYQ/mxAI/8FYdaI1IBgHL55WfAw/R1E+0VJvYuQp7jx3a6fliZ4w0 95lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747085347; x=1747690147; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=I23kxN5qMcMgOaWczE+uWwEzlOhWFb9/1I34ITja72Y=; b=trcOvarNG8uuf9WCdXq2wts0ky5hH4JUei4vhdHg19LsyEARuf+k6vO+vmqc7zfwU2 ZcR7R7CQ0jXY6nHq6ENEBt4UkXZG/GX0pIwx5mQcu3ADIkou8GD+V74LjWTdVOg41Mvp 0pxzkxnJyoVeSwG9139LggH6aj7/tKZmqEZCVNGek5ehve/jewjSmliRtPOKnCCGCAuj yzv28EOWf8GCDCMszCxBTPkQcfYn7/VIsjzrVCdoTjLFKg1MeRMX8SPx9F90JJ9KrcxB 1yKIkBJc9uFvMofheb4z97xfYIcbj8qKTXytZQUHY9KWZ2imk9A1LFG31P15ZxWSvx83 MLhw== X-Forwarded-Encrypted: i=1; AJvYcCWMVEb2RVUZLObmYcAKGdxlorkoGRx/yF6n5euu4z9I2wpMWGSjx01QFx75Y7yUKXnXlH3sy3SCSkCT62m1@lists.linux.dev X-Gm-Message-State: AOJu0Yzp9HS3v6eABkfox4SmIN2OwlSAePRSnB30BIKeoskNZw0wNJ8T 13Dyebu9TJPhYotKMvLRrMRLxAhK9SXS/wwEwDQHgZ16T35kiGUV X-Gm-Gg: ASbGncucUzRY/OWQd3DVE85XzzmC06xfa2Wm16ovuWu7h0kmeUVffEpvFjIAIKTkd6C u6U5uczyl1mVZDmPfSVXEin7x+FtNyP3rERnHEzPAbZTwLmVoKYG2PtagAv7v+S3mStD44NfTDB FB8YMI5smiHwpnc5IGCKt/BbJvoaWzjJV4MyBYuqhWIszvUkgh9pc7z3hBOwsb2YOfcdigYHDvZ J8qwp2JZeJtcQpyQ1vt3JkxXx8ShsnbTdRxj45TVAS87/T1JUaf1aol+V3EJ7hV2oGiUaX6I3A6 emMqzTVBlgEVEiNTApfQYVqN0vRuJIjnh9+mBo+feGOu3zOam2Koh4ep6fDXgkg= X-Google-Smtp-Source: AGHT+IE42f4BLApmux3jOg1v9yOr9Bg+zkJz218wqM9qOgB/ayDgOa+VoGiZd+V7j3Z0CtpmoqMeiQ== X-Received: by 2002:a17:906:4796:b0:acb:5583:6fe4 with SMTP id a640c23a62f3a-ad218e4b962mr1475270466b.6.1747085347019; Mon, 12 May 2025 14:29:07 -0700 (PDT) Received: from demon-pc.localdomain ([188.27.128.5]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ad23a5552a6sm472861466b.30.2025.05.12.14.29.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 May 2025 14:29:06 -0700 (PDT) From: Cosmin Tanislav To: Cc: Cosmin Tanislav , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Julien Massot , Catalin Marinas , Will Deacon , Greg Kroah-Hartman , Liam Girdwood , Mark Brown , Linus Walleij , Bartosz Golaszewski , Bjorn Andersson , Geert Uytterhoeven , Dmitry Baryshkov , Vignesh Raghavendra , =?UTF-8?q?N=C3=ADcolas=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , Taniya Das , Liu Ying , Ross Burton , Elinor Montmasson , Eric Biggers , Hans Verkuil , Sakari Ailus , AngeloGioacchino Del Regno , Zhi Mao , Dongcheng Yan , Benjamin Mugnier , Kieran Bingham , Tommaso Merciai , Dan Carpenter , Ricardo Ribalda , Laurentiu Palcu , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org, Cosmin Tanislav Subject: [PATCH v3 07/19] dt-bindings: media: i2c: max96712: use pattern properties for ports Date: Tue, 13 May 2025 00:28:16 +0300 Message-ID: <20250512212832.3674722-8-demonsingur@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250512212832.3674722-1-demonsingur@gmail.com> References: <20250512212832.3674722-1-demonsingur@gmail.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- .../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 efdece2b33b9..f712d7cfc35f 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -40,27 +40,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: @@ -78,8 +66,11 @@ properties: - data-lanes - bus-type - required: - - port@4 + anyOf: + - required: [port@4] + - required: [port@5] + - required: [port@6] + - required: [port@7] required: - compatible -- 2.49.0