Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1615354rda; Mon, 23 Oct 2023 19:51:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGZrG8oEg+/nU5/x2NoZCoE1BmxjUPjIQCtPQnk5ynetGCfxirqGh4GyUVTnWlXNkXtkOF X-Received: by 2002:a17:90b:3504:b0:27d:60b1:4f2c with SMTP id ls4-20020a17090b350400b0027d60b14f2cmr7843465pjb.4.1698115894342; Mon, 23 Oct 2023 19:51:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698115894; cv=none; d=google.com; s=arc-20160816; b=S5p1bxfAnXbnMbYd3wQl+VQPV3Z5DoN3h2uzj4+oUY9yA19kEgMjXzitpcJEJrg6Uz iNUMmW6gteTtAThxhWbXY5teGZDHasK20MBL8KTQo7lj4baq9qyA1gci+RUPHGJ7fSBY vDeTylaMyIbqDPoMANRw0KStikoplW59k18XSwATu448EO2MyD3/G1heyooQUmMG7WRw zV0SkvLB9+tV42HBNF18f9eqga6y+IwNHApQmHP9zA/uQ+pZM/UECDOfHSFnaMS5dosk yZQSwVpAWt7gmQTadZGnyLdSNhm8oV/Hjp2arTRFbPNTeP7qj1DlvKKzAUMI95LjHTtm /D/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=yzNsN0fJuoDE0YF62CjLJE3Ez0jv93LDuoFvhx5tmOU=; fh=rifzQXQG8uu0IaW2yzHvJuca8MjoTihcBbwoAF3oWvw=; b=CzrtIlV5wYCHwpMTmz1zqs5xpaytva4gsF/M4ZXvLChDn6plZc5m2hJRO67tKA43Dq 2I4ejgCmO6thcK35CqDQdsC/2Jkr+y3br1Wctn/rwY1RYhw3caEFyzdnCBQtnsBdLCLz Q8G3hy7LG+2E5pYfFnM1zqzcL4fxdSHGWfr2DxIcvxss4+jAwy3+YHvYu2uIdVu75j34 /JVgf2mVl+tTWWHSy9F5eYrP+r4vTg56Y2KmXtqzEOd7f55jQ3AaVsrg0w6uu/i7Fu6W ISPGrt6ajEEm+rM8cn+2xJb5iV0uZ/uXbhtqXS53Qn3flsEDgdI6R5ImQizCdT/E+wTD 8Hzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cgw613z2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id mj3-20020a17090b368300b0027450695a78si9358269pjb.172.2023.10.23.19.51.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 19:51:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cgw613z2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 3437A80A9308; Mon, 23 Oct 2023 19:51:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232412AbjJXCvH (ORCPT + 99 others); Mon, 23 Oct 2023 22:51:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232371AbjJXCvF (ORCPT ); Mon, 23 Oct 2023 22:51:05 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 170BE10A; Mon, 23 Oct 2023 19:50:59 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DB15C433C7; Tue, 24 Oct 2023 02:50:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698115858; bh=ECr5ZJxdFFyYc11ubfZSs54qOOUCIcaZ7LR/5g5OzUQ=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=cgw613z2rQFqTj8u9QjDMQCOA5in+b3q/5FTcamjTg/UCWbpCYzFcYJeclK5mcg0l EC1v98hT6UHw0SND4LyCUlSXqrF3xSvbNR0aBUb3VBZrrnt6R8bRsVhcXtVAt8aIMB XkwzaFBzoyA3g2KR1p4IoXReFjsbWIsG8/+o0x0QDGt1lrw1CTLb+hVX8s8VUy+ry8 G3b4Dsy7m7Do6fVYAW3SyBRldrBKWeIi2guxxwAeDLNprBW3IblGgJPEpslE9bViBY IgvhdCWPupt0vLMgNZi/MsKpUXu0Hnw2Bi8OHWj8Ab2mLOOWA+Z4wTLF6MiXydtW6z 3FcO/gsUKC2mA== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230915-ep93xx-v4-4-a1d779dcec10@maquefel.me> References: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> <20230915-ep93xx-v4-4-a1d779dcec10@maquefel.me> Subject: Re: [PATCH v4 04/42] clk: ep93xx: add DT support for Cirrus EP93xx From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Arnd Bergmann , Alexander Sverdlin To: Michael Turquette , Nikita Shubin via B4 Relay , nikita.shubin@maquefel.me Date: Mon, 23 Oct 2023 19:50:56 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 23 Oct 2023 19:51:28 -0700 (PDT) Quoting Nikita Shubin via B4 Relay (2023-09-15 01:10:46) > diff --git a/drivers/clk/clk-ep93xx.c b/drivers/clk/clk-ep93xx.c > new file mode 100644 > index 000000000000..e8d3bd595255 > --- /dev/null > +++ b/drivers/clk/clk-ep93xx.c > @@ -0,0 +1,753 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +/* > + * Clock control for Cirrus EP93xx chips. [...] > +#define EP93XX_SYSCON_KEYTCHCLKDIV_KEN 15 > +#define EP93XX_SYSCON_KEYTCHCLKDIV_KDIV 0 > +#define EP93XX_SYSCON_CHIPID 0x94 > +#define EP93XX_SYSCON_CHIPID_ID 0x9213 > + > +static const char adc_divisors[] =3D { 16, 4 }; > +static const char sclk_divisors[] =3D { 2, 4 }; > +static const char lrclk_divisors[] =3D { 32, 64, 128 }; > + > +static const struct clk_parent_data ep93xx_clk_parents[] =3D { > + { .fw_name =3D "xtali", .name =3D "xtali" }, Drop name. And please drop fw_name too and set .index to 0 explicitly. > + { .index =3D -1, .name =3D "pll1" }, > + { .index =3D -1, .name =3D "pll2" }, These two should come from DT via index as well. The binding should be changed to list the pll. In the previous review you mentioned the SoC driver was populating these. The answer is yes that you should be providing an OF clk provider (and updating the binding) to provide those clks to this device node. Otherwise it won't be possible to describe the connection besides with the name fallback method, which is not desired. > +}; > +