Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp976325pxb; Tue, 9 Feb 2021 18:36:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNWvM1OeWhqLAHnm793qaF9NWW8EWu0WVVDiy+mqBVa1IxIyHEr9YUwxvwC8d9cu06ROSK X-Received: by 2002:a17:907:20c4:: with SMTP id qq4mr661951ejb.495.1612924608300; Tue, 09 Feb 2021 18:36:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612924608; cv=none; d=google.com; s=arc-20160816; b=u2hXh7CGCYq3mH6nVOkH/dlosBZvG46b77FY6SBom1fzTuD7lw2u+3vd7rv4Em3VSr nEQfG0905oJHk37R8mR1e1+hFaCHNBLnqvDlUMTkUOkibDQHeg8X7/WJ4DebJUSlzKrC Bw6EnK+c6cjbHf0jfIMhdPDPNWukV7OdZH6pgpfdEsGJCPWr2NP10dLs7MCnI6gsYEw9 8uBWwmYYuJ6bW6E7jfwdXObLrUm+T+0HwNdJ6KJ2efLeXZgG3Y9IHR2l6OVoxq8bVuEm b9frfbHur7ngoC3vTVQ/JudC6LWPVrBc7iQFUtea1cddmAxp5R084yHcWzF0tK8RTnU8 LlzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=3fQBjtW1Mdha9yJZCx9Xg5D01MQQm7xRFGEl2+CNzjU=; b=kRVYNcfUdqFeu6YQ1uO4YOc1MNVhPTXdrRuyms3PGAGSZVnsjNirrEv4UXag2kCitQ eEB4tu0cr0X173Ol5rK8fbpjVY+BPqOlQmSW46H1RpvCcab0NSBGuYyT24aS1gCVxF+S NhX4j37+DCT9qT8Ihk1vWj3Cx5XCjt0QYQAtQ1PcLBgJ2Ls2ZVJi19XTOTfnfyU8a9OG OQvgqiCzVq7rkiJotOyWiEOlDS1ln2Kjwk2lKk87i73mHE9wVaM+de5O6rfjdySrn9gx qeZ9VbUabaofH/+nd0Dkw3lKJfsWuOsapKf3rqhn/2ErgtLzU6z9CHT1j4m+wRa+61LW 8kgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oyEYhFwp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si495340edy.263.2021.02.09.18.36.25; Tue, 09 Feb 2021 18:36:48 -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=@kernel.org header.s=k20201202 header.b=oyEYhFwp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235328AbhBJCfq (ORCPT + 99 others); Tue, 9 Feb 2021 21:35:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:60844 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235292AbhBJCaV (ORCPT ); Tue, 9 Feb 2021 21:30:21 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3390D64E2E; Wed, 10 Feb 2021 02:29:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612924172; bh=3Mx7WnlVCi7iLf7Z4T8FAAbN3TrWqbP/lKf4nZEbdEI=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=oyEYhFwp0DZbNc0cAh3kBUdou6YamNQI7Z3Of1bdT3vpMiQKL1d/uq6vfxY1N7yla 9Aa+C+wmjXJl/v0Re0Qp13yRBK4r+lyLjJO00fo36ksp8eZNn0XrMncxAAt7vPST70 Zi/kMiZITEWwmy/OHfPbvdokc7s6LernVW8SygGPxxmdMzKfbUm/rJ3ZOMHuoIuV4m JD+j4G2KH7xy2hsbuxIjsav2sl3BXCHhKRf4ek1A28TotTsZpfmxzTv5Y9IV2Wj/LX e8ZwMT1TW342ZD/NgLL+77mChT1kFrv9EHTtpGc1PhI5HM41S3BZR65qTfRjPO4lkG EyamCSw/n0gfg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20201114135044.724385-1-daniel@0x0f.com> <20201114135044.724385-3-daniel@0x0f.com> <160843556037.1580929.13575770228476494246@swboyd.mtv.corp.google.com> <160848984935.1580929.936824086681978646@swboyd.mtv.corp.google.com> Subject: Re: [PATCH 2/6] dt-bindings: clk: mstar msc313 mpll binding description From: Stephen Boyd Cc: DTML , linux-clk@vger.kernel.org, linux-arm-kernel , Linux Kernel Mailing List , Willy Tarreau To: Daniel Palmer Date: Tue, 09 Feb 2021 18:29:30 -0800 Message-ID: <161292417080.418021.13416197091150418216@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Daniel Palmer (2020-12-21 00:51:56) > Hi Stephen, >=20 > On Mon, 21 Dec 2020 at 03:44, Stephen Boyd wrote: > > > > Quoting Daniel Palmer (2020-12-19 22:35:41) > > > Hi Stephen, > > > > > > On Sun, 20 Dec 2020 at 12:39, Stephen Boyd wrote: > > > > > + clock-output-names: > > > > > + minItems: 8 > > > > > + maxItems: 8 > > > > > + description: | > > > > > + This should provide a name for the internal PLL clock and = then > > > > > + a name for each of the divided outputs. > > > > > > > > Is this necessary? > > > > > > I found without the names specified in the dt probing of muxes that > > > depend on the outputs but appear earlier didn't work. > > > Also this same PLL layout seems to be used in some other places so > > > eventually I was thinking this driver would get used for those PLLs > > > with different output names. > > > > Still seems like it could be auto-generated based on dev_name() + > > number. >=20 > At one point I had something similar to that where the output names > were generated at probe. > Without the clock outputs listed in the device tree clock muxes that > source clocks from the mpll couldn't probe properly as they couldn't > look up all of their parents if they probed before the mpll. > Maybe I'm doing something wrong there? I couldn't find a way to always > resolve all of the parents or defer the probe of the muxes until the > mpll clocks are registered. >=20 The child clks should be using clk_parent_data to point to the parent clks through DT. That way the name of the clk doesn't matter except for debug purposes.