Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1605056rwb; Fri, 19 Aug 2022 06:33:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR5oD+TNPiWRop3vLy9LW/olmYtjqZK14k1ETMnc2dyYCeg/5GWReubQ2B3qWb5ho4cIzERy X-Received: by 2002:a17:906:770d:b0:73c:a08f:593c with SMTP id q13-20020a170906770d00b0073ca08f593cmr2945367ejm.182.1660915986710; Fri, 19 Aug 2022 06:33:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660915986; cv=none; d=google.com; s=arc-20160816; b=NrAALMEq8LGtrgFHbyh5WAf/PuWo5hvEGMFT54HCA1z40UTDf53L5A2rOyJ3Fu1+hy j9Nf6+AIDZbK1NaWeojmYNCEPIJZ/tAIg3r0NM8IGFbVZKJh8xiRu1NqxpcZSqEEl4TN 1Eg3g0Ju4N09KyShinzkebKqZmkB1UxcK0vY6saPIeZt+cT5YS066Pl1eistodRh47Sd Bw5t9tPyA9A4WzNHR6cv/9T5Q6ATca2XZsxPi4QMeQLloNtQ3GtO+UqGCvvfU9w75N59 9bjMWSpQRhKshllj3+Ig2wA9tj/c23yILFCeIQshG2dWuLZsgaM0RWmp47Tr8uYo+fpY OVog== 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=D4OnEbAEzRBeQeg3hRcaY4ZzP+Li/Cr5jkVWg1DWFSg=; b=JkdEx79Hn9d/+0UISRoRv5aihvBdrp5nuzo+bOD36PWECxLX0qpXt6PktwtT8oddd5 JZq0Y8ry6hTUdYc4EI3PiM3YAXPhsNMDeOiwNNXIVwIEPT4p3KvX/JETw9Lkb1MjdwTH 3m/HyxHv1OhM6hFgp6laaRw7hSe+u519nP2LP8OKW8iuFfL9t0IKO3PP4gaisV+IABAo MvlffcDtoE1aczh9No27TpZh4gcMJ+OlDdas6D/5VV5V5NsVf1kJYtuURjd/roLzhDOD dxIcYnCyK9E2Cxy7kz/YzYZcExaG2cKyfz+IylBdk89gj3MMSosBnVve/b48bdsuJ27e BeMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lUxIIhlK; 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 hq29-20020a1709073f1d00b0073bfb7311fdsi3101243ejc.462.2022.08.19.06.32.40; Fri, 19 Aug 2022 06:33:06 -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=lUxIIhlK; 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 S1349069AbiHSMr6 (ORCPT + 99 others); Fri, 19 Aug 2022 08:47:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348966AbiHSMrx (ORCPT ); Fri, 19 Aug 2022 08:47:53 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC487101C60 for ; Fri, 19 Aug 2022 05:47:51 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id l1so5464880lfk.8 for ; Fri, 19 Aug 2022 05:47:51 -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=D4OnEbAEzRBeQeg3hRcaY4ZzP+Li/Cr5jkVWg1DWFSg=; b=lUxIIhlKYF+UhNDXmDvDFbRA4kClWNgyDPOsVtb3kuftUEwO4MeFUaeifgbEcC1aIH cZgXGrQwVMEGV7gfIY6+mClPE+MLwiZaDBHo4UBrArheiUhVyfatxJ2VXI3qS2AfhXN4 hPOg+Y+YdNTJFT5w+/dF9BudPumS4EXob0iX3+kyzC/3bzXe0xhpgcOmcYkGlgzHYPXq 9svJNwzD2yH+MO/nF5qjstIbCGs24QwzKQ6COhxkdLbjBhMwBKscGpbB+fAlvOp78XB5 RbQedp8cHp++FOI8dfG0/CVSlEu9GOXcooRZy0iPh50g0A23X1Pui73nf8OtHyv//8c+ LhlQ== 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=D4OnEbAEzRBeQeg3hRcaY4ZzP+Li/Cr5jkVWg1DWFSg=; b=S4UBDMmqMTExJci2dRXn34U+e4fmHiIn5d3NgXtUEE8MOnWzftrsPrzGN/J5g7S3PP PxwS+xHZcJgoR+0m6m9hBaAJ5BH6PJ9imGQpD9BXV4MrDR6MV6LuYNPUexhEBMkMWPkq 1Zs4STmf2ql5FCEHRiHFlHYbRKL76EH/4KOX1+wn30CYoFQPQ9Aq8PH36E8lcoMdf/yX Us9OYYyjQ4wnGciJnM88xdAfIjpGxV+kDMbHbwc+yG+u3bc18C9+mAvdRWlew82+zG1w 6ECsPDdFJskOb5/xNT0vn9LhS2mZRrocqN+r6rXawtVArIW60mAwuRZAe5uEif4EWTWU Th7A== X-Gm-Message-State: ACgBeo3gKNMusEGfEmDQtgzYa1/Vo5resQMn9UN9mQBD3S3yYPil8Zhl AeUlDURbuzL+gdbBDsZA3WTxjQ== X-Received: by 2002:ac2:5f77:0:b0:48b:3886:5d55 with SMTP id c23-20020ac25f77000000b0048b38865d55mr2259653lfc.668.1660913270258; Fri, 19 Aug 2022 05:47:50 -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 v28-20020ac258fc000000b0048b37d29256sm631729lfo.63.2022.08.19.05.47.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Aug 2022 05:47:49 -0700 (PDT) Message-ID: <3df8d4bd-3d38-cecd-6589-ccc1be01b886@linaro.org> Date: Fri, 19 Aug 2022 15:47:48 +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 , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Daire McNamara Cc: Paul Walmsley , Albert Ou , 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> From: Krzysztof Kozlowski In-Reply-To: <20220819122259.183600-7-conor.dooley@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 15:23, Conor Dooley wrote: > The "fabric clocks" in current PolarFire SoC device trees are not > really fixed clocks. Their frequency is set by the bitstream, so having > them located in -fabric.dtsi is not a problem - they're just as "fixed" > as the IP blocks etc used in the FPGA fabric. > However, their configuration can be read at runtime (and to an extent > they can be controlled, although the intended usage is static > configurations set by the bitstream) through the system controller bus. > Thank you for your patch. There is something to discuss/improve. > +&pcie { > + clocks = <&fabric_clk1>, <&fabric_clk1>, <&fabric_clk3>; > + clock-names = "fic0", "fic1", "fic3"; > +}; > diff --git a/arch/riscv/boot/dts/microchip/mpfs.dtsi b/arch/riscv/boot/dts/microchip/mpfs.dtsi > index 499c2e63ad35..dd15b6d1a3c9 100644 > --- a/arch/riscv/boot/dts/microchip/mpfs.dtsi > +++ b/arch/riscv/boot/dts/microchip/mpfs.dtsi > @@ -236,6 +236,38 @@ clkcfg: clkcfg@20002000 { > #clock-cells = <1>; > }; > > + 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". https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation Best regards, Krzysztof