Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1288033pxb; Wed, 10 Feb 2021 05:06:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvPXvIjmPKNnQGPYYIwF9T5zDQp7z6ij/Or2OC+6rpklfI2hOeuLftkDOP8cQyX63LgSeK X-Received: by 2002:aa7:c843:: with SMTP id g3mr3102919edt.228.1612962405476; Wed, 10 Feb 2021 05:06:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612962405; cv=none; d=google.com; s=arc-20160816; b=aj/C98x+GSzLGDrYieKZn0H5kC1Cj1DoX21EqzFxrkdJCMjtUW67X/RF8oCz40FwIY esYAFbfKWGwedpZVG55jYPSj67cvl0Ma+xzRs4niXvLgExv5lT+1X9HDiUg7EUjBmN63 u+nxZ6y/4cd8wOuztlAvZwiQkAcLs10wwwpPiWqaLhMBPrpIPI8MLRxsXOnPniNK6/q1 yVy/ApMILbRT5OLNAethgauWOiHgbB6b69t5RrH5XyCdwXm7ZdpG8ynx11qVtnJCyxNR 0LPe9+IZ5qJGetrRtUxZhmn+PkRaNBMwKNnXlhrw1T4cRd1TAhaOfR0rUM5CShjmyH35 WWaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=9RsoJud867fRWqglOKa/tHgYpL4Vc9QvsiKga3SJrbY=; b=K8N3s8IHsLncmW8IMuqCHdZ1bvArg7GlTqELLZRjc80Pf7l1URmLMXPiUNuFHHW26Z RZ+tqinV19QhnTySTJ4N9e28Jrqvphz488DLRXb8ZwlNVK2UogRJUL9ymzP7OFRfIRiN 2EVZBBJXOMSO1PRxH9SkFSEDpE8ywZVTrnpQxmMzI2c56up+zupQ9LxWsJQnTnOUQEID 5UJpQrCsl3wQRztz065BbaboXvWN85Iq1CW2o9B7JzVDj+Om+eHAd79+ke3U//aKT4Tn DHsya/sbl+bwTfFIf2iHbriQQmoFJPdCk0sicVZPT71sulVRaHXU1okvygPNcLHQI+WM HO1Q== 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 ly19si1225617ejb.16.2021.02.10.05.06.21; Wed, 10 Feb 2021 05:06:45 -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 S231913AbhBJNCr (ORCPT + 99 others); Wed, 10 Feb 2021 08:02:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231701AbhBJM6J (ORCPT ); Wed, 10 Feb 2021 07:58:09 -0500 Received: from mail.marcansoft.com (marcansoft.com [IPv6:2a01:298:fe:f::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65895C061574; Wed, 10 Feb 2021 04:56:15 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id B7B3541FA3; Wed, 10 Feb 2021 12:56:10 +0000 (UTC) Subject: Re: [PATCH 18/18] arm64: apple: Add initial Mac Mini 2020 (M1) devicetree To: Daniel Palmer Cc: Tony Lindgren , Arnd Bergmann , DTML , Marc Zyngier , Linux Kernel Mailing List , Krzysztof Kozlowski , SoC Team , Rob Herring , Olof Johansson , linux-arm-kernel 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> From: Hector Martin Message-ID: <3d61ca6d-98a1-b78a-07da-cd20834de5a1@marcan.st> Date: Wed, 10 Feb 2021 21:56:08 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: es-ES Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/02/2021 21.24, Daniel Palmer wrote: > 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. So far the answer seems to be to take the best guess available, and then we get to fix it until we have real users and breaking DT compatibility is no longer an option... :-) >> 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. In our case it's an existing driver (with patches) that is already integrated with the clock infrastructure, so it makes sense to use a fixed-clock instead of just an ad-hoc property. -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub