Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3188300ybf; Tue, 3 Mar 2020 01:04:01 -0800 (PST) X-Google-Smtp-Source: ADFU+vtnl/UgErxBEfrWEppVct5Vckayvl2C4ICFT8aBaO/9chGnKNjV+j4K2+IODwh4YgR8qzuq X-Received: by 2002:a9d:51cb:: with SMTP id d11mr2474684oth.219.1583226240929; Tue, 03 Mar 2020 01:04:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583226240; cv=none; d=google.com; s=arc-20160816; b=Jf4jq85in9HezMSjqUgzODYnYhI5Yj1YU4fPy3fYb31pH0mlsJZuouEyjRA5t1hpfN /OV8CnraQAQlMLSZQQGacikkD5/r/82TtM6N5RZmMy3hr/beAfCNQt0aPFJcYoeSebjE nXOWU0GK4n1OTxTbI5h8NYAUlDVT4/QdxTzH2UtKNlh7+hp72ictdv2i78/Pte0l4DmN bk63CPLBShz8vbeYs6pXxDq9exaHqJvoKeOinpUNnhkD296BlF+bT+YEURh3eeQ7mSLF /mhjHAFPbNALdz5x42uvh7w/HGH+hRiRrJY3ijp75QXbolk/l4XNKvwUAhwgdKs1WiLI 9c2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=t6XY0euSqkJr6FKvLeT/hisE6XqquuRpR/MBCrLgIrI=; b=XAbi+bnLlTtsjefsd2b4Y9m13Lk56Ehod9y2KJ609I6WiOTwwt3P4AkXf4L0ab5P2n nKceCNs1rHfPV+KiyLagkjWjk1vQ3Mkua4hM4pNyjYwFanuZn/oD7hvRVAhhLrokZbt+ 4iqSqvK3n7JuW6Uznqk2vDHQMp535bs2nVQR8OPGsn3GGZ++No8eKT6sLxlBvHirMzFB r8P8oWIZau7t8c/DbypkqwDjztzaVs7c4ZUt7OTwd7FuWJ5my40jquYaS31wIRSWUaxk mC7fhYBGQ3oj6zd7PryCcoDJXd+cQQWEiqBKgTh0+hqlaHL5ftYTqx53YJmohqzmjn0y jftA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o20si7619386otl.60.2020.03.03.01.03.49; Tue, 03 Mar 2020 01:04:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727965AbgCCJDi (ORCPT + 99 others); Tue, 3 Mar 2020 04:03:38 -0500 Received: from inva021.nxp.com ([92.121.34.21]:39638 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725840AbgCCJDi (ORCPT ); Tue, 3 Mar 2020 04:03:38 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 73DCA201322; Tue, 3 Mar 2020 10:03:36 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 651C0201312; Tue, 3 Mar 2020 10:03:36 +0100 (CET) Received: from fsr-ub1664-175.ea.freescale.net (fsr-ub1664-175.ea.freescale.net [10.171.82.40]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 4F89820414; Tue, 3 Mar 2020 10:03:35 +0100 (CET) From: Abel Vesa To: Rob Herring , Shawn Guo , Sascha Hauer , Fabio Estevam , Mike Turquette , Stephen Boyd , Lee Jones , Anson Huang , Leonard Crestez , Peng Fan , Jacky Bai Cc: NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linux Kernel Mailing List , linux-clk@vger.kernel.org, Abel Vesa Subject: [RFC 00/11] Add generic MFD i.MX mix and audiomix support Date: Tue, 3 Mar 2020 11:03:15 +0200 Message-Id: <1583226206-19758-1-git-send-email-abel.vesa@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Abel Vesa (11): mfd: Add i.MX generic mix support arm64: dts: imx8mp: Add AIPS 4 and 5 arm64: dts: imx8mp: Add audiomix node clk: imx: Add gate shared for i.MX8MP audiomix clk: imx: pll14xx: Add the device as argument when registering clk: imx: Add helpers for passing the device as argument dt-bindings: clocks: imx8mp: Add ids for audiomix clocks clk: imx: Add audiomix clock controller support arm64: dts: imx8mp: Add audiomix clock controller node reset: imx: Add audiomix reset controller support arm64: dts: imx8mp: Add audiomix reset controller node arch/arm64/boot/dts/freescale/imx8mp.dtsi | 37 ++++ drivers/clk/imx/Makefile | 2 +- drivers/clk/imx/clk-audiomix.c | 237 +++++++++++++++++++++++++ drivers/clk/imx/clk-gate-shared.c | 111 ++++++++++++ drivers/clk/imx/clk-pll14xx.c | 6 +- drivers/clk/imx/clk.h | 46 ++++- drivers/mfd/Kconfig | 11 ++ drivers/mfd/Makefile | 1 + drivers/mfd/imx-mix.c | 48 +++++ drivers/reset/Kconfig | 7 + drivers/reset/Makefile | 1 + drivers/reset/reset-imx-audiomix.c | 122 +++++++++++++ include/dt-bindings/clock/imx8mp-clock.h | 62 +++++++ include/dt-bindings/reset/imx-audiomix-reset.h | 15 ++ 14 files changed, 699 insertions(+), 7 deletions(-) create mode 100644 drivers/clk/imx/clk-audiomix.c create mode 100644 drivers/clk/imx/clk-gate-shared.c create mode 100644 drivers/mfd/imx-mix.c create mode 100644 drivers/reset/reset-imx-audiomix.c create mode 100644 include/dt-bindings/reset/imx-audiomix-reset.h -- 2.7.4