Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13481756rwl; Wed, 4 Jan 2023 08:43:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXv6iU+BakAbcrMo/vVdLlYHe28G7gxtWkIgCPbpR8bUoMCA/sHud1ZLucV0y4ikSDWEfvZ+ X-Received: by 2002:a05:6a20:c51b:b0:ad:b91c:96d7 with SMTP id gm27-20020a056a20c51b00b000adb91c96d7mr53807587pzb.51.1672850594440; Wed, 04 Jan 2023 08:43:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672850594; cv=none; d=google.com; s=arc-20160816; b=J60N0GsbK0lLArX5qnPgTApKlpuAlecbFUbZHTyDUeQHcCvpaTnvAw/61cz2GHAj8I za2ZF9b27vgQE6M/cQ7oreqYX61BppZmaUf1ttMWSA8t3DJDtDon2MS3mkQQELZXvJqU kUJDO6ndouIFgSQpBUf8eP3oN0Cs9SMmBLQWzYMpgMEKr8kUbez7oebgVYF6bXhRnqJf OY4lKoy9goylEnZM/rxQO4zo4RC14+acekcDo1qMze7zcwanRSWE5P9AHcebMjl1Wkpf FE+/DWy5PnvlHMYOKJK46M/bgOi79aqjv42sTZf2e5IGKTL2b5N2x5yc0DxT8bbHhFwQ elfQ== 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=7Fdz8ydnkLz5wna1uPMyDPqPnfgZcb47kfpiU1wAhAo=; b=hktMWYn2hyF5y/TvjkKXXx5lvvlmYtIotx+/DsYTN4L3755HNYDETJxTr1nZHI4xuZ 6onfL2srkjbFRk3ie4A/0J/IhBSgahzrgJdWWZs2rYNT96G+yYASrSgezjgcCM6mNvBQ Tk3+mX7DxkdL/1kvQ/MQj/4L4kP7TsmIg4KQSdzx9DEdhpfMSg4OnbDm4IfHi4D3CsHd 1crAJGBvnFfBjgWmd3+gpUl8bYS52kzJMVlDp/k08BzanN4g1xOOa3bJj0zfK3z0XucC ar4awXup06N3PuC7fZe9qhxjRV/RAb60/iIIQgppt2DOIN9RGi9zitJVS5MpuoEDnppy pwVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GLxN5JXu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a63e855000000b0047916fa90e6si35035220pgk.873.2023.01.04.08.43.05; Wed, 04 Jan 2023 08:43:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GLxN5JXu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239793AbjADQKW (ORCPT + 57 others); Wed, 4 Jan 2023 11:10:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239748AbjADQJj (ORCPT ); Wed, 4 Jan 2023 11:09:39 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B009640852 for ; Wed, 4 Jan 2023 08:09:19 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id i15so49281411edf.2 for ; Wed, 04 Jan 2023 08:09:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7Fdz8ydnkLz5wna1uPMyDPqPnfgZcb47kfpiU1wAhAo=; b=GLxN5JXuiOtzMgmWrdYlcn0q2EhxBeBj1Rl8jzjd0XS6VAIeuEbKEWnWpKnCu4FZsi /M4yqOkCuBcCOPjewV8qkVtP4lrZJXY37qkXPCp125xA85llOpBibFgovnnHpVgVfCkZ UDkOFnE6O6SFEzF3Ov+SbSMj0cf6n2R3GNslY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7Fdz8ydnkLz5wna1uPMyDPqPnfgZcb47kfpiU1wAhAo=; b=MkuP9KUwZIrOsSrB0EHbWjHFQNPL54uVpHdetnZgvchRWTM8WaC6EnLGR+iVrXpwn4 GcCjegS19mMWH3na0D1YbQQUbk+osEj9cd0qM+LpQFphCcu8Mx4XW3BMLxfPGKEqILcW 1GMUpm2CjDPzpPwFS+w2LQMHgd6jPp9Iv53F0UT+M6NNXy/KXUzktBCxoMBsC8cm3bBx C9UIq0qq2ShI8Igfk/yYLGTTz0gZLoz/Er+RKmLINVX6RFawJAc+KrpKnBaNnhEf5fKK kd0a2+QBp5TYO4+SFxpMOH+dY/y6hFLQkF8Cu6hfJknTafXQVlqnpjC87OPB5UzZffw7 Au3Q== X-Gm-Message-State: AFqh2kpSQDZZZj0jzaFUghYXYy+ZkLeGFbNoMOJXSx3zmTblqm6b/VK+ B/M7UN2sGHlfxvf3yFbyVXNaYywSgKDk/EDBswTLMvi1hFzmAqzDoHQ= X-Received: by 2002:aa7:d35a:0:b0:46c:4b56:8c06 with SMTP id m26-20020aa7d35a000000b0046c4b568c06mr4381025edr.230.1672848558235; Wed, 04 Jan 2023 08:09:18 -0800 (PST) MIME-Version: 1.0 References: <20230101175740.1010258-1-dario.binacchi@amarulasolutions.com> <73979439-2e41-c4ea-02e0-d382f7ae1459@denx.de> In-Reply-To: <73979439-2e41-c4ea-02e0-d382f7ae1459@denx.de> From: Dario Binacchi Date: Wed, 4 Jan 2023 17:09:07 +0100 Message-ID: Subject: Re: [RFC PATCH v2 00/11] clk: imx8mn: setup clocks from the device tree To: Marek Vasut Cc: linux-kernel@vger.kernel.org, angelo@amarulasolutions.com, michael@amarulasolutions.com, tommaso.merciai@amarulasolutions.com, Chen-Yu Tsai , linux-amarula@amarulasolutions.com, anthony@amarulasolutions.com, jagan@amarulasolutions.com, Abel Vesa , Adam Ford , Fabio Estevam , Krzysztof Kozlowski , Li Jun , Lucas Stach , Markus Niebel , Michael Turquette , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marek, On Tue, Jan 3, 2023 at 12:04 AM Marek Vasut wrote: > > On 1/1/23 18:57, Dario Binacchi wrote: > > The idea for this series was born back from Dublin (ELCE 2022) after > > having attended the talk entitled "Updating and Modernizing Clock > > Drivers" held by Chen-Yu Tsai and the availability of a board with > > imx8mn SOC. > > > > This series aims to setup all imx8mn's clocks from the device tree and > > remove the legacy setup code with hardwired parameters. > > > > I am well aware that the series lacks patches for the DT bindings. The > > effort up to this point has been important and so I thought I'd ask for > > feedback from the community before proceeding to implement them. If it > > is positive I will add the DT binding patches starting from version 2. > > > > The series has been tested on the BSH SystemMaster (SMM) S2 board: > > https://www.apertis.org/reference_hardware/imx8mn_bsh_smm_s2pro_setup > > I might be wrong, but I vaguely recall AT91 (?) had this kind of massive > clock tree description in DT and they then switched to much simpler > clock description where the clock topology is encoded in the driver > instead (like what iMX does right now). It might be worth having a look > at that and the reasoning around that conversion. I took inspiration from Tero Kristo's work on the clock subsystem for TI platforms. I think he did a great job in both device tree definition and driver implementation. IMHO, this way the drivers are more flexible and the code can be more easily re-used on more platforms. Thanks and regards, Dario -- Dario Binacchi Senior Embedded Linux Developer dario.binacchi@amarulasolutions.com __________________________________ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 info@amarulasolutions.com www.amarulasolutions.com