Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6816043rwp; Tue, 18 Jul 2023 06:21:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzQNcMuXATn6Hm6vOrDinMp4CtIlxMoqRvartYYQ2b7A3fxVnT57NbsuE59xXYchly7axC X-Received: by 2002:a17:906:207:b0:988:aeb7:2a37 with SMTP id 7-20020a170906020700b00988aeb72a37mr13120682ejd.33.1689686478423; Tue, 18 Jul 2023 06:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689686478; cv=none; d=google.com; s=arc-20160816; b=eHvjyW7ON9hfVupEx+up3fS7JQ+LOVzJnb6Y+xeevHyjiTatsE5O1UV6AQyCeUKMg5 xEB2/N6i6GhqTUtD40clvQBmCpq1BBVwU9VpySmDR0J96AtJThFjtQD2eitC7/ckQ0aq cSVeiG0TV9gJ+ZSqaXeNdqOyGI9Vo6orSXaKE2zQeL+9AH7/TtM8PS1hMJhs2e+Iv6zp UhIOAP3ce3v+XOZHZ1UvTRiMgmUO8ABmB39CkESQm4PP6KvhwdErC5F6I85lcEWSkPs6 S3OF5aZSvGlv8gJuq6j1PMBFgjWxIo0PnClDy4DqH/DTG/RTkXyjp8bMaAsQi1p3Xb5H LPuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6sUHst+qMfvqGd6D4drEgX+385kdv+PYqXOtITReCXQ=; fh=lVQgMAxSCU2wRFQGEMVvCXICyi6u2W4FwqkyKWw32Ec=; b=F6AcHiUCVf12No2xzUwKqgUSejoY1AtIidqa9Xa75cIgg5/EBj6TDTlH0zL4Un/wj6 3IN26J6oUHOYyCZcjT/P3ye7lXcrJfcgqIER6DjVzLQZE50ivZDHbTYc3liwYdA3/JWo fK9x3J5G94s5UDYVhKuJJZhft6mehmJsJtXLpNW/GOtEXhhHeNtYWg1LdSBphtEGvsNg eyQVSW75xzfz/LPDmG+TncuMtAxYUAA2xS4Kyi5GEYoDlCMBHPas9iZD2X8A+roB4DKE ElD8+F4HJBX3VPJKTywBKudzSuLGeOID/q/giGkORAJYvLrdG0Vunee2/pvwLdZ+7WdV HiDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FfNEH+Wf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e5-20020a170906248500b00991f9e2a813si1211822ejb.299.2023.07.18.06.20.53; Tue, 18 Jul 2023 06:21:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FfNEH+Wf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230399AbjGRNIs (ORCPT + 99 others); Tue, 18 Jul 2023 09:08:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232541AbjGRNHk (ORCPT ); Tue, 18 Jul 2023 09:07:40 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3685F1FCF for ; Tue, 18 Jul 2023 06:06:10 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-51e2a6a3768so8127827a12.0 for ; Tue, 18 Jul 2023 06:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689685568; x=1692277568; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6sUHst+qMfvqGd6D4drEgX+385kdv+PYqXOtITReCXQ=; b=FfNEH+WfJctNkYn82YYreYDRI+kPAiyGGv+jM94jGbleg8FgOTkXMCnC+DDEx9cN2M SrmmY1IZCmKQgjgCEsYk9GhoBqidgt7UvwqJkx3aJy8bHmAPFDDrZLmJlXXS7tMmoTDY 6h9kMru9B3+o9/8CZdwy/YfELuF2uWeTWqgjo5/yP7q8YP/SLpdqHcgao76c1+yFY78H W6PgaeeuPAkNxk8XVMsOeahh8mpAWz2NzE0FTwYvJnV8ANPvUgAJdHM8Q31NycJTMrPF AAEAQMt5WKsxNyOUcyBNO4EU5bUXwQJnfsAF9iBXaicSXwlSfaP07uea+wbZF1KcDRiA 6uRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689685568; x=1692277568; h=content-transfer-encoding:in-reply-to: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=6sUHst+qMfvqGd6D4drEgX+385kdv+PYqXOtITReCXQ=; b=gRCYCwMsW2rLJfRZCfumzdtwIWhMCtzgWudcuIdsEuxDq6bVx1j78WGrzqLd99MOfN ANY/PLeznA3xtkV6xavu9rxyUtYa2+Ako3E2Gg36azJwON3TgKyQojMwSh86Y9J9NZq8 O1sPn6vJJQBhYX1Z11e4syy4TcjZWQNtul1keSH1hWpAt2i/Ikmgb3gHNdvaAK7YWSXR gnJ1DbpdK+N/n19zg8EfI3pjoQRX+WTlmYA0NC4JOg5cw+SGzQn83PsjFE5j++DwsVK7 8m7cjqbIrapKmfQUQn0E7Qyyd7A0tJFTcgSPSlWqfaMnhn0UJ1+VUvQb/9lyCY1fq7e0 ktrg== X-Gm-Message-State: ABy/qLbpI6CQVbzuphnBiBbfcrAijpXnDchINbyjCfw3Zmb7A9WA1CSM TZ5Q2zo5lKv1FvtMWBq01xltYQ== X-Received: by 2002:a17:907:3d5:b0:982:8de1:aad9 with SMTP id su21-20020a17090703d500b009828de1aad9mr12232196ejb.64.1689685568703; Tue, 18 Jul 2023 06:06:08 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id p1-20020a1709061b4100b00982a92a849asm1014398ejg.91.2023.07.18.06.06.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jul 2023 06:06:08 -0700 (PDT) Message-ID: <8c4a488e-8990-8ad2-e82b-8759c9b85447@linaro.org> Date: Tue, 18 Jul 2023 15:06:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v4 02/17] dt-bindings: gpu: Add Imagination Technologies PowerVR GPU Content-Language: en-US To: Frank Binns , "dri-devel@lists.freedesktop.org" , Sarah Walker Cc: "luben.tuikov@amd.com" , "christian.koenig@amd.com" , "krzysztof.kozlowski+dt@linaro.org" , "tzimmermann@suse.de" , "mripard@kernel.org" , "matthew.brost@intel.com" , "daniel@ffwll.ch" , "hns@goldelico.com" , "linux-kernel@vger.kernel.org" , "boris.brezillon@collabora.com" , "dakr@redhat.com" , "maarten.lankhorst@linux.intel.com" , "afd@ti.com" , "conor+dt@kernel.org" , "devicetree@vger.kernel.org" , "robh+dt@kernel.org" , "airlied@gmail.com" , Donald Robson , "faith.ekstrand@collabora.com" References: <20230714142526.111569-1-sarah.walker@imgtec.com> <19a7dae4-a9bd-187f-49f8-fe9c47f44eff@linaro.org> <6eeccb26e09aad67fb30ffcd523c793a43c79c2a.camel@imgtec.com> From: Krzysztof Kozlowski In-Reply-To: <6eeccb26e09aad67fb30ffcd523c793a43c79c2a.camel@imgtec.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/07/2023 13:32, Frank Binns wrote: > Hi Krzysztof, > > On Mon, 2023-07-17 at 09:29 +0200, Krzysztof Kozlowski wrote: >> On 14/07/2023 16:25, Sarah Walker wrote: >>> Add the device tree binding documentation for the Series AXE GPU used in >>> TI AM62 SoCs. >>> >> >> ... >> >>> + >>> + clocks: >>> + minItems: 1 >>> + maxItems: 3 >>> + >>> + clock-names: >>> + items: >>> + - const: core >>> + - const: mem >>> + - const: sys >>> + minItems: 1 >> >> Why clocks for this device vary? That's really unusual to have a SoC IP >> block which can have a clock physically disconnected, depending on the >> board (not SoC!). > > By default, this GPU IP (Series AXE) operates on a single clock (the core > clock), but the SoC vendor can choose at IP integration time to run the memory > and SoC interfaces on separate clocks (mem and sys clocks respectively). We also > have IP, such as the Series 6XT, that requires all 3 clocks. Currently you have only one SoC vendor with only one SoC, so the clocks do not vary. Describing the clocks for all possible variants is a good idea, but then this should be clear that this implementation uses subset. > > So the situation here is that Series AXE may have 1 or 3 clocks, but the TI > implementation being added only has 1. > > I guess we need to add something like: > > allOf: > - if: > properties: > compatible: > contains: > const: ti,am62-gpu > then: > properties: > clocks: > maxItems: 1 > > Or should we be doing something else? Yes. clock-names as well.. Best regards, Krzysztof