From patchwork Fri Dec 13 16:05:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 11291707 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C75A414BD for ; Fri, 13 Dec 2019 22:25:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 AC2F822527 for ; Fri, 13 Dec 2019 22:25:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rPL8b5a7"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NKVRcrFQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC2F822527 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=3mULdaxXXSjaCg9MKGAsAIRnqyxDHrjOKjJnKnJAoAg=; b=rPL8b5a7JCyYi0 3a4Uo6oVmdyMGgB4lepiTdzLOfKTQ48aUTAWSZPOtTng8mCAQ/tRHQrTOQ5nxzL+VXAcEMyc/GGex o1P9z42zPh6j5p6joqqw2Gs/Xu0G3S02Tp71Vv0F3u6pP1StMNIrK9sG2L8tGqf5ju8jXSwm3pciI sv/dZNKN2L2+y0eLtNI8QuXYOSz5UiptaGoPFAMXGiG+sS8cSEOU34w7rQhWdZ++AzkB0lUqU42Ta Erjyu/n+3XnG+61qLLU70+h6DCj0xnjLHab83bV3QoifCZDt1nacBu5pRWPfOcPe7P+XlqdO3iIxf WKC+OwMBxadV/yhF/gRg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ifnSg-0004Hj-Ca; Fri, 13 Dec 2019 16:06:38 +0000 Received: from mail-yw1-xc43.google.com ([2607:f8b0:4864:20::c43]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ifnRv-0003eE-Kr for linux-arm-kernel@lists.infradead.org; Fri, 13 Dec 2019 16:05:53 +0000 Received: by mail-yw1-xc43.google.com with SMTP id b186so57710ywc.1 for ; Fri, 13 Dec 2019 08:05:51 -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=XEqMHcTdDOYOvlqXuxrY0ZDmTfpLPgj3LFItvyhrGW8=; b=NKVRcrFQi760LHcc2CA3mSfP216r5ge0bRp8GoTBxQzDEoVuCBqhn0AnB12G/DmyIN 7Zi15rAWKE+6u8EKYPiy3nu7oTaK5y4xGj5v1FFU9OeZdev3wLePzS27Rkg9I+xGub9I BjVjua+vP5CtwTTtDm0Erd2lv6gGzHFiO+eHL3CS+WnWEJavdNg4ge7f1YNh8qPoTOvJ oLeb8/YH+bUQBRJK+1ii49WoOVdX9FMfzWXw+QClPLnUwhLIqprDDRsL2pU6LRXvQd85 JKxf1xFOMXICKrzwC0pUKzTXHqKJHui89SGkOKuS83pvy6UfKsVaILzw1wcnRL9L9mEa Nbhw== 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=XEqMHcTdDOYOvlqXuxrY0ZDmTfpLPgj3LFItvyhrGW8=; b=Ik+ZQ4uaOENFyJ83ZZYBEm2ETUr2/KZ0UvihlBNbwgSm3Nc9bh2trPelphFyxXDUK6 hC8ZO0/I0A+RAkVDi4faROtyvtPko0OZrFyDVylyXzKP2picLnqCBg8qucfG6RXwtbHw PmuGsAxMod3XGmMmEuwzm39Gy0n+PDjA6EYxM6IIFAnSNM3lEgQax/Qiaiu7Dn+10jKp q36ny6g5QUSl4cRCLlDPgA1PDLvCzu1RI5g3KkP5Pip43Olkg9CMtP1uPTyhaQl6Xvaz xa0CiQJG/PdVbOnkvmdi9TTT6AlftG1FBZnXin4SkK7KBIscrWvpqAExE3j7vKDn5W2R qCIQ== X-Gm-Message-State: APjAAAVtSKZvXaYwAMlFz0hW6rmPBEQbYVWinYadp93lYaNIepcZdfl0 JS/AdNMYaP9L1PkJ7I0tx5CfG6s4 X-Google-Smtp-Source: APXvYqys0XoQhk+58M8smG2N+QHVvjzqTiqDCi74zIQgQS1eYZb6PW/ZmzSN70o7vzlpSbz5S4WEFw== X-Received: by 2002:a0d:c041:: with SMTP id b62mr9089386ywd.488.1576253149508; Fri, 13 Dec 2019 08:05:49 -0800 (PST) Received: from localhost.localdomain (c-73-37-219-234.hsd1.mn.comcast.net. [73.37.219.234]) by smtp.gmail.com with ESMTPSA id v38sm3984694ywh.63.2019.12.13.08.05.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2019 08:05:48 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Subject: [PATCH V2 0/7] soc: imx: Enable additional functionality of i.MX8M Mini Date: Fri, 13 Dec 2019 10:05:35 -0600 Message-Id: <20191213160542.15757-1-aford173@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191213_080551_786731_B4906736 X-CRM114-Status: GOOD ( 11.49 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:c43 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (aford173[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (aford173[at]gmail.com) -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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: Mark Rutland , devicetree@vger.kernel.org, peng.fan@nxp.com, Fabio Estevam , ping.bai@nxp.com, Adam Ford , Sascha Hauer , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Shawn Guo Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The GPCv2 controller on the i.MX8M Mini is compatible with the driver used for the i.MX8MQ except for the register locations and names. The GPCv2 controller is used to enable additional periperals currently unavailable on the i.MX8M Mini. In order to make them function, the GPCv2 needs to be adapted so the drivers can associate their power domain to the GPCv2 to enable them. This series makes one include file slightly more generic, adds the iMX8M Mini entries, updates the bindings, adds them to the device tree, then associates the new power domain to both the OTG and PCIe controllers. Some peripherals may need additional power domain drivers in the future due to limitations of the GPC driver, but the drivers for VPU and others are not available yet. Adam Ford (7): soc: imx: gpcv2: Rename imx8mq-power.h to imx8m-power.h soc: imx: gpcv2: Update imx8m-power.h to include iMX8M Mini soc: imx: gpcv2: add support for i.MX8M Mini SoC dt-bindings: imx-gpcv2: Update bindings to support i.MX8M Mini arm64: dts: imx8mm: add GPC power domains ARM64: dts: imx8mm: Fix clocks and power domain for USB OTG arm64: dts: imx8mm: Add PCIe support .../bindings/power/fsl,imx-gpcv2.txt | 6 +- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 127 ++++++++- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 +- drivers/soc/imx/gpcv2.c | 246 +++++++++++++++++- .../power/{imx8mq-power.h => imx8m-power.h} | 14 + 5 files changed, 387 insertions(+), 8 deletions(-) rename include/dt-bindings/power/{imx8mq-power.h => imx8m-power.h} (57%)