Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1282463pxb; Wed, 10 Feb 2021 04:59:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzWRoEgYLg2cksuJrty6jiM8Q8xSxBxDi8lbGhuvun57zfB7glYR0leRlj04lKTA51Kwut X-Received: by 2002:a17:906:7b8d:: with SMTP id s13mr2760164ejo.479.1612961974485; Wed, 10 Feb 2021 04:59:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612961974; cv=none; d=google.com; s=arc-20160816; b=a2DY7rWBNp0LD9dTyppJ2NWqqwcJc97uNIPPwLZ99dTneOH2CL2xo318qopVmxDkmh RUHbgTV6BkVb8hApotZX6P0HNseD9LIurXAell2GF3+AwiMlsz+anf70D4vpTaou60uW LP0BJSq2lLz+tBFTbt/kVU1Q3w5k4NhqZOV9SiBYwb1nNIeqeRX/1SY4+G/qeKUE6JX/ 3x84TTn4Zd6lvctCFwrOdS9U0NtZ/uR3g3RqdVnz8g+fXjjhtMCCSpCmR4iBPyxLF/R6 Wj+ezf+P4k61j0FGgT5DWgDSjol3+Ep2DDEmcr7jqxgUVRMq07F/l8VcAQvyu+JWN2Lm JAIw== 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; bh=tJeEzIvKl3KSRj2ni1+c3BRVgFeZNDQ7vCSQOC7MZzY=; b=mlq/8mLhqD3fVs/PfpxXTxrfGGVJRaoC89as3OE2GptdoW0nKZfOTFZZ2YEWWckZ7D lQsd5fuhP2W/1VkwK8haV741oB3GRnBuOverIozz5NgXpsknssotdCO1Oi3mPO/qqpOY 7c+DxzUqTVW0Xws2fzpOEn7WXlLB1Ht6V/geoUMQP0zpO34Cr7fjk9it3o+f2ugT+0SX Qn13/uMralHrwWC2PmLFzpzdHL0ic6d0KF+RfUAS4w9mXZrUq87FcN7sXpB+cOI/TWRJ 065XwTYvVccinMZAr9EbA8sztGQxk7zSGW5Lc+IUMN6oWYfXVYTS3q5Ipyvq8IWx+po5 JiaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a18si1312675eds.428.2021.02.10.04.59.11; Wed, 10 Feb 2021 04:59:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230272AbhBJMzr (ORCPT + 99 others); Wed, 10 Feb 2021 07:55:47 -0500 Received: from muru.com ([72.249.23.125]:59866 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbhBJMzn (ORCPT ); Wed, 10 Feb 2021 07:55:43 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 589B880EB; Wed, 10 Feb 2021 12:55:17 +0000 (UTC) Date: Wed, 10 Feb 2021 14:54:56 +0200 From: Tony Lindgren To: Daniel Palmer Cc: Hector Martin , Arnd Bergmann , DTML , Marc Zyngier , Linux Kernel Mailing List , Krzysztof Kozlowski , SoC Team , Rob Herring , Olof Johansson , linux-arm-kernel , Stephen Boyd Subject: Re: [PATCH 18/18] arm64: apple: Add initial Mac Mini 2020 (M1) devicetree Message-ID: References: <20210204203951.52105-1-marcan@marcan.st> <20210204203951.52105-19-marcan@marcan.st> <20210208110441.25qc6yken4effd6c@kozik-lap> <4481998a-27f6-951e-bb4f-a9d2b95f211f@marcan.st> <4dd911d8-ce84-bf4d-3aae-95ef321b4a97@marcan.st> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Daniel Palmer [210210 12:24]: > Hi Hector, > > On Wed, 10 Feb 2021 at 20:49, Hector Martin wrote: > > > > Yeah, just don't use an imaginary dummy index for the reg. Use a real > > > register offset from a clock controller instance base, and a register > > > bit offset too if needed. > > > > I mean for fixed input clocks without any particular numbering, or for > > temporary fake clocks while we figure out the clock controller. Once a > > real clock controller is involved, if there are hardware indexes > > involved that are consistent then of course I'll use those in some way > > that makes sense. > > This exact problem exists for MStar/SigmaStar too. > As it stands there is no documentation to show what the actual clock > tree looks like so everything is guess and I need to come up with numbers. > I'm interested to see what the solution to this is as it will come up again > when mainlining chips without documentation. > > > > The purpose of the clock in this particular case is just to make the > > uart driver work, since it wants to know its reference clock; there is > > work to be done here to figure out the real clock tree > > FWIW arm/boot/dts/mstar-v7.dtsi has the same issue: Needs uart, > has no uart clock. In that instance the uart clock setup by u-boot > is passed to the uart driver as a property instead of creating a fake > clock. Using more local dts nodes for the fixed clocks might help a bit with the dummy numbering problem but is still not a nice solution. How about using node names like "clock-foo" for the fixed clocks? This would be along what we do for with regulator names. Rob and Stephen might have some better suggestions here. Regards, Tony