Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1465126rdb; Wed, 6 Dec 2023 22:39:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGTAbgIFRWahJU89JpBKQO+kv9TIGUP9IKzkIPA/VfjNNAFZLhdQoi+9MHiq1036QXUFTNk X-Received: by 2002:a05:6a20:442a:b0:18f:20bf:d855 with SMTP id ce42-20020a056a20442a00b0018f20bfd855mr2407215pzb.1.1701931157342; Wed, 06 Dec 2023 22:39:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701931157; cv=none; d=google.com; s=arc-20160816; b=zHOu0brTKLG+yhrRbALb9yV1+/j4W8OH6rgCT9FLIBOnuWR70yPE3guVBjP6YYQRwD MeXkVXom9fGlJrLTlxMX44GjSpB15jBpj9RgGGXI3eAgPJztATRCiJxWGFFwFQVEQUtm vI+sDQGIhXj0PQs/pBs8XaSJc+VMQeW894eyCk8ar9j27hsl9+7cLzpy9S7obR6PW3oH D1G3StLW2APlQ0Zjro0WgWT2n41krtXj/NnW3kAx1ledRY2anhmZwy4vcxht5guRJoTQ dbMWDCPxBYEyzB9ZJFCq05opJDDAKhvPQtYlwd/fHj6l+tlZs5ORLEbyHwOnLocI2wiY ZZrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0qhmSsX7bOZdFJHAYLTU+DAgVc+g675WclzMvbny1xU=; fh=G1gDms0qKTHkHhZFt3zIPyaEJz1HjcLP21D7Upxyp38=; b=rag5X0gmS3eLGgQtI3SFM7XOCGgIzococrQipx+MEyOf8b6eTOgCdKIrNY5P9S0j9O BdfCEmSKeDuZaUtl0L32N7RV/MjpHa95pqNMgnjMY3uqZW/DnGBJZn8vowj2B4xcpyL/ wmfz1rPneunObzWtncBlZm/hNa4GHZdShz1DIfZfKhUXZ7MJFaAh+GdNfx3N+Pozh8ec pCnD+ps9mDCwyDv1SKBvjFJtPmFjV0uGBwU4UBz7GW96/W5Wo9ZFvjMLjNu4YDFRT5fY Z6Sub7IMWN1DZNAYL1FbPJRDRPlPDsMH/mX0e7GtLL4fyWjeFoX9cRgyq25VikeI7A+a uz2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@atomide.com header.s=25mailst header.b=NB5K6bbG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id kn11-20020a17090b480b00b0028526216f31si530666pjb.106.2023.12.06.22.39.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 22:39:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=fail header.i=@atomide.com header.s=25mailst header.b=NB5K6bbG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1B26A80DF278; Wed, 6 Dec 2023 22:39:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377617AbjLGGjE (ORCPT + 99 others); Thu, 7 Dec 2023 01:39:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377662AbjLGGjB (ORCPT ); Thu, 7 Dec 2023 01:39:01 -0500 Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91B5810CB; Wed, 6 Dec 2023 22:39:06 -0800 (PST) Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id 25AE36045F; Thu, 7 Dec 2023 06:38:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1701931146; bh=WJ0wR74d+mkwm+IUhYNno9dDAtwE/eqL/spvRAJBdfs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NB5K6bbGCpg41F4Y2JGI/TNwe3RGFW3Rb4TSnkoscLAJWyiJiI9oXkVCYi5gJHMUE rec/JKiVE0yT1vYJQYhdXWSOpHIN54QGzL6WqfqoxkLv91onW6Dz79NJ6Vdb3udRhT g4HB3bZFTntDqubO+X3JvKDCdaKA0DekPQ4uWpzaKpeKqvgHMCIg8HwkhVRqCravtn YeFizvmnz0qBvGZ2CbSPVnG4I+Gr9T0sxFMTO9tFLKvsPkuLc89p9Vr2tw7BtmLd1j PUVaUSKJDGuguxsfKpyxZIFKGKz5PBUnOl4Ij7KZmXv3Ryh00sxy2R/JOPY1RyCIZ1 XKfEq9e8Lqa+Q== Date: Thu, 7 Dec 2023 08:38:02 +0200 From: Tony Lindgren To: Andreas Kemnade Cc: Krzysztof Kozlowski , Andrew Davis , Frank Binns , Donald Robson , 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 , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Paul Cercueil , 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 Subject: Re: [PATCH RFC 01/10] dt-bindings: gpu: Add PowerVR Series5 SGX GPUs Message-ID: <20231207063802.GR5169@atomide.com> References: <20231205075657.GN5169@atomide.com> <20231205081031.GO5169@atomide.com> <20231205083001.GP5169@atomide.com> <27f2e3a3-0791-4278-adb2-55ed76820a3a@linaro.org> <20231205100246.5db0d6a1@aktux> <78a81d54-f12c-401e-9a26-5125eb0b1c65@linaro.org> <20231205104343.2e3c4105@aktux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231205104343.2e3c4105@aktux> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,T_SPF_PERMERROR autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 06 Dec 2023 22:39:16 -0800 (PST) * Andreas Kemnade [231205 09:43]: > On Tue, 5 Dec 2023 10:27:56 +0100 > Krzysztof Kozlowski wrote: > > > On 05/12/2023 10:02, Andreas Kemnade wrote: > > > On Tue, 5 Dec 2023 09:45:44 +0100 > > > Krzysztof Kozlowski wrote: > > > > > >>> Sure the clock nodes can be there for the child IP, but they won't do > > >>> anything. And still need to be managed separately by the device driver if > > >>> added. > > >> > > >> So if OS does not have runtime PM, the bindings are wrong? Bindings > > >> should not depend on some particular feature of some particular OS. > > > > > > Any user of the devicetree sees that there is a parent and the parent needs > > > to be enabled by some mechanism. > > > E.g. I2c devices do not specify the clocks of the parent (the i2c master) Yeah the interconnect target module needs to be enabled before the child IP can be probed for any OS. That is unless the target module is left on from the bootloader. But like I said, I have no objection to also having the clocks for the child SGX device here. I think two out of the tree SGX clocks are merged, so one of the three clocks would repeat twice in the binding. We do provide some of the clock aliases, like fck and ick, for the child ip automatically by the ti-sysc interconnect target module. But likely we don't want to clock name specific handling in the driver so best to standardize on SGX specific clock names. That is if the clock properties are not set optional. > > If you use this analogy, then compare it with an I2C device which has > > these clock inputs. Such device must have clocks in the bindings. > > > I would see target-module = i2c master. > > Well, if there is a variant of the i2c device which does not require > external clocks and a variant which requires it, then clock can be > optional. Yes that sounds about right for an analogy :) Regards, Tony