From patchwork Sun Aug 18 17:29:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13767523 X-Patchwork-Delegate: kieran@bingham.xyz Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.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 96429155327 for ; Sun, 18 Aug 2024 17:29:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002184; cv=none; b=AAM/4wAdRGm4uTyI9f3ZewqLpg+Ucg1Xi4yqjLl2WElRstVxSwCbBt2YLQ8fxjvIszPEHDwF9HbRlhOc2D6wtKVDjCQYengJOvVmJ47oqzIxRn9sDbCcSVy8rBbfPO5flGH3tH0ezx+5UDTZNjwh5qDtop7HNBgs+KAsV5xA6PU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002184; c=relaxed/simple; bh=wT29u47rBZnd+eOAZ9Aao79GPKzpk7JkMgcJbiYggYU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kmVK2OTjt0EKHHlrR4BzxbA87gJQqKntzOKw4/on3jNiaBJnsJLSTX8VqcnlQ4yanfBQCApzPcA2Iue9IqCj28DvmFesEG/YuFH8QoiOGXnzE1w+qfKOK48usTBZOlTjnUdpHO0NjE+DiygpERL4bMcz1rKTuHG470yuc6XhY5Q= 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=a3Vn1B5k; arc=none smtp.client-ip=209.85.128.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="a3Vn1B5k" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-429e29933aaso26364215e9.0 for ; Sun, 18 Aug 2024 10:29:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724002181; x=1724606981; 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=CNrMs47YrzI3ntKwQJY72OBzs2W8lJO+5gbdR0uMa/w=; b=a3Vn1B5kFcBcQ+sAKvhAhk5sPKsozO4NrX0Oe4hT7iT6FtacgZFo+j7qXJXWhJJ5fb 48UBjpO9UOhFZsslJEH7zaRov+QJsBBCDKRNN+NLdmzjvRJ0zh3hctgFEwXATEfWxELE k625peSDlCXunICdo6YRFmmV1qRbV4CgQtcyjGGbrxHNUDy5G+adeW8YHhTVfk0QjkTw 2FYt4olYPB0B/alABFBcke/JmboXB9f/k8P/iytiGi1ngtOOBgbdqeX6JrgLeT5alBgI jvwPmJleiKwb4m/r/YDrcvYRsFH0CfWcO4JuMte+J7eezDMAHyPwfqdEAeTzewtYrqik db1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724002181; x=1724606981; 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=CNrMs47YrzI3ntKwQJY72OBzs2W8lJO+5gbdR0uMa/w=; b=se/VXakZc8KbaYakW48TB0rhKJXZ/J2vNyinGRn4dCJpPt2jcCrkjLVpgJi5tyI4+i F1ydbYaG+WwS6rg8BY/eVwHUElM+6De7A+bHoOScMRtGdlR8Ut1wq+ZW8Q/V1o2spYV0 VxYmHcooru6jQqe0MWf9QB8ElTC2tDpasbWyXSr3cMAtDnZoTWuB4QgGxRINBylGk+C1 FTrZym6DSB/rUiTlF2RplQO80GYUl+C7eSZC3TjOJfNurXaUuhdmQEdRFib3M7I7kDv2 UNMKiaZO+oSfyMOEGKck9kR1mxGYgW7a4dagmyxaD8VXpFVRSJf1/JVaYCFigJNI7Y0g 7jdA== X-Forwarded-Encrypted: i=1; AJvYcCXI2RnwJ/FaShpk+2vvqjepunbqhFkH4cqVocHTasdVN+sOsSncZA0RAZrJ+5LpYTgIDkFOyeNtzyr5oc13zp0fq6zK4Ebxdey/m9IBO91dXXQ= X-Gm-Message-State: AOJu0Yyb5CfAMo9CL3lzBSq/9M09PW3uhGGQlJi3SUNWgmXkpSYcpLSY 9PPzHDOjBEdqYWujxYLY7OeiiTrwryvysoqlOKwny7BdzW/Nj5LIvXpQ7ogh8Zo= X-Google-Smtp-Source: AGHT+IGBJHL8YbRiNo+ZgCJ648ppfSDsnBUQwSpImZZjJsv5pvWD5d7o1z0TnG79wP1JL/Is5EaO9A== X-Received: by 2002:a05:600c:1c24:b0:426:654e:16da with SMTP id 5b1f17b1804b1-429ed61fe76mr67118675e9.0.1724002181011; Sun, 18 Aug 2024 10:29:41 -0700 (PDT) Received: from krzk-bin.. ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429ded2931asm133974385e9.17.2024.08.18.10.29.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2024 10:29:40 -0700 (PDT) From: Krzysztof Kozlowski To: Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kieran Bingham , Geert Uytterhoeven , Magnus Damm , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] media: dt-bindings: renesas,fcp: add top-level constraints Date: Sun, 18 Aug 2024 19:29:36 +0200 Message-ID: <20240818172937.121928-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 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 and clock-names. Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley --- .../devicetree/bindings/media/renesas,fcp.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/media/renesas,fcp.yaml b/Documentation/devicetree/bindings/media/renesas,fcp.yaml index c6abe719881b..68c088821b22 100644 --- a/Documentation/devicetree/bindings/media/renesas,fcp.yaml +++ b/Documentation/devicetree/bindings/media/renesas,fcp.yaml @@ -34,9 +34,15 @@ properties: reg: maxItems: 1 - clocks: true + clocks: + minItems: 1 + maxItems: 3 - clock-names: true + clock-names: + items: + - const: aclk + - const: pclk + - const: vclk iommus: maxItems: 1 @@ -71,11 +77,6 @@ allOf: - description: Main clock - description: Register access clock - description: Video clock - clock-names: - items: - - const: aclk - - const: pclk - - const: vclk required: - clock-names else: From patchwork Sun Aug 18 17:29:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13767524 X-Patchwork-Delegate: kieran@bingham.xyz Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 41C73158D8F for ; Sun, 18 Aug 2024 17:29:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002186; cv=none; b=Zw8AwoWENCNlz0qQZ408iHjQCXimIAAUBAEPjWWTA/Wx2PP99fNuPKiZqCEzzYRJMhRqhXTYZJgNYKqGjn+8yOpcp9QA+d4vRlrTeFwysF5fGDzu0pBPFQm+uYSxRDGfQXfzR2Qgsimow02ZgV+B2MrjGX1IweDiX1FFxyd98pc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724002186; c=relaxed/simple; bh=QNM8XrDoLyxO8QrplQys76QoUHuBhx5cFyImCS2xftE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Amr4OpGE/iFNJOf0qnuHifv4GXHH4dH2A+SPY26SQ76wNq90uaIE7q+gFQGDgCi5ndw0UGCM749rDJ2SIN18TfWThHV/RDRg0sjl1n77iJXtTkW0cWCW2k/xqJRJo+Ez+uSWnUohN6Kr1zktuTClugQAsJhCF0LwGy8RWN1FZrs= 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=j5sXNqW3; arc=none smtp.client-ip=209.85.128.53 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="j5sXNqW3" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4280bca3960so31042095e9.3 for ; Sun, 18 Aug 2024 10:29:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724002182; x=1724606982; 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=o+LvAPeMNmcVxWf/O9PUXhk3hF91siyLCuBckMkIHMM=; b=j5sXNqW3+ifeujsmUNrqKZ0gabZIjYaBhP1c0mpzEB/GNPlPDhdkMgeafEcIIMMLBI qjqPae072Ag2tWuDsiTHxuxCbZuJUcL4K5SwnCnGa1TfsuuAlECEuuKqUZQwatLve3/4 JR4+3OmQovMmQkyflK03hy5hDD6XycRadhFqsHEWss8OGs9x4fzRFiPrMsefrqPk69e5 cJajfl5GtVMxJvFyipfs5rorZ8kMCtc/0qrEzlkeJM/atXEp8RqkZOdWBEiWsA8C+qEA 7Oya6IU+RIvYh3XFqUKFXGrWB5BBzbWV3FXKdAyIiSme25vXxCUgm9ksXPO774dGQw5R TWeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724002182; x=1724606982; 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=o+LvAPeMNmcVxWf/O9PUXhk3hF91siyLCuBckMkIHMM=; b=wWCiyxrpMLUxE9Uz7AmihHOTK6nbu9BXz7duaF93qmSk6SF07VOZiq6230WTKVlgFd KKWpxIzxwIhqH0gUivcrodpi7iYhl/bsliRKvFnS5xQOnjLv7PO8gbum4Zq48qVLqQx6 aR5au12RThC65yAEIWN/RiG54+Qqx0cQqelEQZDaFJo3nyq/9umatQAeptbXA8/+/4Di tf/dciDxG0Oqi+yNZFvTlrlAH0+QAAeO2i9IzORvTTpnMAeIuKX+uwHCmvoASE+qMLH+ 3EBj+aBDGZEocAHquK9SlZyBx9zIU+SX8bGNNs/7Yt/Vlh8q4bM3ZiuSxmEojqyVMBB1 gWog== X-Forwarded-Encrypted: i=1; AJvYcCVoBeV5BUUhPb7LZLzlM+G68cOWkwn+67gKT3YC2mR07Jza7ftBjM4kktizA4Atsu0Bce7QFm3FinIcbiN1TmHoKwhUNw5M6m3jCfm+jxYK/Ys= X-Gm-Message-State: AOJu0YzrgOg9KGRPh57a7NuTuhRCWctynS+iq9EkcR3lrTrl64KfJnvA Jd4CBrkFJ1BKZGaRWow3SVgRNeGf8lCMSbkaGuzmoRttEU6jhWdl/jmjjCaq7TU= X-Google-Smtp-Source: AGHT+IF8i+fXJ0Qrg98bFngXom9Apje+WExMZ0DCNmKN+9aMo2M7gbBQQTCYC8dV5MiuQlqhPluOXA== X-Received: by 2002:a05:600c:4f96:b0:428:16a0:1c3f with SMTP id 5b1f17b1804b1-429ed7da74emr55372845e9.32.1724002182565; Sun, 18 Aug 2024 10:29:42 -0700 (PDT) Received: from krzk-bin.. ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429ded2931asm133974385e9.17.2024.08.18.10.29.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2024 10:29:41 -0700 (PDT) From: Krzysztof Kozlowski To: Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kieran Bingham , Geert Uytterhoeven , Magnus Damm , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/2] media: dt-bindings: renesas,vsp1: add top-level constraints Date: Sun, 18 Aug 2024 19:29:37 +0200 Message-ID: <20240818172937.121928-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240818172937.121928-1-krzysztof.kozlowski@linaro.org> References: <20240818172937.121928-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 and clock-names. Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley --- .../devicetree/bindings/media/renesas,vsp1.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/media/renesas,vsp1.yaml b/Documentation/devicetree/bindings/media/renesas,vsp1.yaml index 3265e922647c..94c0ab9a5be2 100644 --- a/Documentation/devicetree/bindings/media/renesas,vsp1.yaml +++ b/Documentation/devicetree/bindings/media/renesas,vsp1.yaml @@ -32,8 +32,15 @@ properties: interrupts: maxItems: 1 - clocks: true - clock-names: true + clocks: + minItems: 1 + maxItems: 3 + + clock-names: + items: + - const: aclk + - const: pclk + - const: vclk power-domains: maxItems: 1 @@ -81,11 +88,6 @@ allOf: - description: Main clock - description: Register access clock - description: Video clock - clock-names: - items: - - const: aclk - - const: pclk - - const: vclk required: - clock-names else: