From patchwork Thu Mar 29 01:31:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ran Wang X-Patchwork-Id: 10314463 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C1E746055B for ; Thu, 29 Mar 2018 04:57:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A28C828AA1 for ; Thu, 29 Mar 2018 04:57:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93A5928E17; Thu, 29 Mar 2018 04:57:32 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=unavailable 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 879312A1AE for ; Thu, 29 Mar 2018 04:57:31 +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=63cTo/Qwo5OFqHGrWuZWXXGg8QCmV6MpsRqzjRwdsFY=; b=bt3Gn8hTpgKDD2 DUWZjkfaLyz/OetP98aZNUCKeYl6mc6pGHk028PaDqD5DWHNC2tLmVVIeUgg10XKJcvNy+33wJkhw Lg2I4SsXdLQfvl6gLAdZ/mYGFDPuyw9HE9v/o1UJX7mtlIWVwWihuhQqkLocPD15rnPZ+1WP1SP9y aFyRoZ7KzyCiiIA95tWwicvn2vipo/WFR4ABmuqrqp2SXlWCqwH3+p9CQxmqFHP/8M4jmXgkTqL0D tv6ETW4DNN/A7yqoydxGcaIyp0gQ4HcwEVvONAHSX/bpSaW7OddkVVwAlB3IevOgWD8HHC1kJU46X C3Lyw7GySL9vuZ9Mydzw==; 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 1f1Pcm-0002Xq-0m; Thu, 29 Mar 2018 04:57:20 +0000 Received: from mail-sn1nam01on0073.outbound.protection.outlook.com ([104.47.32.73] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f1PbV-0001g1-Nn for linux-arm-kernel@lists.infradead.org; Thu, 29 Mar 2018 04:56:06 +0000 Received: from BN6PR03CA0017.namprd03.prod.outlook.com (2603:10b6:404:23::27) by BL2PR03MB385.namprd03.prod.outlook.com (2a01:111:e400:c26::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.10; Thu, 29 Mar 2018 04:55:45 +0000 Received: from BN1AFFO11FD013.protection.gbl (2a01:111:f400:7c10::130) by BN6PR03CA0017.outlook.office365.com (2603:10b6:404:23::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.631.10 via Frontend Transport; Thu, 29 Mar 2018 04:55:45 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD013.mail.protection.outlook.com (10.58.52.73) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.527.18 via Frontend Transport; Thu, 29 Mar 2018 04:55:44 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w2T1qg6a021983; Wed, 28 Mar 2018 18:53:18 -0700 From: Ran Wang To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Rob Herring , Mark Rutland , Scott Wood , Kumar Gala , Li Yang Subject: [PATCH 5/5] powerpc:dts:pm: add power management node Date: Thu, 29 Mar 2018 09:31:43 +0800 Message-ID: <20180329013143.22527-5-ran.wang_1@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180329013143.22527-1-ran.wang_1@nxp.com> References: <20180329013143.22527-1-ran.wang_1@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131667729452841092; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:CAL; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(376002)(39860400002)(396003)(39380400002)(346002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(47776003)(68736007)(8676002)(77096007)(85426001)(81166006)(59450400001)(6666003)(81156014)(356003)(8936002)(53936002)(2906002)(4326008)(97736004)(26005)(51416003)(105606002)(305945005)(6636002)(50466002)(476003)(104016004)(486005)(11346002)(126002)(48376002)(486005)(2616005)(26826003)(86362001)(5660300001)(446003)(498600001)(336012)(110136005)(54906003)(1076002)(16586007)(76176011)(106466001)(316002)(50226002)(36756003)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB385; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD013; 1:HBNB2grOnjPHSvVHLdKLvx/fXWtMJ9+E4AvLd15COJb8qklVFz1rhnLiaQV9WFKWTAZDqJZI7BoIgCt4eI7cFmNwBpZz4KmfXrR2A0FVEQwkFwjAARNmm3doL/FjLChP MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1f3181f8-01a9-4bc4-d724-08d5953154df X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603328); SRVR:BL2PR03MB385; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB385; 3:AlE3qh+qZOlYVLk2IJ0Ghhzhn4VFsWUy3udkyEH7lGGjXKFcVwroHGI6D4y4SI4XXpyV+Zvwt6ceaZLoKR2BeLYOq/QHO+6gc7vf4FiQtFUEzCRsyTVCVneSYbp9T0VqIYBOM50Y5j5vP57RKoNG4IHDLwjin6sgFbZ44Q0BUrYJBSuFELqsTV9/h4+QAO1HyWuDvU7MVGCWBS91SYmc/DgsmiB8a8y4Ne/opY0Lo24tXzCixtnZEmGvAvb4tqniG6GtWuqDDp9TJSeOUHUn+79g56XK+AKSPaCmAXPJm2G/Tc5hUeEGNsptRAH+u1d3NMJrWNx27YMpcpwH1eM5z5mACzm/csV4hdL5uNWR2oE=; 25:Fu9JFmrT0qAEoFNNOwCbQpwIShYlTrem2iZ1qp5pFM4qhEefolXl150V9aoM1kVIMsL6sV6TXip5lLfxiDRW/XTaDwU1NykuZxq5dAHaTomH26/bTKlX2FFzBYpiA2KuebKC4Pr320Yqx9Y7Ou8AS0egyyWOBRtIE/vE0bylAzNHAxxZVUMcDKOJ5QDCg3wiKpxE9lVgyU2mhi6phJcmWX8YcZTWHPMiDFuzaHL8DRSxBtAHviMKtOdJ4bI6PueXhnp3/9hIhD93Rk5ER62cdbTQ8DGcOeqyFfhDTRyDm7Ey4ULuJoqhw94j/FFdw5FcsY8rheUL9u19+uu1yhwCEA== X-MS-TrafficTypeDiagnostic: BL2PR03MB385: X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB385; 31:cppph/hf4Igqnw3q2Qx0iw23FF957pAFPbMwYQTrswQLoVNw/ipkwwNM5uScD2aauGuQ3LjiRkokGLh1wpQYgHpKG9qpei85A/w6s/wF5Wu4GUDRUugbhlrXoviJDMrKjaVBSzBMC7HOoIxrgKqaV7k5v8FMr/0fOAH3dmU2/KtZU9rdrfGFN6cfeUaqevpGmqdUFIvxND4p8kp1l40OXu52ZdzyWrP6mzRt2Xt7QaE=; 4:p4tK+2xb3Cc1wUwscmLDR6okKqjv0nK1ngBtJLBl4iU/kd/LFMpRMyZ4urkkPSKxuZBHX5o4fAkS60i48kr5ujO72fhHIl4lVOQfKYw4/bcOscfD/VfkMNbUyRTOwpPC3ngehEdRHx62P4AAUD7vJJhK8uD5lnlUAnqFxqyOf68GAt6gp8EPmurFeVkUDL9n75umuwGbEE3yD5kYpIFfw9tZmqJV51pSy9O+DzIc3XX0rE0fpFc4iGRQp/96PnHzDVQJrbJR5CVs9D9jlwW9g8MPqdqTNN2ZKQSqcbBgSxqN8bV4PsbFsoMyq6C5AKTaW3DYZunxpjGZErBisuAKLVdhNJIyFlxDRRJhWfkY/kg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(3231221)(944501327)(52105095)(10201501046)(6055026)(6096035)(20161123559100)(20161123565025)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123556025)(20161123561025)(201708071742011); SRVR:BL2PR03MB385; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB385; X-Forefront-PRVS: 0626C21B10 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB385; 23:ccmyRuY5pgei1SWXX0nAmbiUHQ7hsXZssAQOl0OnTX?= =?us-ascii?Q?q3vtJv/JxcUI/9Iu4rMTH0DrISi+w/t1VlFeosZVfqtTSsLpjN7wAoQ+gz9I?= =?us-ascii?Q?cUKEk1lFmHU7e3wHS2kRxLiIXKxP0eGt1fCJTDKPkzhP0pAHnP7KCm4sOsIT?= =?us-ascii?Q?ucD0IOPpzuUF18zEvPdWaVQSb+A1IeaBHuN5xG6MhJRQFiHUM8IUhMsV0q0L?= =?us-ascii?Q?F7ReTlh97haQNd7W6zryisJs7xDNkXRB3nx7j4LruYEyx16JTQDK6/16oNnV?= =?us-ascii?Q?i8G7gfxX5O7/L08cz3CDAx9obTaIKaUIpdnzuOFDpW5PIvSzZFI2SKmQCJMI?= =?us-ascii?Q?unFRb/InElT9wKPQkSBeLQgVECiy4BHJniQR8iT11HHG97adsOandj6gAeX3?= =?us-ascii?Q?7ju6VXkbsFmVWi7ddkXFXMMBMGKiPso3nmdC6bKG1lKnJer7iHbSztI2jYmO?= =?us-ascii?Q?EQeg3NYmyb+R1dBasu+raq4oxj/mhPQ0AtcK1/QjlhiWjK69ksNOtSnWmOzr?= =?us-ascii?Q?SGAxIsJenIrbDhLqLBH6E+HUbJcFril5aowHI2Bzum6dAFNdl763euZ86j6o?= =?us-ascii?Q?gjTen41ZgF3oE0pi98z3qgGf6a1rSZ5XGXawT4r2VxYJyu+fYHv69HIqx16n?= =?us-ascii?Q?cRxGChmUhf4ONfo+zMojFqdSd4ok3ivzYlEJQDNO8b2SdRFicQSx4c0cnydH?= =?us-ascii?Q?JMcjc7qFBMyGCamJWuWJD+j1eKiBS9mUtQ3Ld28FWyAhRu2QQut7F8gCVQaD?= =?us-ascii?Q?u86+ym9P3MpF0Ueg/1o3nSGDMYMo5gfruQz68ln8ojIc4LrsskOogH+W2r3N?= =?us-ascii?Q?r/WRkvJqevUS2eZBP7GTEt5/un85HeT8VeMsWUP+yI98aKmGUBkO2FkqTInh?= =?us-ascii?Q?HLq6C8RkJAm8xXuIc8rjC+HMeYf9ptcUhR1tdit24buyNaPGJXtMdGUx78cL?= =?us-ascii?Q?nGTzVpICB0gyZl2EVaZDkvLdG0dMBM2MZUs6QFxKKBkc5X0eF5szQKMEFC/S?= =?us-ascii?Q?OoPlGrelxyiJxb4SX487heG2gYo7QN+E/LWZJc6YcA4RE1FJq+3Dzywdz45J?= =?us-ascii?Q?kxZhmjoLY61iX8Xr/HSHec+JTExSl8trfJ5Lq2E2esTWrxbCSqdeq5Q4beYK?= =?us-ascii?Q?Bk5vfyiobS17BvBldDOHjKk6URFgjsTusKtgwgNP0q/u66c6Jdt6wH/+qdsR?= =?us-ascii?Q?kvKAIz0HedQmcHzVKmZsKNS9WEwzHl2NxGVH7qubR1Rf0BXbXgcin/Iw2vLG?= =?us-ascii?Q?wZirtIsPvAhKom9uYzkgdhHcMTWKhO5GFs49o3?= X-Microsoft-Antispam-Message-Info: ewR0wjZaBP/onCoHK8TC4ywpFsiAE6p0nvHcoVjLUDWT2T6J9sMHlzIzKZXPRLKVR23Lmn/MYYM6U8/moiRlGxqdzZwHEFuYpfBJjyFE6OfyQw1C6U2vTHfw/TMfbreliFss9qT8Pg0BOZqet7F2ra5KGFHq2g9T4eQGZML1Yioibv+qrNekhTe4+R6OV3I8 X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB385; 6:cnubWftzVj6eTI9ecPKNVuz9xMI3KW8Pt/6IYrKN2I51IvT7fMOm2g517buS3VQbISU/cEUAZZQrnR2XZ0YCCl5eICUHQrnkR6lXfK6WQMz9QV224PsC877JPvX+MOf8y6rElajEX5naGY8H+vcvJHW9fVbXX3ZlOEKJtjxTdcs4TbILK81oX79jNCe2O7gzF98Q7joFrtWeesc+LvEy8kUR4oa1Jkig8e+BpmOKsuk58a1iXBBWGbWeBIlLbOVn0MYlQ+2PmOhsEUfb4RolXgwU/pHmxnxRBC9fn2jd0u46pIwsGDBeHpYYbmcByIAF/X79Iw0ZN9gzhkEUUvYBa4fmWioqeLuumj1znDs5Km350KcsXlqSjCO9AcprC1w25VJYQPiEzaeTVfhf2d1UDLKN6yAVAul9hRi9Dq/zc25NGjYoDjBzGy6zIyBSN50r7fBe1eO6gJBkHQy7fLWZoA==; 5:MM3wSPwU7S5frt7ZjQzNhpe/ezACT6CDSHx1xqrcKwFWiftyNc79GPPfbhVrj+Y2QTZZOXC64smoYtAxrDD2CcY8T/KMN/SD1tQgeo17/E0zCx1uXfckrffG8OiUuqE45VdQMVWHtBBbCI6seGFtJlmoCgHXPv2cktakXK5ngm4=; 24:g1iaHFDluqFBLY9nbXUXvLgF6GrOI/qy6UhKYa5C4w0TfaCHaH1tU1XHQroKxK8IYqnJ4BtSrIEjMbhvhLn5HRnEo7apP9rURBa71chu7xo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB385; 7:9u3EOuaf3hHfiDnCSjIvIkEaVkW0R0XUL6ZviXcKVkJLLNT+pBSHdXte7pX0Xo8Twf+MEuBtmXxfys7uaKsd2JQNtySUlE8xOciKYISGbW3iNZg9ue8ZwES9y+zuZRZEG8gSOx//Qgb5SPbV99+8Vh+RhV3+08MrhIILNVcDJECOFVuhPpgSvG7ev5GNrk2Eu2lQePiwT44z8xyyXaUhc/g3o+9o38HKiwf9g9UhZC9fdrRK6WwWszNVdthSd5tI X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2018 04:55:44.6913 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f3181f8-01a9-4bc4-d724-08d5953154df X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB385 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180328_215601_887352_C3FCB645 X-CRM114-Status: GOOD ( 11.31 ) 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: devicetree@vger.kernel.org, Zhao Chenhui , linux-kernel@vger.kernel.org, Ran Wang , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org 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 Enable Power Management feature on device tree, including MPC8536, MPC8544, MPC8548, MPC8572, P1010, P1020, P1021, P1022, P2020, P2041, P3041, T104X, T1024. Signed-off-by: Zhao Chenhui Signed-off-by: Ran Wang --- arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi | 14 ++++++- arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi | 2 + arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi | 2 + arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi | 2 + arch/powerpc/boot/dts/fsl/p1010si-post.dtsi | 8 ++++ arch/powerpc/boot/dts/fsl/p1020si-post.dtsi | 5 +++ arch/powerpc/boot/dts/fsl/p1021si-post.dtsi | 5 +++ arch/powerpc/boot/dts/fsl/p1022si-post.dtsi | 9 +++-- arch/powerpc/boot/dts/fsl/p2020si-post.dtsi | 14 +++++++ arch/powerpc/boot/dts/fsl/pq3-power.dtsi | 48 +++++++++++++++++++++++++ arch/powerpc/boot/dts/fsl/t1024rdb.dts | 2 +- arch/powerpc/boot/dts/fsl/t1040rdb.dts | 2 +- arch/powerpc/boot/dts/fsl/t1042rdb.dts | 2 +- arch/powerpc/boot/dts/fsl/t1042rdb_pi.dts | 2 +- 14 files changed, 108 insertions(+), 9 deletions(-) create mode 100644 arch/powerpc/boot/dts/fsl/pq3-power.dtsi diff --git a/arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi b/arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi index 4193570..fba40a1 100644 --- a/arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi @@ -199,6 +199,10 @@ /include/ "pq3-dma-0.dtsi" /include/ "pq3-etsec1-0.dtsi" + enet0: ethernet@24000 { + fsl,wake-on-filer; + fsl,pmc-handle = <&etsec1_clk>; + }; /include/ "pq3-etsec1-timer-0.dtsi" usb@22000 { @@ -222,9 +226,10 @@ }; /include/ "pq3-etsec1-2.dtsi" - - ethernet@26000 { + enet2: ethernet@26000 { cell-index = <1>; + fsl,wake-on-filer; + fsl,pmc-handle = <&etsec3_clk>; }; usb@2b000 { @@ -249,4 +254,9 @@ reg = <0xe0000 0x1000>; fsl,has-rstcr; }; + +/include/ "pq3-power.dtsi" + power@e0070 { + compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc"; + }; }; diff --git a/arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi b/arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi index b68eb11..ea7416a 100644 --- a/arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi @@ -188,4 +188,6 @@ reg = <0xe0000 0x1000>; fsl,has-rstcr; }; + +/include/ "pq3-power.dtsi" }; diff --git a/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi b/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi index 579d76c..dddb737 100644 --- a/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi @@ -156,4 +156,6 @@ reg = <0xe0000 0x1000>; fsl,has-rstcr; }; + +/include/ "pq3-power.dtsi" }; diff --git a/arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi b/arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi index 49294cf..40a6cff 100644 --- a/arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/mpc8572si-post.dtsi @@ -193,4 +193,6 @@ reg = <0xe0000 0x1000>; fsl,has-rstcr; }; + +/include/ "pq3-power.dtsi" }; diff --git a/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi b/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi index 1b4aafc..47b62a8 100644 --- a/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/p1010si-post.dtsi @@ -173,6 +173,8 @@ /include/ "pq3-etsec2-0.dtsi" enet0: ethernet@b0000 { + fsl,pmc-handle = <&etsec1_clk>; + queue-group@b0000 { fsl,rx-bit-map = <0xff>; fsl,tx-bit-map = <0xff>; @@ -181,6 +183,8 @@ /include/ "pq3-etsec2-1.dtsi" enet1: ethernet@b1000 { + fsl,pmc-handle = <&etsec2_clk>; + queue-group@b1000 { fsl,rx-bit-map = <0xff>; fsl,tx-bit-map = <0xff>; @@ -189,6 +193,8 @@ /include/ "pq3-etsec2-2.dtsi" enet2: ethernet@b2000 { + fsl,pmc-handle = <&etsec3_clk>; + queue-group@b2000 { fsl,rx-bit-map = <0xff>; fsl,tx-bit-map = <0xff>; @@ -201,4 +207,6 @@ reg = <0xe0000 0x1000>; fsl,has-rstcr; }; + +/include/ "pq3-power.dtsi" }; diff --git a/arch/powerpc/boot/dts/fsl/p1020si-post.dtsi b/arch/powerpc/boot/dts/fsl/p1020si-post.dtsi index 642dc3a..cc4c746 100644 --- a/arch/powerpc/boot/dts/fsl/p1020si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/p1020si-post.dtsi @@ -163,14 +163,17 @@ /include/ "pq3-etsec2-0.dtsi" enet0: enet0_grp2: ethernet@b0000 { + fsl,pmc-handle = <&etsec1_clk>; }; /include/ "pq3-etsec2-1.dtsi" enet1: enet1_grp2: ethernet@b1000 { + fsl,pmc-handle = <&etsec2_clk>; }; /include/ "pq3-etsec2-2.dtsi" enet2: enet2_grp2: ethernet@b2000 { + fsl,pmc-handle = <&etsec3_clk>; }; global-utilities@e0000 { @@ -178,6 +181,8 @@ reg = <0xe0000 0x1000>; fsl,has-rstcr; }; + +/include/ "pq3-power.dtsi" }; /include/ "pq3-etsec2-grp2-0.dtsi" diff --git a/arch/powerpc/boot/dts/fsl/p1021si-post.dtsi b/arch/powerpc/boot/dts/fsl/p1021si-post.dtsi index 407cb5f..378195d 100644 --- a/arch/powerpc/boot/dts/fsl/p1021si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/p1021si-post.dtsi @@ -159,14 +159,17 @@ /include/ "pq3-etsec2-0.dtsi" enet0: enet0_grp2: ethernet@b0000 { + fsl,pmc-handle = <&etsec1_clk>; }; /include/ "pq3-etsec2-1.dtsi" enet1: enet1_grp2: ethernet@b1000 { + fsl,pmc-handle = <&etsec2_clk>; }; /include/ "pq3-etsec2-2.dtsi" enet2: enet2_grp2: ethernet@b2000 { + fsl,pmc-handle = <&etsec3_clk>; }; global-utilities@e0000 { @@ -174,6 +177,8 @@ reg = <0xe0000 0x1000>; fsl,has-rstcr; }; + +/include/ "pq3-power.dtsi" }; &qe { diff --git a/arch/powerpc/boot/dts/fsl/p1022si-post.dtsi b/arch/powerpc/boot/dts/fsl/p1022si-post.dtsi index 5f51b7b..6ac21e8 100644 --- a/arch/powerpc/boot/dts/fsl/p1022si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/p1022si-post.dtsi @@ -225,11 +225,13 @@ /include/ "pq3-etsec2-0.dtsi" enet0: enet0_grp2: ethernet@b0000 { fsl,wake-on-filer; + fsl,pmc-handle = <&etsec1_clk>; }; /include/ "pq3-etsec2-1.dtsi" enet1: enet1_grp2: ethernet@b1000 { fsl,wake-on-filer; + fsl,pmc-handle = <&etsec2_clk>; }; global-utilities@e0000 { @@ -238,9 +240,10 @@ fsl,has-rstcr; }; - power@e0070{ - compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc"; - reg = <0xe0070 0x20>; +/include/ "pq3-power.dtsi" + power@e0070 { + compatible = "fsl,p1022-pmc", "fsl,mpc8536-pmc", + "fsl,mpc8548-pmc"; }; }; diff --git a/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi b/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi index 884e01b..2c4787c 100644 --- a/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi @@ -175,6 +175,10 @@ compatible = "fsl-usb2-dr-v1.6", "fsl-usb2-dr"; }; /include/ "pq3-etsec1-0.dtsi" + enet0: ethernet@24000 { + fsl,pmc-handle = <&etsec1_clk>; + + }; /include/ "pq3-etsec1-timer-0.dtsi" ptp_clock@24e00 { @@ -183,7 +187,15 @@ /include/ "pq3-etsec1-1.dtsi" + enet1: ethernet@25000 { + fsl,pmc-handle = <&etsec2_clk>; + }; + /include/ "pq3-etsec1-2.dtsi" + enet2: ethernet@26000 { + fsl,pmc-handle = <&etsec3_clk>; + }; + /include/ "pq3-esdhc-0.dtsi" sdhc@2e000 { compatible = "fsl,p2020-esdhc", "fsl,esdhc"; @@ -198,4 +210,6 @@ reg = <0xe0000 0x1000>; fsl,has-rstcr; }; + +/include/ "pq3-power.dtsi" }; diff --git a/arch/powerpc/boot/dts/fsl/pq3-power.dtsi b/arch/powerpc/boot/dts/fsl/pq3-power.dtsi new file mode 100644 index 0000000..5a760b3 --- /dev/null +++ b/arch/powerpc/boot/dts/fsl/pq3-power.dtsi @@ -0,0 +1,48 @@ +/* + * PQ3 Power Management device tree stub + * + * Copyright 2012-2013 Freescale Semiconductor Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Freescale Semiconductor nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * + * ALTERNATIVELY, this software may be distributed under the terms of the + * GNU General Public License ("GPL") as published by the Free Software + * Foundation, either version 2 of that License or (at your option) any + * later version. + * + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +power@e0070 { + compatible = "fsl,mpc8548-pmc"; + reg = <0xe0070 0x20>; + + etsec1_clk: soc-clk@24 { + fsl,pmcdr-mask = <0x00000080>; + }; + etsec2_clk: soc-clk@25 { + fsl,pmcdr-mask = <0x00000040>; + }; + etsec3_clk: soc-clk@26 { + fsl,pmcdr-mask = <0x00000020>; + }; +}; diff --git a/arch/powerpc/boot/dts/fsl/t1024rdb.dts b/arch/powerpc/boot/dts/fsl/t1024rdb.dts index 73a6453..95fc694 100644 --- a/arch/powerpc/boot/dts/fsl/t1024rdb.dts +++ b/arch/powerpc/boot/dts/fsl/t1024rdb.dts @@ -91,7 +91,7 @@ board-control@2,0 { #address-cells = <1>; #size-cells = <1>; - compatible = "fsl,t1024-cpld"; + compatible = "fsl,t1024-cpld", "fsl,deepsleep-cpld"; reg = <3 0 0x300>; ranges = <0 3 0 0x300>; bank-width = <1>; diff --git a/arch/powerpc/boot/dts/fsl/t1040rdb.dts b/arch/powerpc/boot/dts/fsl/t1040rdb.dts index 65ff34c..825665c 100644 --- a/arch/powerpc/boot/dts/fsl/t1040rdb.dts +++ b/arch/powerpc/boot/dts/fsl/t1040rdb.dts @@ -70,7 +70,7 @@ ifc: localbus@ffe124000 { cpld@3,0 { - compatible = "fsl,t1040rdb-cpld"; + compatible = "fsl,t104xrdb-cpld", "fsl,deepsleep-cpld"; }; }; }; diff --git a/arch/powerpc/boot/dts/fsl/t1042rdb.dts b/arch/powerpc/boot/dts/fsl/t1042rdb.dts index 3ebb712..0997643 100644 --- a/arch/powerpc/boot/dts/fsl/t1042rdb.dts +++ b/arch/powerpc/boot/dts/fsl/t1042rdb.dts @@ -68,7 +68,7 @@ ifc: localbus@ffe124000 { cpld@3,0 { - compatible = "fsl,t1042rdb-cpld"; + compatible = "fsl,t104xrdb-cpld", "fsl,deepsleep-cpld"; }; }; }; diff --git a/arch/powerpc/boot/dts/fsl/t1042rdb_pi.dts b/arch/powerpc/boot/dts/fsl/t1042rdb_pi.dts index 8ec3ff4..b10cab1 100644 --- a/arch/powerpc/boot/dts/fsl/t1042rdb_pi.dts +++ b/arch/powerpc/boot/dts/fsl/t1042rdb_pi.dts @@ -41,7 +41,7 @@ ifc: localbus@ffe124000 { cpld@3,0 { - compatible = "fsl,t1042rdb_pi-cpld"; + compatible = "fsl,t104xrdb-cpld", "fsl,deepsleep-cpld"; }; };