Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3820145pxk; Tue, 8 Sep 2020 03:28:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0lVNH/1ZxRsj1xiHN/EwdIojC8g7lTxaEdp0Rnzo4tBLaCQUxGeG6y+xGbSL06jQ5Sezc X-Received: by 2002:a05:6402:b1a:: with SMTP id bm26mr26435983edb.209.1599560892609; Tue, 08 Sep 2020 03:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599560892; cv=none; d=google.com; s=arc-20160816; b=PUiH/iBDlBb+3eOnFV5z67jhGZk0uIfin1Af+UG4lvst9+pRHBQBhRSRvyIsVAUJF7 7xJiwVMfMh1QbtMqKszNPJHigk5/AIGKoc+JmhKLfUUdq7r6l3Dewt3+aUyrMh5+QJoE tEeQJ9DZKd3PCPi+Fd6xe6MFYqjVfPBFj3nhEX70F8FWdxRCBg9+Z4M2KlTwAKAViS61 EbYm7peN8rNDDV8PeshsJi+SwU6nue1QKUNbtf1x+OOpQtbw9QZVCqce8s41AsXjKZjN jM7BGnPSrNoTBDxnVT2KQQ4BHbthYP0hc0j9s1LPhoF8Sw9+21Sh+9VOtQq27/eYQW05 nmog== 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=68CFljqQNAQhxopaLDGlPR+eTj2doO0j5QC1UXVQtk0=; b=Zj7G4/GVoSuBmsxhorTZCB1xsfvPkFQAss4Ih9aiRLchKFZpw1jaV1ysdywogz4m30 8Wr41OqRSk4Wz0PAUIGxBnWopTGPqNgnn28y1jrGJ8ZxfExF4SEO0hG675J1MfUgdD9M KqsthXkrGN86ADE19N4Q7KACvE61XTlvt9BJyJH7KqYoDX6CjBJGOhjTVtoRXPnZ+/Q+ GQIOWgHoyXviPgU6vhcg5UigM04C1omRlt6laXBz/6kXGekwlK6G8JNCZBFi+F92uAwo 0dmF4qillZPJcKnoSJ3pd7begmxfRjoHBfiyGuxNgjaTQqJuubLBUT5kMXwoWbks8qkP N3og== 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 f2si10175698edn.26.2020.09.08.03.27.50; Tue, 08 Sep 2020 03:28:12 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729600AbgIHK0n (ORCPT + 99 others); Tue, 8 Sep 2020 06:26:43 -0400 Received: from inva021.nxp.com ([92.121.34.21]:56116 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729414AbgIHK0H (ORCPT ); Tue, 8 Sep 2020 06:26:07 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 960F22014ED; Tue, 8 Sep 2020 12:26:05 +0200 (CEST) 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 868BA2011AF; Tue, 8 Sep 2020 12:26:05 +0200 (CEST) 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 D44EE20327; Tue, 8 Sep 2020 12:26:04 +0200 (CEST) From: Abel Vesa To: Mike Turquette , Stephen Boyd , Rob Herring , Shawn Guo , Sascha Hauer , Fabio Estevam , Philipp Zabel , Anson Huang , Jacky Bai , Peng Fan , Dong Aisheng , Fugang Duan , devicetree@vger.kernel.org Cc: NXP Linux Team , linux-arm-kernel@lists.infradead.org, Linux Kernel Mailing List , linux-clk@vger.kernel.org, Abel Vesa Subject: [PATCH v3 00/14] Add BLK_CTL support for i.MX8MP Date: Tue, 8 Sep 2020 13:24:37 +0300 Message-Id: <1599560691-3763-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 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 v2: * Made the naming consistent with the RM: BLK_CTL (not BLK_CTRL) * fixed the reset set procedure as discussed with Philipp Zabel * removed the patch that includes the imx8mp-reset header in dtsi as there is no user yet. * added i.MX8MP specific blk_ctl driver as suggested by Aisheng Dong 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 | 313 +++++++++++++++++++++ drivers/clk/imx/clk-blk-ctl.c | 297 +++++++++++++++++++ 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, 983 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