Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1510458ybz; Thu, 16 Apr 2020 10:24:29 -0700 (PDT) X-Google-Smtp-Source: APiQypLz45OHOlVZKg1wp++A6WyXJcHNw3+0H6Em8/rquh3Xd0tPcg1vLW5p7Ut9+7a5EuIUl6TI X-Received: by 2002:a17:906:4356:: with SMTP id z22mr7610552ejm.334.1587057869649; Thu, 16 Apr 2020 10:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587057869; cv=none; d=google.com; s=arc-20160816; b=o/L6YcUtKZTep0FyKeE2dagzFHd97y99gctMHBrUiVXFmYc4WVRA0H6/L9KkcBptq4 7JiJxeV6zK3UF8Cnx8S/eB5N3XG5zwPpCKuUcp7pCj2YFCuzy+OcDoxXk8fzRA+66Awp F16War26/kRkG1kzypP+xdEP+VjWa/3EhjwYUMYcilXcW7F2BTyhA+OSK/XcXNY5VH+c 2zdh2Z3fin2OP3rl7cXJgMZ5zDypd6CuWFAuZOGt6cuztCfWERPZblSgIEgE55ru7+ZO JwjtSeCLn8TSbS/3GpyZEXATtP/ntu3vsFbePN1AGBRQ0NusgPFf3fck4zmAWpAQ4Lkk Xdkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=YP44z+regeUE82tc77cq6YKzlol5O8B8KxFxAztOyWg=; b=zJVA/vwr2ToiA1u+Ei16pn3lUctNkFQYpbuCIS3Z2OnKkC6fmsDBJs5dwBFCV/2MEc +n83lm+m5oo7xYr+sLC3yQNiCymBQs26omw5quc8KZ+0FXaI/WS4Pvl/qCdxItaSYP5X ECnp4No14pjTjZ+FixPZsZuB22koNQ+LERLvTryj6wlRtY7MFXyY6hJnKDq9pk4gbUyf 6NR2tSXnUo7TmnXmuR5pBL3L+b8m7byorH1hMEWzhNyvcBDF+oXJiZfxe6wokIXfmbZh D5/Y0wd6jKMGYFQUyGtluW8tE8nm7szCKAarPzLAFVmUSnMMYD4NGeX0BPFYpSEXajLB qFBg== 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 cx7si7646719edb.125.2020.04.16.10.24.06; Thu, 16 Apr 2020 10:24:29 -0700 (PDT) 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 S2633698AbgDPLef (ORCPT + 99 others); Thu, 16 Apr 2020 07:34:35 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:40817 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2505994AbgDPLG1 (ORCPT ); Thu, 16 Apr 2020 07:06:27 -0400 Received: from mail-qv1-f41.google.com ([209.85.219.41]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MKuGD-1jfrsG1L01-00LHUK; Thu, 16 Apr 2020 13:06:21 +0200 Received: by mail-qv1-f41.google.com with SMTP id fb4so1757613qvb.7; Thu, 16 Apr 2020 04:06:20 -0700 (PDT) X-Gm-Message-State: AGi0PuaSvvMp9m1tMfteBe4olxFcPVlNYZujxRfIpxWBlTH6vmgHoldJ kLHJKJr/iRBTpYsi1xsZ1UMJ84o9XdDDn232gxk= X-Received: by 2002:a0c:a602:: with SMTP id s2mr9731166qva.222.1587035179954; Thu, 16 Apr 2020 04:06:19 -0700 (PDT) MIME-Version: 1.0 References: <1583226206-19758-1-git-send-email-abel.vesa@nxp.com> In-Reply-To: <1583226206-19758-1-git-send-email-abel.vesa@nxp.com> From: Arnd Bergmann Date: Thu, 16 Apr 2020 13:06:03 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 00/11] Add generic MFD i.MX mix and audiomix support To: Abel Vesa Cc: Rob Herring , Shawn Guo , Sascha Hauer , Fabio Estevam , Mike Turquette , Stephen Boyd , Lee Jones , Anson Huang , Leonard Crestez , Peng Fan , Jacky Bai , NXP Linux Team , DTML , Linux ARM , Linux Kernel Mailing List , linux-clk Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:17TGPvNG4k9uXehcE4DgfleCdpohxRcC9Bv50dxRREvMID4VOFk W10UrfBa4o9XD2UjLI0OoLvqXi9XvfDUf9ylEKkN4a4nOikfC2UdxWmBk+TlBmvl1BWlMVr izIkHPvlGHg2gUzf/Tn3USImvLr4ln5qniXLxzIh6q2xC17IzZpnG6e5AdZVYZ+sRgKMVTd jOHqByw1u3bE5NMomnOGw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:F+ZgWz7O4f8=:+Y+jf8jYbd+WpdgieuC5RR fM5PfyAclvuvByjZ+VkyoG3ORzjArAbnN4YGduzJZ3sWTf+VShgzDzXbPB2eiWemuDIVDdyBx kp+UKJfnSyHgacSZ+b3nI0zkIPWBSAvCpBixqNr6TLgmQNEBFt7g2rZFIvBYkGVSL/fulNLcX wrJk92pS3ZYqZGyNuXgFCcbMjRfkpQd2zKf9/C3MHOz4cxU2HQ8EFs4fwaHe502omgnAQRV76 HUgXx6RSibsxRFtSr+A8a+NtingdnR6Teo4RRxOjIHrPDhjDIPx8JAYtbudy6TnR55PhDDsdk MaQ7tOQbTi+aDWM4UL7ASf5HIsmPBR3pc4CbHokd2t6CG2C83xSg2P7d0iQRU6JuKnyMHG57y fJom1YdvA0mh+PFvNUsl1wcNfPFxt/Ow6y+IrL+L0njjRa7rOKf3nW/grBbUsEfYJh1jbe7lr znlY7o/oceBjJNf3gi73S0MrCsQ78zzbuoHf6eqaPKy5f63qK+zZ6eVeeeHp8Pu3cGB0h2XWq HpQMwkXfAeyp8HTgA/HX+8FmybN2zfTDWQtuf5XKJ+Gp4eejqiBo7bWUuspDL0XyLyM0W7NZP qaJ9H2leaaZisUEYlBfQTik0LUjy/BDITUt2TKqZ+zMuZC4ksn4Alo69hroiC3KCpOesR8BFA dsTxmktKJJAXLjTKldEO2H6QXOElhu/Jz7JEY1e3CZD1P0eXp1H1OZ4O61XnCBVm+eDVz9Ilh shiShYDCOUvTyNVduB61pZHxthNqicRi0zZf1+WvxrEu69E9XPN9cYTEXlu28TwSySH6MzDHW SeBvSO+Nq4dw36cSIEar/yBAIElqtpGFMMsd8Gkf0vgyUuvCMs= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 3, 2020 at 10:04 AM Abel Vesa wrote: > > The i.MX8MP has some new IPs called mixes. They are formed usually by some > GPRs that can be split into different functionalities. The first example > here is the audiomix which has dedicated registers that can be registered > as a clock controller and some other registers that can be registered as > a reset controller, plus some dedicated ones that will be registered as > syscon and used by each dedicated audio IP. > > More mixes to be following the same structure are to come, like hdmimix, > dispmix and mediamix. They will all be populated and registered by the MFD > imx-mix generic driver. Can you enumerate what functionality is in each one? I'm not convinced that using an MFD driver is the best solution here, compared to e.g. a clk driver with a few extra bits in it, if most of the code for the child drivers ends up being for the clk subsystem. Lee suggested maybe having a generic (platform independent) driver for it, which may help here, as it would let others share the trivial mfd portion. Another option that we are using on several platforms today is to have a single syscon node and have other drivers that reference that one using a phandle to get at the regmap. Arnd