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: 13453370 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 22E03C4332F for ; Sun, 12 Nov 2023 18:44:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E51910E14B; Sun, 12 Nov 2023 18:44:13 +0000 (UTC) Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 68C7F10E14B for ; Sun, 12 Nov 2023 18:44:11 +0000 (UTC) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-5b31c5143a0so42985377b3.3 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=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=3sqqPllgETnwwQvfwmEwhxp6/p5QdcAaEjx6oKJg44Y=; b=q/49C78WdH8ET8zhtSgFDZIDjGpgKveao3t8PgNGnk/ZDtPZMcHQK1ZLthxc3+vyzh QWREQPO6t0pduz4f6sip+8daGMHqhyNjPM2XhlyNlvhVx3Q9pPRrAL5bYGzAMA2FFJu9 J7cCmg8OJWKBYX93j7zTYyevkeJS3QYF86hva32LpjREZvWQU2tg98ftTka8U0LH3zVg 7YR3HMC3XKjOhZFvIpchjezuz1c+zUzM/SjFxRRsFeJpX8TpE3qRIqQZIxWh4JKDswXi XkCwKZWzVvrhgQzvIkhNoKxkM76uokJf95qH/xrazKXIG0cAsTZAJjZNMwMP/8sgLqe9 zCKw== 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=BqKo2/PH+SGV92sw7E4VpeiBucEI5ZmlC2l8V5Tq7iLaJ65L4M/TfbxhOeOsai+boL V2FO4hFkWilpLNndJCWvfYTuDUpuPqJDQ60DrUNsc5n0TXefldrOJC9cxnMiv4oTqIXF ne8EPreFU9wKRS5fDk+Ke0WxE+pKBvwTTxIs6cOo4+LpaykbfsydorzMQkwSCwvdCeMg EazezrQIC+aa+rSrM0mY5ibQtyBonFHMQ/IoJZdIJdIFmHybx+5G+qDRnvwrZXUeSdfQ 75GUVG5Bi4hr0UFZrHT9i4Gc+Z5xr2uMQHB23Qv4HPS0/p8iUjbcvfz3uY0IXSiq4ahb Ed3A== X-Gm-Message-State: AOJu0YzkAjvbmel7MIv31whWBpJSfvkJXwMETgczD8pu/v209OD0qH3s 8xBeoLJi8hezf/kWfClHZmyl/A== 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 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 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: , Cc: Krzysztof Kozlowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Compatibles should not use quotes in the bindings. Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley 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:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13453371 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 7D079C4332F for ; Sun, 12 Nov 2023 18:44:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5E1CF10E14E; Sun, 12 Nov 2023 18:44:14 +0000 (UTC) Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 62DF010E14B for ; Sun, 12 Nov 2023 18:44:12 +0000 (UTC) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-5a82f176860so43129797b3.1 for ; Sun, 12 Nov 2023 10:44:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699814651; x=1700419451; 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=URm3aBGEZMYGVmdKlbcPoF6bMYnpimYDfI0RPBYPF7w=; b=CkGLVAfMccLF0jYKq4CYXPCMx2a2t+txX3FLQBtbR3IAOPmpJvhtYXpw3Qd8wMdTMD vVC+drlIFxQ3apDuvbLSUGFRN6vy5MCSoY7PMYMafKCdroPvDrFYOuMSxZRukwfaqcNY PeyVTk/STmLWfjhNrZbvh1hx/Y/ZP+Tz0vuC7CRn4bcHlJfNB9yLIsFmo7Sr5rQ7ha02 IpAnrDXp622z1oFc5HZP9PMqY/74gn2Qj46HR2pFcpQPsG2VHzpQTJU8f5UiIN263uQN 1gEzctsehLL061iCIJO+KNnOkgaBmM5UoQmo+urb5mRGjzzrzmHrjDYsXR9acORyNl+A kZmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699814651; x=1700419451; 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=URm3aBGEZMYGVmdKlbcPoF6bMYnpimYDfI0RPBYPF7w=; b=EDJXyFTDI+8j2jZyfPfw+tIXaWt7ux4SCzfQnMJNDbHW75eWtkLzS9eR8UtuuERiUJ Ak4dNncmwM7fk+hjtHifWNlNNHYt5sW8HRlBqj4l3g6psxGJX6z6p8JCjfKDYKrGBeOx Hwn693eO9V98XhZxwWqKJBfY+chox4Szh2QIlILDoVV+FqGH/rKfxEFrcAuYnN1MlRW/ wBFiTPI0JfLWZXMeKT9W0hx1cP64pj///IgVTMw+9N3k4OXg4mKRb83NltLHXXT2PSal MH6W3Fhg1Ne9lK0hCzPjMtIJoXEaGm3H599C+mGl8GLoJB26M/PglEwkN9DKjWTi4mJv 5w2Q== X-Gm-Message-State: AOJu0YzxdqqRYsOOOu8WIJSjlhwNERAnKsUk4WMtz88vronT/X+ajIAi Q/lt4UqR6DPu9BAT7XYXeK+bTQ== X-Google-Smtp-Source: AGHT+IEMgeqW+UHzIGW9S0MzgXOGTEehvymLNXsNHGrBqS79/kki9bEegn1CH2pjln/EBoRJFDgiAQ== X-Received: by 2002:a81:8704:0:b0:59f:519e:3e9a with SMTP id x4-20020a818704000000b0059f519e3e9amr6022964ywf.20.1699814651559; Sun, 12 Nov 2023 10:44:11 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 10:44:11 -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 Subject: [PATCH 2/5] dt-bindings: gpu: samsung: re-order entries to match coding convention Date: Sun, 12 Nov 2023 19:44:00 +0100 Message-Id: <20231112184403.3449-2-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> 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: , Cc: Krzysztof Kozlowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The Devicetree bindings coding convention, as used in most of the files and expressed in Documentation/devicetree/bindings/example-schema.yaml, expects "allOf:" block with if-statements after "required:" block. Re-order few schemas to match the convention to avoid repeating review comments for new patches using existing code as template. No functional changes. Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley --- .../devicetree/bindings/gpu/samsung-g2d.yaml | 53 +++++++++-------- .../bindings/gpu/samsung-scaler.yaml | 59 +++++++++---------- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml b/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml index e7daae862578..b6951acc7643 100644 --- a/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml +++ b/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml @@ -27,32 +27,6 @@ properties: iommus: {} power-domains: {} -if: - properties: - compatible: - contains: - const: samsung,exynos5250-g2d - -then: - properties: - clocks: - items: - - description: fimg2d clock - clock-names: - items: - - const: fimg2d - -else: - properties: - clocks: - items: - - description: sclk_fimg2d clock - - description: fimg2d clock - clock-names: - items: - - const: sclk_fimg2d - - const: fimg2d - required: - compatible - reg @@ -60,6 +34,33 @@ required: - clocks - clock-names +allOf: + - if: + properties: + compatible: + contains: + const: samsung,exynos5250-g2d + + then: + properties: + clocks: + items: + - description: fimg2d clock + clock-names: + items: + - const: fimg2d + + else: + properties: + clocks: + items: + - description: sclk_fimg2d clock + - description: fimg2d clock + clock-names: + items: + - const: sclk_fimg2d + - const: fimg2d + additionalProperties: false examples: diff --git a/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml b/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml index 5317ac64426a..97d86a002a90 100644 --- a/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml +++ b/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml @@ -26,36 +26,6 @@ properties: iommus: {} power-domains: {} -if: - properties: - compatible: - contains: - const: samsung,exynos5420-scaler - -then: - properties: - clocks: - items: - - description: mscl clock - - clock-names: - items: - - const: mscl - -else: - properties: - clocks: - items: - - description: pclk clock - - description: aclk clock - - description: aclk_xiu clock - - clock-names: - items: - - const: pclk - - const: aclk - - const: aclk_xiu - required: - compatible - reg @@ -63,6 +33,35 @@ required: - clocks - clock-names +allOf: + - if: + properties: + compatible: + contains: + const: samsung,exynos5420-scaler + + then: + properties: + clocks: + items: + - description: mscl clock + clock-names: + items: + - const: mscl + + else: + properties: + clocks: + items: + - description: pclk clock + - description: aclk clock + - description: aclk_xiu clock + clock-names: + items: + - const: pclk + - const: aclk + - const: aclk_xiu + additionalProperties: false examples: 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: 13453372 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 6F372C4332F for ; Sun, 12 Nov 2023 18:44:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AF91510E151; Sun, 12 Nov 2023 18:44:19 +0000 (UTC) Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9614110E14E for ; Sun, 12 Nov 2023 18:44:13 +0000 (UTC) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-5bf5d6eaf60so38127137b3.2 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=1699814652; x=1700419452; 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=LKapjGZo46m2u3Pg+KgGkylJklW8QTl7gfgNZK8ZJCY=; b=VclV4zzqL1NMjqfq8honTpAqE/Ks6ax7YvvBMcqu4T7pNAlnLkLVRIjE6LCeHgMKAM 7Dwu/C8n5PqbmgmceIo9u5WSbt3BObx8L1+GeHkZK1ayq87rE64S9qDZP2tmlK5l9xIX gbIyYkFMcfANTCNiOFYnAP8AP7yhBO6FE7JYiwR8hD/dh0YOf4gckVpvZFrBopi7TOUT dyy9WnqQkAfOs8cVmIfGIcl1qhsl6CeB5yYDLDlnjveicUNHt4XNvDP5X923T21L7EYV aYXJj1swFd3c/QFg/XhzGvhxZTt1zPRoX7Rtr1AghSv7USWscphFqWVNM7FAYWQl1Lb9 gs4g== 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=IH/SbEUUjgInF1XX4/1oca4EucPy11gIa9ujSBhCLyfCU6cAMYAzsViyFYCInUy+TI ltaJoFEn/9m2s35BkSD2Wh/8ppO+Cja3UNNtx0oa3fpuycPnXdAKVbiWqqMep+T6QsQI 7Fs+K0XgFVpgSxr956X3QLZJp/8DZ5WKk2PjQbCxcM4ItkeQ/bjv9ETtPX8E12i7ZcLL H/7Dh5lQVVXzH7wfmOF22DbFeoHVFuDZkWUrR/53iMoojIrcC/UmHrFQPF0+0n9u+meR 1SO3N2N3RiGu5ELtzzjbZeek/fmzbQ1eqOAZuBwhlgeFjR+um51vwIc8hQKeNy3lmZRr OlUQ== X-Gm-Message-State: AOJu0YwJchsd91/Ee/NzeHIWHMSZiLUPAn2A5mftMLvxZxwMTta6UhDO qNqXBnrCUFT7f3a1ZHF5aAHhpg== 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 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> 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: , Cc: Krzysztof Kozlowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Acked-by: Conor Dooley --- 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:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13453374 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 20A44C074FE for ; Sun, 12 Nov 2023 18:44:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0B79210E161; Sun, 12 Nov 2023 18:44:25 +0000 (UTC) Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by gabe.freedesktop.org (Postfix) with ESMTPS id C6AD210E14F for ; Sun, 12 Nov 2023 18:44:14 +0000 (UTC) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-5ac376d311aso41268677b3.1 for ; Sun, 12 Nov 2023 10:44:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699814654; x=1700419454; 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=8ph7m6E1Vtkv7RR08QhRUG59xkdDRnqIt7SGyWJz8QU=; b=FwWSfkIy8fHU/NGdMLowuqQrRXhvC2unfnekpBQ3FS3khqKHxUnQ3a/CWoTjYxBmN1 Id7/SmxOOKZ1+neKjkp3ow4w8qeDLmfHn+YRHGd/c1AofSAlftrtiqtGW6/0OvnbABFk /He4AtGcmUkBMSbnCjozyE1yFnLqxrbgzDzVLvW1N6ieuWqdbdihu/Chco6KsYhtru4r dp9j7X7S1pATGML0lDwanl3w7yS645Odhq++X/rs5dPPCLjF+OSwlpItNrKyAkcEZauv EV+jKLWRWJ2RDD4urIXx3tZFK+C3W6iyO0YZN7owDBV1HzcfEKjvDRRZjNNHMdcZJKnk W4rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699814654; x=1700419454; 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=8ph7m6E1Vtkv7RR08QhRUG59xkdDRnqIt7SGyWJz8QU=; b=WY8dwiSmJIOjVx+PlVTwYjpHR0wSYCor4MXGQ717XBjlZXPC54f9SmA6EZ+04jgR64 eFN7PCEs9QLmGBXcfsS0ULL77Lv/yoWloGIoAK3DyPWMA2e6qTh2Fuft/P2Awm9vy0vR cbzkOcVcflTA2+1R0StKFEhPGBylV3SHyle9Aj/yjqJ7ffeKy6FczwmWeJjIUcuMGvMy gSK/vwzx+qX6ZfvhINa1nbbwRj/IkSyQe5kxuJKDCWGaFuAhqMBLCzMmAa+OcePSzWLh V06FgReyvy8w40cgSMBor8o10DGzULtSfKrH4ghB13CLXTYEolqswv7BW6z6+23dPmT6 5cqw== X-Gm-Message-State: AOJu0Yw0XKLr4m8vo8OsTx3ftA4QklE0bCItfjKKPjMXEIjPbD2Z0TOD 2IU7KijIreJPSHHW/Dr3FdaTDg== X-Google-Smtp-Source: AGHT+IHpzvYeJiWjBu0flWuD/GyQnhsKd8gKM5c0RQLvUyFjf+fvZeq5nvs0RJ5Nw84f/GzsfgSNXA== X-Received: by 2002:a81:4113:0:b0:5a8:277f:b378 with SMTP id o19-20020a814113000000b005a8277fb378mr2138130ywa.1.1699814653985; Sun, 12 Nov 2023 10:44:13 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 10:44:13 -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 Subject: [PATCH 4/5] dt-bindings: gpu: samsung-g2d: constrain iommus and power-domains Date: Sun, 12 Nov 2023 19:44:02 +0100 Message-Id: <20231112184403.3449-4-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> 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: , Cc: Krzysztof Kozlowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Provide specific constraints for iommus and power-domains, based on current DTS. Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley --- Documentation/devicetree/bindings/gpu/samsung-g2d.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml b/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml index f368966cf83a..132aaa49597b 100644 --- a/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml +++ b/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml @@ -30,8 +30,12 @@ properties: minItems: 1 maxItems: 2 - iommus: {} - power-domains: {} + iommus: + minItems: 1 + maxItems: 2 + + power-domains: + maxItems: 1 required: - compatible 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: 13453373 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 E8537C4332F for ; Sun, 12 Nov 2023 18:44:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0F70D10E159; Sun, 12 Nov 2023 18:44:22 +0000 (UTC) Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6471D10E14F for ; Sun, 12 Nov 2023 18:44:16 +0000 (UTC) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-5c08c47c055so21380447b3.1 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=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=VA6uZGdGjNfy56jm7BNtgPNmqVGZq5+CSaOwN7oZJ+E=; b=ehC55Pd0yRWSPiftydvYT2wNbKRMY4OE2IXp4zmYMM42U9zXGfIgRskilFEgiSWykE j2jJn3hZUgLpgxQdYBRjCB1hewiqmEhZvDIfoVCLX0e2WlzqUXFxFg/CNTGf/Si4HWMj +01laD23E/T/sE2M/uVpOwZWbNg5TPEOQCwirChGYu6RhDVvmBi6xTCFHFSF8co+9LX/ mcxzFpxt9cYo32h+obx0ihqctdMjBuCvFV2yo/Wmk5UGOvtVIGT3mpZQkKh2OHHHsqaq pyFjogfX8FIZ6ksCFIr9/1nTcvt9ORCBayzpI7PsD6ynHZETl+O9pawFkfgYdjhLTeXZ MbWw== 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=DRUElncX8RasQlSypuqmMG4Mxg9a2HICsz0Cga5HayZOmi7RYYqykWo/P6UaN5datG GBGUwMJc6QAvTafkhQAIMLdV9bv3oVfHbjtYukmC5c7samRP4eCZckw/R2cRMVRH8Cce GSydGeEE3l2+os4qpFnvbz9ZDCjMM0RRPSFbfUIPNKJy9UdjQ2x4tm6cHRdEFuZaMYTv iKbmJK9PFP6t5R5LEYL6rk20NYxyZOKu8F/LWrWysK5A8UYFXlRZK9pQU7mqbV5pyDJ4 3H/TIQfSeawjnlrgNXxodjnfWDplEy7gwPTLUkKKb51kdZmaBQ7d0faSxIrMuU25dkvK Mc2A== X-Gm-Message-State: AOJu0Ywva38qLuXVsrW9qdqmSA8o6px6ylwxL6qO4tNO3d79HRUKjfRF Nd4SGaorzLJYD01IwuOqjzbMNA== 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 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> 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: , Cc: Krzysztof Kozlowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Provide specific constraints for iommus and power-domains, based on current DTS. Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley --- .../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