From patchwork Fri Apr 5 17:30:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10887675 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 307C913B5 for ; Fri, 5 Apr 2019 17:30:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15EE428A46 for ; Fri, 5 Apr 2019 17:30:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A1DF28ABB; Fri, 5 Apr 2019 17:30:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8FAE028A46 for ; Fri, 5 Apr 2019 17:30:57 +0000 (UTC) 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:References:In-Reply-To: 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: List-Owner; bh=WieNj0oIn/vrZNqrOuixadMSmrTac5Tj5qiN6iRglEM=; b=tJAh41AIck2vNB Iw6T0+A7G6N5Tnz3dthJgPf9YUCVnGZY+mzQfmuM7ddQwHZrPBwKJKhaYuzjPxEaI2AygOarkwZvp SSlnMezwQdnRvYJ5VPtlA1zxriH2S+BrZnoGxAaIYxlobsT23pEj06iqhHz/f7pM6alNArS7D6KD9 bqsYEBaG79jdX8lJZYQRRYtFEG+YBYp6pMz8L1eiU9FwQ3//g4qtXiVCOej69+d57dFgUbHgXrlGF cBtM3Tq8vseR3jNQeGqI7xlfs7uOIdt9eskXLlwuPbrM5sS1o5n+4/A4YEnw5VCya53qopbece5GT FXSyaXM1aYH13B8f9Lkw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCSfy-0005jJ-Cy; Fri, 05 Apr 2019 17:30:50 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCSfW-00053j-GY for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2019 17:30:25 +0000 Received: by mail-pf1-x442.google.com with SMTP id 10so3647574pfo.5 for ; Fri, 05 Apr 2019 10:30:22 -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=fvy4jiablMjkp3jrIwKlN9pmB9uILJowYkcpvqR6Ge0=; b=FnaGdy5R3VV/GFNcZACrWfBJO5pnLKzOp8KUbE+TeqLXeBqNZlxTOVeVvedIwX29T9 0G/NrRVzyzReABdtBxY8dfCrjUgLjjuE9B7CTJuWRwPpaqRhrCPU3qZk9lNzh+XKRlzb 3chlGebyUbXcCD2XRKcB8XuwdVauUHJJP1Ugiubs/M2gYMh/gdv1sqmLagwWyjyjoy7j zEhUfzmsd1R7Jha7PKO43XsA3RBTNy14rsi5mKRJ8FhhNUWPCazaG+nuNOjE2Cv5cUVu r2ffGlHrYlnvuOyWe13snTK9jRXmcVznKyR/2dTpHwB4xyY0EApvpW7tT+0/FQIYyknK sqAg== 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=fvy4jiablMjkp3jrIwKlN9pmB9uILJowYkcpvqR6Ge0=; b=SdU13KMRTVWX3SGaNJcfhwCFAjLtRQ81f4pKcUaySpsLjC7i6PlQsfH0jIrQ1kQ+wL 2D3gnxQNi9ob5U/CnXuY5nYoXJ8WfFsAy0MTGmnZcvPNvmpV123ClQNJOgm/O8Q3Q5KY qg7iCP8/OenN9b+fNm3UpJuop9QdfD2wjH40VPUVaql5TEBzvFdFDiQFruPpIB7oyhCc Qis5a7AwIrY6abPCEsMoM9Zw+GOoyzUtyWJ7gcQx2ndeFXkvfPSHcsN7+cfi/wZLLXHV zCjTdUPHTIsVHiaqnOvF54FD00JU0RKMJShuFyn5PEnm7P3H8Y5dtzh5rv8DySGhlCP8 uc3w== X-Gm-Message-State: APjAAAUwe79KScLMKn3Lqjo8v51VKvKlB8c0/DcyEROlyVbR00SrmvjW llEEPy78M31pUSQbSspkgdA= X-Google-Smtp-Source: APXvYqyU7DwtNszH+EIFUDBLC3RRQ+Vz7GITfp657KrI6kmfyZM7umbUiiKzSrFaABF9f8MR8gUUIg== X-Received: by 2002:a63:ed4f:: with SMTP id m15mr12913947pgk.387.1554485421609; Fri, 05 Apr 2019 10:30:21 -0700 (PDT) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id 17sm49206730pfw.65.2019.04.05.10.30.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Apr 2019 10:30:20 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH v5 3/5] arm64: dts: imx8mq: Combine PCIE power domains Date: Fri, 5 Apr 2019 10:30:02 -0700 Message-Id: <20190405173004.13277-4-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190405173004.13277-1-andrew.smirnov@gmail.com> References: <20190405173004.13277-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190405_103022_869314_D7D1F8B1 X-CRM114-Status: GOOD ( 12.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "A.s. Dong" , Richard Zhu , linux-arm-kernel@lists.infradead.org, Andrey Smirnov , linux-kernel@vger.kernel.org, linux-imx@nxp.com, Fabio Estevam , Leonard Crestez , Fabio Estevam , Chris Healy , Lucas Stach Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP According to NXP's FAE feedback and a comment in ATF firmware, PCIE1 and PCIE2 power domains can't really be used independently. Due to shared reset line both power domains have to be turned on at the same time. Account for that quirk by combining PCIE power domains into a single 'pgc_pcie' power domain. Signed-off-by: Andrey Smirnov Reviewed-by: Lucas Stach Reviewed-by: Fabio Estevam Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-imx@nxp.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 83d023aaa048..a85c3bef66c2 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -472,9 +472,25 @@ reg = ; }; - pgc_pcie1: power-domain@1 { + /* + * As per comment in ATF source code: + * + * PCIE1 and PCIE2 share the + * same reset signal, if we + * power down PCIE2, PCIE1 + * will be held in reset too. + * + * So instead of creating two + * separate power domains for + * PCIE1 and PCIE2 we create a + * link between both and use + * it as a shared PCIE power + * domain. + */ + pgc_pcie: power-domain@1 { #power-domain-cells = <0>; reg = ; + power-domains = <&pgc_pcie2>; }; pgc_otg1: power-domain@2 {