From patchwork Thu Apr 29 21:16:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 12231949 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,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 7AB68C43460 for ; Thu, 29 Apr 2021 21:19:07 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 0339261445 for ; Thu, 29 Apr 2021 21:19:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0339261445 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gT+x4NDo6vIgxUaMnBKIUu/p9cx38trVWkKmHOcFqCw=; b=dXS7BBQozMojz03tPFKyr334p jP5Xmv1zLj1mTTBXBJDibZZGPccS4XVLHXUbqhRystFjHmqNHTPUkSAdNHzuzhC3FLDnrdUfXDbQU JbokVfHGOJZMQMtLyD3Cm0BiFrTNsLd7QoHKgnHpobldJlrx4I3/+pmx88ZikFO2+ZXZIU9EKQBxW x4t/qkOje32c90/G1QPsVm9cWg97G0gZ4qjyQp3gBYrY97TAjy+la6+2Mp2BG02FYD3R/enEqkqtJ H0BaxOKAEBVU1jfdseSAHo26UR5e8m92odCU424GLRJlFM4TW4JShP0+j6CVrpqIl6hM7vnpLb4UX QN97ryxjw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lcE2c-006Xud-Kc; Thu, 29 Apr 2021 21:17:47 +0000 Received: from [2607:7c80:54:e::133] (helo=bombadil.infradead.org) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lcE1n-006Xoc-SE for linux-arm-kernel@desiato.infradead.org; Thu, 29 Apr 2021 21:16:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=2yoj5H+QCx6bc+UM4nyFoXNp2IJ9VP/R50NAmY/87kc=; b=RH64wjtSINCKUNk78sTTmDKF5i ED7NhQFJ7gWqipEYXxzYpHGkAmeFWzZA2LjN3iCUSmi4EqwkcHdjrI1Yjr0uhpK25xGw3y1DVQWyE wXWGpRspFzwIbKhkxrgMu3pHV+ZT43CVxcjXvjh0Cz/BmXI2UIo38ImJYiDDKAzdQsIwE9A2+b/MH NrsrDlfuKB8wpFz3Dzzg1v7iUlbrjfgbhkrhnQt5cgjPqRSjIMWX+Z4x7kuGBqKxFftApRB+CLnfC HNnyn/u6od7Yp45cdA2kkNRwmUYc87GzJvIZZqMwRkkEPbLMcGGSKon8I1LCxlRNSecoefhcSfTcK KrsIVmVQ==; Received: from mail-il1-x12d.google.com ([2607:f8b0:4864:20::12d]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lcE1c-000ybl-8d for linux-arm-kernel@lists.infradead.org; Thu, 29 Apr 2021 21:16:45 +0000 Received: by mail-il1-x12d.google.com with SMTP id a9so1717119ilh.9 for ; Thu, 29 Apr 2021 14:16:43 -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=2yoj5H+QCx6bc+UM4nyFoXNp2IJ9VP/R50NAmY/87kc=; b=NWVvCJOUY1TRFUi91NRJDzxsqZsP5JqiA4xLNNf0Cj0VTaU6+fzqazEw99O02ZZCH+ Yq+PIS0TfzCVxY/0QdzsgD1moqX/0zVytssSbEM5iXa15IPNGNne8VvNA7hhcjMYSiv0 JS4YSKqQ6+8lvil6ImnNAQ6wFh0Myq37xvXzIwafR94Wd1ATGXfQezv1pu3WhondW3tl XfdBe5ukIsx2/uzaM0Cyt7D3ikCUhNrMDXgopU+jEWPl79XuBHgtg4lVDkyt6Qr/VfBu AIn6Q6+yypGAi386pl5IXCIuCGiB/rCv752p4/o2cYiaf7/M7ZZvqkcOuJQ+vIVYa/OR M7uA== 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=2yoj5H+QCx6bc+UM4nyFoXNp2IJ9VP/R50NAmY/87kc=; b=Kj1C15VJ7aOuSTyFMlDGJbZiocCVKfB4yHWQw/jMPv+39MkmdKC4XPKCiJbDsfSAxi MVrJbT0dUJe1uSIDHvGb8teeXpeeC5qBclrdCOth5XtsrewRkBOajokpMSALYQrUBWGj 96k1vI+jRJqdNWP9ram8a7O8WwdWyWgLrqAVdiWOBwwT0ZL/3mhh20XzyB8mi5GFz2JM sYrD4BUbrdB+zzDd6IBEjq6O/4f5mWn0Hjkyr9zr1Hxu9AhSsWgrw1GVvtxQ33SeJYPc CS6K7uJThkdk+zERZAhRTnb23+2iE9U4wrpmWDXtFniL7mjdCTjQz/3D8IrJP0qen3AS E6bA== X-Gm-Message-State: AOAM532LBkswmcs78XBuTSz9z0K2EtNcEBpMYfPqwleL9ELZ6XUAQWIS w9QcuV1y2NFnVH/PCigPKaqwFZtOSrFGpFec X-Google-Smtp-Source: ABdhPJxffJBBOfq8QcNh7YQYQkt4hfOhbEItSfrLfjvnrmLhr64mYbChqPN3378MerLyXNvl6pGP4Q== X-Received: by 2002:a92:cec3:: with SMTP id z3mr1368665ilq.179.1619731002946; Thu, 29 Apr 2021 14:16:42 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:8a74:d2ad:27b:e619]) by smtp.gmail.com with ESMTPSA id q11sm1808076ile.56.2021.04.29.14.16.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 14:16:42 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: peng.fan@oss.nxp.com, marex@denx.de, frieder.schrempf@kontron.de, tharvey@gateworks.com, aford@beaconembedded.com, Adam Ford , Krzysztof Kozlowski , 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 V3 1/5] dt-bindings: add defines for i.MX8MN power domains Date: Thu, 29 Apr 2021 16:16:20 -0500 Message-Id: <20210429211625.1835702-2-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210429211625.1835702-1-aford173@gmail.com> References: <20210429211625.1835702-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210429_141644_323578_161F2443 X-CRM114-Status: GOOD ( 12.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 --- V3: Rebase on series starting https://lkml.org/lkml/2021/4/29/72 V2: No change 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