From patchwork Wed Dec 15 00:46:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 12696131 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 7C37AC433F5 for ; Wed, 15 Dec 2021 00:48:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=1X/NkKKMsRK4B8VL8I84KxOgQxieAKQpPw+lFSFcypI=; b=GCgQ+em43RqiKJ 5FAVcWEmg6PSB0BFmtJy3HAhDF3JoMaULB6DVZ2soMaYL7iFmO/Wlf0tefpjRli0S6sh5oInkT+Yv /uS8OY/X0EpKXQJmmmpNHEBK6HHcbTbxEnxhaTznpVN8MTb/2EzbxpqKUoPyQVNQSQJemxI8VjJiZ 68LusAtPzqWAF2katLBe3QCeBgkqqxsyx8dl7xXIpAmaVxJJsmVhrUxtAiGtNfVN+6ZOWmlxXuI6c QFBRW2W/PjRyVtqNJSaG1O2KDKPtDlauywFDSZtSJEsmIRYLhZziKk9uFpDT4KL1+AWdPCGUVDemQ 5qwCwik6gYzrB/3QPgOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIRZ-00G9hM-Rb; Wed, 15 Dec 2021 00:46:54 +0000 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIRN-00G9d9-L3 for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 00:46:42 +0000 Received: by mail-io1-xd2f.google.com with SMTP id x10so27343216ioj.9 for ; Tue, 14 Dec 2021 16:46:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TsxVm/nBHbmV/4yA20eRpZCerBTIIqpAtNm+TzyfRMc=; b=CiriOTZ3zJ1nN8OcVg5a1lR0WEgbKwYvIj/uiMxFH88adp3Dq76A7fuT3EjE9lV/eW eb0LcYXSB0PAzxSqB9YvvIn8GwDKlOcQYmvvUCT+ubGaUY0EtA6us+j9IhLhVm89nEwD 0DFX4WVwUVMM4jZJUvWTG18EYNQVKFKYIpaHKyeF/6KcAjrE4zaxat/HnMqZY0O5FZiR L358XpwTefW16RcAf1iTma4vuCSJtFtJ47OkZuvr1Gk3GMNBHJM9B4VEJUyLbzO5Hmk1 QudoLhR6lWgFe/XB5QWsaahWkBhwQ7v0h7BsteKJZV76+CIb5EnV9UOZDvEDbosse8m/ sV1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TsxVm/nBHbmV/4yA20eRpZCerBTIIqpAtNm+TzyfRMc=; b=sXWrUBeTuaEKeXUQUn6e6HNwvnfvs7BxShIXTenL24nIFLrz0Jt1UVDTEfNAiljk1J 1MtGG1lDbsqy1V7CuXLerc7s+y6ZBm9kPMTiBGuZBY+VMNUTZojMBBfFDKDbBoTp0QAO LaMktr0xxgo2Wfoin68sM4DQpRxJ3qW7P56GXTRcbGAA4EIkDZ5NIKztSrCS0oBh9PNL W5cCQ6fmrocyMwfePDs5w3IbrExiL/QrQeW+/AJHWXP1d38RaoSDUBnD/FGbaGJOCDWp 9T/wU+nwrch7pj2dfbVARIBzB4zU4RcIbmVlGEsV3DGLiZpM/suGVjPvuB/eJ3agFUZ/ yXxw== X-Gm-Message-State: AOAM532Lgo8vpdAWHFjbuQ72HQdh7kcukpYx/KX0GXZ/u5n9fZh6PInE 95R66mXFnwG/1VhNwb7c5M43n+YPUHJLYw== X-Google-Smtp-Source: ABdhPJy12WWwpsykdsDt2quBfCFzIlmVv94rwZBrTeLWWE5IUudQCFp6YRRRx+6tP9S0DhAHpKQw3A== X-Received: by 2002:a02:cb0d:: with SMTP id j13mr4568955jap.775.1639529200272; Tue, 14 Dec 2021 16:46:40 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:8256:b93c:84fb:458b]) by smtp.gmail.com with ESMTPSA id y8sm218857iox.32.2021.12.14.16.46.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 16:46:39 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: tharvey@gateworks.com, aford@beaconembedded.com, michael@amarulasolutions.com, jagan@amarulasolutions.com, Adam Ford , Lucas Stach , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V5 1/9] soc: imx: gpcv2: keep i.MX8MN gpumix bus clock enabled Date: Tue, 14 Dec 2021 18:46:18 -0600 Message-Id: <20211215004626.2241839-2-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211215004626.2241839-1-aford173@gmail.com> References: <20211215004626.2241839-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_164641_709314_96BB509B X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. 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 Like the i.MX8MM, keep the gpumix clocks running when the domain is active. Signed-off-by: Adam Ford Reviewed-by: Lucas Stach diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c index 8176380b02e6..a0eab9f41a71 100644 --- a/drivers/soc/imx/gpcv2.c +++ b/drivers/soc/imx/gpcv2.c @@ -841,6 +841,7 @@ static const struct imx_pgc_domain imx8mn_pgc_domains[] = { .hskack = IMX8MN_GPUMIX_HSK_PWRDNACKN, }, .pgc = BIT(IMX8MN_PGC_GPUMIX), + .keep_clocks = true, }, }; From patchwork Wed Dec 15 00:46:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 12696133 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 64B8DC433EF for ; Wed, 15 Dec 2021 00:48:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=odWcIOBg18eGFKVGd7dkfwp9nBZTy3Hi8AXrZvCHIEw=; b=UYs1kDEe0oEeBt jRns0zUiwn5G3EFHH8ZN2l1haS19rDdvk2IxX2/3+neRnn4Q2ucLBUWRbrwzFhR8KnZlvyGieXCWb x3AHlSdHnMnWWtW05JvHNKg89m+qtA38BhCZMfN9tHy9PTSv3m9G9yUaDhNOKutIZOqMHEHEz7VjX 4oNN5mH3M3iPXHnu5DbRYRYFh6avozY2APX+CgXAO5q4pgxKwUyUXDKu/A8pd7gAHvuM6BKinKi76 qNZRc0QFG84y9syRK2EFDrLX7ruB1AK9LJo65a3LPj3DvlCNwHk44WR/2RqowIe2gGcGU1wenP+AI GUzczN9HnREd9LK1WCeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIRk-00G9kS-8L; Wed, 15 Dec 2021 00:47:04 +0000 Received: from mail-io1-xd32.google.com ([2607:f8b0:4864:20::d32]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIRP-00G9dr-Hn for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 00:46:44 +0000 Received: by mail-io1-xd32.google.com with SMTP id p23so27346435iod.7 for ; Tue, 14 Dec 2021 16:46:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hZeqp1FYJmD+knXrPe5OXFXwzSVkktTav5BzuULk6lM=; b=McaMoHZtB0R7eaaRVJjiBK77puPXXCMnkXxzz158P8zT/6hfq9kw0vjctqVga1vP1v zc1MK8vm793LD5a/XQ786JbtSoY0b4MFIAdJZoCrCaHWuUJNMrFRrv+U82ROIB5+9fgS JYUFsY1s2sgxrlLC8TzM4XqQeuPm29s6w/UAO7KJXUnGc2yHqV7iDrNSJ2sIDYB9UXjt CKFiL95ugoRUBx8SRamxYV/hsJEmOcRLoMt6WOFk60XfVl5+i9pKcSRq8aCclUCbNAFU 0anU1ilFrD/RFBJqAVtI5S+amlJ7IZ88/bF4DQcPXNd1wzGo7L5GFabLQUnmueHWSBXR y4Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hZeqp1FYJmD+knXrPe5OXFXwzSVkktTav5BzuULk6lM=; b=vQdnsdNynrWPVjXGp8G5RuqfOFftZhNvVPa8FwU0R0KXTfn24L4pULWccn7qDE0xcE iRpnBjEyNqVYwYvRp7GEmjwVI7aj4oKb/EGuDJ5M99U1c0YNJ/9wnAo1gOE0g2PCHq8s Y/hO8AlE6yE2lnVkHMMxK9/W9jDaf3/FvaZDLwNFuFoCa1+GC0Yoc5Qpuf1jWKrV2nz1 gPLYpXi7UCRL97Iv8tkW2ifDngve7x49a+NwT2PZWznO90DMuWuOd41UsDJmtQKN8mgj vfx1ooDN2IarwKXvaPIUq+7h2908QdQnrKRJ3ibnYC5VLDk5saqobHDs2hbCioWIlCG8 yVPQ== X-Gm-Message-State: AOAM531JprUomsWh9oso5wvMKZRfD9aUDbaEcgp8SQpLeIfNPQiqi386 kTAhroZANRn6eHPW1bLnU/E6Wa2Kz27M/Q== X-Google-Smtp-Source: ABdhPJxWw+JlvCdOA0QABauvmI+6V5wJiaujT/4F+Zmf0lwfeirbgSjiYolwktTReOWRSYFR+17Sdg== X-Received: by 2002:a05:6602:164a:: with SMTP id y10mr5408745iow.123.1639529202186; Tue, 14 Dec 2021 16:46:42 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:8256:b93c:84fb:458b]) by smtp.gmail.com with ESMTPSA id y8sm218857iox.32.2021.12.14.16.46.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 16:46:41 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: tharvey@gateworks.com, aford@beaconembedded.com, michael@amarulasolutions.com, jagan@amarulasolutions.com, Adam Ford , Lucas Stach , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V5 2/9] soc: imx: gpcv2: Add dispmix and mipi domains to imx8mn Date: Tue, 14 Dec 2021 18:46:19 -0600 Message-Id: <20211215004626.2241839-3-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211215004626.2241839-1-aford173@gmail.com> References: <20211215004626.2241839-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_164643_611956_04E0A568 X-CRM114-Status: GOOD ( 10.60 ) 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 dispmix will be needed for the blkctl driver, so add it to the gpcv2. Signed-off-by: Adam Ford Reviewed-by: Lucas Stach diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c index a0eab9f41a71..3e59d479d001 100644 --- a/drivers/soc/imx/gpcv2.c +++ b/drivers/soc/imx/gpcv2.c @@ -843,6 +843,31 @@ static const struct imx_pgc_domain imx8mn_pgc_domains[] = { .pgc = BIT(IMX8MN_PGC_GPUMIX), .keep_clocks = true, }, + + [IMX8MN_POWER_DOMAIN_DISPMIX] = { + .genpd = { + .name = "dispmix", + }, + .bits = { + .pxx = IMX8MN_DISPMIX_SW_Pxx_REQ, + .map = IMX8MN_DISPMIX_A53_DOMAIN, + .hskreq = IMX8MN_DISPMIX_HSK_PWRDNREQN, + .hskack = IMX8MN_DISPMIX_HSK_PWRDNACKN, + }, + .pgc = BIT(IMX8MN_PGC_DISPMIX), + .keep_clocks = true, + }, + + [IMX8MN_POWER_DOMAIN_MIPI] = { + .genpd = { + .name = "mipi", + }, + .bits = { + .pxx = IMX8MN_MIPI_SW_Pxx_REQ, + .map = IMX8MN_MIPI_A53_DOMAIN, + }, + .pgc = BIT(IMX8MN_PGC_MIPI), + }, }; static const struct regmap_range imx8mn_yes_ranges[] = { From patchwork Wed Dec 15 00:46: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: 12696134 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D8120C433F5 for ; Wed, 15 Dec 2021 00:48:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=gkAFkqpRvIshWfmr1PCi31YrGD7YeMCedCoz4vg6ROE=; b=JpxCSXvkdqxkLo 2V34eNum0Ji4HOptNYrYX52ZKJ1M3D5YLSmh4GCP1aanUoIFy+LL67PmqzH4+BIJs9GyKqsq9Hwwg WlZLQumAclnSgj8LYN+eI3wwzUGH+5tMQTdiYB02A/Ym2G1o4NTcJf2gdAdOdCbaexQCCk9rQBXah Fq0xHz4Q1dPf1upMcD7xVCTkNRwVFJnNBS/PmAi5wcOqEdpLNxCGCVA930/7iTqFScT58d9kx25UO n2iVXzNoR6QX6elC1RVhyw6e/HOtENpMLIqMrqCjm9pw4ckLMqKFJfrXa1mvee0vQaaYeqXkTz4/9 jzgh8kmwMXvsZPv0+6uw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIRu-00G9lz-S4; Wed, 15 Dec 2021 00:47:15 +0000 Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIRR-00G9er-I5 for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 00:46:46 +0000 Received: by mail-il1-x12b.google.com with SMTP id i13so7754876ilk.13 for ; Tue, 14 Dec 2021 16:46:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zOj6+FRrWJBe0yzwKdDY+lwzo/kGYuvHuT0oZs9+DUM=; b=eSflWeUUijpaFjj4V34Il4s7QrWE2XptATWBJZ0JZsBFWFz8wnMjmYWmfvLlAYtH59 uDGnINyNxAarNfVtlFtsriqxSJzpm4CT/sfIakQ6ATbFQL+P+PJ/Yt8vc2fg0RX/Yex+ wTktJdQUqOyhVl153jYzMRAmniqgfE/8pB2Xm3Y7lLl3rhJ52KaqNBXVw/rP34Wlcf8w vGUGwFxEuAfIhJ6wT2zdIuJvlB8YdadzzQudnfdkIDvogcVWhsK6sWv4/DRUOh39Fr1m 2a6qDYfC1KUQpqpHSDDBhR4FrNRaSULGEvBvA3OZ5mSNB/ix1sZ66f4WPhtyrFEDGKEV GDew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zOj6+FRrWJBe0yzwKdDY+lwzo/kGYuvHuT0oZs9+DUM=; b=0gnZMRAyAKPevknAszMLfrIRdlU6V/OqdeC20N1T7EDQr+Q4pPE32vsPGBMenNtbtS WLnX/0ja3Mw2vpifKx6e40jBmVUiE4Z2kzZwFMJowSajgx0OfG6NihVr7JNt3j/6dQa4 0vF7zLz6s3tXYhc8uO71RR1TL5knxl6HPNwqQ9zwjtCuPF5wDz3rFUSpcLqlblHBxuzn 49qZ+eg+l+ox4Dec7EX62J/K/GO9xsQbJsJVz5TM3gIxkrbkGxP5EtOikgPFcZoZb+P7 Mfv8/DZ4+YbPB9J5/tF6EkyouIujIR+ifsdx0pInN1n+uSh0sc9FLDA1fKjjtsCzhqB/ I9JA== X-Gm-Message-State: AOAM532ioGOLKlMpQvKR8n//pN46X/101bMN1Q30uhaylLyVltWWEjV9 RSqfeteTfqD4LMhw7iUidnkgSFkUGeYz1g== X-Google-Smtp-Source: ABdhPJwG/Wjm+9RxQ1YIY+e3WP80NillHAdJXqmT8faF2TKzs83aDEIeFNwXswxydfY8jfp5pdC53w== X-Received: by 2002:a92:d705:: with SMTP id m5mr5490789iln.47.1639529204235; Tue, 14 Dec 2021 16:46:44 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:8256:b93c:84fb:458b]) by smtp.gmail.com with ESMTPSA id y8sm218857iox.32.2021.12.14.16.46.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 16:46:43 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: tharvey@gateworks.com, aford@beaconembedded.com, michael@amarulasolutions.com, jagan@amarulasolutions.com, Adam Ford , Rob Herring , Lucas Stach , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V5 3/9] dt-bindings: power: imx8mn: add defines for DISP blk-ctrl domains Date: Tue, 14 Dec 2021 18:46:20 -0600 Message-Id: <20211215004626.2241839-4-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211215004626.2241839-1-aford173@gmail.com> References: <20211215004626.2241839-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_164645_622227_E3EBA8F9 X-CRM114-Status: UNSURE ( 8.27 ) X-CRM114-Notice: Please train this message. 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 This adds the defines for the power domains provided by the DISP blk-ctrl. Signed-off-by: Adam Ford Acked-by: Rob Herring Reviewed-by: Lucas Stach diff --git a/include/dt-bindings/power/imx8mn-power.h b/include/dt-bindings/power/imx8mn-power.h index 102ee85a9b62..eedd0e581939 100644 --- a/include/dt-bindings/power/imx8mn-power.h +++ b/include/dt-bindings/power/imx8mn-power.h @@ -12,4 +12,9 @@ #define IMX8MN_POWER_DOMAIN_DISPMIX 3 #define IMX8MN_POWER_DOMAIN_MIPI 4 +#define IMX8MN_DISPBLK_PD_MIPI_DSI 0 +#define IMX8MN_DISPBLK_PD_MIPI_CSI 1 +#define IMX8MN_DISPBLK_PD_LCDIF 2 +#define IMX8MN_DISPBLK_PD_ISI 3 + #endif From patchwork Wed Dec 15 00:46:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 12696135 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 0ABB7C433EF for ; Wed, 15 Dec 2021 00:48:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=b9wcLr956JZMuVWm0GSYI6SrKgpzuh6qJ0UFKGZ03xk=; b=vGRTg2o4pC6yMI K6WuXPXG0gIKsieJloQyket3KGFgAMeKGOEP57UoE21U4pBTev0WGhL9a1wRX3Zn3hd/GZ21p/0F8 WjyboBhffWv71qMns4Mq9h5k5IBUXO8sgYLqizkP64SQ5vBqwxpI4BAcN4vNPVDRwEb0MFn+ty1yv 07v/BoOIBnvZRL0P/DgXs9STnO69S/VPizFsqNIRVd0PW5nF1Q0/BhTaXLQdetjV2/RHtEx8pxHxO Ij5ByKtyUJeDGFhlYNZ3oaLV68YlQKpw1Ddt2Nw9zbtuHTnOH8oAmall1mi/yVnuL61PzYPeZIevi sw9aeQVwEMbFL6SEgVjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIS6-00G9oE-Ga; Wed, 15 Dec 2021 00:47:26 +0000 Received: from mail-il1-x12d.google.com ([2607:f8b0:4864:20::12d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIRT-00G9fG-ML for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 00:46:49 +0000 Received: by mail-il1-x12d.google.com with SMTP id w1so18602900ilh.9 for ; Tue, 14 Dec 2021 16:46:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Wn4y4nOlo3Oeq4CoVpUuRwguDTGRA4xmrBgSN6cvGKk=; b=jZS/DO/BkJGMgBGZnAaN7hMIjK9+fmNDEcuyb3asK05XoVLGInRStpkp5naNeCfxCQ tgeyEnP7+eH5QtYWKjRBabSpl3DKS0ula2BOPfbfZQ5zeUXdC+ME2bAxn7tsqcK8c1Yi 2ofGOqhdU+7a8UqYqOJVxNB3TezzwC/CRkW7O1HiLSG36zFIRn9kpQhU24sK4JyEH3M0 WDrjXwqna3D1ZAzDgUzkQzFO4wXsM7aY4ICE+9GxXIIsqjjcuqA8ic9QhsMGCfDQZabM Wa2Fek+z1leXEJHxsnZqIeIq/NUkR1Cl7dt2WoTy8iuOQCm7HXm/paZlw8yQwRP29pfp mFpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Wn4y4nOlo3Oeq4CoVpUuRwguDTGRA4xmrBgSN6cvGKk=; b=vKpujvYrMXI0sRU0+LTrwx6yqtFC5J+Np0i5HkD7Yhnqtm7f5ZXu/OUaKyqptrUm92 nbhadS3r422W0qnizBP56oIS2nRraBE949txbBeLd05LENtoxoEGvpZfdByHqlX2wqe2 COrJevEr78Ds2WJSD2imq2v2CH877XekrAEDV+49F2SLClu92Cs1Lv9KJCWjkl0VNb4b m/5lsLg4MHGnKMdJUca0LmaBr5xsPys9u3iUY6HzSH0DVwpK0u1iCHX/N5xq8S7Rhwn0 wak6JiGV8Ln3o+XvI2yEEWCha7tHvJw2fvanCD4jzpsVny2nNeY7lLA2SvEhq6CgocJ3 r+Qg== X-Gm-Message-State: AOAM532Hg8spxEhSnYxAaZVnvVp7aq5CjpyTWp99+OHOo5tMmQXch2FG Vq+d6NDuYIw+KFvyF7Wnt6yt3TK8oLoN+g== X-Google-Smtp-Source: ABdhPJwpeCFb6K9PUvDwvjpvBflb97s9MjaFWpTH7tCXWTlW46vcfUU3F71Bx/1KVWvrIl2ZDvuDDA== X-Received: by 2002:a05:6e02:1d8c:: with SMTP id h12mr5415515ila.314.1639529206310; Tue, 14 Dec 2021 16:46:46 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:8256:b93c:84fb:458b]) by smtp.gmail.com with ESMTPSA id y8sm218857iox.32.2021.12.14.16.46.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 16:46:45 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: tharvey@gateworks.com, aford@beaconembedded.com, michael@amarulasolutions.com, jagan@amarulasolutions.com, Adam Ford , Rob Herring , Lucas Stach , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V5 4/9] dt-bindings: soc: add binding for i.MX8MN DISP blk-ctrl Date: Tue, 14 Dec 2021 18:46:21 -0600 Message-Id: <20211215004626.2241839-5-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211215004626.2241839-1-aford173@gmail.com> References: <20211215004626.2241839-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_164647_754260_BBBF5420 X-CRM114-Status: GOOD ( 11.87 ) 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 Add the DT binding for the i.MX8MN DISP blk-ctrl. Signed-off-by: Adam Ford Reviewed-by: Rob Herring Reviewed-by: Lucas Stach diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml new file mode 100644 index 000000000000..fbeaac399c50 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml @@ -0,0 +1,97 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/imx/fsl,imx8mn-disp-blk-ctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX8MN DISP blk-ctrl + +maintainers: + - Lucas Stach + +description: + The i.MX8MN DISP blk-ctrl is a top-level peripheral providing access to + the NoC and ensuring proper power sequencing of the display and MIPI CSI + peripherals located in the DISP domain of the SoC. + +properties: + compatible: + items: + - const: fsl,imx8mn-disp-blk-ctrl + - const: syscon + + reg: + maxItems: 1 + + '#power-domain-cells': + const: 1 + + power-domains: + minItems: 5 + maxItems: 5 + + power-domain-names: + items: + - const: bus + - const: isi + - const: lcdif + - const: mipi-dsi + - const: mipi-csi + + clocks: + minItems: 11 + maxItems: 11 + + clock-names: + items: + - const: disp_axi + - const: disp_apb + - const: disp_axi_root + - const: disp_apb_root + - const: lcdif-axi + - const: lcdif-apb + - const: lcdif-pix + - const: dsi-pclk + - const: dsi-ref + - const: csi-aclk + - const: csi-pclk + +required: + - compatible + - reg + - power-domains + - power-domain-names + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + + disp_blk_ctl: blk_ctrl@32e28000 { + compatible = "fsl,imx8mn-disp-blk-ctrl", "syscon"; + reg = <0x32e28000 0x100>; + power-domains = <&pgc_dispmix>, <&pgc_dispmix>, + <&pgc_dispmix>, <&pgc_mipi>, + <&pgc_mipi>; + power-domain-names = "bus", "isi", "lcdif", "mipi-dsi", + "mipi-csi"; + clocks = <&clk IMX8MN_CLK_DISP_AXI>, + <&clk IMX8MN_CLK_DISP_APB>, + <&clk IMX8MN_CLK_DISP_AXI_ROOT>, + <&clk IMX8MN_CLK_DISP_APB_ROOT>, + <&clk IMX8MN_CLK_DISP_AXI_ROOT>, + <&clk IMX8MN_CLK_DISP_APB_ROOT>, + <&clk IMX8MN_CLK_DISP_PIXEL_ROOT>, + <&clk IMX8MN_CLK_DSI_CORE>, + <&clk IMX8MN_CLK_DSI_PHY_REF>, + <&clk IMX8MN_CLK_CSI1_PHY_REF>, + <&clk IMX8MN_CLK_CAMERA_PIXEL_ROOT>; + clock-names = "disp_axi", "disp_apb", "disp_axi_root", "disp_apb_root", + "lcdif-axi", "lcdif-apb", "lcdif-pix", "dsi-pclk", + "dsi-ref", "csi-aclk", "csi-pclk"; + #power-domain-cells = <1>; + }; From patchwork Wed Dec 15 00:46:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 12696136 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 2E4C9C433EF for ; Wed, 15 Dec 2021 00:49:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=H/p8QEV+Yu3wbV4OWxzbBNdo46u4TlGroyyRD1i8pD0=; b=a6cpJesemwzdLO rl7oQDcuYS97WDP1HaVvriY4+jUb8XJJic8cG38VcvzHSa17pK+yxnz8v3HFwNh0Cvee/YCZGzAeB 6z+bQjnUn7WtwEeGQuWmERCfEP8ItjvTuUd/Lm5P+ZZcyL3CqIKKtihX5/zFWxlYR+WBRa6lDglt8 Rdw6bAmJKZ6i6ETeTgkRhdugq9XvYRVuj4NXsV/qkA0NDEdwYRfkprCUfzb+rjK6QiVPcpJ86HVWH BMkpTFYK+O6TwClm6Fz/vlTfgi5SI5pARyWR1D2vhl8S48lc4M/iwFcV/Jsp+lV6qc4FcTbilGkug Ws4+9bVMVex9v7oHCFKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxISI-00G9sg-PF; Wed, 15 Dec 2021 00:47:39 +0000 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIRV-00G9g7-Jt for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 00:46:51 +0000 Received: by mail-io1-xd2c.google.com with SMTP id x10so27343529ioj.9 for ; Tue, 14 Dec 2021 16:46:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jyQwYfGkQ8cnhxcnBRBIiFiQQ6uqIZv5tFNwIu243ek=; b=q3axeGrkZpJt7GmwxMn/RktTXym/WMql11C2mkwxfLGSnheGNU+0p84Sr2Sc4J5Hir 6gIQQjd8GwxUGV6RXmVwE7hLsPVLoxaf20zciJQJ6I9aOia9cwjkkIu6psK7G9NA6kOS 5/gG3NMl8smNb1ainbLUEbLoEpSy03klyqVDUnw0qajde1Nh2vf25z57U07pwnlJGIvk NK9st6NoR+EFyfwvRboKZ/LBSLmI+sAt3QjVrvVz7jV5WBcgWk28DeaVsheI1VgWdW90 EZkWWsh2PfygXa2WKTJ9TODZVI1R2jo6RZkU242qVU+KZmfgx/S/aLOguxSAYMwEJj8R 8B4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jyQwYfGkQ8cnhxcnBRBIiFiQQ6uqIZv5tFNwIu243ek=; b=c+6Q9yCVGvtwVMlbqvRrsMJr+qvxSE0t/Mof7F91Ixbwyld3z97gxcPYNwELyPZWZ2 o493ilNsaml7f8u99xdNoJX0xgk66lclNin4YEkS4T9tcmuhh/ffNyTUk0uWxbKQiKLu V90VJZLlr3yW4whxSrRYR4WMeabN9KuV0BIl+msZ9qiCdWvii1Lj3wt3PGS8CP6CljQC gMsggadfIuf+bX1HiE9D+7bMoJB+rU//V4tXfigM4WVmhhg1XfjkBXXJEZFteYzU+VV9 5TC/ShMHR4cwFyAq+DBNcELMVDq5Va6RORz5iNNl8bc5ODRbCd4GFVwyi+hM0RC+7D4V SxCA== X-Gm-Message-State: AOAM533GuVNKMns3dqV+rARe4OyC0yfDnrH0bpn3yw3Nr12da9ON98kW pxCriLJfEQYwC6TQUuibMPv4iGkLwnpKQQ== X-Google-Smtp-Source: ABdhPJznPx6aE9/mE4mECSuNgO6yzS/2SqotAFtixRDe7zxVFUQrQhDLc6JUbcloqz/SxEjwzESVLQ== X-Received: by 2002:a05:6638:11cb:: with SMTP id g11mr4624990jas.139.1639529208227; Tue, 14 Dec 2021 16:46:48 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:8256:b93c:84fb:458b]) by smtp.gmail.com with ESMTPSA id y8sm218857iox.32.2021.12.14.16.46.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 16:46:47 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: tharvey@gateworks.com, aford@beaconembedded.com, michael@amarulasolutions.com, jagan@amarulasolutions.com, Adam Ford , Lucas Stach , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V5 5/9] soc: imx: imx8m-blk-ctrl: add i.MX8MN DISP blk-ctrl Date: Tue, 14 Dec 2021 18:46:22 -0600 Message-Id: <20211215004626.2241839-6-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211215004626.2241839-1-aford173@gmail.com> References: <20211215004626.2241839-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_164649_680226_308B840A X-CRM114-Status: GOOD ( 16.29 ) 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 This adds the description for the i.MX8MN disp blk-ctrl. Signed-off-by: Adam Ford Reviewed-by: Lucas Stach diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c index c2f076b56e24..511e74f0db8a 100644 --- a/drivers/soc/imx/imx8m-blk-ctrl.c +++ b/drivers/soc/imx/imx8m-blk-ctrl.c @@ -14,6 +14,7 @@ #include #include +#include #define BLK_SFT_RSTN 0x0 #define BLK_CLK_EN 0x4 @@ -517,6 +518,77 @@ static const struct imx8m_blk_ctrl_data imx8mm_disp_blk_ctl_dev_data = { .num_domains = ARRAY_SIZE(imx8mm_disp_blk_ctl_domain_data), }; + +static int imx8mn_disp_power_notifier(struct notifier_block *nb, + unsigned long action, void *data) +{ + struct imx8m_blk_ctrl *bc = container_of(nb, struct imx8m_blk_ctrl, + power_nb); + + if (action != GENPD_NOTIFY_ON && action != GENPD_NOTIFY_PRE_OFF) + return NOTIFY_OK; + + /* Enable bus clock and deassert bus reset */ + regmap_set_bits(bc->regmap, BLK_CLK_EN, BIT(8)); + regmap_set_bits(bc->regmap, BLK_SFT_RSTN, BIT(8)); + + /* + * On power up we have no software backchannel to the GPC to + * wait for the ADB handshake to happen, so we just delay for a + * bit. On power down the GPC driver waits for the handshake. + */ + if (action == GENPD_NOTIFY_ON) + udelay(5); + + + return NOTIFY_OK; +} + +static const struct imx8m_blk_ctrl_domain_data imx8mn_disp_blk_ctl_domain_data[] = { + [IMX8MN_DISPBLK_PD_MIPI_DSI] = { + .name = "dispblk-mipi-dsi", + .clk_names = (const char *[]){ "dsi-pclk", "dsi-ref", }, + .num_clks = 2, + .gpc_name = "mipi-dsi", + .rst_mask = BIT(0) | BIT(1), + .clk_mask = BIT(0) | BIT(1), + .mipi_phy_rst_mask = BIT(17), + }, + [IMX8MN_DISPBLK_PD_MIPI_CSI] = { + .name = "dispblk-mipi-csi", + .clk_names = (const char *[]){ "csi-aclk", "csi-pclk" }, + .num_clks = 2, + .gpc_name = "mipi-csi", + .rst_mask = BIT(2) | BIT(3), + .clk_mask = BIT(2) | BIT(3), + .mipi_phy_rst_mask = BIT(16), + }, + [IMX8MN_DISPBLK_PD_LCDIF] = { + .name = "dispblk-lcdif", + .clk_names = (const char *[]){ "lcdif-axi", "lcdif-apb", "lcdif-pix", }, + .num_clks = 3, + .gpc_name = "lcdif", + .rst_mask = BIT(4) | BIT(5), + .clk_mask = BIT(4) | BIT(5), + }, + [IMX8MN_DISPBLK_PD_ISI] = { + .name = "dispblk-isi", + .clk_names = (const char *[]){ "disp_axi", "disp_apb", "disp_axi_root", + "disp_apb_root"}, + .num_clks = 4, + .gpc_name = "isi", + .rst_mask = BIT(6) | BIT(7), + .clk_mask = BIT(6) | BIT(7), + }, +}; + +static const struct imx8m_blk_ctrl_data imx8mn_disp_blk_ctl_dev_data = { + .max_reg = 0x84, + .power_notifier_fn = imx8mn_disp_power_notifier, + .domains = imx8mn_disp_blk_ctl_domain_data, + .num_domains = ARRAY_SIZE(imx8mn_disp_blk_ctl_domain_data), +}; + static const struct of_device_id imx8m_blk_ctrl_of_match[] = { { .compatible = "fsl,imx8mm-vpu-blk-ctrl", @@ -524,7 +596,10 @@ static const struct of_device_id imx8m_blk_ctrl_of_match[] = { }, { .compatible = "fsl,imx8mm-disp-blk-ctrl", .data = &imx8mm_disp_blk_ctl_dev_data - } ,{ + }, { + .compatible = "fsl,imx8mn-disp-blk-ctrl", + .data = &imx8mn_disp_blk_ctl_dev_data + }, { /* Sentinel */ } }; From patchwork Wed Dec 15 00:46:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 12696137 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 73B74C433EF for ; Wed, 15 Dec 2021 00:49:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=sNp8WQkc8Uq0z0mLVFvjw1znsw9dZ1Uf5ZcxQUwYz1Q=; b=H2i/PGCX/LWlkX RKxbr8tl6MbhmPw0zA4POsJ25FNocMphZRN8056cGiiEZYFDSXrO8izTtJpuMAiPxFsDrxvNRw+Dd 7J8owTsNN1Z89Nf54wwpa7aM1OfKw3tynzXq5gbT1etvaMuIgmlvmAaxToGbGnnMfsUTO85FSZRd+ dsVFkp9OExg2twCOol02Fv+MgUj014te2DOoeMG1aHDPUIfO0Z8q1z4k2ara6OsLxO3Vsymn2Vfg4 keFvqvPeAkRM22lL5I3+lh3R7GvY06O/Y3ak3MeY32+6QEagf57C/g2knTfPRGEKo1F4lRNDv4oJ2 WEKsG3nr7TD59te44ltQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxISY-00GA38-PW; Wed, 15 Dec 2021 00:47:55 +0000 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIRX-00G9gb-Ch for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 00:46:52 +0000 Received: by mail-io1-xd33.google.com with SMTP id m9so27447308iop.0 for ; Tue, 14 Dec 2021 16:46:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0lrmLuZmbeWpcJjHLH2OoVtrLVKHq3sYzN1knYQa9CU=; b=AA5g89cXf4V+9gKDdbTTrlCEcOQIpbVtyZGaea9I5jSOHCaWNYqePdbTlAQ3f07qGJ BBXmTw8dP4VTnuJ8+YpyVbQ3keTctDQoe3jxmoqCiGTGTS2O9AsyqmyNV6P6u+fFhQMu iQj8tnxIyebrITHLKNfZtrboJYz7AY3N2YBzb8oXzPB2j0S3pG4U1U+pJBwf04rUO/HK zMJAvjgzOX31BTEhAO2M5QB6oiwxXaQKxPh4bx2oamomOKK89ZpBA6XOLYbThoy9atic uL6o8YmT5mvtRaguHcI2pLpGatwfUpdYSKH8WWOOFaBGPdgTzm35xFvTtMBphxKVWKPO CpqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0lrmLuZmbeWpcJjHLH2OoVtrLVKHq3sYzN1knYQa9CU=; b=WVZx177p951EtIa1Z63MeQB+OccLqncdJAO12HqBTsNt7AQv/pTwySvydQm93buu64 wa7/vdZWx7/ZbPhRe3jjlUrAIHen0tG5jV/1SqsN2ykj1s/ks7UiYnJstDZHbuNwYL0X 3FwczgyhrO6o/AXYjHcs5pJIplNRSKRCHunLQwm8JmqsJ9znRZc7sl9xS3KVz6OG0GEG GHBi1rOEy2CyrTtwIz1H+wfWa1Y3OxNXLnpixeFKAHonoLVSxtsGckLeQL9mycQ/Yb9Q ips0ZWlVTrSVjpTIHpEBf1A46TVysbG0H/Wc6pjGfcjrADUPrxZET5r5w1CbGyA7h95d zLiw== X-Gm-Message-State: AOAM532DloJ2da3LTD8dYGEK6R13jPoA+L8xkBdPdXhMBuOwyUrVv6lm tYPgXaVdK5lvuWvARj3DGGiXGvvsIAcBPQ== X-Google-Smtp-Source: ABdhPJyz3I1lSY/GENeRqJbtGQ204PO6YAcI9ovd2EKIT90mEXR27YKMW53IP3/v/+CUFk8YwXwnCw== X-Received: by 2002:a5e:c707:: with SMTP id f7mr5546230iop.188.1639529210104; Tue, 14 Dec 2021 16:46:50 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:8256:b93c:84fb:458b]) by smtp.gmail.com with ESMTPSA id y8sm218857iox.32.2021.12.14.16.46.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 16:46:49 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: tharvey@gateworks.com, aford@beaconembedded.com, michael@amarulasolutions.com, jagan@amarulasolutions.com, Adam Ford , Lucas Stach , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V5 6/9] arm64: dts: imx8mn: add GPC node Date: Tue, 14 Dec 2021 18:46:23 -0600 Message-Id: <20211215004626.2241839-7-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211215004626.2241839-1-aford173@gmail.com> References: <20211215004626.2241839-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_164651_450966_577E24A7 X-CRM114-Status: UNSURE ( 9.77 ) X-CRM114-Notice: Please train this message. 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 Add the DT node for the GPC, including all the PGC power domains, some of them are not fully functional yet, as they require interaction with the blk-ctrls to properly power up/down the peripherals. Signed-off-by: Adam Ford Reviewed-by: Lucas Stach diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index b8d49d5f2668..52bf32be994f 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -4,6 +4,8 @@ */ #include +#include +#include #include #include #include @@ -640,6 +642,53 @@ src: reset-controller@30390000 { interrupts = ; #reset-cells = <1>; }; + + gpc: gpc@303a0000 { + compatible = "fsl,imx8mn-gpc"; + reg = <0x303a0000 0x10000>; + interrupt-parent = <&gic>; + interrupts = ; + + pgc { + #address-cells = <1>; + #size-cells = <0>; + + pgc_hsiomix: power-domain@0 { + #power-domain-cells = <0>; + reg = ; + clocks = <&clk IMX8MN_CLK_USB_BUS>; + }; + + pgc_otg1: power-domain@1 { + #power-domain-cells = <0>; + reg = ; + power-domains = <&pgc_hsiomix>; + }; + + pgc_gpumix: power-domain@2 { + #power-domain-cells = <0>; + reg = ; + clocks = <&clk IMX8MN_CLK_GPU_CORE_ROOT>, + <&clk IMX8MN_CLK_GPU_SHADER>, + <&clk IMX8MN_CLK_GPU_BUS_ROOT>, + <&clk IMX8MN_CLK_GPU_AHB>; + resets = <&src IMX8MQ_RESET_GPU_RESET>; + }; + + pgc_dispmix: power-domain@3 { + #power-domain-cells = <0>; + reg = ; + clocks = <&clk IMX8MN_CLK_DISP_AXI_ROOT>, + <&clk IMX8MN_CLK_DISP_APB_ROOT>; + }; + + pgc_mipi: power-domain@4 { + #power-domain-cells = <0>; + reg = ; + power-domains = <&pgc_dispmix>; + }; + }; + }; }; aips2: bus@30400000 { From patchwork Wed Dec 15 00:46:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 12696138 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id C0151C433F5 for ; Wed, 15 Dec 2021 00:50:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=WpNo1/USpmtBTmwNNvxrvf5A/ydkN0+Qf/4WIrr42cg=; b=x1gsk9xQ2hbNyk yCwsyAE7WGj8zTVlqF1XTHcHkwqyZatnuQQDa5JocxRm6wPnm4rwUWvTCyMaqsp9avoBYa69iQ38v xNluNinVOtq24yHxHK+GUUuWeHiqV5zjishqeZqEiv48dO2Nx9EquyTRKEiIlsXHPmhGZCmv3V5bm HJAzPYoM7qXIcLsVxnd3oiwIMK7wWmH/CkRtbcvFN47gjtAMx4AaFU3w5ImcOlXv7u/UKZUrNJgLo pWCwWOayqFJtDtkaoNWbHVINXBsFSi0WJ8T7RdPWqFXm83q5WN87tIi/GAlBIgcW7Lr8CToxy2/XP /5Cpca/J5bNuEEnyQpAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxISq-00GABG-P8; Wed, 15 Dec 2021 00:48:13 +0000 Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIRZ-00G9hF-Au for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 00:46:54 +0000 Received: by mail-io1-xd2a.google.com with SMTP id 14so27235796ioe.2 for ; Tue, 14 Dec 2021 16:46:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=axIDnhUCkWSyZC2JXX7WkB/QvAyzEWjElXHQg9cULuY=; b=NzBd6tcqjscgGqumypnEK50e1Cu2lbZbKd8M76+j9S2SDr3kSQkfO7XK91gV2QBzYE HFnuLS2L011T+Pk4mN5FuADSVuySFleUARNAwljyE9bEdTEAEK0gcqC9yWE3XPLxpKzb nj51C6PqIOejc1YuG0pR8JZAwQffmy96ssU07qv8TcI2VOPTObvJ5gu+nL45ckOusfe2 SNlvYT2Pj8nRByPLefnETxjnqPXQse3d4w9qM1TUxJiqv/2MqGiVaqxVuchPnXtMs749 BziYoUfYKqy3HphUr0E8S4DLwZhI3iM6ICw46eva66rKwAAJpbJGLCJLXf27cpnw9G38 Z5Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=axIDnhUCkWSyZC2JXX7WkB/QvAyzEWjElXHQg9cULuY=; b=SmO0GSP27iHOGxssYIYQoXO25qqmmHxKfdJrBGndhi8cHAvDXU2Heb4yjs8TWQezWc OSwd3IrrjhWOIyeP5JnZi5Cmxh6hKun2hWG3QiUuECdW4R+vWxHvRyPQpc6DIv3b6Vh7 nf9bXOgzKVXI86oAVLZLSqA2k0kUL6JiM+67r8PXs/mf3XSipaTb1rScHTau350YUEZs hEWKNruEMT2rFrTz1uuOr963zu3LikSSZibxy7/7m4g8PRPbMm51bO+UrQfzU0LVPn9/ fuEN5N4lMspqbZUZW97GhzR+uT4w5bVjVuCZ2UlxwqS2mUw+4mXZeVC4udXYm2iY4wr/ 3PCg== X-Gm-Message-State: AOAM531cWLxF1fK6v1iz2Td6NgmWV4ljld9BlIFjPCjQGe3eOafA5D0c xkBso5SPh2LyxTkYmioX02tudLeAbVyu0w== X-Google-Smtp-Source: ABdhPJzHwsDEVF/pnRxKCzGJBEm9+inO3MtiEh3C5kBKVGSgtz/WjmwMhhGTE1PVmh5cZLoXAlkaKQ== X-Received: by 2002:a05:6638:408b:: with SMTP id m11mr4568287jam.186.1639529212024; Tue, 14 Dec 2021 16:46:52 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:8256:b93c:84fb:458b]) by smtp.gmail.com with ESMTPSA id y8sm218857iox.32.2021.12.14.16.46.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 16:46:51 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: tharvey@gateworks.com, aford@beaconembedded.com, michael@amarulasolutions.com, jagan@amarulasolutions.com, Adam Ford , Lucas Stach , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V5 7/9] arm64: dts: imx8mn: put USB controller into power-domains Date: Tue, 14 Dec 2021 18:46:24 -0600 Message-Id: <20211215004626.2241839-8-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211215004626.2241839-1-aford173@gmail.com> References: <20211215004626.2241839-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_164653_403197_DF1C9BFC X-CRM114-Status: UNSURE ( 9.42 ) X-CRM114-Notice: Please train this message. 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 Now that we have support for the power domain controller on the i.MX8MN, we can put the USB controller in the respective power domain to allow it to power down the PHY when possible. Signed-off-by: Adam Ford Reviewed-by: Lucas Stach diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 52bf32be994f..5d851420254b 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -1048,6 +1048,7 @@ usbotg1: usb@32e40000 { assigned-clock-parents = <&clk IMX8MN_SYS_PLL2_500M>; phys = <&usbphynop1>; fsl,usbmisc = <&usbmisc1 0>; + power-domains = <&pgc_otg1>; status = "disabled"; }; From patchwork Wed Dec 15 00:46:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 12696139 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 65482C433F5 for ; Wed, 15 Dec 2021 00:51:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=Sj/WJkIWQQvJpS4B+jftt+r7S0g0L2mA0DG8zNDCW8s=; b=TWea918PWpv1L9 jeBXNEMl3ZmSEIsPxeIE5U0Q9NuEzq7Gdjb5leU3FD5mauEuiKSeqoeH5KLED1MBkEFD/9Ji0X0pO woDMGehPvunf274TtEvuams3JpxRqP/x8PDmGoZeV/74aChYX46VFFQbd+hT1Nf76aPsf58534kir SYC700weUGDCGFy2J7mhtbZf4Qi6Fpd3e6kF0uFMdcENs48acGABdI4G1Jbe2LvrLyufral+tkId0 dnWAXUFPUzMdKOHU2dBExia8CFvDtlmmXx3LniQO8bMxBCb+pkuD2cY86mYSvyTby+1ZBYVCXMbHN my3/GTUQPxKzGlPVIyyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxITS-00GAUI-Ie; Wed, 15 Dec 2021 00:48:51 +0000 Received: from mail-io1-xd31.google.com ([2607:f8b0:4864:20::d31]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIRb-00G9ht-7i for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 00:46:56 +0000 Received: by mail-io1-xd31.google.com with SMTP id 14so27235872ioe.2 for ; Tue, 14 Dec 2021 16:46:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iIkR8EzrHf4k1kTwxT3X1hoakBOswCTAqfRPWLPPzDY=; b=CxMHNT394VJYAGRFV2rtbeUuKoRMXqABuZFJmOpSs78HAQjiZyQgddE/l57/ujqwt4 pyREYq1+aWR+lJCXrAH/xV8WQhi4DIhQ8STd7G4usG0/FgAlM23JUBydO9rLtrBAljFM j+v6Dxie+lynyhsRF9lpoU5Aa/Rnr4YCknx0JJtuRl7jYSLWUnW2KM9k+v5Zf6ezGXgM i4XdqhGIcFJ5LcWJ+FeuNn5S0VxMN9n8Td989QLRYJRbMDwB1a0iXJvNT061z+raHp1+ RxsK17MFQXo3gtISHycIRjBjmbogA2Q4fNPWpgd+GUX2l4Zc15TK13KV3kHleHmGmL4q QwDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iIkR8EzrHf4k1kTwxT3X1hoakBOswCTAqfRPWLPPzDY=; b=MlcTGDu1zBbzlRdmBJ7NBWSXafNGqlHS0rog6NJl5nBChw5D+D43BzZgai1QMroUwL mFF0vs0YYk8A/LOLTI4jTadcSY8XJ26/fF0M8BcSIXOgCIxwjbkfuMMNG56Qif3hmP0l eokmuZh6WdgkSWt4j+ca3OLnkQqiDs1GhZn3n5XRkb62HKxLRXSBX20add6zFxoF1TiT pbHALnQjfg3y8sC/e8zxCZ2QsWBgbpAl+NudJ4cf0XCwGr66XP5+aZN5+is/cCNgBIMx lpeXMRip20edz4M6+LPFe/N4k7DUDXsgTHJXYkVrpy7wXLcJ36RhtVwm8g19CEXp2M+D naDQ== X-Gm-Message-State: AOAM533Mzrmlq2Xje6SsJ6+/qmhMhZ0M7Pqa2bWBbSWMD1fWtvyiCuTQ WdYp5sbHmjK6lULbkxLswCltaq24KshZGw== X-Google-Smtp-Source: ABdhPJze0CYHkM6dgaNTPh7XAHYQ39BuG4KMsDO8BsDV/AqfZeVUQ+wG90cjJ70JaExEw1as0RzBIg== X-Received: by 2002:a05:6638:d01:: with SMTP id q1mr4742027jaj.388.1639529213856; Tue, 14 Dec 2021 16:46:53 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:8256:b93c:84fb:458b]) by smtp.gmail.com with ESMTPSA id y8sm218857iox.32.2021.12.14.16.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 16:46:53 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: tharvey@gateworks.com, aford@beaconembedded.com, michael@amarulasolutions.com, jagan@amarulasolutions.com, Adam Ford , Lucas Stach , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V5 8/9] arm64: dts: imx8mn: add DISP blk-ctrl Date: Tue, 14 Dec 2021 18:46:25 -0600 Message-Id: <20211215004626.2241839-9-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211215004626.2241839-1-aford173@gmail.com> References: <20211215004626.2241839-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_164655_311322_FF328089 X-CRM114-Status: UNSURE ( 8.79 ) X-CRM114-Notice: Please train this message. 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 Add the DT node for the DISP blk-ctrl. With this in place the display/mipi power domains should be functional. Signed-off-by: Adam Ford Reviewed-by: Lucas Stach diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 5d851420254b..dc3f66d284e5 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -1038,6 +1038,34 @@ aips4: bus@32c00000 { #size-cells = <1>; ranges; + disp_blk_ctrl: blk-ctrl@32e28000 { + compatible = "fsl,imx8mn-disp-blk-ctrl", "syscon"; + reg = <0x32e28000 0x100>; + power-domains = <&pgc_dispmix>, <&pgc_dispmix>, + <&pgc_dispmix>, <&pgc_mipi>, + <&pgc_mipi>; + power-domain-names = "bus", "isi", + "lcdif", "mipi-dsi", + "mipi-csi"; + clocks = <&clk IMX8MN_CLK_DISP_AXI>, + <&clk IMX8MN_CLK_DISP_APB>, + <&clk IMX8MN_CLK_DISP_AXI_ROOT>, + <&clk IMX8MN_CLK_DISP_APB_ROOT>, + <&clk IMX8MN_CLK_DISP_AXI_ROOT>, + <&clk IMX8MN_CLK_DISP_APB_ROOT>, + <&clk IMX8MN_CLK_DISP_PIXEL_ROOT>, + <&clk IMX8MN_CLK_DSI_CORE>, + <&clk IMX8MN_CLK_DSI_PHY_REF>, + <&clk IMX8MN_CLK_CSI1_PHY_REF>, + <&clk IMX8MN_CLK_CAMERA_PIXEL_ROOT>; + clock-names = "disp_axi", "disp_apb", + "disp_axi_root", "disp_apb_root", + "lcdif-axi", "lcdif-apb", "lcdif-pix", + "dsi-pclk", "dsi-ref", + "csi-aclk", "csi-pclk"; + #power-domain-cells = <1>; + }; + usbotg1: usb@32e40000 { compatible = "fsl,imx8mn-usb", "fsl,imx7d-usb"; reg = <0x32e40000 0x200>; From patchwork Wed Dec 15 00:46:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 12696140 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 7B5FFC433EF for ; Wed, 15 Dec 2021 00:51:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=NN3g2S/w9Hz88l9BVq89vVMSUMpL0ZFkUDw/iIj1GK8=; b=HJYg34i3p0tRni ojnJWLWXmc7EyAMbdIBNs9W/FxWUjlBNRYTYjZ0j9VWDge2fbS3c4VISqBdx7bHfMcfiUgvKI5zSO JRx0+F9Ik3GgWtlIVu2PNnEmouqJyji0WVrWKdfR+YVFsHj68CicuLRGr56utm8sigu8/kCwDe+qH Q1MnXV/FUYO4qGxSfqDsqlWSuc7FgawxlvS1mcuEV6bA8Bu6ZuEMJlc90E/r/9/Zl3KTuEN3v9zkB uvlkIWuEdarDqzeVBnLRi61K8A9il8+Iq2CtteS/ROcoBlbHMO/T5t0Q7+SSRGf1SrRULqY6vChLU mpCDHifhqoNVuNA0gkQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIU4-00GApv-OK; Wed, 15 Dec 2021 00:49:29 +0000 Received: from mail-io1-xd31.google.com ([2607:f8b0:4864:20::d31]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxIRc-00G9j4-N4 for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 00:46:57 +0000 Received: by mail-io1-xd31.google.com with SMTP id k21so27325456ioh.4 for ; Tue, 14 Dec 2021 16:46:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=s/jPY1taqvGfMrM5igJehLmGlv0TGkcErVZ/x91LIcA=; b=LVNigSxqvXMb5ea98oWfUtlyTRKBSfFtaCfWpL5Yppw08cuNlJyjs21PRG6Cd+TR4k jH/1obhyWG4Dvu7EwnRY3CniMcYfK9bWZ8kH9B+fHNE929HVq9Su+QnOzr2g6o85tliJ OU81dQN2hP4lUKYLzs7FfLEH+XBG5wkO5w9w6kwvwh7SBeelaVINaNEn1MqFtnaaqbwv Nt1TpqfQwB/5OCrDARlHoykRcJ9Kpd3DFibuYZkS/xCpbsskClJQqj3ppU30uakCitVK urW+y8aYGRfxLHAuJWSHdsQnp0YNlbKCborFYHtp0CgHJn64UnQv9c08dEc3WQmMZhMC n+qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=s/jPY1taqvGfMrM5igJehLmGlv0TGkcErVZ/x91LIcA=; b=IgSRQnrFS052Lym8EGDoxKWEG5FEgBvebCI2AfmN4ZNZpOiE9YAjM83fb70hIOh2n/ xu761YGukXlbJ26e1c8If6LyIGr6rHG5Z32mHPWLzm3UPzzCHM39BSYjcTmujyIJhxTT eIupPr+i6XzhsmFjqbpbr6W6a/7i1P/p7xY7TenR1jax4ZxWGLAbPOw3OhSgSn0cjgZB Uuuai3StGkagLnNKL2EKZSmwCdFddhFdVns/1q0dP4dzibdbBsHa29kW9CcL0LH4LbGN WjZq9yV//F4NundtJZPDE+3zIwB1RrqVz9sEcGQl+KfIbYaScxMQbidov5+5woSNsQ7P 7+WQ== X-Gm-Message-State: AOAM532/HU0XhIuf8ItrvQEHvIZitag6kgOtuKAgNw+6My5+CSNC+fg2 PHVBMRuxuArBAdZinDKTan+ak1UHgf8etw== X-Google-Smtp-Source: ABdhPJxv4QvpvdqzrzDrKp2rFq5JL6GNUY4iVnVQURug1hLmLEKrXQdrqujrqrcRmkBKGPdQoW8xdg== X-Received: by 2002:a02:704c:: with SMTP id f73mr4592747jac.633.1639529215785; Tue, 14 Dec 2021 16:46:55 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:8256:b93c:84fb:458b]) by smtp.gmail.com with ESMTPSA id y8sm218857iox.32.2021.12.14.16.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 16:46:55 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: tharvey@gateworks.com, aford@beaconembedded.com, michael@amarulasolutions.com, jagan@amarulasolutions.com, Adam Ford , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lucas Stach , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V5 9/9] arm64: dts: imx8mn: Enable GPU Date: Tue, 14 Dec 2021 18:46:26 -0600 Message-Id: <20211215004626.2241839-10-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211215004626.2241839-1-aford173@gmail.com> References: <20211215004626.2241839-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_164656_783543_FF9A8DE6 X-CRM114-Status: UNSURE ( 8.14 ) X-CRM114-Notice: Please train this message. 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 features a GC7000. The Etnaviv driver detects it as: etnaviv-gpu 38000000.gpu: model: GC7000, revision: 6203 Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index dc3f66d284e5..99f0f5026674 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -1116,6 +1116,32 @@ gpmi: nand-controller@33002000 { status = "disabled"; }; + gpu: gpu@38000000 { + compatible = "vivante,gc"; + reg = <0x38000000 0x8000>; + interrupts = ; + clocks = <&clk IMX8MN_CLK_GPU_AHB>, + <&clk IMX8MN_CLK_GPU_BUS_ROOT>, + <&clk IMX8MN_CLK_GPU_CORE_ROOT>, + <&clk IMX8MN_CLK_GPU_SHADER>; + clock-names = "reg", "bus", "core", "shader"; + assigned-clocks = <&clk IMX8MN_CLK_GPU_CORE>, + <&clk IMX8MN_CLK_GPU_SHADER>, + <&clk IMX8MN_CLK_GPU_AXI>, + <&clk IMX8MN_CLK_GPU_AHB>, + <&clk IMX8MN_GPU_PLL>; + assigned-clock-parents = <&clk IMX8MN_GPU_PLL_OUT>, + <&clk IMX8MN_GPU_PLL_OUT>, + <&clk IMX8MN_SYS_PLL1_800M>, + <&clk IMX8MN_SYS_PLL1_800M>; + assigned-clock-rates = <400000000>, + <400000000>, + <800000000>, + <400000000>, + <1200000000>; + power-domains = <&pgc_gpumix>; + }; + gic: interrupt-controller@38800000 { compatible = "arm,gic-v3"; reg = <0x38800000 0x10000>,