From patchwork Thu Dec 20 01:06:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10738423 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 167116C5 for ; Thu, 20 Dec 2018 01:07:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F36D5285A9 for ; Thu, 20 Dec 2018 01:07:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E46E8285F0; Thu, 20 Dec 2018 01:07:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7E0EB285A9 for ; Thu, 20 Dec 2018 01:07:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=vtCycOPNMwKIzZ4SJnSRyt5pTlJI/i9t/AO0Z+s5Mr4=; b=SeDvWcKQvE9HT/ sFPQ8O455yc4Ei2Ru4PW84FX49F3iLmEvyl3XxFN8XOv5hn11o1McwLUaNca1FcLJgV/978XRWGw5 IQ3ZO8VbkKZOZ08APRgZmIDIBv1raCnnQCz6CuVtXcNeajlFamQAbo+72YucSiwpA89625dybzSEf x1whudX8XRqKhbwRGotpEUfJvHPRI7b1+xv0IEFmpgU/4vHtJmRXXkDuBqvqinQVL9f4sWyHQAvqM bSH8ktli0y/mv0DsOP+P60Q9T/PrLKgaBShpVqjdT10p6JzXp/XPwyuAEWlQo085giDXjJQnQmnDk vUgulljMMSCgErwknPTg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZmoH-0005J0-IF; Thu, 20 Dec 2018 01:07:33 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZmoE-0005H5-BZ for linux-arm-kernel@lists.infradead.org; Thu, 20 Dec 2018 01:07:32 +0000 Received: by mail-pg1-x544.google.com with SMTP id n2so37225pgm.3 for ; Wed, 19 Dec 2018 17:07:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8Fnlz9d2Srhxso67QeGY6H/NOUQaHJHanzZ1PY2k3RE=; b=SuuCvJDwCeikOL5OpjuLKSkyIHLn5+UK727MbIaoNXwHbwgWHP4EQoqlFop0X91T0i /mU4HvU1A26gh+jvxrEjfI46hk09c8pk2ak5ePMjmXI82/nLcqqExEZ4AUwFa3Pk36dx XC7mxQPqaMU1dI8WntKbOKxOFWQAsBIr+bLDpclfsRkqj8UU0iVUNQFGsPKgu0/QMn1c ZpA+tZFrZ8qzZxDre+VlWdIw4fN3ILIdRMSrBzOM1c1v8iI82N5ky+USRYcsyXwStc7C dh9DqAkynfEz6YaBO2ONo/vO8htx55fs2qRun8zSZePi6h4EyIAunCH1pAOdxYd6MoQN F04w== 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:mime-version :content-transfer-encoding; bh=8Fnlz9d2Srhxso67QeGY6H/NOUQaHJHanzZ1PY2k3RE=; b=p1xiRqg1oTyYBAnwQOxWdGgxqPUZUOmL0Gh4Iku1Cci6WgU8oH5q2cDfY8PgScoRfx kLjWHotKzI5AN2iSGHtnMoQ1t6QZKS0EiBhn+ogrH7hT3etWt00JnIBBNDTcS55BJJjx mPlxm7yQ9MIthS4RC1wkOY+D/Kfe+Ts354KmXkhPYNNrCeFUbBVSoOMtSBRDOOoOg2qz UnuLpCu5OKk7aTS/U51h1wZzaJsMre4oK3g5ZJEMpmslK0E08eS7t2qgfGJwSpPxt/QM +O5yiNLa32jR81wca8opHP5TOFpFXL97Gp6yQoJbr7/cYWgCRZRikvcQhrXxBkR9Pgpl 3nww== X-Gm-Message-State: AA+aEWYLYhFP+1AC4ewpVhNg5/DDnwVPD/hLsmA4QKIsBB7vtWrvaISw oSu1gsWyZbQrKbgFkg4X9+o= X-Google-Smtp-Source: AFSGD/VtLRe7FWiBnDkmUVikPEMICozZCf3bxFg6DhSdTNQxarH/dcKcBBgQLlWGGc6VXAmIgJGMCA== X-Received: by 2002:a63:7c6:: with SMTP id 189mr21752673pgh.129.1545268038582; Wed, 19 Dec 2018 17:07:18 -0800 (PST) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id 83sm29008612pgf.57.2018.12.19.17.07.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Dec 2018 17:07:17 -0800 (PST) From: Andrey Smirnov To: p.zabel@pengutronix.de Subject: [PATCH v4 0/3] Reset controller support for i.MX8MQ Date: Wed, 19 Dec 2018 17:06:57 -0800 Message-Id: <20181220010700.8598-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181219_170730_400100_26338492 X-CRM114-Status: GOOD ( 12.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "A.s. Dong" , Rob Herring , Richard Zhu , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Andrey Smirnov , linux-kernel@vger.kernel.org, linux-imx@nxp.com, Fabio Estevam , Leonard Crestez , cphealy@gmail.com, l.stach@pengutronix.de Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Everyone: This patch contains changes I made in order to add support for i.MX8MQ to reset-imx7.c in order to enable support of PCIE IP block on i.MX8MQ SoCs. Feedback is welcome! Thanks, Andrey Smirnov Changes since [v3] - Kconfig entry is converted to use ARCH_MXC - Collected Reviewed-by from Rob Herring Changes since [v2] - Constified "variant" field in struct imx7_src - Moved dt-bindings/reset/imx8mq-reset.h to be a part of the patch documenting DT bindings Changes since [v1] - Series re-written to use a per-variant LUT instead of using a single table - Changed driver to use "imx8mq" insead of "imx8m" to match other drivers and CONFIG_ARCH_IMX8MQ - Updated list of exported i.MX8MQ resets, add missing and remove bogus ones (hopefully nothing is missing this time) [v3] lkml.kernel.org/r/20181217023827.7947-1-andrew.smirnov@gmail.com [v2] lkml.kernel.org/r/20181128043738.12714-1-andrew.smirnov@gmail.com [v1] lkml.kernel.org/r/20181117181131.9330-2-andrew.smirnov@gmail.com Andrey Smirnov (3): reset: imx7: Add plubming to support multiple IP variants dt-bindings: reset: imx7: Document usage on i.MX8MQ SoCs reset: imx7: Add support for i.MX8MQ IP block variant .../bindings/reset/fsl,imx7-src.txt | 7 +- drivers/reset/Kconfig | 4 +- drivers/reset/reset-imx7.c | 166 ++++++++++++++++-- include/dt-bindings/reset/imx8mq-reset.h | 64 +++++++ 4 files changed, 221 insertions(+), 20 deletions(-) create mode 100644 include/dt-bindings/reset/imx8mq-reset.h