Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3741314imu; Mon, 7 Jan 2019 08:37:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xxhyw/+FlUGYpYkq6MYF7gzbyPrGWiUeVTLy3qelTQRe57fD3XG489jTwz/E1BrE3sDngm X-Received: by 2002:a62:8949:: with SMTP id v70mr62296005pfd.85.1546879046949; Mon, 07 Jan 2019 08:37:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546879046; cv=none; d=google.com; s=arc-20160816; b=iHcmtxDbvXdgrWMEs5gNAYjLaGwf/GNG9b/Zd92wzxntnu6FamCq57JZtvuyLVyhFK uCrwVUcL3mYbW6FS7tFGvERWxecdsfNs36Tk0/eN6pvvDllMUduerjt0Blgp2ObgyKgw gUdXXmH0uH2MyfVi4fd0oy/h7jo2rpzBjzjRKj34s8bPKiNDGhLX05s3vQLzAVvvocc3 +mOp6CpCTKFD/UuIbpYD0ePmbAf34mQF1L4shJdZlJT3k7f6kQssjMk6FTSQIqjz1XvI e6h0tl5ws8KBXQth6STEUVGtTANwYvVxnzA+N4mItYvpI+/uwAIQ877/+c/EYAP0bUm9 OLPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=6Z779G+FUjTZYu53vGQGAHutY2m95c6cbroTYGahvZk=; b=SboQOPraKPed9UTYhGcBpbnErvMwd5d3jzzLj5r8EFm1mHl1KclPI9+GNLpe4zz7bk OQbg7GZGkugprjzfiI+690DUqBTk+TIuCFQ5sJZBtTeDf7JknWdmIqDp/yeFIVgw6lf8 6ezVvplh6R/pODu5z7Rh85jw1jEmrThZxz6RxAoODMEnUEJoM7lpq+ZCy6Zwt697Z7w0 mX4h+iDxnYguTBtqpvZqlcG0cFiTdpqE6Iyb992spq19dJFWVNN/qPl0OkGp7+0inhcP WgkhNqgDxVfE+t+gKErSA13WnmnqYhg82T0iw2P0LZrKD2V/wpdjFZxjNv2I4io9jM2X Q87A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f82si8438666pfa.221.2019.01.07.08.37.11; Mon, 07 Jan 2019 08:37:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729687AbfAGPSA (ORCPT + 99 others); Mon, 7 Jan 2019 10:18:00 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:39897 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727574AbfAGPSA (ORCPT ); Mon, 7 Jan 2019 10:18:00 -0500 Received: from kresse.hi.pengutronix.de ([2001:67c:670:100:1d::2a]) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1ggWf5-000716-TE; Mon, 07 Jan 2019 16:17:55 +0100 Message-ID: <1546874275.3580.18.camel@pengutronix.de> Subject: Re: [PATCH RESEND] ARM: dts: imx6sx: Add DISPLAY power domain support From: Lucas Stach To: Leonard Crestez , Shawn Guo , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Cc: Fabio Estevam , Aisheng Dong , Richard Zhu , Lorenzo Pieralisi , dl-linux-imx , "kernel@pengutronix.de" Date: Mon, 07 Jan 2019 16:17:55 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::2a X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, den 07.01.2019, 13:28 +0000 schrieb Leonard Crestez: > This was implemented in the driver but not actually defined and > referenced in dts. This makes it always on. > > From reference manual in section "10.4.1.4.1 Power Distribution": > > "Display domain - The DISPLAY domain contains GIS, CSI, PXP, LCDIF, > PCIe, DCIC, and LDB. It is supplied by internal regulator." > > The current pd_pcie is actually only for PCIE_PHY, the PCIE ip block is > actually inside the DISPLAY domain. Handle this by adding the pcie node > in both power domains. > > Signed-off-by: Leonard Crestez Acked-by: Lucas Stach > --- >  arch/arm/boot/dts/imx6sx.dtsi | 19 ++++++++++++++++++- >  1 file changed, 18 insertions(+), 1 deletion(-) > > This is the last part of a series which was previously accepted, it was > delayed because it depends on PCI multi-pd support. All driver > dependencies have landed in 5.0-rc1, resending for 5.1 as discussed: > > https://lore.kernel.org/patchwork/patch/996812/#1190746 > > Only change is a minor conflict with removing a pxp clk. > > diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi > index 272ff6133ec1..ecf3f3e5c0a0 100644 > --- a/arch/arm/boot/dts/imx6sx.dtsi > +++ b/arch/arm/boot/dts/imx6sx.dtsi > @@ -783,10 +783,22 @@ > >   #power-domain-cells = <0>; > >   power-supply = <®_soc>; > >   clocks = <&clks IMX6SX_CLK_GPU>; > >   }; >   > > > + pd_disp: power-domain@2 { > > + reg = <2>; > > + #power-domain-cells = <0>; > > + clocks = <&clks IMX6SX_CLK_PXP_AXI>, > > +  <&clks IMX6SX_CLK_DISPLAY_AXI>, > > +  <&clks IMX6SX_CLK_LCDIF1_PIX>, > > +  <&clks IMX6SX_CLK_LCDIF_APB>, > > +  <&clks IMX6SX_CLK_LCDIF2_PIX>, > > +  <&clks IMX6SX_CLK_CSI>, > > +  <&clks IMX6SX_CLK_VADC>; > > + }; > + > > >   pd_pci: power-domain@3 { > >   reg = <3>; > >   #power-domain-cells = <0>; > >   power-supply = <®_pcie>; > >   }; > @@ -1203,10 +1215,11 @@ > >   compatible = "fsl,imx6sx-pxp", "fsl,imx6ull-pxp"; > >   reg = <0x02218000 0x4000>; > >   interrupts = ; > >   clocks = <&clks IMX6SX_CLK_PXP_AXI>; > >   clock-names = "axi"; > > + power-domains = <&pd_disp>; > >   status = "disabled"; > >   }; >   > > >   csi2: csi@221c000 { > >   reg = <0x0221c000 0x4000>; > @@ -1224,10 +1237,11 @@ > >   interrupts = ; > >   clocks = <&clks IMX6SX_CLK_LCDIF1_PIX>, > >    <&clks IMX6SX_CLK_LCDIF_APB>, > >    <&clks IMX6SX_CLK_DISPLAY_AXI>; > >   clock-names = "pix", "axi", "disp_axi"; > > + power-domains = <&pd_disp>; > >   status = "disabled"; > >   }; >   > > >   lcdif2: lcdif@2224000 { > >   compatible = "fsl,imx6sx-lcdif", "fsl,imx28-lcdif"; > @@ -1235,19 +1249,21 @@ > >   interrupts = ; > >   clocks = <&clks IMX6SX_CLK_LCDIF2_PIX>, > >    <&clks IMX6SX_CLK_LCDIF_APB>, > >    <&clks IMX6SX_CLK_DISPLAY_AXI>; > >   clock-names = "pix", "axi", "disp_axi"; > > + power-domains = <&pd_disp>; > >   status = "disabled"; > >   }; >   > > >   vadc: vadc@2228000 { > >   reg = <0x02228000 0x4000>, <0x0222c000 0x4000>; > >   reg-names = "vadc-vafe", "vadc-vdec"; > >   clocks = <&clks IMX6SX_CLK_VADC>, > >    <&clks IMX6SX_CLK_CSI>; > >   clock-names = "vadc", "csi"; > > + power-domains = <&pd_disp>; > >   status = "disabled"; > >   }; > >   }; >   > > >   adc1: adc@2280000 { > @@ -1368,10 +1384,11 @@ > >   clocks = <&clks IMX6SX_CLK_PCIE_AXI>, > >    <&clks IMX6SX_CLK_LVDS1_OUT>, > >    <&clks IMX6SX_CLK_PCIE_REF_125M>, > >    <&clks IMX6SX_CLK_DISPLAY_AXI>; > >   clock-names = "pcie", "pcie_bus", "pcie_phy", "pcie_inbound_axi"; > > - power-domains = <&pd_pci>; > > + power-domains = <&pd_disp>, <&pd_pci>; > > + power-domain-names = "pcie", "pcie_phy"; > >   status = "disabled"; > >   }; > >   }; >  };