From patchwork Sun Aug 18 17:30:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13767543 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4BD53C5320E for ; Sun, 18 Aug 2024 17:30:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 90DE610E034; Sun, 18 Aug 2024 17:30:10 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="K0yVESln"; dkim-atps=neutral Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by gabe.freedesktop.org (Postfix) with ESMTPS id 53F2F10E034 for ; Sun, 18 Aug 2024 17:30:09 +0000 (UTC) Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-42803bbf842so38785795e9.1 for ; Sun, 18 Aug 2024 10:30:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724002207; x=1724607007; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0SCaR0GRkiuZ3/606Q3dnjpJljwAy9G6Uqg06n8FjTI=; b=K0yVESlntg1DoFvql0JjBKvsPm6A/nvY6itKU7KYkKzGhwdBDxXzZxD6haBJ470yJ/ 9xVjjOtBPtvAhLvkqhn2b65iG2Pz91exmp0MSVrKYuJ6j5LKKAOjPeNn5gJgAVovyPXI hUj8FLvR/LpJzY9zQqzJZkehawiKZ7YvtGCXGH6IOqP72AzwilZBK/ovPppyA5dyCdpm F9s97vK6wK606ncpyhT8yqd+kWoAvSH57bTWZf6NvCJEoTQrJq3EuG/rDWAYPed99AKw W7N+F7Xq9Pt9z1pVFbXl2tN4AWaykHvfW4Z+d6lZ8f13A5vPD2q2qnXLfLP8HQUP2hJq 3p1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724002207; x=1724607007; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0SCaR0GRkiuZ3/606Q3dnjpJljwAy9G6Uqg06n8FjTI=; b=gGUhDlVLcXrdeYN3pC8JBTt0IAvwKnu/Y0mHRokR3DC4slJRMeyYgOsUcn1Ebd4GEb j78k4AQgZoz5zpxOLbHxtgPJPHzbn/3Z/EICPIregAIMaSey+WGgvvl7tcv1YTvncYMD sDA2/t0aHrV2JahASlG1LWPKdzZ8qPJsjD6187o+ZIkGAY38IDFeANiDJMMzHN8jNw8I wzGanuKJmr8MBHUQo7+zFXPorfr1GaUMafPvKz4gXrQWTqhcLLSVjhrkfIVU51PW42HR tTxiNTFVT2klPONMo8cBUzCjEwDy+zol6beBjke4Ikkn+3KZz78vfWLzs6oMAXDD3vZr cWEA== X-Forwarded-Encrypted: i=1; AJvYcCV7aNOS+oiF2lWHVO6IZQU5NPK/+erYjBsFYI6CfoWINsY5HlOmre7Ws9B/hsVDU62RPz2lilF99QWvSEk8uYeKrdZ7G/8kpnA+7/yS4wV7 X-Gm-Message-State: AOJu0Yyj+fhX1KIRpD2GQ2BpxVUG4uWhn6nEBR84nzKuzYy+iAyYj3zM s9XKH1ZbSIxKc1bBgXcdjjqvJktn7BZ43MpcpuPzKPtE7T1jnvkN0e4OeWrJzQM= X-Google-Smtp-Source: AGHT+IFWjUiXv+XY641Ss+KqGOnh9S6DjOSW5fs9xPdNg3xhxyfOeVQlO4q1nl00fAyX1GYXCteCkw== X-Received: by 2002:a05:600c:3b26:b0:426:6f87:65fc with SMTP id 5b1f17b1804b1-429ed7b6a3dmr70242785e9.17.1724002207227; Sun, 18 Aug 2024 10:30:07 -0700 (PDT) Received: from krzk-bin.. ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429ded19839sm138973805e9.6.2024.08.18.10.30.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2024 10:30:06 -0700 (PDT) From: Krzysztof Kozlowski To: Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] dt-bindings: display: renesas, du: narrow interrupts and resets per variants Date: Sun, 18 Aug 2024 19:30:02 +0200 Message-ID: <20240818173003.122025-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Each variable-length property like interrupts or resets must have fixed constraints on number of items for given variant in binding. The clauses in "if:then:" block should define both limits: upper and lower. Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley --- .../bindings/display/renesas,du.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Documentation/devicetree/bindings/display/renesas,du.yaml b/Documentation/devicetree/bindings/display/renesas,du.yaml index c5b9e6812bce..147842b6465a 100644 --- a/Documentation/devicetree/bindings/display/renesas,du.yaml +++ b/Documentation/devicetree/bindings/display/renesas,du.yaml @@ -173,6 +173,7 @@ allOf: - pattern: '^dclkin\.[01]$' interrupts: + minItems: 2 maxItems: 2 resets: @@ -228,6 +229,7 @@ allOf: - pattern: '^dclkin\.[01]$' interrupts: + minItems: 2 maxItems: 2 resets: @@ -281,6 +283,7 @@ allOf: - pattern: '^dclkin\.[01]$' interrupts: + minItems: 2 maxItems: 2 resets: @@ -335,6 +338,7 @@ allOf: - pattern: '^dclkin\.[01]$' interrupts: + minItems: 2 maxItems: 2 resets: @@ -396,6 +400,7 @@ allOf: - pattern: '^dclkin\.[012]$' interrupts: + minItems: 3 maxItems: 3 resets: @@ -460,9 +465,11 @@ allOf: - pattern: '^dclkin\.[0123]$' interrupts: + minItems: 4 maxItems: 4 resets: + minItems: 2 maxItems: 2 reset-names: @@ -489,9 +496,11 @@ allOf: renesas,cmms: minItems: 4 + maxItems: 4 renesas,vsps: minItems: 4 + maxItems: 4 required: - clock-names @@ -531,9 +540,11 @@ allOf: - pattern: '^dclkin\.[012]$' interrupts: + minItems: 3 maxItems: 3 resets: + minItems: 2 maxItems: 2 reset-names: @@ -558,9 +569,11 @@ allOf: renesas,cmms: minItems: 3 + maxItems: 3 renesas,vsps: minItems: 3 + maxItems: 3 required: - clock-names @@ -600,9 +613,11 @@ allOf: - pattern: '^dclkin\.[013]$' interrupts: + minItems: 3 maxItems: 3 resets: + minItems: 2 maxItems: 2 reset-names: @@ -627,9 +642,11 @@ allOf: renesas,cmms: minItems: 3 + maxItems: 3 renesas,vsps: minItems: 3 + maxItems: 3 required: - clock-names @@ -684,6 +701,7 @@ allOf: renesas,vsps: minItems: 1 + maxItems: 1 required: - clock-names @@ -719,6 +737,7 @@ allOf: - pattern: '^dclkin\.[01]$' interrupts: + minItems: 2 maxItems: 2 resets: @@ -746,9 +765,11 @@ allOf: renesas,cmms: minItems: 2 + maxItems: 2 renesas,vsps: minItems: 2 + maxItems: 2 required: - clock-names @@ -799,6 +820,7 @@ allOf: renesas,vsps: minItems: 2 + maxItems: 2 required: - clock-names From patchwork Sun Aug 18 17:30:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13767544 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7D4F5C5320E for ; Sun, 18 Aug 2024 17:30:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E3F8F10E05A; Sun, 18 Aug 2024 17:30:13 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="EZLe2fvl"; dkim-atps=neutral Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by gabe.freedesktop.org (Postfix) with ESMTPS id B50BF10E05A for ; Sun, 18 Aug 2024 17:30:10 +0000 (UTC) Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-371afae614aso835184f8f.0 for ; Sun, 18 Aug 2024 10:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724002209; x=1724607009; darn=lists.freedesktop.org; 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=bzVXqaruIBhv+u4Ahnh+PsR/HVOCMt8ptVRPRgst13E=; b=EZLe2fvljSrmsMiZwMGRyHLHbucFhy+HTY/0Nr0EX0fbj1CXjErdcldYqYv0hEUqSa lPwMF49y9huMa9sKBjVYqabqmO9EPVk/lE17yns1DjVIz/RdnwJhx4jvgSFWEbXMr9LE e5oPGmUDWkjTWAltk7UXpLaJv3e9PtcyCXE5L6zEg62rx6A0f+vH4PK3rbQZULPKfPA8 dQzttjheBIkKAx6fEmFu0YYZvn6d2epCw9DiHvTNLfEDKgSNVgxPJrAbHRPb9LL+AC9j q40R+nHJ/EvnywDCbetd9gUu3LoGKxuaCYKpXxBshBwcV+/t4c1B6ye310jitNQi8x2e HiTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724002209; x=1724607009; 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=bzVXqaruIBhv+u4Ahnh+PsR/HVOCMt8ptVRPRgst13E=; b=w23pMCPuFWVXENTiOtRqFeZmR7sMZ4Hixc1ZtPvtEx+StaFgrJSH5ibsChSZt2sBbL zFECg35PNAaN01OjaHmmPxciGdXvTOCBJaLoSMfvYd59OOg0a6jGbZziNtwotAcnPnK8 1kgkLAOJQonejDVVtmUn2eFaAKbtfxL4O5Eje2OZ7DdKaYhyhf7u8t3u8tpFIMfcJtSx H8FyyCi0xYo2iCJqh4YBJXiTIjmOhKfELKHLDQA/DFa4RFNX5i6M26KELnPeGZM68TFM DxWbUprVakUnEkyZFxCo/03/MS8erdwrfXz7cLh6DSNvBRLVTSBvUhRT3xErJlz586T2 VMyg== X-Forwarded-Encrypted: i=1; AJvYcCVoqQANLWXnAXoJA0qH9FNHd2R7dQ7t5msg883HGR2sz83agL3W8AfkqKT3R2ecOzrjCT/gnoP0nSdeQzQ5I+qRIU/MXBChcNYcYZa5P11E X-Gm-Message-State: AOJu0YyMgocWM4p0SR39JmODxnWG9Yj2KKOrxrJjwo9H+fmX0Elx3sU/ WucsUoDk4EBl4TDCLWEq1xtk36mn68nFa/UqjmJc98PRV5owf6ppIsLfOhW6h/k= X-Google-Smtp-Source: AGHT+IGy7uAdpT03IoTiHZdekgN7fKpPoq4+ZutDJaQOeuK+lQ2OB3OCj0nEBWkOrVAoBuCSlVRxXA== X-Received: by 2002:adf:e907:0:b0:367:2945:4093 with SMTP id ffacd0b85a97d-371946a43damr4969916f8f.40.1724002208973; Sun, 18 Aug 2024 10:30:08 -0700 (PDT) Received: from krzk-bin.. ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429ded19839sm138973805e9.6.2024.08.18.10.30.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2024 10:30:08 -0700 (PDT) From: Krzysztof Kozlowski To: Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/2] dt-bindings: display: renesas, du: add top-level constraints Date: Sun, 18 Aug 2024 19:30:03 +0200 Message-ID: <20240818173003.122025-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240818173003.122025-1-krzysztof.kozlowski@linaro.org> References: <20240818173003.122025-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks, clock-names, interrupts, resets, reset-names, renesas,cmms and renesas,vsps. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Laurent Pinchart Acked-by: Conor Dooley --- .../bindings/display/renesas,du.yaml | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/display/renesas,du.yaml b/Documentation/devicetree/bindings/display/renesas,du.yaml index 147842b6465a..9a2d1c08cb1f 100644 --- a/Documentation/devicetree/bindings/display/renesas,du.yaml +++ b/Documentation/devicetree/bindings/display/renesas,du.yaml @@ -46,12 +46,26 @@ properties: maxItems: 1 # See compatible-specific constraints below. - clocks: true - clock-names: true + clocks: + minItems: 1 + maxItems: 8 + + clock-names: + minItems: 1 + maxItems: 8 + interrupts: + minItems: 1 + maxItems: 4 description: Interrupt specifiers, one per DU channel - resets: true - reset-names: true + + resets: + minItems: 1 + maxItems: 2 + + reset-names: + minItems: 1 + maxItems: 2 power-domains: maxItems: 1 @@ -77,6 +91,8 @@ properties: renesas,cmms: $ref: /schemas/types.yaml#/definitions/phandle-array + minItems: 2 + maxItems: 4 items: maxItems: 1 description: @@ -85,6 +101,8 @@ properties: renesas,vsps: $ref: /schemas/types.yaml#/definitions/phandle-array + minItems: 1 + maxItems: 4 items: items: - description: phandle to VSP instance that serves the DU channel