Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1615967rwb; Fri, 19 Aug 2022 06:43:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR7kHQ/r4qi+7y0gBKNP0GjWbUwUwZkuk7dUGypsqiRUPT9F/z6CAYNNh5bOOxHI2CILNewI X-Received: by 2002:a17:907:9808:b0:731:5835:4ac7 with SMTP id ji8-20020a170907980800b0073158354ac7mr4953345ejc.125.1660916618357; Fri, 19 Aug 2022 06:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660916618; cv=none; d=google.com; s=arc-20160816; b=xHGiCCOJ5xdloxwryB8wu1TtQjAukIY490xouK7IWhEOyPW/6p1ofGnD79V6f4UtZa p2+oVHebifd2pmlgmuFJd/O1WElkQicjtDRwCbbGdbfsD+nXb3oUb3qZUkPwB+d/bEZ1 Xsg5MtdABPXUFR3nz03UgdA1pM5NHUMSVlqO4IS6cQgfS1DlFp8Tq71wEc4khsEUUUK3 VchiLTEHO406io3+rjXd37QtwpHlc9tyUFjKFgpMSZUPvfttq3jVHfvMLSBmemfy/3aF utAzFyOXGm/XUhocQxbouJOppObiv/Rb97p4tCIDL+DM5EriE4StP6kz98oySPPc59cw dQsA== 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=dP94wt5jHiSTgYi6J94tIJEwZ2nFwZSjrOFlQEqy3Jo=; b=JjQ3qrj2X/jsQAGXxdnb6rE0CZKNh/+UhQx6POZOEVZJlqq/zjI9hIJu/52baE/QuR pzpJjdHlLH0A8VZOtPpiCNWJSejoqM3YIf4RtH6IARIEiGbRD5jSiQ9srCx99PAxMLy/ Gzqa/8jOUZMojhuTH9s3wWBG3zRvvSP1QVMIdxKVTKMXY46WmqTYqE8+LrEPd8kz/p8n lTe36Xrl4F3UdUjJDyIIJxBT1uxhobGV9aixBmXJP0+KnWxwhyd661R86sajm4312COm YxJBgR5YDB0XunvNErwqFZgXR1hA+GhJerkbGJCHH3NXIK5c73ITzv5wLXWw5lr86Z3M 86dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tQL0p9Tl; 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 ne16-20020a1709077b9000b0073123a3bea1si3399093ejc.532.2022.08.19.06.43.11; Fri, 19 Aug 2022 06:43:38 -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=tQL0p9Tl; 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 S1349358AbiHSN2p (ORCPT + 99 others); Fri, 19 Aug 2022 09:28:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348548AbiHSN2n (ORCPT ); Fri, 19 Aug 2022 09:28:43 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 656A054667 for ; Fri, 19 Aug 2022 06:28:42 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id b38so3516542lfv.4 for ; Fri, 19 Aug 2022 06:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=dP94wt5jHiSTgYi6J94tIJEwZ2nFwZSjrOFlQEqy3Jo=; b=tQL0p9TlZIZHpUyp5n0TdCgLom+rIFjCY8pfenGQq1i5z8DPqE3DEvdkvtkmngn5UB oXVrWU04KLVWV02GJBFIkfP8MjHg+j2C1H0uvUztWMSWLcl1ddnD+92noIrgqu6kBRtr gae/QRIh4uPRnFuAiHfavmYZH1AgdbK4xGqhNsmqsdc+/QHZQFgRnuELIz29ws7/Z526 P4evt7hgUVNdMG3UMa8U5ZmvX4NSQ4ATp/7RFWf70AIyDgfhUfrZDTuiAHEvBv6vrCYq bQSXsekwDNUkEsWzjxdO56uz8GY+EibdrpxR5w0o6hTFIuSygU97V7JUJBvR8Tp5420j AmNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=dP94wt5jHiSTgYi6J94tIJEwZ2nFwZSjrOFlQEqy3Jo=; b=L8+McEqOxb0FF58dJGUZfR5jjTNGNc9NS67pYY6Nr4pnpEbBMMAKFQHiWr30wEjCyo niNVnYtxIEjZGPOssvAxIdFzmg34yDVJoIinSF+0xJy6j9nb8UcFsIhJhxj9QOMnv3IL 8yhfg6JAt6wQuY6QwKU2w2MB5QVXnFlWAYW4c0rufpL8z/m9Pusws1OCfe8WTb3WTQXQ jXu5wqheaOkTkOksttGYatgxl/pgpmx0Jgm4o7twFI4iZgw2amiQwPKVI6d9QXhXe6/B 8g6C6f7mSCpPLyPuDEKW1shT5ghxd//vb3pn52mMolBSBMavJmzII/R8Du0NkfjZbLZN o7dw== X-Gm-Message-State: ACgBeo1HkNzTwE7CfZI/cVXRN3udqAfKc9LU1uBrYWpbE1nZTIcvwhdK F+j6KhwE5c9755zen9AmVmwhow== X-Received: by 2002:a05:6512:1399:b0:486:2ae5:be71 with SMTP id p25-20020a056512139900b004862ae5be71mr2393901lfa.246.1660915720766; Fri, 19 Aug 2022 06:28:40 -0700 (PDT) Received: from ?IPV6:2001:14bb:ac:e5a8:ef73:73ed:75b3:8ed5? (d1xw6v77xrs23np8r6z-4.rev.dnainternet.fi. [2001:14bb:ac:e5a8:ef73:73ed:75b3:8ed5]) by smtp.gmail.com with ESMTPSA id s8-20020a197708000000b0048a891e4d88sm638853lfc.193.2022.08.19.06.28.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Aug 2022 06:28:40 -0700 (PDT) Message-ID: Date: Fri, 19 Aug 2022 16:28:38 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 6/6] riscv: dts: microchip: add the mpfs' fabric clock control Content-Language: en-US To: Conor.Dooley@microchip.com, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, palmer@dabbelt.com, Daire.McNamara@microchip.com Cc: paul.walmsley@sifive.com, aou@eecs.berkeley.edu, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org References: <20220819122259.183600-1-conor.dooley@microchip.com> <20220819122259.183600-7-conor.dooley@microchip.com> <3df8d4bd-3d38-cecd-6589-ccc1be01b886@linaro.org> <3ffba600-bda9-8ffa-a435-9a6f94e072b8@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <3ffba600-bda9-8ffa-a435-9a6f94e072b8@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 19/08/2022 16:15, Conor.Dooley@microchip.com wrote: >>> >>> + ccc_se: cccseclk@38010000 { >> >> Although you call it "Clock Conditioning Circuitry", but the role of >> this device is a clock-controller, isn't it? If so, node names should be >> generic, so "clock-controller". > > Thanks for the prompt reply Krzysztof! > I suspected that this is what I was going to hear back. The reason I > had used the non-generic node name is that I wanted to use it for the > "name" of the clocks in the clock framework. As you can see, there are > four instances of the same clock, and I am using the of_node's name to > generate the unique names the clock framework requires, like so: > > # cat clk_summary > clock > ------------------------- > cccrefclk > cccnwclk_pll1 > cccnwclk_pll1_out3 > cccnwclk_pll1_out2 > cccnwclk_pll1_out1 > cccnwclk_pll1_out0 > cccnwclk_pll0 > cccnwclk_pll0_out3 > cccnwclk_pll0_out2 > cccnwclk_pll0_out1 > cccnwclk_pll0_out0 > cccswclk_pll1 > cccswclk_pll1_out3 > cccswclk_pll1_out2 > cccswclk_pll1_out1 > cccswclk_pll1_out0 > cccnsclk_pll0 > cccswclk_pll0_out3 > cccswclk_pll0_out2 > cccswclk_pll0_out1 > cccswclk_pll0_out0 > > Maybe that is me exploiting the "should", but I was not sure how to > include the location in the devicetree. Neither node names nor clock names are considered an ABI, but some pieces like to rely on them. Now you created such dependency so imagine someone prepares a DTSI/DTS with "clock-controller" names for all four blocks. How you driver would behave? The DTS would be perfectly valid but driver would not accept it (conflicting names) or behave incorrect. I think what you need is the clock-output-names property. The core schema dtschema/schemas/clock/clock.yaml recommends unified interpretation of it - list of names for all the clocks - but accepts other uses, e.g. as a prefix. > > I had experimented with a "microchip,ordinal" or "microchip,location" > string property to do the same thing but I thought you/Rob might not > like that - is location/placement on the chip a relevant property of the > hardware? I'd argue that for an FPGA, where the user is the one deciding > what clocks what, it could be relevant to some degree. > > Knowing if a CCC is the north-west one has some extra benefits as it > is co-located with the PLLs for the processor & has a reduced input > mux range. > > Any suggestions would be appreciated, even if it is just a NAK to all of > the above! Best regards, Krzysztof