Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp519516rdd; Tue, 9 Jan 2024 10:58:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHl87Ey4FhBoDeRKhcgIxJp1FsXrpKHYalv8mQbdJX6HDP7J6xYRnm0H7vrvW+beRNDXBcJ X-Received: by 2002:ac8:574b:0:b0:429:b1f1:20f2 with SMTP id 11-20020ac8574b000000b00429b1f120f2mr93306qtx.75.1704826721844; Tue, 09 Jan 2024 10:58:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704826721; cv=none; d=google.com; s=arc-20160816; b=IiKxOesJQxu06XKkJsEvjH6SSCI/dVii8OgONb6QouTGsCoR2YxtA+7fkRchQlr1mh QIqZzC2yab5Q3ygJQsjZK01yWk58Mqjxi0y7wCy6Nyw9YiAVNi0z5A9KuO6RaLf975WS 1ILLGPR50szX797plO7pCAemQyWaAgejSGxNAKSeImU67q6rbsibUQFkK842OxG8Zy4e K0TnOXDRsKCs/iL7qXOQJs9p785KRlDvIXYtQiJrVnBb1SSl3fY2gSaIC90SibPn24Q+ be3wEdBO8ROyesxvPq3a/IPg6/scUjYz3cDDUrZkDSmTqcYLllx1vmJmI+W4H6kTNe0M jhsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=bg7/uXNiZsERpXa6AJgBCwD/40jdj+YXIRQw5VNE4Cw=; fh=X5uJT7NDIZZyzIlKizDmFdUFTknIFxwcBHScVhsc1/c=; b=OfiHEn+xMj6vp3I+OEkurtSoUA8+3HatnuOmYq+WqAmuMVqK49J/NDV+3TOsRFK4ca CD3Ij6YrDgewOkq6n06PNNH1y6Lc81B4eoEnIKZWg+1kgzfIxghxAGgMjaxTFHkFxaar fQeb81XVL6+wFBc2/EyulP8b089KWYx8SXNICdackr+5XALuFvIPxlOOP+kCRu38Ycx8 6/It1Vv+V5+nTWylEOUJaBKizqYWQ6oWZFnzvMCGyx5YXEwhWFFFScKWvzpx/E7OlrCD cNX36/MkXM5Tpss+/+dJSeC5R+iYp6u6BR1ehZEAirLIMMdy1kU/leOKpFmbU+8z8mdt qecg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="AJXi84o/"; spf=pass (google.com: domain of linux-kernel+bounces-21279-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21279-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g21-20020ac85815000000b004282eb6ab18si2653849qtg.242.2024.01.09.10.58.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 10:58:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21279-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="AJXi84o/"; spf=pass (google.com: domain of linux-kernel+bounces-21279-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21279-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 88A891C24CA3 for ; Tue, 9 Jan 2024 18:58:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DF483B790; Tue, 9 Jan 2024 18:58:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="AJXi84o/" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.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 9BCCB3C482 for ; Tue, 9 Jan 2024 18:58:27 +0000 (UTC) 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 Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-50e766937ddso3749571e87.3 for ; Tue, 09 Jan 2024 10:58:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704826706; x=1705431506; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rgmCh2ekmuUXnKy6j0CsM91c8YxZihReaCB8lSs25HA=; b=AJXi84o/biERDxIjjbCqRBrB2okscsjCWomC8s4bL6cZWjwtl7rVpk8lr0Skre4zMd K7rAJ85fzHmK6SS7UTpbMIQVYPE4DBtkmaiL1zVUR5yruVVsBfQSNPZ1Omw1knOxgyTC hrUnuQ0CA223RgcIKB9zInze21RrhjPYqszf8l4fF5GBjCXcTmCLG07kXrYkh3Y1OXHn Dv7lX3Rzhv3C0BKiTBrxc5wfcE8tAs3qS3jduQSK2QBPAgQFCwv227ENKds7VDn7stlC PU5Gs8sAAH9X+7m+M5IftDZYFDKXOBx+ocJh1QKgNJ3lF1KwjIm6trpCYhkun0NHpexa jZig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704826706; x=1705431506; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rgmCh2ekmuUXnKy6j0CsM91c8YxZihReaCB8lSs25HA=; b=amZ7UIUONcxSnLaGMCkd+F+BG/r4pgtMDTZP4G99M2mFH7Ik1HAwxtfTxrFtrYl/Tu /ljeJqXE+dU9Tgvjfzqsp1N0zuMJCSh7+F4ROBP/KsM42lJsXZ3WGZsSMPGm4CVscveU RUh6k34jFoYmqInfHVeLc90gpS1rBq8Y3z4lzGE0VkCtRzGTHAdByXcjmZbv7MOzO4Cm D3i038FSchjtxosf3nyK57bwO7hmpfyFWCTDs5hDq+36CAorVaGY562frxjEyUT5jFke bklPc33+OwX72uGPrG7TA12cS5vbPaqfWny4/PSi2/OdbBe+c7C0ga3C0MCBBAp5HnOO y3OQ== X-Gm-Message-State: AOJu0YyhRyk9TY16qoVG0eCFxLMXS//72E9U/68D4IZdnXS+flHkpSmA O/mWOO3rgApi7ZsXbCjeB8IhbnjkszpDSQ== X-Received: by 2002:a19:5e5d:0:b0:50e:b46f:4383 with SMTP id z29-20020a195e5d000000b0050eb46f4383mr2149227lfi.133.1704826705600; Tue, 09 Jan 2024 10:58:25 -0800 (PST) Received: from [192.168.1.20] ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id z14-20020a19650e000000b0050e7d22a9b8sm435713lfb.89.2024.01.09.10.58.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Jan 2024 10:58:24 -0800 (PST) Message-ID: <980a51fc-c410-46c3-bcb1-b82c33a88ef3@linaro.org> Date: Tue, 9 Jan 2024 19:58:20 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC v2 02/11] dt-bindings: gpu: Add PowerVR Series5 SGX GPUs Content-Language: en-US To: Andrew Davis , Frank Binns , Matt Coster , "H . Nikolaus Schaller" , Adam Ford , Ivaylo Dimitrov , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , =?UTF-8?Q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Paul Cercueil Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-omap@vger.kernel.org, linux-mips@vger.kernel.org References: <20240108183302.255055-1-afd@ti.com> <20240108183302.255055-3-afd@ti.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwT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jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 09/01/2024 17:53, Andrew Davis wrote: > On 1/9/24 5:32 AM, Krzysztof Kozlowski wrote: >> On 08/01/2024 19:32, Andrew Davis wrote: >>> The Imagination PowerVR Series5 "SGX" GPU is part of several SoCs from >>> multiple vendors. Describe how the SGX GPU is integrated in these SoC, >>> including register space and interrupts. Clocks, reset, and power domain >>> information is SoC specific. >>> >>> Signed-off-by: Andrew Davis >>> --- >>> .../bindings/gpu/img,powervr-sgx.yaml | 124 ++++++++++++++++++ >>> MAINTAINERS | 1 + >>> 2 files changed, 125 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/gpu/img,powervr-sgx.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/gpu/img,powervr-sgx.yaml b/Documentation/devicetree/bindings/gpu/img,powervr-sgx.yaml >>> new file mode 100644 >>> index 0000000000000..bb821e1184de9 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/gpu/img,powervr-sgx.yaml >>> @@ -0,0 +1,124 @@ >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>> +# Copyright (c) 2023 Imagination Technologies Ltd. >> >> Your email has @TI domain, are you sure you attribute your copyrights to >> Imagination? >> > > The file started as a copy/paste from a IMG copyrighted file, even > though it is now almost completely re-written I've left their (c) > for good measure. I'll add an additional TI (c). > >> ... >> >>> + >>> + reg: >>> + maxItems: 1 >>> + >>> + interrupts: >>> + maxItems: 1 >>> + >>> + clocks: true >> >> Missing min/maxItems >> > > These are set in the allOf/if/then blocks below, seems I know, but we expect them here. https://elixir.bootlin.com/linux/v5.19-rc6/source/Documentation/devicetree/bindings/clock/samsung,exynos7-clock.yaml#L57 > if I don't set them to at least something here then I get > a warning: > > 'clock-names', 'clocks' do not match any of the regexes: 'pinctrl-[0-9]+' > > even if I define them in the allOf block below. I don't > know what the min/max should be until I check the compatible > in the allOf block. As always: the widest constraints. .. > Logic in YAML always seems messy to me, here it is in pseudo C: > > if (compatible == allwinner,sun6i-a31-gpu || > compatible == ingenic,jz4780-gpu) { > if (compatible == allwinner,sun6i-a31-gpu) > clocks: ... > if (compatible == ingenic,jz4780-gpu) > clocks: ... > required: > - clocks > - clock-names > } else { /* disallow for all others */ > properties: > clocks: false > clock-names: false > } OK, I see, that's the limitation of YAML. The point is that this code is not readable, so just list all fallbacks or variants. Best regards, Krzysztof