Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp575873imm; Wed, 6 Jun 2018 02:25:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKPTkYalSPzCxa1Nm8mkB5DHPCmBQrbhTpjrZIC8+QVWbi9iCj2lMU8hlYcTJS1JvwM3uuu X-Received: by 2002:a65:418b:: with SMTP id a11-v6mr1957885pgq.118.1528277152735; Wed, 06 Jun 2018 02:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528277152; cv=none; d=google.com; s=arc-20160816; b=HmKctpOq/hgWCGamGSBliRAh8wySmhI7K53Bw46+sMNpmE1ZaEBNeiIGVr8lh4TpFl IvNWKcmW1eRRkpknqbmF4PGoQ4h/iFwrWVb6Z03TuC5f0D2rq2m8FLuBldaPEFOM7YK9 pCWnZ2az3xSXzwFu6+GqeZq/DjdKhgifrAaacvqztJVbs08R7mm9vHjt4uPO0nzJrswF j4DVaB+TZ8J7aldfO/jb/Mhd2DyNz/8cDxczZMctTSzZromTmivAp4M4r2Yj/jSqu+R0 75xnS4dVwSQC1xMAzvPH20sHGKRqcHK0jt4cj+1UxB3vwnt3lQ6ynpgIE5hfW3GAPafS mBcw== 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 :arc-authentication-results; bh=SzNglV5ZXKkUUwUeg8qbvOfAc97uWamQXXtSQI8Ohpo=; b=xj02sb75RomWxXu7WBPVGiQ9vWJpcbxw5nsALi3U6MNUErSEvhx0WxwDzRflrS94Oc Z77wsaOtCFPUlC30bi22INUknir61aKhmFaeFTOPMREx1R9wl1yI9sM4CzpqFOkeOXtI ysm4zsVN1H9RhKLUUfNr8SaLZxy/GD0WQc3khKi7bIYt3JwiNkwpEaVEAa+iyHSrs4yX xqbveuUEREFEUR4Cfzdx5v4zVKpXmJ07vBJOAAwIQdRcWKsql9Z9MmVSN2pfauvFWDMP twmJUbBeq4bhswYX1rWbZs9VyZGzNHSNmc8WoxvvjCC7xQe5hqM1dsiNqL/iNkRsbuDx TUfA== 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 w3-v6si23509407pgb.588.2018.06.06.02.25.38; Wed, 06 Jun 2018 02:25:52 -0700 (PDT) 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 S932466AbeFFJZM (ORCPT + 99 others); Wed, 6 Jun 2018 05:25:12 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:59573 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932368AbeFFJZL (ORCPT ); Wed, 6 Jun 2018 05:25:11 -0400 Received: from weser.hi.pengutronix.de ([2001:67c:670:100:fa0f:41ff:fe58:4010]) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1fQUgf-0005JJ-8p; Wed, 06 Jun 2018 11:25:01 +0200 Message-ID: <1528277099.26063.11.camel@pengutronix.de> Subject: Re: [RFC 2/2] ARM: dts: imx6sl: Convert gpc to new bindings From: Lucas Stach To: Leonard Crestez , Shawn Guo , Marek Vasut , Fabio Estevam , David Airlie Cc: Robert Chiras , dri-devel@lists.freedesktop.org, Marco Franchi , Stefan Agner , Mirela Rabulea , Laurentiu Palcu , Dong Aisheng , linux-imx@nxp.com, kernel@pengutronix.de, linux-kernel@vger.kernel.org Date: Wed, 06 Jun 2018 11:24:59 +0200 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:fa0f:41ff:fe58:4010 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 Dienstag, den 05.06.2018, 20:11 +0300 schrieb Leonard Crestez: > With old bindings imx_gpc_onecell_data always sets num_domains to 2 so > the DISPMIX domain can't actually be referenced. The pd is still defined > and pm core shuts it down as "unused" so display can't work. > > Converting to new gpc bindings by adding pgc nodes, also reference > referencing the newly-defined &pu_disp domain from &lcdif. > > > Signed-off-by: Leonard Crestez > --- >  arch/arm/boot/dts/imx6sl.dtsi | 35 ++++++++++++++++++++++++++++++++--- >  1 file changed, 32 insertions(+), 3 deletions(-) > > There are erratas regarding dispmix on 6sl so this might be wrong > > diff --git a/arch/arm/boot/dts/imx6sl.dtsi b/arch/arm/boot/dts/imx6sl.dtsi > index ab6a7e2e7e8f..9982874fa39e 100644 > --- a/arch/arm/boot/dts/imx6sl.dtsi > +++ b/arch/arm/boot/dts/imx6sl.dtsi > @@ -694,14 +694,42 @@ > >   reg = <0x020dc000 0x4000>; > >   interrupt-controller; > >   #interrupt-cells = <3>; > >   interrupts = <0 89 IRQ_TYPE_LEVEL_HIGH>; > >   interrupt-parent = <&intc>; > > - pu-supply = <®_pu>; > > - clocks = <&clks IMX6SL_CLK_GPU2D_OVG>, > > -  <&clks IMX6SL_CLK_GPU2D_PODF>; > > + clocks = <&clks IMX6SL_CLK_IPG>; > > + clock-names = "ipg"; > >   #power-domain-cells = <1>; The above power-domain-cells needs to go away when using the new binding. Regards, Lucas > + pgc { > > + #address-cells = <1>; > > + #size-cells = <0>; > + > > + power-domain@0 { > > + reg = <0>; > > + #power-domain-cells = <0>; > > + }; > + > > > + pd_pu: power-domain@1 { > > + reg = <1>; > > + #power-domain-cells = <0>; > > + power-supply = <®_pu>; > > + clocks = <&clks IMX6SL_CLK_GPU2D_OVG>, > > +          <&clks IMX6SL_CLK_GPU2D_PODF>; > > + }; > + > > > + pd_disp: power-domain@2 { > > + reg = <2>; > > + #power-domain-cells = <0>; > > + clocks = <&clks IMX6SL_CLK_IPG>, > > +  <&clks IMX6SL_CLK_LCDIF_AXI>, > > +  <&clks IMX6SL_CLK_LCDIF_PIX>, > > +  <&clks IMX6SL_CLK_EPDC_AXI>, > > +  <&clks IMX6SL_CLK_EPDC_PIX>, > > +  <&clks IMX6SL_CLK_PXP_AXI>; > > + }; > > + }; > >   }; >   > > >   gpr: iomuxc-gpr@20e0000 { > >   compatible = "fsl,imx6sl-iomuxc-gpr", > >        "fsl,imx6q-iomuxc-gpr", "syscon"; > @@ -752,10 +780,11 @@ > >   clocks = <&clks IMX6SL_CLK_LCDIF_PIX>, > >    <&clks IMX6SL_CLK_LCDIF_AXI>, > >    <&clks IMX6SL_CLK_DUMMY>; > >   clock-names = "pix", "axi", "disp_axi"; > >   status = "disabled"; > > + power-domains = <&pd_disp>; > >   }; >   > > >   dcp: dcp@20fc000 { > >   compatible = "fsl,imx6sl-dcp", "fsl,imx28-dcp"; > >   reg = <0x020fc000 0x4000>;