From patchwork Sat Nov 7 14:00:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 321314 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.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, 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 595B3C388F7 for ; Sat, 7 Nov 2020 14:00:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 11505206ED for ; Sat, 7 Nov 2020 14:00:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dFG7ZwhQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727863AbgKGOAe (ORCPT ); Sat, 7 Nov 2020 09:00:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725880AbgKGOAd (ORCPT ); Sat, 7 Nov 2020 09:00:33 -0500 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5641AC0613CF; Sat, 7 Nov 2020 06:00:33 -0800 (PST) Received: by mail-io1-xd44.google.com with SMTP id j12so4958382iow.0; Sat, 07 Nov 2020 06:00:33 -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=mZ0zZauDPYcHJm61ikQGB8Z52hdKv7iVnqdM1PesCOA=; b=dFG7ZwhQgPVQN9ohIm1pVpuizYMFO0XW/xHjHgu5bbU8P09nzoUUL6U+0fSANQrmAg iwy/SMGHXEbhDFRO9JeosIBDTz3L/BEa888UPBDBJpk6hwlPn4Hy2bbjoegJ0NEX8ZxA h9qn+EeHP/P29qFlMHSmgptexNAXHK8FDLcMbwDo7HZ4aGkUdpEDThuX72dCDtcoxrUU xZUX7sKwFyxV6b1B41kjOcCBnA6U1IpuAxTy+JXGHsQ9XVqj9dP3GnpuV3T3IRzH8EWg mNll6XBLQgsxafydv2+3VNkUAtt4rxoW2HIGZ/ExX5xm5kPe+UDkJp6LZ8XzWRB5F7EJ L9mQ== 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=mZ0zZauDPYcHJm61ikQGB8Z52hdKv7iVnqdM1PesCOA=; b=aW4zcIRFB1serMHQJO06j4OgRvUfpdy4WAHqiYmhas45WTSg6QCe5RufFy9l9cNIAy CuyH4KLrIeuah9Id6/n69hI0r0FaBCmTdzWtjf0EdyG5JdmU3u5KJhxaLF9IlzkvsTdG MzvgzYDfhzKUQ9ru6BkouNs+9/TeQybfuudoA+CnYmKw+jiVT5pCSyQmSg77z99YnXfr icewZ9txsgkcsFSJpqwneavXZMihE8lS7qGBPVTK6AfTcSJl2IOxB4b3XeDIuhAVsOTK Y5W+4KfjOoDdskwaAUUzNzDT2m0e7p45bSc3uO6SzBZaFx2aaWWlApQNZV747YsoNip+ JJtw== X-Gm-Message-State: AOAM530VJgBlsw1pcG+447RlvG9ro4CcVCPPlHCs6MHKGQJW8hX4yZLS ITwOhEr1+wA8LdIzBy7FSqKyMLuK3AxVdA== X-Google-Smtp-Source: ABdhPJxgWCcJKr9Dr/VXJkuFZcAnbq+I/xboyOJEr7AVueBO+2AF6aYSlvB+KvD1NjuGZIYHsTgckQ== X-Received: by 2002:a02:76d7:: with SMTP id z206mr5326447jab.77.1604757632484; Sat, 07 Nov 2020 06:00:32 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:5d9e:32b:1062:f8cd]) by smtp.gmail.com with ESMTPSA id g5sm3030257ilq.33.2020.11.07.06.00.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Nov 2020 06:00:31 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, krzk@kernel.org, Adam Ford , Rob Herring , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Andrey Smirnov , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 1/5] dt-bindings: add defines for i.MX8MN power domains Date: Sat, 7 Nov 2020 08:00:21 -0600 Message-Id: <20201107140026.1974312-1-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The i.MX8M Nano has a similar power domain controller to that of the mini, but it isn't fully compatible, so it needs a separate binding and power domain tables. Add the bindings and tables. Signed-off-by: Adam Ford Reviewed-by: Krzysztof Kozlowski Acked-by: Rob Herring --- V2: No change .../devicetree/bindings/power/fsl,imx-gpcv2.yaml | 1 + include/dt-bindings/power/imx8mn-power.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml b/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml index d3539569d45f..a87c44c15ace 100644 --- a/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml +++ b/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml @@ -25,6 +25,7 @@ properties: compatible: enum: - fsl,imx7d-gpc + - fsl,imx8mn-gpc - fsl,imx8mq-gpc - fsl,imx8mm-gpc diff --git a/include/dt-bindings/power/imx8mn-power.h b/include/dt-bindings/power/imx8mn-power.h new file mode 100644 index 000000000000..102ee85a9b62 --- /dev/null +++ b/include/dt-bindings/power/imx8mn-power.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ +/* + * Copyright (C) 2020 Compass Electronics Group, LLC + */ + +#ifndef __DT_BINDINGS_IMX8MN_POWER_H__ +#define __DT_BINDINGS_IMX8MN_POWER_H__ + +#define IMX8MN_POWER_DOMAIN_HSIOMIX 0 +#define IMX8MN_POWER_DOMAIN_OTG1 1 +#define IMX8MN_POWER_DOMAIN_GPUMIX 2 +#define IMX8MN_POWER_DOMAIN_DISPMIX 3 +#define IMX8MN_POWER_DOMAIN_MIPI 4 + +#endif