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: 13767525 X-Patchwork-Delegate: kieran@bingham.xyz Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 0C4BC14831F for ; Sun, 18 Aug 2024 17:30:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002210; cv=none; b=nG99tMo53JDNJC97Zzjh1HnnZBO9KUn8yqn958MnH0YKh+Fw9Q3oSvfoRcnV37yPoB4UfG8yHvCieeKKLSkWO9xoyaedGXxm7f+yxcznNeUjRW/rm+h3NOcFdPX1N5Prvj3HgvMnjaw2iHlhZrfWi7cZ0VaAOkxsgCWDMkke1/o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002210; c=relaxed/simple; bh=7X9ZnxXyUxu/1V0lOGPXjFgoRhd+0gWb23mdc3ayJ3g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YdVgq5evV08TJONWXxt1BFUS/TmT6qn0uFu+F0NGrf4oVER5r5hdBeU0Tlm+0gbM8DqfJMJ4D3P0P2cakrja2x9ki/0kRjEbmPMWGOv16eY1U2/jX8pk5LgFGbvS0ZeLtA29R7kl6bAaroe3HwmnRUwW0y7fKRBuIqtyuJO2sDM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=hOUWBZi9; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hOUWBZi9" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-42803bbf842so38785805e9.1 for ; Sun, 18 Aug 2024 10:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724002207; x=1724607007; darn=vger.kernel.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=hOUWBZi9UgiGeemnHBM0Ju51jDjX4gtJ1+Bcq8LXM2tMhwIUTqK6CPTu6SCKrwKiMM XXRLpp2SyqYYQwdgJ0k0S7Z/LVet6caDUjxs1m1GTz+glkZyzpFJ8cj3oBafXm9XylZh esjdOxtxp2mOEF5kMQDxgviqAAkPjbDejHTLigORmCgtAWq5gtOI89KM/gEt+z+OVtKi +DJih0XrVx2MjUWK6Emax1R/RQPrLWJcJ+imwLXOmIXoPFAgbl4/85QSZ4BsFSkVeVVs hHRE2/vLxCTtjqvsxdY25RT08RdHjll17R61atn4td3Ycqxg0N4fW2EdTt7tNahZcEtu aS8Q== 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=Syzg0OuPTD8Lcpcv9mPUQ0dRV38JX/aj6ApjN/K76U9LO2ZeFXzloOpm8FK382CXp/ H3qYKX2+0IcHe0QAD08KZoHbFdUaBG7NeOOaNj40FoSy+mFoAG9OjIZnx1APUCaMp4S8 9jwqaPxYEN/TGExKoR+hWk5Hyb0pbsLhRENiyLlo83FABUe0ASSZHC0bbrEYed+I5ngt HJEs/ttwGDk+ZM6mLORkQExxSXIfPrXS3+7RYlaK93PKzh85B+mOJa84ToMzwsp/5mMG ht6JD8uzj8IwdH4U3aWUyRxUXYrl8+aeUz7PGTcTKcxIlcjAVdOBpvrVvwE/MM59KwEj A98g== X-Forwarded-Encrypted: i=1; AJvYcCUwh2u9/lAaF34r4cM5mywgdUIyyi3ZR1sMN57sANdPwCqqeBJpOhBYo1YGbfCLEJ34odxgjLqaGoTUVMn6Y3wCQNZe51BFweETUninw1bvzSY= X-Gm-Message-State: AOJu0YzT+xEbZ3glVHiEvE14s3psyj9NqQy7qmfwiBQ4gIhXA8KDTfW/ 0szT6EPNs0HKGxAJVS3dox5Mmm+TDtGWAo5sCI+GN3Se3+4W+kAZGkNHX9Y5p+I= 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 Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13767526 X-Patchwork-Delegate: kieran@bingham.xyz Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 9FF6D1494B0 for ; Sun, 18 Aug 2024 17:30:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002212; cv=none; b=bIwQkQj7BAWL2za+IP4Quxz8kgdbaelQ9tdGM1bzc3NV0sARJwZzcTfnbxLHy2+6b6Lhn5LvrX9pARebd4Ton9dS3650KQfj+ScwV5J1qkKXR+uoZs/1doWhRXpkWkiTYLNoBPSBCJY6vrt9RrSHphv9mZRTViCgIaxmYnyGWiE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002212; c=relaxed/simple; bh=ai8EcGvn1f5e3r+Qw9M6ElJt0rT1l/Pl133/TWP4dFs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=t0zJJ87dZIK+dMa4lTS7MZ0T5HOrRFDhk9jztQeN4MNlyGmipEtTRw90VHzgIzPQN+GltR7/8uFRg54jx6Qibx8SQGVGCHVTk1B/nB+o29bC5wpee5O70m9Ks4U+5dSl5hRucEr661kCPAZFVWaBz1fTL089q7gsJuBk09maL70= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=HuPbivBB; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HuPbivBB" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-3718706cf8aso2283052f8f.3 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=vger.kernel.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=HuPbivBBQL6g5oRdJe3Y/ckl54+YjmviaKo0vFW/GLlcJyA8EmqmO6COUEgXYrH9Tx LwM2sl2MUfSlbqRFFBqo2yqAnPft1CrlPcJbTZv1y1QIaVt54Y2sQ5cYkgVL93iBJDUA 1XvdMdZNbxioHauV9YjPmZ5bGuj1SYcYZx4T69sYcExJtJoHtE34Kg88YkgIW0gIUz89 hiOxO8CKhUUFEldyfMFxtCSbrAOAvTeDYz7BLE9Q5tiDJt3QKhdRJCrlR1XZ3NaRnPsF 2AHtruQuQuWFRwGwZ0YR8n7+jN2GIW+RVq6eYxMqXmha+RPQcxkkr+oMEEPgrfDd3E9N 7WSg== 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=OfZwDKUO+Z7QJldj4kwu0PnjAEAQr3uXcVTVabjwlMJQTUoK7z+v7YQsfI1Wz28GQd +iq4uwO0LLW6GJVO+d8M5FV6PBceUTqnLPGs33M0FHWuTRsSKGHAIU3SKdJMG7f+SZ5S Iixdnkuxb8zsN70VtnjPrJ85q1pdAoOaMg1ohjEayBWGb9Id88dNpaUGwcfHrk+PT/MD TUZpeX1ApmcO+QPdbcn1kOMWQEXhiMjUGxU+zEw8tRNBWj4sII/g5jgMv7lKzgUHBaqd eJS70wKnSfYpZM3xDqJ5yqGDUBr3qfwgeUBpSjL1lecSUAshhHeLZ3ra8enM5GmFELfv qvrw== X-Forwarded-Encrypted: i=1; AJvYcCU5rXvyYlxJLS20Hek+tq8wfDk0iUcldoo+oHUbHcvMMYpjjhhl3D2ID3brVO8iLcBYvdFYZuxFo2yxRbgmt3Wz76x4DJi7KPxIqfY1K9jJufE= X-Gm-Message-State: AOJu0YzuARLhY+xbxbIj8jB0LVVpRiSaVz6ihgUi7wVKNN6GrgCdCNvH JTKioCchPNsXiqIU2Mgqch6y7bsNYYL9NOj35ZWyPefnaKvmSO1iqhzdhFbfLYo= 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> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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