Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1486746ybz; Thu, 16 Apr 2020 10:01:16 -0700 (PDT) X-Google-Smtp-Source: APiQypK81vDJPtr6iq/gUyNI6SZ/RaMc7fNOiTohXaNCYGofGl/lMO4XQf1hdA4fih72towMIqyG X-Received: by 2002:aa7:d1cf:: with SMTP id g15mr28782778edp.71.1587056476067; Thu, 16 Apr 2020 10:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587056476; cv=none; d=google.com; s=arc-20160816; b=QuFhUjWJNm2sa2facZlISlGmEJXDV5f40/fZB/5w/g98cCnWyXX1f1duyvgZZ0eoc8 2ZeIlrYdmx/T7dF80DWLSSXoF21iz8KYK4qEyGBef1fD6boiTbeZI/bIcvY/pgFXXPjQ pvwjPBqWzSCQgS0+ZkNNHC8SR+IVzVXA1GJ5rbqi7qY3uw/AkvmcMbMt2eAaEtNoxe+P 1h0PX6rz/eJjcI9kz/YXCwT0g5OL45WsWWqLZgW8GGoydp/OK70tN90t5EKvq4UYv8gl Y74OKAc+q/FIOS/61THRzhoCLzZlkJjtT4fR5XCkyCEZgEMnn+kJxvWnlgvaPuwu99NT su0A== 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=biYpT3ozdmLx8dsaquCMyCF5OVpEvD+xL5jW89cl47w=; b=mdCdwUH0PSpNLStBsSnUytV+vyEQIL/NGIek5Aurv6WroI+tKyK+TFhA2WH+tvgWJD 0WXW+c4pfmRpFuwaFtz5MEI456sen9AAHYVTW4zm9NZzm0kYG5PSlScdeMJQDdJF1qJ6 tWFQB7egxip03D2PIr8mnPJhAVDuJ9/sVkGWRojflExG/SX5BoHYnbNJ6VSMHrghN8Sj U3PMv/XgCxtT6xuhhivh6QsZl+k42Uu5LH+0Q1qTDMO6ZK4OsQv2616hOW+BJ1ockaqv CCA3t+3KiFs3rNhG1vwezSvKw6I0Sb+eqdp8NM9XhWplzWTTPTVCYfvBokvZ2RBl+pD+ 3YAQ== 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 w18si6262629edv.491.2020.04.16.10.00.49; Thu, 16 Apr 2020 10:01:16 -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 S2633360AbgDPLbw (ORCPT + 99 others); Thu, 16 Apr 2020 07:31:52 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:57457 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2633137AbgDPLaE (ORCPT ); Thu, 16 Apr 2020 07:30:04 -0400 Received: from mail-qk1-f174.google.com ([209.85.222.174]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPSA (Nemesis) id 1N4A1h-1jGgZn1t8T-0103T1; Thu, 16 Apr 2020 13:07:14 +0200 Received: by mail-qk1-f174.google.com with SMTP id y3so20748368qky.8; Thu, 16 Apr 2020 04:07:14 -0700 (PDT) X-Gm-Message-State: AGi0PuZ0HtBnhGYMaYQOLJpCyPgjWJpQF/FPXuoNeABZ+xQ43q/4+0e/ iwuzvD7bQRjpZ9z2IuUym61FN3Sx5xYhi/YAW/c= X-Received: by 2002:a37:851:: with SMTP id 78mr31161821qki.352.1587035233142; Thu, 16 Apr 2020 04:07:13 -0700 (PDT) MIME-Version: 1.0 References: <1583226206-19758-1-git-send-email-abel.vesa@nxp.com> In-Reply-To: From: Arnd Bergmann Date: Thu, 16 Apr 2020 13:06:57 +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:XDrsoNce09dQF4v/GnqEBmnqKLXmtj6TBeZwkb0Q1p/Uh3G4zU2 0k3IovXzNymJfDpYP+paFT5/eWoSFAeiBFdDU4Rni9XRQeX3O1+NLIdTwj2Pjh0XkF+TDll 1IlwD9gwjHnD+odPwajh6GbLWG891MKN9Rx98amEyN7OMvBE52hiFWSTxA3GU6fNMtSEwOp pw5aRLFhsd4iHpP797jPg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:t3ySx5qoRa0=:2HgHQY70QGwlkgI3fd/eDa AviZf6zFsbZjh8abcajtOMUIU8ec4suLeE1tLGe1qNYlXJjFgH5yLiRkbv7Jv119q4cGRI47k ulcWRrKrIn8q8Szo9gLmvZT4PDEti7XWh2lIKhsPVK5wmG8omJGghWLYr3FrrWBS7jWdVQepY RDOnpoo9NE0PI5Ve4r4zw6ULw/tOxe86wsQ3OABlinqTQsPMV0ExIVXaOtCgw2kasQClBKje4 pPFNcqJYOt6zpuK2oxsd5DfMBpEM22SH5Aaiq5Zb7VyhwuHattW5vlvGQKCElDh3tcEnWV6bw bUnM/ZPAQNEGPR8g7m5ruTSsiozjsGUI9rSCCaCAYQHHaqjosbKgpmODs4hTwrriiOHqN60qC GzAEGwTGc7iZXl5EiGJEZ6JfWzW8TGY8YODikiaWEHoTd0V/hTcnn4Y4mLLWTDl0qWfpCiwXH PrL9XK2ktcwFXv7Kx0KD2C6hIkUnIfu5+Dz7LnCxt4YnAMiHhl/CMnJYOrzb9FCyKxslxC/wl ZQp5iS6c8hU+mRYOQofWdd0K8TAhHKYmCsWES7Y20KdqJxcKsNookgsSleDlMf1jBwS2EIm9L pJC9KqSsd+1ctOcIlpyd2KIt8ETnzuJGNRqHMF2e8wDydFqPyUHdLerbSmyn4yY1Z8EdxBxgr TLqzdSLmTGN8l6/aohZ8OPuWJd8wnq4CtJ3xqK6t3w4WE+lgdiZXU6mKJFmjY4x3LFvxVa7B3 2ZZnNAzumTPVrYA2zjIF4B4eCJU6EOd24Kre/LagaFV/taRh1jkk8CT6ar3kW8A8b0W3mTrhP fJ0ga0Iw/mJ2kAVxV8cvOB/IdmS+TRWr3t9wjlxxb8QGyTa/YY= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 16, 2020 at 1:06 PM Arnd Bergmann wrote: > > 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. Sorry I replied to the wrong thread, I meant to reply to the v3 version. Arnd