Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1266821pxb; Wed, 10 Feb 2021 04:31:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzC4fRf1qWtqU/ypC8sKOiP2R/QbPpzbCtAxnJse3Lt5k08+G5+xo7Ylc4R35vE9DiRqMyx X-Received: by 2002:a17:906:3f96:: with SMTP id b22mr2685332ejj.478.1612960277307; Wed, 10 Feb 2021 04:31:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612960277; cv=none; d=google.com; s=arc-20160816; b=f3X52dFZciJFbKL1txOtVGTXtbhv+tMWzIkTWprPd74ur3RURq5a184sNnShk/R1Id +Hyr92wQW9PcqzF0IzlHVeuLzwPcnHJN9nDQyB2MypYGB7YAQXtJANfgD0Pj6B8OkKbL YqBm7iUMoqkNxadZk31z1aL6vVSLt8rzQ9hQpMSG0qrW6pIouCcMT/YDWCbKHUY2SEef z6iC6TdWyKo8iPk0WAW+Q6UyujU8dVDYnOg0ohu795DF1o3i+UKzjr9I73ThU6obN4Mn cpazaRDViofSeBYYSl4qAct0mW5stHcAm5jIdjWiyMv+C4zlZsw7UJ1p3UihhzC2Kj0i goTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LISi+Oc9GTZ5oHTm+YUr6VLWACgROuri9cGJPLpozgI=; b=sHUeiuzPxJ9vCkJvKP7i45HNAosLIlSRX0UX2/KOFWBPT6W3azqf10WF3AMevLdZij mznmxVlruvbWCjykAM2Lg6N90mxXijtdWemcwR5qA5DLiv2Fhu86f0oz4m2unpO3sYei kq3a8RZUrFbVSQzlsCa0rr5R4usE/JlSrQaqthphO5wth/7ysVJ+Y+wAH6O9rTx/j25E VH3NGWBntAzzaO0CxfQGa0RniW2G19ysCIuKkQSH+qxC44X9mmRRoZfKq0vMIrO4uYu/ goY188Kz3+ej9K23Et2WdR1vQL78upyJfTHdW5nq1DJ+ShENDbsugXhLLYOvk3eKr8pk omEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=EW9Gs12u; 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 f20si1200716ejk.711.2021.02.10.04.30.53; Wed, 10 Feb 2021 04:31:17 -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; dkim=pass header.i=@0x0f.com header.s=google header.b=EW9Gs12u; 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 S231810AbhBJM1k (ORCPT + 99 others); Wed, 10 Feb 2021 07:27:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbhBJMYy (ORCPT ); Wed, 10 Feb 2021 07:24:54 -0500 Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55C52C061786 for ; Wed, 10 Feb 2021 04:24:14 -0800 (PST) Received: by mail-qt1-x832.google.com with SMTP id z22so1302288qto.7 for ; Wed, 10 Feb 2021 04:24:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LISi+Oc9GTZ5oHTm+YUr6VLWACgROuri9cGJPLpozgI=; b=EW9Gs12uxdYBPULSVoXhyzBNha9rowbDBkjznSNaTFNaiTV56gKyrVP5MVjdlsaoBp SynP8rRSvYLNNcbAltAfGysTSBI9lsE9Nl+/l90licN9Ut8RU5i2wAdZMLR/dr6Z+vjQ ghbeYAQ2zgUg+JxD3Pys4HZTNJDGYOu1VEbns= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LISi+Oc9GTZ5oHTm+YUr6VLWACgROuri9cGJPLpozgI=; b=HATor23oRHM9y1dyLpyhk2RIc3Wx/8mfpllZqhPP+/cB1YxARO9aiadPWBYK05riaK 6oH0AJ56yk9hB8RPKh89zc+QwG1XMESIWxhD3hrFqN14+HBO40dSpF+BkSDB4ZtWe9FS /nzyh+1DrFI+kBqMSxoa4ADDKvHMLxT5zzc5QA2hjTeXtp6XxNEAndju4wXTsAxOETho Dg/T8oAkCkdOvQ0C4jC5tEW96/jIzh8TAO8Vy7iNix+go31FqIZV0RqAXxqbYUuSC0wD pjWpD0nS6f8At+NI1dXghuBqN0hd0scImptnb4HKoXZg6+YUZ542lU5I+ENd2OAN/5wd f0JA== X-Gm-Message-State: AOAM531nP6byDuQ4y2z3AUqTlpH9+uTM6hU6Hh6R+PEAPjrU1GMh4TUV AIlDXaf+Zn2E5e55DpcALlSa102IeKlEIH7obgIOhw== X-Received: by 2002:a05:622a:4ce:: with SMTP id q14mr2498595qtx.132.1612959853524; Wed, 10 Feb 2021 04:24:13 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: <4dd911d8-ce84-bf4d-3aae-95ef321b4a97@marcan.st> From: Daniel Palmer Date: Wed, 10 Feb 2021 21:24:02 +0900 Message-ID: Subject: Re: [PATCH 18/18] arm64: apple: Add initial Mac Mini 2020 (M1) devicetree To: Hector Martin Cc: Tony Lindgren , Arnd Bergmann , DTML , Marc Zyngier , Linux Kernel Mailing List , Krzysztof Kozlowski , SoC Team , Rob Herring , Olof Johansson , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cheers, Daniel