From patchwork Sat Oct 24 16:20:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 11854889 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA910C55178 for ; Sat, 24 Oct 2020 16:22:38 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8E54E2087C for ; Sat, 24 Oct 2020 16:22:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sagWoRp9"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iu8Z1xju" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8E54E2087C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=JPG/M7XtHpswhLeMEtEAiD8vvGfRyghoxkybB75IsdA=; b=sagWoRp9gm/aHBtdFP7iPpARD LhFYkn1sfcrgDtbyzdCbNX6HOtg6jrPW0Ox4jBzTQFO7HLBuCmQY4uChAIqS/2G+W43GFanv605nH 9IEwb1Vl1M8hRg648l7OQlSHihlp3SqX69t9ho41FhqO+DPM1yN4pFtyPgVaxcBi5u+34G1ylKdI9 XhTYKOnsyVsY9HpKJfA8lJF4AIpWupjeLdvu96Nx+nMk7KLC9pl9rlSCLOE0FE4o94pPBzEuZmV9V 2lmFU5+D9/Ev8mbBkJgVu8UcZ1xcyMC33Amh693MKV46uyajmlnsA/Vc74O/Cumsv9h1AvISLVqLh osL94fKbg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kWMI9-0002rP-IU; Sat, 24 Oct 2020 16:21:17 +0000 Received: from mail-io1-xd42.google.com ([2607:f8b0:4864:20::d42]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kWMI1-0002pO-NW for linux-arm-kernel@lists.infradead.org; Sat, 24 Oct 2020 16:21:10 +0000 Received: by mail-io1-xd42.google.com with SMTP id q25so5612290ioh.4 for ; Sat, 24 Oct 2020 09:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OJv7OiMikXXMbdvgcciK3mXRtlHAeNlbojgHERZfLF8=; b=iu8Z1xjus9qMOBAGRkQoVxOEo5dixzIfAda1oNH3q/uTowBPj+4jgjWrgR4hP4PiTp gn987eEDXFgxFgoRCQLUkBouNf9VnynQn3fSncMnuLbOHyum6S/NH6Tkb25D6lNEeXJA weaHIeaW55JzyaRuhO3hxjIOMrUWW+clw8VcGTwBO1z9T8bV1y++osrgbkVlBa+xxuyY VUWsy9XH2Lnv11UWbYPVE/t5yRqGzV6zfhk2Gdv1QK9cUZCr4rW0NZkTgGIw8751M4kO nn/jBtG9e5AzpRCPCxmlMzZktXEg7S2K3rT6620P7Jy0bb/i+ec/3jr9RZLs6HhlAEmM /d/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OJv7OiMikXXMbdvgcciK3mXRtlHAeNlbojgHERZfLF8=; b=EiyAZf8a/Pwhip7Jo2ASmzqMN9jLok3+Ic1kutGrebJjYl57uU+5dRc7NTWZN6RNt+ xMNPWeZjc98/xrqCmWBmk2vtVHCL9fXYaJjxWPK+fSfWRPLWfOyZu64mG+NyqbJUPzPQ 7yAyVau9mRLg6UTAOh+IheFtmK0/gog2V1uC4urcOlFADFSXXPcTsW8lQW2w/1FKRX7k n6esE5WpST/Usyt8Mzavp1lcNOXXevUc7Z4DBG82HcTsFDt4HmRNS4oCfqWwR0//eVSH Sd1p434OndorUKMOiw1SmUtUKmGf9OIYeKtoEqM/aNMc/Fx/JLFZWxwYgYOUEhLB9QMA Duew== X-Gm-Message-State: AOAM531DMUkd9NYdDRXYzv05wVxD+UO7wjSYOROsngI/eDZnH1qfW39u 4jcJQrirKaklaJKoxHuxDSg= X-Google-Smtp-Source: ABdhPJx08Goj6W0lkWlmWsvqVP/nNXXTHXEr+AEoTnjdo1c3P/WjyD2cc5el5YPADM15Cm9X1g2NaA== X-Received: by 2002:a05:6602:2ac3:: with SMTP id m3mr5594921iov.105.1603556466474; Sat, 24 Oct 2020 09:21:06 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:527:767:b750:2d3c]) by smtp.gmail.com with ESMTPSA id m86sm3028587ilb.44.2020.10.24.09.21.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Oct 2020 09:21:05 -0700 (PDT) From: Adam Ford To: linux-clk@vger.kernel.org Subject: [RFC 1/3] dt-bindings: clock: imx8mn: Add media blk_ctl clock IDs Date: Sat, 24 Oct 2020 11:20:13 -0500 Message-Id: <20201024162016.1003041-2-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201024162016.1003041-1-aford173@gmail.com> References: <20201024162016.1003041-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201024_122109_792492_B5DDD12E X-CRM114-Status: GOOD ( 12.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marex@denx.de, devicetree@vger.kernel.org, Fabio Estevam , abel.vesa@nxp.com, Stephen Boyd , Shawn Guo , Michael Turquette , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Philipp Zabel , Adam Ford , Sascha Hauer , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org These will be used by the imx8mn for blk_ctl driver. Signed-off-by: Adam Ford Acked-by: Rob Herring --- include/dt-bindings/clock/imx8mn-clock.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/dt-bindings/clock/imx8mn-clock.h b/include/dt-bindings/clock/imx8mn-clock.h index 621ea0e87c67..2baaa2dccfd3 100644 --- a/include/dt-bindings/clock/imx8mn-clock.h +++ b/include/dt-bindings/clock/imx8mn-clock.h @@ -236,4 +236,15 @@ #define IMX8MN_CLK_END 215 +#define IMX8MN_CLK_MEDIA_BLK_CTL_MIPI_DSI_PCLK 0 +#define IMX8MN_CLK_MEDIA_BLK_CTL_MIPI_DSI_CLKREF 1 +#define IMX8MN_CLK_MEDIA_BLK_CTL_MIPI_CSI_PCLK 2 +#define IMX8MN_CLK_MEDIA_BLK_CTL_MIPI_CSI_ACLK 3 +#define IMX8MN_CLK_MEDIA_BLK_CTL_LCDIF_PIXEL 4 +#define IMX8MN_CLK_MEDIA_BLK_CTL_LCDIF_APB 5 +#define IMX8MN_CLK_MEDIA_BLK_CTL_ISI_PROC 6 +#define IMX8MN_CLK_MEDIA_BLK_CTL_ISI_APB 7 +#define IMX8MN_CLK_MEDIA_BLK_CTL_BUS_BLK 8 +#define IMX8MN_CLK_MEDIA_BLK_CTL_END 9 + #endif From patchwork Sat Oct 24 16:20:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 11854887 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D74BBC2D0A3 for ; Sat, 24 Oct 2020 16:22:38 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 841D420791 for ; Sat, 24 Oct 2020 16:22:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="m2k2NOaX"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tfZBv9ov" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 841D420791 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xQvOhsLmdGTp55T+q8pAYNLdrSQ9M6ZKJEquIq50lGY=; b=m2k2NOaXJL1lEo7h8hp62BGNv 5Bfkag0idE5VThPsY0TJ+mLKtYxnpRgCuI6Yp23UJ225LdoyoEZcZmxbPUz4q5VayX+DCejj7n/0i o+2fLhnDMXd/yi+jXx3nnRgU7Nmu397fSyL8blcxXIeacqsx8OqDlHOpii8SU0ZJNwJ3ugdzPH/Gy isqdswbndH5swbIXMo4StbhR+HdzBtLKFAunNMKQoyw11uac4nhlJSvQeTzmM6Qu8FIJB+/D7pddX 7D/cSOtjcxd1W2PvnX4g77lhEc+Pt9KJ0Mn3Af0XcLlh2oL0jkmUn7Xhv5rwGQrVTVxQAYMAzb8Jf IJ1UZv8YA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kWMIB-0002rd-9Q; Sat, 24 Oct 2020 16:21:19 +0000 Received: from mail-io1-xd41.google.com ([2607:f8b0:4864:20::d41]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kWMI2-0002pi-9H for linux-arm-kernel@lists.infradead.org; Sat, 24 Oct 2020 16:21:11 +0000 Received: by mail-io1-xd41.google.com with SMTP id k21so5599635ioa.9 for ; Sat, 24 Oct 2020 09:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DmYNWcDzAnUPRQg3cM/VYh7D0PDE+R8thr7Gr3d/KwY=; b=tfZBv9ovL7BaAq0jTmitzZtsR/oJmh1iNcLpOoLXbe5iQtaGg+bMMJKgd4QQCUf+4k rcplSN/Brn8hN24XiCYmBT4gWCNoAhbYwoChX01fU4modD5ThPhNYuWRxvZb9WTjNBTk TX4BNl4yu+Z0xh37ykOnBrMgH+sBZ3G+7pdNtKAdvdH0C6USE6uRWd1mTYF0AF6sXU1V uzm1b7ksEOy+tg9ul0hLHr5NUNgPgnb2wZe3kX976tsIGqwEfox3mcip+6/2dGfSmeMf LlnJYV69qFQbY4eGvtfnwCkXgssmEIQuyq+dNsvxjB+W75zrOyW4Ym4guhB8X1HJ905a NQlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DmYNWcDzAnUPRQg3cM/VYh7D0PDE+R8thr7Gr3d/KwY=; b=PhpaXhs9WHtaqHIMI2qX0tcZkfkW1yhQZX1JETfIqm4fANviz6GlKrC4sh4bpDkDu8 CQa5u6f8Emqtwia/aV4IB7ZIWTeCzn30rTx+Bk3umEzQVe5LW8VT4z7yE4cYYqexRWUU y2tAMY18sVAn/qy2qMRUDuM2M0UE8nG1xt2qRGfQwTKZ5cSrNgavIkfvmwmKgjVVeWbJ gNdYrdivIe0Xg1wRzlw9OKoE6GHQHrnK4ZAiLtQ7sHtpoYpiD3wBtffxVb3dV2dlTdyy atOGNzJa6xQwqZkyrJZmtbQIa9i3Ll4n7bSxiZOZhc2YUXKUfNqA/lAT6xMBGlerJttp F7qw== X-Gm-Message-State: AOAM532WDiGcoVZX6tEdoweKjvvFwkWSlVxzpauhjqEhbm35zX52LqOc jdDtpTz/ulAwHLKXIZ72C4s= X-Google-Smtp-Source: ABdhPJwb9Bt+Lu50N9TRHbiQm7gIzbOuF5p2bweesi4/dxe6M4QdxTY+/Ap91Lw2dZ7Ncpd6hqRRTw== X-Received: by 2002:a02:a384:: with SMTP id y4mr6008244jak.63.1603556468376; Sat, 24 Oct 2020 09:21:08 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:527:767:b750:2d3c]) by smtp.gmail.com with ESMTPSA id m86sm3028587ilb.44.2020.10.24.09.21.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Oct 2020 09:21:07 -0700 (PDT) From: Adam Ford To: linux-clk@vger.kernel.org Subject: [RFC 2/3] dt-bindings: reset: imx8mn: Add media blk_ctl reset IDs Date: Sat, 24 Oct 2020 11:20:14 -0500 Message-Id: <20201024162016.1003041-3-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201024162016.1003041-1-aford173@gmail.com> References: <20201024162016.1003041-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201024_122110_461404_3E6883A1 X-CRM114-Status: GOOD ( 14.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marex@denx.de, devicetree@vger.kernel.org, Fabio Estevam , abel.vesa@nxp.com, Stephen Boyd , Shawn Guo , Michael Turquette , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Philipp Zabel , Adam Ford , Sascha Hauer , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org These will be used by the imx8mn for blk_ctl driver. Signed-off-by: Adam Ford Acked-by: Rob Herring --- include/dt-bindings/reset/imx8mn-reset.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/include/dt-bindings/reset/imx8mn-reset.h b/include/dt-bindings/reset/imx8mn-reset.h new file mode 100644 index 000000000000..89d402742b96 --- /dev/null +++ b/include/dt-bindings/reset/imx8mn-reset.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (C) 2020 Compass Electronics Group, LLC + */ + +#ifndef DT_BINDING_RESET_IMX8MN_H +#define DT_BINDING_RESET_IMX8MN_H + +#define IMX8MN_MEDIA_BLK_CTL_RESET_MIPI_DSI_PCLK 0 +#define IMX8MN_MEDIA_BLK_CTL_RESET_MIPI_DSI_CLKREF 1 +#define IMX8MN_MEDIA_BLK_CTL_RESET_MIPI_CSI_PCLK 2 +#define IMX8MN_MEDIA_BLK_CTL_RESET_MIPI_CSI_ACLK 3 +#define IMX8MN_MEDIA_BLK_CTL_RESET_LCDIF_PIXEL 4 +#define IMX8MN_MEDIA_BLK_CTL_RESET_LCDIF_APB 5 +#define IMX8MN_MEDIA_BLK_CTL_RESET_ISI_PROC 6 +#define IMX8MN_MEDIA_BLK_CTL_RESET_ISI_APB 7 +#define IMX8MN_MEDIA_BLK_CTL_RESET_BUS_BLK 8 +#define IMX8MN_MEDIA_BLK_CTL_RESET_MIPI_S_RESET 9 +#define IMX8MN_MEDIA_BLK_CTL_RESET_MIPI_M_RESET 10 +#define IMX8MN_MEDIA_BLK_CTL_RESET_NUM 11 + +#endif From patchwork Sat Oct 24 16:20:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 11854891 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2F1DC5517A for ; Sat, 24 Oct 2020 16:22:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 645B020791 for ; Sat, 24 Oct 2020 16:22:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FeyHP9da"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="grp7qtr2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 645B020791 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=R3baT+/5HesDgsB9eRW7J/tEmmJYRJ2A87wxhKCZ9L4=; b=FeyHP9das++KwpoF3pn4kpiv8 XWXZBB4oEaiPbVsVQNx0T97va5ZIxpCOll99BqQneP8JrYF6YD566ibjj/5UjHNuC8tmdaVxCDlJp z1FKQFb9t/gWEfuVQbhMFJtdk0Qg5iDgZhTM3wDCPj+WgGAxwHaqLMmDASbTQZAiWQwta4AHpbiib wvA7VwbmUU0NEWEI0jjBCKcRCLAWCXGdrAMNPllTVRPrkzHPSQqOTXl5ZfYtqt7eidD4hZybhlEYO lHvVPo6zQLLvOaHZ+9xBr2z2oXAGPuEnepAQMDNb5dlM5qM9c9XpJfh1csFWcCxN+MiZXCKOS2WA4 Ai3ds5tLQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kWMID-0002rr-3a; Sat, 24 Oct 2020 16:21:21 +0000 Received: from mail-il1-x144.google.com ([2607:f8b0:4864:20::144]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kWMI4-0002qL-6f for linux-arm-kernel@lists.infradead.org; Sat, 24 Oct 2020 16:21:13 +0000 Received: by mail-il1-x144.google.com with SMTP id c11so1277877iln.9 for ; Sat, 24 Oct 2020 09:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4ewdjBL0POYbkyERKt0JClct+9je8sQshxDRVp8rLQk=; b=grp7qtr2IS65QolRALjrQsJ9P4ieJ00Jkto8z93AVi+89gLb2EyxpH4duqYfrlB88j xS5+9PnWswtbQbEV+p7cWVUwxWFSU5zWcnb/kk572hW20TGbMgXBrCTjTdFaR3AedsRh 7DkgJhqzj21vgQrulWIRAaIPjg7oijIg74ozFYKSXuTsuoiHwWCZLlelQzGLJHc0uEYe bwTi+p2P9Q7g5Shzn7SyRJVuxwQU7DVU5z89cMKsA+dNIJM4X6AXplwfA3Thk+uCF4Ac EHvF/95BaoCswI+kSNN2itmSZVDNCC51lmLKpDwP8lIwqc6R2LGGV2ZT7F7Tp01HcPBD +n4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4ewdjBL0POYbkyERKt0JClct+9je8sQshxDRVp8rLQk=; b=J0jbCJ8a3c2S25qKjg4WjcxMHO41NQYfaWy83T92XAwNHqgbatWBGdeFoI9iJY9qTT ISE2WLS/2mZrQCKFVccEieeFBU/cdBj7IupKFte7gO8P6buhcML97cfPusgR2mFufneT O4rvAai99pIQwVSqzo8PaWpvlobdH6KbKngOu7/Rd9vFgKAPpZmMV6vWj19zLlotktr7 av3+a2oM2t3pnMD/LvctAV4FrP/va+gG9F6SXr/FLcD5g+3TbqAOtq8JnuT9eMMn3UyV z46t7nhA9BAlPabZKJk9wC+BQ7tcFZZ69T5Qj66II0YcQr9ubEudqq6L+AiniKGUTxWl DMRA== X-Gm-Message-State: AOAM531u8P972o0csOp6e0Z+LvxStKMSpcF0FRiS1PFvbotW/O5wgkUU 1TKte7V62iGIZcGCE0b+Ab0= X-Google-Smtp-Source: ABdhPJwi9oUTNHu72wgqV0Xr/QOjUGV/jwHh+j39fq7YVbNK7SRQodB35Gv4NCLo9a7fkGl+GZomsQ== X-Received: by 2002:a92:7112:: with SMTP id m18mr5846165ilc.133.1603556470189; Sat, 24 Oct 2020 09:21:10 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:527:767:b750:2d3c]) by smtp.gmail.com with ESMTPSA id m86sm3028587ilb.44.2020.10.24.09.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Oct 2020 09:21:09 -0700 (PDT) From: Adam Ford To: linux-clk@vger.kernel.org Subject: [RFC 3/3] clk: imx: Add blk-ctl driver for i.MX8MN Date: Sat, 24 Oct 2020 11:20:15 -0500 Message-Id: <20201024162016.1003041-4-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201024162016.1003041-1-aford173@gmail.com> References: <20201024162016.1003041-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201024_122112_320852_8E6F8D4C X-CRM114-Status: GOOD ( 17.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marex@denx.de, devicetree@vger.kernel.org, Fabio Estevam , abel.vesa@nxp.com, Stephen Boyd , Shawn Guo , Michael Turquette , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Philipp Zabel , Adam Ford , Sascha Hauer , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This driver is intended to work with the multimedia block which contains display and camera subsystems: LCDIF ISI MIPI CSI MIPI DSI Signed-off-by: Adam Ford --- drivers/clk/imx/clk-blk-ctl-imx8mn.c | 80 ++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/drivers/clk/imx/clk-blk-ctl-imx8mn.c b/drivers/clk/imx/clk-blk-ctl-imx8mn.c new file mode 100644 index 000000000000..917514212270 --- /dev/null +++ b/drivers/clk/imx/clk-blk-ctl-imx8mn.c @@ -0,0 +1,80 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2020 Compass Eletronics Group, LLC + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "clk.h" +#include "clk-blk-ctl.h" + +#define IMX_MEDIA_BLK_CTL_SFT_RSTN 0x0 +#define IMX_MEDIA_BLK_CTL_CLK_EN 0x4 +#define IMX_MEDIA_BLK_CTL_MIPI_RST 0x8 + +static struct imx_blk_ctl_hw imx8mn_media_blk_ctl_hws[] = { + /* clocks */ + IMX_BLK_CTL_CLK_GATE("mipi_dsi_pclk", IMX8MN_CLK_MEDIA_BLK_CTL_MIPI_DSI_PCLK, 0x4, 0, "dsi_core"), + IMX_BLK_CTL_CLK_GATE("mipi_dsi_clkref", IMX8MN_CLK_MEDIA_BLK_CTL_MIPI_DSI_CLKREF, 0x4, 1, "dsi_phy_ref"), + IMX_BLK_CTL_CLK_GATE("mipi_csi_pclk", IMX8MN_CLK_MEDIA_BLK_CTL_MIPI_CSI_PCLK, 0x4, 2, "camera_pixel_clk"), + IMX_BLK_CTL_CLK_GATE("mipi_csi_aclk", IMX8MN_CLK_MEDIA_BLK_CTL_MIPI_CSI_ACLK, 0x4, 3, "media_cam1_pix_root_clk"), + IMX_BLK_CTL_CLK_GATE("lcdif_pixel_clk", IMX8MN_CLK_MEDIA_BLK_CTL_LCDIF_PIXEL, 0x4, 4, "disp_pixel"), + IMX_BLK_CTL_CLK_GATE("lcdif_apb_clk", IMX8MN_CLK_MEDIA_BLK_CTL_LCDIF_APB, 0x4, 5, "disp_apb"), + IMX_BLK_CTL_CLK_GATE("isi_proc_clk", IMX8MN_CLK_MEDIA_BLK_CTL_ISI_PROC, 0x4, 6, "disp_axi_root_clk"), + IMX_BLK_CTL_CLK_GATE("isi_apb_clk", IMX8MN_CLK_MEDIA_BLK_CTL_ISI_APB, 0x4, 7, "disp_apb_root_clk"), + IMX_BLK_CTL_CLK_GATE("bus_blk_clk", IMX8MN_CLK_MEDIA_BLK_CTL_BUS_BLK, 0x4, 8, "disp_axi_root_clk"), + + /* resets */ + IMX_BLK_CTL_RESET(IMX8MN_MEDIA_BLK_CTL_RESET_MIPI_DSI_PCLK, 0, 0), + IMX_BLK_CTL_RESET(IMX8MN_MEDIA_BLK_CTL_RESET_MIPI_DSI_CLKREF, 0, 1), + IMX_BLK_CTL_RESET(IMX8MN_MEDIA_BLK_CTL_RESET_MIPI_CSI_PCLK, 0, 2), + IMX_BLK_CTL_RESET(IMX8MN_MEDIA_BLK_CTL_RESET_MIPI_CSI_ACLK, 0, 3), + IMX_BLK_CTL_RESET(IMX8MN_MEDIA_BLK_CTL_RESET_LCDIF_PIXEL, 0, 4), + IMX_BLK_CTL_RESET(IMX8MN_MEDIA_BLK_CTL_RESET_LCDIF_APB, 0, 5), + IMX_BLK_CTL_RESET(IMX8MN_MEDIA_BLK_CTL_RESET_ISI_PROC, 0, 6), + IMX_BLK_CTL_RESET(IMX8MN_MEDIA_BLK_CTL_RESET_ISI_APB, 0, 7), + IMX_BLK_CTL_RESET(IMX8MN_MEDIA_BLK_CTL_RESET_BUS_BLK, 0, 8), + IMX_BLK_CTL_RESET(IMX8MN_MEDIA_BLK_CTL_RESET_MIPI_S_RESET, 0x8, 16), + IMX_BLK_CTL_RESET(IMX8MN_MEDIA_BLK_CTL_RESET_MIPI_M_RESET, 0x8, 17), +}; + +const struct imx_blk_ctl_dev_data imx8mn_media_blk_ctl_dev_data __initconst = { + .hws = imx8mn_media_blk_ctl_hws, + .hws_num = ARRAY_SIZE(imx8mn_media_blk_ctl_hws), + .clocks_max = IMX8MN_CLK_MEDIA_BLK_CTL_END, + .resets_max = IMX8MN_MEDIA_BLK_CTL_RESET_NUM, + .pm_runtime_saved_regs_num = 3, + .pm_runtime_saved_regs = { + IMX_MEDIA_BLK_CTL_SFT_RSTN, + IMX_MEDIA_BLK_CTL_CLK_EN, + IMX_MEDIA_BLK_CTL_MIPI_RST, + }, +}; + +static const struct of_device_id imx8mn_blk_ctl_of_match[] = { + { + .compatible = "fsl,imx8mn-media-blk-ctl", + .data = &imx8mn_media_blk_ctl_dev_data + }, + { /* Sentinel */ } +}; +MODULE_DEVICE_TABLE(of, imx8mn_blk_ctl_of_match); + +static struct platform_driver imx_blk_ctl_driver = { + .probe = imx_blk_ctl_probe, + .driver = { + .name = "imx8mn-blk-ctl", + .of_match_table = of_match_ptr(imx8mn_blk_ctl_of_match), + .pm = &imx_blk_ctl_pm_ops, + }, +}; +module_platform_driver(imx_blk_ctl_driver);