Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1177249imm; Tue, 5 Jun 2018 10:12:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJrGk/BbfjAqn+I+uQ4WlUYNg50cYdx4G8L6xWyKwTGFJ74jlfDEkwuwQQVZUkmtWMk6seM X-Received: by 2002:a63:40c7:: with SMTP id n190-v6mr7460799pga.248.1528218757267; Tue, 05 Jun 2018 10:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528218757; cv=none; d=google.com; s=arc-20160816; b=i2iHq++o50X075WhyP1Yzjpm9I9RgU2Un5omBy5X5YSFACcX4nrrfk72ph4vwmKKFD QqPgrw+Ph5KssOZOZuoxoIZrEs7igc8ZNHibwmptt0LYk5Qio87cLKzfPPM/buAwapgi EvvfoOylrGXLFWmQkHjxWDIpna1IL2FHqlUv/zZsqBN86fkNDp21t5f81of6nl65RKfG Zv7T0zFHDpsfRoQ1Y5OtAcqWvf1m8NSu3l+QDOAkl9YMZbz8jIXPU/xOiZpOXDdHLwK2 +4/OvD1dzDig9zROLCTEt/n/jqJnKoLhGUoMuQ7YF2HfZ83lzSBMd+BYXlISUb1Ciq0a RNXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=WyPadzIXpPDEI8gXinbeJ/kT9lwXPiUdQ56dzIboEE8=; b=B/LT6GHWqQhQx+pmHG7x4F5pddkqSG+/Tc3Pc2G/WNfJAfcmcTctxfzKiHqSGM1SpQ rAGM9lJ+x7tE4fPsdZtrFj78U6wWatK7GoHef/BQV7sGJiJFlSa468d3iUxFKgRXKykT /C7LzA3tSBTnNf7eggkbDPZB2vYZSwkRBwcuLNKEhYxBefuT/yvz2O0upkl6q6Hn9y2I fBv2WNBI30Z80MRJEgC12TI5RAVTbhBZO+4roZPOxnpvSzmutuY8t9iq15WKL697MY3a rLoF6B72v3jUNHtSleG7B1aeeS/wtXutJOhQ9gCQsBERNYhAPAXVQvoC8osaa+9wK7pw DpyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=qo7awrAJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u32-v6si26899472pgn.488.2018.06.05.10.12.22; Tue, 05 Jun 2018 10:12:37 -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; dkim=pass header.i=@nxp.com header.s=selector1 header.b=qo7awrAJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753868AbeFERLl (ORCPT + 99 others); Tue, 5 Jun 2018 13:11:41 -0400 Received: from mail-eopbgr50065.outbound.protection.outlook.com ([40.107.5.65]:19319 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753742AbeFERLZ (ORCPT ); Tue, 5 Jun 2018 13:11:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WyPadzIXpPDEI8gXinbeJ/kT9lwXPiUdQ56dzIboEE8=; b=qo7awrAJ6IcErkG+n5fka0fjKn4IoWhkgAaSlHDZ4ehUMIxH2S3CPKHYe7pUYeG0JojOngBgXNKfdbuWd+UXlf6jyMGDAsrJlcaEWepOsoqTtFlpbHSUFdKf0WwxDBYQ221coaieDs+FPqrM5PM2nSbVXxUavxCGSSi/ay2COfE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; Received: from localhost.localdomain (95.76.156.53) by VI1PR04MB4301.eurprd04.prod.outlook.com (2603:10a6:803:3f::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.14; Tue, 5 Jun 2018 17:11:18 +0000 From: Leonard Crestez To: Lucas Stach , 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 Subject: [RFC 2/2] ARM: dts: imx6sl: Convert gpc to new bindings Date: Tue, 5 Jun 2018 20:11:06 +0300 Message-Id: X-Mailer: git-send-email 2.17.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [95.76.156.53] X-ClientProxiedBy: AM5PR06CA0023.eurprd06.prod.outlook.com (2603:10a6:206:2::36) To VI1PR04MB4301.eurprd04.prod.outlook.com (2603:10a6:803:3f::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB4301; X-Microsoft-Exchange-Diagnostics: 1;VI1PR04MB4301;3:mx4kCQ3O0XMptLBtkdyJkR+7d1i+Evm1p85Hiy0zfZwxRTmbDSTsl0NwOfqQYTcD7b3YSsNwFNfF19OUZhV7uB2tTK+jgvPi5lz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7AuoFm+PG3p12pTv8Y/yadTDLdMpZO4aw0ToSP156YErlvtwxGbj4L7NYZCkkWWDWevYKmJkxmgNIwCKGF+h0RyFbBqyQ0HHN0syYUC3zOS/gNa2tnY7FZUauZy7k1netGFyA61TZgmNS42v4uj8iYIoBMlfQCK17/yE3od5uS06B6LT4a6EEF2/XkAcx28gi0vnpvrgfbrd6OiOEjBXJPft1ls5I5FqwZP+HWp4Aj;4:385diFjRdJQ6h4Sw4ngwYNgbfCKRkusswe63BNd/YOZxwgQC9g9faC4FYMB5ttkgDjMjiEWDcugfF5Y299QqfZeQbZ8QIN74M7nH+7mNjhZaShxr1aai4qVqZKbsEIev9QYlt0wi9hgCA61mOkSJf296ToaGKo43AxW/Bmep4a3Sh3qN98MiaoNe+0/kj9fC6H2i1RXOT7v8ExcW3uGRQng/Lfjz5MyU1y2pYfEoyfAKVUskMeggQLsmrr46GOXW5Ls7dwQKophPwpfyAOFLctrm0HHPmYxCmPUoRMqTOqiHdk7d+zQLKRMlEAUeUlZ5 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:VI1PR04MB4301;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB4301; X-Forefront-PRVS: 0694C54398 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(346002)(396003)(366004)(376002)(39380400002)(39860400002)(189003)(199004)(6486002)(106356001)(6116002)(5660300001)(26005)(25786009)(4326008)(3846002)(97736004)(7736002)(186003)(6512007)(110136005)(50226002)(54906003)(16586007)(86362001)(16526019)(68736007)(105586002)(956004)(446003)(11346002)(2616005)(36756003)(81166006)(59450400001)(386003)(6506007)(486006)(48376002)(118296001)(81156014)(478600001)(305945005)(6666003)(44832011)(52116002)(51416003)(50466002)(76176011)(47776003)(476003)(8936002)(316002)(66066001)(8676002)(53936002)(2906002)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4301;H:localhost.localdomain;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR04MB4301;23:0yagAMBAZwZcAdEMUCOWRjEIXOhtmaS4Bh82W0W70?= =?us-ascii?Q?6YRCWlwhjD1/cH6XP4W7NWkzvkx9l2Z0mEXdhzaouYEQ+Ljkn3CjUnMABSy+?= =?us-ascii?Q?0Q6vYt61CKCSYQ8m8Td2RJBANiPoeux+rZ8l8Q+gy/VIkEU9m20kWoAysLG2?= =?us-ascii?Q?AWQgK+sU9lP8TCw7r1Bq2cdNiAZCsXkHeGYS1UOlKyJEY2jC4PONT1Mq6N5Q?= =?us-ascii?Q?67kMxdF0VB3l+kAl4Tiosr1oIdvdrCiMkHP7yfLlwOJuLfGXksLgktUK9pME?= =?us-ascii?Q?hA14V7d1vQ0oxul1U/zhyuIGCFk2cFsy70ETpwZNG20+DUcgIfjuBpkHigPG?= =?us-ascii?Q?mIa6wpeC52nvv/FWdBkUa8afZiO5qkLoSqLWeKBJzSCht7Qtvbd4Yjp6mw/r?= =?us-ascii?Q?VA+BJc9BHjpXu8LRnUol/yqRSpYRue3wwRsKmAN97XYXt8wHJyl/E6nFJmO8?= =?us-ascii?Q?xS+4dyXRNoePwbJQ1zumyAK/yTSqS67wwmh29xeVmQ+6xOQ7RWs6v7luecco?= =?us-ascii?Q?samw3/vgPrNmuhPu4SISnyB9us/VvyuOyD8PD5oQcPjDemJeXi03E7Fz2jfn?= =?us-ascii?Q?jYSHD6zBli76zAYHvLBcYU+oS7ThMT1u0qXchxs4DrQOHdgU8fTA2ZC/os2q?= =?us-ascii?Q?+CfTsOsKZZG1JOfBejbEnOqf5oewaCDXGuAEFwA+FtVxJAL2eOm8mud3iwxC?= =?us-ascii?Q?maAin8ghAyG0we58lFMWpt8yqOIxzuo+8Hj7itChKURprm+RnlFajKZCUycF?= =?us-ascii?Q?6QM3sRPwvdf/DYJIrfneCMf0X+LO3kCyuVFAr3Tyut4C9pHd6tH83J3kWMX4?= =?us-ascii?Q?drNbbR8O0qJMdr4w2kFdXdk9CWdaaP0H7WTQ7dPpBO1HazZnHNTK5hcKrXL1?= =?us-ascii?Q?h637illJZQpxDbmz+KhDDOu1IyrtYIPDS2PqrFZHPfszXuo15ub/lrcrkWPQ?= =?us-ascii?Q?wUsfGsSAp2U8rUru3EfvDxVBW7ykprijnvP3GaHkNA/6BCAxsv5af/mErk/g?= =?us-ascii?Q?eNyx72Psk97irOVA71e6aRepA16y3VtCz4+o9tenq8kTT5NZw8nc8+OcugSF?= =?us-ascii?Q?J7QvFe9r+MAcvQSHDXq+Bc4ZQMXKlahBebcL45A9yYTD5thjjki+ucDieEvO?= =?us-ascii?Q?42jryD05zOLj6+Amm2Je8ESk3ntozYh3SzBhaC6/91QqSs77VxPak37K6EVa?= =?us-ascii?Q?d8IPWTt3rDG2VfoTj0wE7sQNxjB+XjKDOU03ZsiPOIaur7QYYpJzApyHheKt?= =?us-ascii?Q?dZuqOudIEPdzTVOtjxqVeOcQMI2jZpn2jFc25DCWtyq5QAKPaPmapZ8c7ATX?= =?us-ascii?Q?/OqdkkoDG+6TBnfx/o9TkY=3D?= X-Microsoft-Antispam-Message-Info: a4HyrRx0n6zl9dltMgGQdTxpI7HU0aSnFTW50Fnp8wR5YDWMOfT2EqV7NKLX4m8W6RJrWC0OkXzk6GCSSBGWu27wW4Sl75OaeZWhhYFit88wh5LXqq5HOgntzqYnexZHRQ8ExX2gXhkmf079GDtiTKae2GfqmRi1M4uNvz24XcWzTO1S97ByuafIc2cVQNGa X-Microsoft-Exchange-Diagnostics: 1;VI1PR04MB4301;6:x/FQi//xjHjQfdU3V4yAWcPZLpKj/bHqsidhWz8L+7X29sPfigk8ZR26Gmn8CCOK69LqSIi1LqGiDCvU195ohvJchKZ67OMz7RUpx7uYuIU23Vj2A0vn2Gq5elSOHkuYtOV0NbfR6RN659kDlOLSR7DdkeUNqcH8hemxfEEuCNT8IChyGyh018440mV1/itOdkmggdyeiGhx8/1iGfgSH1rMVH2/sNR9gFosdLtcSmNh/9sNT1AJRWla0QbK8M+ABEQZiK0mNOoZ6oCLf1pFlBPeOPiSdWFJBWe+ge31TYoseJiVDA/cSltjTZAUVdxm0IFOn9mhXrFRXhhMTnbYUqfr4DnGFUQ3jBJP1wRbv0c5/SX+TITUNt6Rc+og24bUBOo1x/1YnbWira3brWLQOm4lkiouVWn2talrDcjRegdaL/lk2a3aGvsX1/Ky/wjLqWplSEqyKcvRVh27ub5j8Q==;5:QmWVHmsogp4DSpxvDI5OCVvhUB+5xrftbghgZ6VLOmwUHoY+iG+G0RK+dwf29TJGlZcRcQcuDx1HkpMlLkkT3XQ+d8c9oJLHimn6AVZFicoW93CMM1wSgsn3G6/GEbTsXQQt6gJIHF903jABQ2lVsnE3PSjF3nD4nM4To+7KADw=;24:Amhom+TgJdOmKpb7GOwqq1wl5TuLkNSzHpLZcC+NCfM29cuTaWuq8IJi+KZugiLwYU6G8BB+rHFedaGeDxCryYLfYLBAbURUdmFlqeJ1n+g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR04MB4301;7:9vXg4ismvLP+x8b3IHO1F3BtWN5EIllX+yazOMPLfwu2vN/irIJdY8ny8sm3508pBFclTTtIedWyhqN3+2Yg3Z63XhdD4d6eRujHr20BksXhtHydrH6hEODqHhz1mQGm3Fmi539GQd9+On2K4aCr3ESoIuszs5OG5eyNaYX8q6XR5DuqXNCN9zxA1Z1f3htuOqT5QoDJUEI7Bflp12B3nMwBoFASLIQUT6E9Uv9Oo3iqov+j3cMJLoUdI5GMgdF+ X-MS-Office365-Filtering-Correlation-Id: 21ae76f8-0357-4bf8-3bf6-08d5cb075b4f X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2018 17:11:18.8515 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 21ae76f8-0357-4bf8-3bf6-08d5cb075b4f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4301 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; + + 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>; -- 2.17.0