Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6202931iob; Tue, 10 May 2022 12:44:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf4mVY7gIWhlkZRtnKjENVC6v5wJz7V4I3nNUBIITKuSEFwf0AVW7DXpWybBbqjaX02xrc X-Received: by 2002:a05:6870:a107:b0:ed:9a88:88b8 with SMTP id m7-20020a056870a10700b000ed9a8888b8mr1034182oae.298.1652211876715; Tue, 10 May 2022 12:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652211876; cv=none; d=google.com; s=arc-20160816; b=m8Oa99rKt4slKMQXv0vYdHXrcNt2Nmkjac4tBvHs9ZXj4US0XTqKy9CX2RqzW2X1C3 P531P72ubW2131+ZEJ4cMF0YF8dd+K685SAtR2hqM41Q6Mgk4wxXTqgzsMGYeX+2cXL9 1p/zAdvsVd+nu6LVihJ9d4DX/SiaBJgdpJCs+2BYMi8Fx78z5hGnY3IIMizStrr4i70g RnRFso6Bga2YXCv2IA9ednRMuUPCBHwt/jSlNLAypZxcF4GxrhPAMVyGorzoiMFw11An 0rPW5yFAnNALe3X8g451R7yw/a4jfrVXJDXWaALMFms5VGY8I3KgeLZE/swV0UjseRbU ht7g== 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=L6IMO5LGjDZtfxTxahYjYfLwAJox1qHstZ/tNceRD6k=; b=XW7CvCJHeBnsSaP0oaHIsGsSe/+/DRGDoBnPJoB1rmaQnasdFMrmSG3GwH02VZk4sY ooFFccevNciU1S914dlxwHfTNvIU+nigQlsGd+JdGnKmZrnSkIPzPnupBpPZf4VvJvb9 DNf3xUbB3QaKlhKChSLntHEn2Qq8e+pDuw7too8UQIrAxYsY4Za645y29CYmai6yubeR b1hrg/32c0wuO+WynrvHTsf5qBR8UuvUbCykmkMdAocVdbsSoApu5+kK2r9ZUiYqaxbq 5eYWEI/2qSYuTCZY5yesKCQQ0Zc2DsQmoIXF4TRviWB0waU7XUyEKyM3HPtELY0nV1Eo j3Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=vxIttA9L; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 59-20020a9d0141000000b00606aa4bfc39si46460otu.31.2022.05.10.12.44.22; Tue, 10 May 2022 12:44:36 -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=@lunn.ch header.s=20171124 header.b=vxIttA9L; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241870AbiEJMmD (ORCPT + 99 others); Tue, 10 May 2022 08:42:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241865AbiEJMl7 (ORCPT ); Tue, 10 May 2022 08:41:59 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38109252DCF; Tue, 10 May 2022 05:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=L6IMO5LGjDZtfxTxahYjYfLwAJox1qHstZ/tNceRD6k=; b=vxIttA9LVr8/mhICmGcN18z2qt 0nsKNihJNly8ercr0LQDyfPRiNnWlmvxpeO6wZS0fdKfVe8OQeds7xi1iByv5x0VcgJT9pSwjbQrN MxmzOMqiaXAsaoyZ6sjuOhU0nGHVlk4bpv3WvVw5Dz1AKLlm/X81+meWvGrhJQg5upNI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1noP7X-0028N4-R8; Tue, 10 May 2022 14:37:43 +0200 Date: Tue, 10 May 2022 14:37:43 +0200 From: Andrew Lunn To: Krzysztof Kozlowski Cc: Chris Packham , "catalin.marinas@arm.com" , "will@kernel.org" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "gregory.clement@bootlin.com" , "sebastian.hesselbarth@gmail.com" , "kostap@marvell.com" , "robert.marko@sartura.hr" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: Re: [PATCH v5 1/2] arm64: dts: marvell: Add Armada 98DX2530 SoC and RD-AC5X board Message-ID: References: <20220504044624.951841-1-chris.packham@alliedtelesis.co.nz> <20220504044624.951841-2-chris.packham@alliedtelesis.co.nz> <6770d320-b998-0c9d-3824-0d429834b289@alliedtelesis.co.nz> <3498643b-cb2e-5685-65e0-7efe1113783f@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3498643b-cb2e-5685-65e0-7efe1113783f@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, May 10, 2022 at 09:08:08AM +0200, Krzysztof Kozlowski wrote: > On 10/05/2022 06:14, Chris Packham wrote: > > > > Based on the information I have (which isn't much) there is a ref_clk > > input that is connected to a 25MHz oscillator and then I'm assuming > > these are all generated from that with various dividers. 25MHz is the > > only documented option. > > > > There doesn't appear to be any documented register where I can read out > > the divider ratios. It might be nice I could have the fixed osc node and > > have these 3 clocks derived with fixed divisors but I don't see any what > > of achieving that. > > > OK, but where are the dividers? The ref_clk is outside of SoC, so should > be defined in board DTS (at least its rate). If the rest is in the SoC, > they are usually part of clock controller, because usually they belong > to some power domain or have some clock gating. 25MHz is a 'magic value' in Ethernet, nearly everything is based around it. And remember this SoC is basically an Ethernet switch with a small CPU glued on one side. If you gated clocks derived from the 25MHz reference clock, probably part of your Ethernet switch stops working, which is the whole point of this SoC. So i doubt there are gates on the derived clocks. If there is any gating and power domains, it is generally at a different level. You can power down individual ports of the Ethernet switch. But generally, there is one bit in a register somewhere to do that, and you don't have direct control over clocks and regulators etc. Andrew