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: 1209237 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="NKVRcrFQ"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47ZFrc262Kz9sPT for ; Sat, 14 Dec 2019 03:05:52 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728103AbfLMQFv (ORCPT ); Fri, 13 Dec 2019 11:05:51 -0500 Received: from mail-yw1-f68.google.com ([209.85.161.68]:43187 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728099AbfLMQFv (ORCPT ); Fri, 13 Dec 2019 11:05:51 -0500 Received: by mail-yw1-f68.google.com with SMTP id s187so22199ywe.10; Fri, 13 Dec 2019 08:05:50 -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=sIptDIS6AalEA1rtX6Rte91Svnp3l3R4BfNfkD5PXqpMTgULeX+BCKigqDYhwx5rWw LlOq1+AXqvbHblJK74yxcoBSj9UFvNw9zzqzhVmHbHaxyQFgmdBw9fosIcrcul/5jW8n v5bavzQzdc8NoIWWSJVTVEM0I7kI7QUTIV2W+SD0slgrRhTW11Y0uIqVt8Es20hIA7Y+ ueLWVlzdRlk4gonRwt6yb3G7uL/Z7bFWpccQ86ZLRFBnjzUesU0Yp08GHVxaKfTrbKf4 H2tMvDyYV70cVHhp5s9viZCA1gz/MLhS0VpWvhJvjVb0SdRPMI+DE7arMTe3afvgp42l FqmA== X-Gm-Message-State: APjAAAXemg3wc4XybPsNNamwQino2XTQMspbFXMDMpixsjqXVPyitm6B ahSBmLsKWA+inNlw1bjrJi0= 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 Cc: peng.fan@nxp.com, ping.bai@nxp.com, Adam Ford , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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%)