From patchwork Sun Nov 12 18:43:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 743597 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 9AB40154AE for ; Sun, 12 Nov 2023 18:44:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oBEn/gyA" Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A9A91FF6 for ; Sun, 12 Nov 2023 10:44:11 -0800 (PST) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-5a81ab75f21so43042507b3.2 for ; Sun, 12 Nov 2023 10:44:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699814650; x=1700419450; 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=3sqqPllgETnwwQvfwmEwhxp6/p5QdcAaEjx6oKJg44Y=; b=oBEn/gyA0BaVF0GDwMMAfZa1wit0LRjQBvi1KSxvt8GN4LHRiWvvgLDwFSApTvHxvY AotjvFf3GPeGO+PrhWfH8KRfB5UuoFVdg3We3K4aoKB6U1S5xRpe75ymKvfakhHTzRQf Q04cR7tUn+/3mQn4rYcsWNARKp7oWFqmWuF1EXwVtIAF14XbtkHbYG2pE4gGZfbeNzpi GJhDmhAj9KxeB3k0VbrINGmx6dC/tFvwI80mx4Vsoa31jwWBFwvxlZ52k4Z3i6WgZNuy rTYP6yyu1rElJvixBlprq9KEZd8qGV979d8qLe4Jy9aq4+E6kAluE0lqzz7EH2RFAPWz w8Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699814650; x=1700419450; 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=3sqqPllgETnwwQvfwmEwhxp6/p5QdcAaEjx6oKJg44Y=; b=pXJI/0Ozpx+B0WkBSIoY7M3K8oWref2hpNC3s5y3ZXUE1AvexB8hsS89miE3lLE9XR nhhhIdAkvMf9WPT/3nBnm76kYrI2UxUt/SVLATV+dAa/pPfEVbVGHfBP2kSktRgxxhAl TJlPguzkNMCuNm9uifye+7tE9RGJT9f5a9hHv9LxZn8ntOqn2VlN2lKd7eYKpRZo1p7s SUJpxm755rdbgEUyilN/HAoqTgAnrDY1bFKrb1/igcijwoLxZfiL2nAOuugES1n7Is6S EXCnJTbcopt3yyLHmrHK0vPhxJDIkBhPq7tsISYfSeRb8R4amLyGK+QHGr4bRUx1Z6z8 a9CA== X-Gm-Message-State: AOJu0Yx8FpHPK7nU8X1Gbh6idGk83sMyQZt8nr93cCLVvGz4U2tLJdKM ALdQFb3J3dswGlRfQ19qEEGySQ== X-Google-Smtp-Source: AGHT+IGGlUk61F4BEzF1VDsWt9xVT4gMPv8utBpaeVZEcfGMjrCm0u4YtgErk53VC2pVhXrV1Vku9w== X-Received: by 2002:a81:5201:0:b0:5a7:ba09:e58b with SMTP id g1-20020a815201000000b005a7ba09e58bmr5191792ywb.14.1699814650481; Sun, 12 Nov 2023 10:44:10 -0800 (PST) Received: from krzk-bin.. ([12.161.6.170]) by smtp.gmail.com with ESMTPSA id u63-20020a0deb42000000b005b3f6c1b5edsm1308938ywe.80.2023.11.12.10.44.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 10:44:10 -0800 (PST) From: Krzysztof Kozlowski To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Inki Dae , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/5] dt-bindings: gpu: samsung-rotator: drop redundant quotes Date: Sun, 12 Nov 2023 19:43:59 +0100 Message-Id: <20231112184403.3449-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Compatibles should not use quotes in the bindings. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- .../devicetree/bindings/gpu/samsung-rotator.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/gpu/samsung-rotator.yaml b/Documentation/devicetree/bindings/gpu/samsung-rotator.yaml index d60626ffb28e..18bf44e06e8f 100644 --- a/Documentation/devicetree/bindings/gpu/samsung-rotator.yaml +++ b/Documentation/devicetree/bindings/gpu/samsung-rotator.yaml @@ -12,10 +12,11 @@ maintainers: properties: compatible: enum: - - "samsung,s5pv210-rotator" - - "samsung,exynos4210-rotator" - - "samsung,exynos4212-rotator" - - "samsung,exynos5250-rotator" + - samsung,s5pv210-rotator + - samsung,exynos4210-rotator + - samsung,exynos4212-rotator + - samsung,exynos5250-rotator + reg: maxItems: 1 From patchwork Sun Nov 12 18:44:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 743596 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 1E5D7156EC for ; Sun, 12 Nov 2023 18:44:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iw0kFUuR" Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85BEE2715 for ; Sun, 12 Nov 2023 10:44:13 -0800 (PST) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-5a7d9d357faso41455067b3.0 for ; Sun, 12 Nov 2023 10:44:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699814653; x=1700419453; 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=LKapjGZo46m2u3Pg+KgGkylJklW8QTl7gfgNZK8ZJCY=; b=iw0kFUuRxQS4MRdP9ZPJzS7oPkfkXebd7c3njWsPui62lFi9tOfKXScs9zrlWtyZke 7Jjc8kGfU+f64JD0OYZCI1omZqi9njEXxR740nn4JJzH/eZiaSfCNdKUBD8f4rdS4gYe EKoch+HpXgXPOyKP6E2gd+3uyLdzti8z8XACNYyHq6L781CWAslb0/Cq8DtkFNC3E7A7 FyZ66B8dO0eri9nfL5KYHQZz3r+dx6KxpMQSAfVJs9BWzQXBgRGcsQjgCdGuW7oD7rPU ojtYcCugoS5kp/dVJ41ajgLFRVxoQBg4yCV03ckCIZTUPQjDxUz++GTn3yssESJmKRdI LtJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699814653; x=1700419453; 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=LKapjGZo46m2u3Pg+KgGkylJklW8QTl7gfgNZK8ZJCY=; b=PzvnXzPhqDy9qRcHlnTxRcKoBS9fSo/AAKZxJcVpRyudFyN7hOr77wW/sLMDbEMB0d lYjEEBX1wMzBgmnJzmi8YJOymfrTgesds5KqyJkSeLhZ82PrrB2jZOusSOa5nBR0uBSo 4/JoYtd/VXPNHdxvRTVwMOOJoJwk3GRAWC+v2Djya1q6Mdxwwz4fDXlJBMI1jXW+fOvG WvUCkpj8KeZHVim/dHIJH28ACC5O0Ao3YRUG007V/Jl6GayLVX20wup4q4gVqZM3hjag ZLtzDPHDvasdRFhuS5X4fLbaT3J1ERTcVSZB6GAFZf09vAU3Nqs0RX9fBVcTBJgqMmE1 rcEA== X-Gm-Message-State: AOJu0YxEcnSkMTjqfNhUHfRarWwVOD1j8lRtWlt7NxfxbTtr4b6llo6y ri0EE05JY1piVpuwJ6XKpF0h/w== X-Google-Smtp-Source: AGHT+IG6jLEwOvsic3zim3Oi0DQNKZCCpaWpZotIRjhbW1JFP57Ypl6v3EbQBFpfe1K3LZKV2jWSMQ== X-Received: by 2002:a0d:ca8f:0:b0:5a7:ba54:af02 with SMTP id m137-20020a0dca8f000000b005a7ba54af02mr5340230ywd.38.1699814652746; Sun, 12 Nov 2023 10:44:12 -0800 (PST) Received: from krzk-bin.. ([12.161.6.170]) by smtp.gmail.com with ESMTPSA id u63-20020a0deb42000000b005b3f6c1b5edsm1308938ywe.80.2023.11.12.10.44.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 10:44:12 -0800 (PST) From: Krzysztof Kozlowski To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Inki Dae , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/5] dt-bindings: gpu: samsung: constrain clocks in top-level properties Date: Sun, 12 Nov 2023 19:44:01 +0100 Message-Id: <20231112184403.3449-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231112184403.3449-1-krzysztof.kozlowski@linaro.org> References: <20231112184403.3449-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 When number of clock varies between variants, the Devicetree bindings coding convention expects to have widest constraints in top-level definition of the properties and narrow them in allOf:if:then block. This is more readable and sometimes allows to spot some errors in the bindings. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/gpu/samsung-g2d.yaml | 10 ++++++++-- .../devicetree/bindings/gpu/samsung-scaler.yaml | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml b/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml index b6951acc7643..f368966cf83a 100644 --- a/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml +++ b/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml @@ -22,8 +22,14 @@ properties: interrupts: maxItems: 1 - clocks: {} - clock-names: {} + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + maxItems: 2 + iommus: {} power-domains: {} diff --git a/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml b/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml index 97d86a002a90..e08fc1e4115f 100644 --- a/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml +++ b/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml @@ -21,8 +21,14 @@ properties: interrupts: maxItems: 1 - clocks: {} - clock-names: {} + clocks: + minItems: 1 + maxItems: 3 + + clock-names: + minItems: 1 + maxItems: 3 + iommus: {} power-domains: {} From patchwork Sun Nov 12 18:44:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 743595 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 53F83156EC for ; Sun, 12 Nov 2023 18:44:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kr4uWEPJ" Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5319F273F for ; Sun, 12 Nov 2023 10:44:16 -0800 (PST) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-5a90d6ab962so43108807b3.2 for ; Sun, 12 Nov 2023 10:44:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699814655; x=1700419455; 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=VA6uZGdGjNfy56jm7BNtgPNmqVGZq5+CSaOwN7oZJ+E=; b=kr4uWEPJOdp6qNPx5pPSxfvNv6wQE4zfjoAYeB/wdO+AGrdMakhhlU1kZbdZarZBSU 216invsFu5fD6N2xTxA/z9nOUQKp+1W2VYyDYzOOqVt4utTK+4eoeSVBXruMn7q/IsgK MGWSL4RR3WQSh5qh45d7ekAFNjNFlOfcKJipaLJTUsNDygqQ35lG0iHgYPL/YNkuDiqa YZAIxeJ+lxheJX4C7NFPdqZLU3M+Z66zxIxXvJ7wmzw/ZCnDGWL2p3YOQu0jvN4L3K2p Fe3r2G+DBbCCtakIaR14RNCyQRkOqBfFGkE9MoabInDf7mbfC8eFrrzKq/szO/aLP0bH htUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699814655; x=1700419455; 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=VA6uZGdGjNfy56jm7BNtgPNmqVGZq5+CSaOwN7oZJ+E=; b=NFQQngzGgOgpwpWEXKmMud8ghwZyTwY0YMfSzBHPCfIYceLXfcA9bjnM5rd1Ybidnw h/mVaOa+T4Z/YIlay70j0owvESsgDoNfVmJ3m5CO27wgObOOAVL9005ouYQb5BLcuMnh cTrO5JUdN/lLMTZRdgnsCVf3WoO/iS8epJ6BS8An28N5zmy7FVQs63sia61uEeJab7eE O/MdzDoABdZA/xqy3zWzy8BY8bRp6pG4R/mtJtRPiLDwjUcE66/O/tD+IvaCnP1QrYtY UTeUNKHO8qHDRS8dNHSQV0ym2gZ+8mDcqvOIkCPUSksHaYoOt7T72AJAf1Cjc+2zBxa/ pYfg== X-Gm-Message-State: AOJu0YwK2F0hke+KcUkkSvMxNz76MsENhLYwL6r2F0BKnS6MzBb3ngnZ mKolelm34BWg1/+/ohvrKQF6Eg== X-Google-Smtp-Source: AGHT+IFDp9bTcaoYSS3SmDoNnC/Q/pGeVtVhCAudVa3PU9gSMb/Nn24WRlw1g6TBbP8UrZiRDk3iCg== X-Received: by 2002:a0d:cc53:0:b0:5af:b0ca:6950 with SMTP id o80-20020a0dcc53000000b005afb0ca6950mr4995062ywd.42.1699814655547; Sun, 12 Nov 2023 10:44:15 -0800 (PST) Received: from krzk-bin.. ([12.161.6.170]) by smtp.gmail.com with ESMTPSA id u63-20020a0deb42000000b005b3f6c1b5edsm1308938ywe.80.2023.11.12.10.44.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 10:44:15 -0800 (PST) From: Krzysztof Kozlowski To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Inki Dae , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 5/5] dt-bindings: gpu: samsung-scaler: constrain iommus and power-domains Date: Sun, 12 Nov 2023 19:44:03 +0100 Message-Id: <20231112184403.3449-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231112184403.3449-1-krzysztof.kozlowski@linaro.org> References: <20231112184403.3449-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Provide specific constraints for iommus and power-domains, based on current DTS. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/gpu/samsung-scaler.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml b/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml index e08fc1e4115f..9fb530e65d0e 100644 --- a/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml +++ b/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml @@ -29,8 +29,12 @@ properties: minItems: 1 maxItems: 3 - iommus: {} - power-domains: {} + iommus: + minItems: 1 + maxItems: 2 + + power-domains: + maxItems: 1 required: - compatible @@ -54,6 +58,8 @@ allOf: clock-names: items: - const: mscl + iommus: + minItems: 2 else: properties: @@ -67,6 +73,8 @@ allOf: - const: pclk - const: aclk - const: aclk_xiu + iommus: + maxItems: 1 additionalProperties: false