Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp425529pxb; Tue, 3 Nov 2020 03:20:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyF/aJ3H1aIRmnqQGICYppC2j9mdNtPz3K2Otkz4OE4wfnMXR1Tt95AWAri04+v6/iMl6s X-Received: by 2002:a50:8245:: with SMTP id 63mr21437951edf.133.1604402456873; Tue, 03 Nov 2020 03:20:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604402456; cv=none; d=google.com; s=arc-20160816; b=BW4pSIn9Wr7Da+6+VMM6tfhj2H6GbjKxOW/vU80ePwTSobokWikdO04Lht+8IMfDOG 1dnFnchUZHvOy3FWTV5ayTB852BR3fBeHg1XMRnWHmwOL+uxEXzpruei8jlkgtIgEhLf IEXeukyAaiwNmW3ILv4AzfJs1eWHcDy5K7SzmlHJkWwZR+SZR+o9tdMtTTuKMwtcvl18 M2ABP/o23ocMd7iRIn/rcmEXNN9SQcgWQloCvFSLjTwjoIRZy4wHC3nvDeemKO2zy+3s gnZd4jxIWmAhxVW5N0KqEdEh9U5fsFvgFSx7IFKTz8PNkWs3ZIR7t2WsjKjYmeZ4XuNA H/Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=0rlt5Sm/AIusXPItTbUFAPGNk5LPUu93ORKw49fM/cc=; b=A8zCLNwLXqud1IiRPKSCvhoKbmZMRn9aiv3RXGNUF7SuHd7QytDvOVfTcS6M4wuS2H AM5LNTE8ASFl7d8mprLR3xzUGO+UPQkpIvTf6RRZTGhLyPrtqzZdTH5979h2WgwITALi 9SxBr8dZJn1cpZO+6b0ZuZrmA7FE+haiflxVkczr3t/lLgpRt530M1xZczuucE3zMLbQ 6BpL840l3QsxmDX4rXN4AihBX5h9o2v9arT7bm+G7xM5FuC8IX7Z0fUD3Ablhbu+vktc ZbMy0cxEjEeGQebw6xNGRCN7sHve4yDFQpOzVwc2QnJ2KHborPFpurwQnQko768T9ELE cl7w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v23si2932202ejo.131.2020.11.03.03.20.32; Tue, 03 Nov 2020 03:20:56 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728399AbgKCLTN (ORCPT + 99 others); Tue, 3 Nov 2020 06:19:13 -0500 Received: from inva021.nxp.com ([92.121.34.21]:40964 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728202AbgKCLTN (ORCPT ); Tue, 3 Nov 2020 06:19:13 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id E89B120054E; Tue, 3 Nov 2020 12:19:10 +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 DB3DC200342; Tue, 3 Nov 2020 12:19:10 +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 2C2E32033F; Tue, 3 Nov 2020 12:19:10 +0100 (CET) From: Abel Vesa To: Mike Turquette , Stephen Boyd , Adam Ford , Marek Vasut , Lucas Stach , Rob Herring , Shawn Guo , Sascha Hauer , Fabio Estevam , Anson Huang , Jacky Bai , Peng Fan , Dong Aisheng Cc: NXP Linux Team , linux-arm-kernel@lists.infradead.org, Linux Kernel Mailing List , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Abel Vesa Subject: [PATCH v5 00/14] Add BLK_CTL support for i.MX8MP Date: Tue, 3 Nov 2020 13:18:12 +0200 Message-Id: <1604402306-5348-1-git-send-email-abel.vesa@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The BLK_CTL according to HW design is basically the wrapper of the entire function specific group of IPs and holds GPRs that usually cannot be placed into one specific IP from that group. Some of these GPRs are used to control some clocks, other some resets, others some very specific function that does not fit into clocks or resets. Since the clocks are registered using the i.MX clock subsystem API, the driver is placed into the clock subsystem, but it also registers the resets. For the other functionalities that other GPRs might have, the syscon is used. Changes since v4: * added back the bus_blk_clk in the imx8mp blk_ctl driver (media_blk_ctl) * added the R-b tag from Rob to the documentation patch Abel Vesa (14): dt-bindings: clocks: imx8mp: Rename audiomix ids clocks to audio_blk_ctl dt-bindings: reset: imx8mp: Add audio blk_ctl reset IDs dt-bindings: clock: imx8mp: Add ids for the audio shared gate dt-bindings: clock: imx8mp: Add media blk_ctl clock IDs dt-bindings: reset: imx8mp: Add media blk_ctl reset IDs dt-bindings: clock: imx8mp: Add hdmi blk_ctl clock IDs dt-bindings: reset: imx8mp: Add hdmi blk_ctl reset IDs clk: imx8mp: Add audio shared gate Documentation: bindings: clk: Add bindings for i.MX BLK_CTL clk: imx: Add generic blk-ctl driver clk: imx: Add blk-ctl driver for i.MX8MP arm64: dts: imx8mp: Add audio_blk_ctl node arm64: dts: imx8mp: Add media_blk_ctl node arm64: dts: imx8mp: Add hdmi_blk_ctl node .../devicetree/bindings/clock/fsl,imx-blk-ctl.yaml | 60 ++++ arch/arm64/boot/dts/freescale/imx8mp.dtsi | 37 +++ drivers/clk/imx/Makefile | 2 +- drivers/clk/imx/clk-blk-ctl-imx8mp.c | 317 +++++++++++++++++++++ drivers/clk/imx/clk-blk-ctl.c | 302 ++++++++++++++++++++ drivers/clk/imx/clk-blk-ctl.h | 80 ++++++ drivers/clk/imx/clk-imx8mp.c | 12 +- include/dt-bindings/clock/imx8mp-clock.h | 200 +++++++++---- include/dt-bindings/reset/imx8mp-reset.h | 45 +++ 9 files changed, 992 insertions(+), 63 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/fsl,imx-blk-ctl.yaml create mode 100644 drivers/clk/imx/clk-blk-ctl-imx8mp.c create mode 100644 drivers/clk/imx/clk-blk-ctl.c create mode 100644 drivers/clk/imx/clk-blk-ctl.h -- 2.7.4