From patchwork Tue Oct 20 06:58:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 7442321 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A1E33BEEA4 for ; Tue, 20 Oct 2015 07:02:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A7BDA20790 for ; Tue, 20 Oct 2015 07:02:16 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E58E120785 for ; Tue, 20 Oct 2015 07:02:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZoQuP-0008OO-VG; Tue, 20 Oct 2015 07:00:33 +0000 Received: from mail-by2on0137.outbound.protection.outlook.com ([207.46.100.137] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZoQu6-00078b-Dz for linux-arm-kernel@lists.infradead.org; Tue, 20 Oct 2015 07:00:14 +0000 Received: from BN3PR0301CA0025.namprd03.prod.outlook.com (10.160.180.163) by CY1PR0301MB1308.namprd03.prod.outlook.com (10.161.212.18) with Microsoft SMTP Server (TLS) id 15.1.300.14; Tue, 20 Oct 2015 06:59:52 +0000 Received: from BL2FFO11OLC006.protection.gbl (2a01:111:f400:7c09::109) by BN3PR0301CA0025.outlook.office365.com (2a01:111:e400:4000::35) with Microsoft SMTP Server (TLS) id 15.1.300.14 via Frontend Transport; Tue, 20 Oct 2015 06:59:51 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=freescale.com; Received-SPF: Fail (protection.outlook.com: domain of freescale.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 BL2FFO11OLC006.mail.protection.outlook.com (10.173.160.95) with Microsoft SMTP Server (TLS) id 15.1.300.4 via Frontend Transport; Tue, 20 Oct 2015 06:59:51 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t9K6xgd9031291; Mon, 19 Oct 2015 23:59:47 -0700 From: Peter Chen To: , Subject: [PATCH v5 1/2] ARM: dts: imx27.dtsi: change the clock information for usb Date: Tue, 20 Oct 2015 14:58:38 +0800 Message-ID: <1445324319-19063-2-git-send-email-peter.chen@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445324319-19063-1-git-send-email-peter.chen@freescale.com> References: <1445324319-19063-1-git-send-email-peter.chen@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC006; 1:ceXzjBgIs9Nm+MNbaHpmDn+rMTQccPe2Dkv4QxHrIxyJ8vyka5nx/M6FCI8NVD/5vJcvwtp6Z4A8wlfKcCs74UuTjxjrR1kc0UioHxU4JVONJyTabtSoPo/CD7tX3f4HvRce6F84hi3k5ibK0gv7Hr0Y9UiCj+6C+WE/i8Fv2N3gemRr8i9MvpduJQ7UTbdTWsfXbTLJHYWT6C88J7Uoe1oNy3Xk1Yjc/FMyRr8U9UgGmqQFMRLqc0UO0Xgde7fSqjG2MzQe2X/YsSh5zc+EAkWpThCmrNPNZdNLDkAEfhVGbOJbFZYV8Wf/HVpilhQ+cqQTpMx7hjHEGB8Q8rCiCvOzhqjAOHT2LxxtBWfgpiaS5DqOPx/978u8ex6njy2FuD4JbdlTMYcmf7QEssM7dA== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(87936001)(19580395003)(85426001)(92566002)(50226001)(50466002)(19580405001)(48376002)(2950100001)(46102003)(229853001)(77096005)(5008740100001)(11100500001)(5007970100001)(104016004)(76176999)(50986999)(86362001)(5001770100001)(97736004)(106466001)(81156007)(189998001)(47776003)(33646002)(5003940100001)(105606002)(36756003)(64706001)(5001960100002)(6806005); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB1308; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1308; 2:YM0OjuV2U7mTUJG/OiMNg5SpxwIUhOQru3oTSewYfNpNhXo2rJdJ0rZ1VZg9SKY5vXfnnVoZr5oB1rc75CosA2KK3aLEydVHf9vVXTBBC+XegNxdp7BNwm47WTK5xKaR4MHQWn7uaPLGxT7lfGGw0pEBNm138Kir+5AYqQEzdD0=; 3:BpdGrzLNkz3wAd81lIRrgb1ok+dQqhh6tF1DekDFIhHJoWNPsHQq2EYB76Y6ORpTDTTeI/wHrEZvuMf80tsx+L+HNqe/Apq1GeOJddnVEgLRlHNKtv0AEl3NEMSnRyz8y0pEbZ69Uy4wVKrNipjr+HfNFwYaRvI/FdWZvSTAmi3HkQAcqNEPIrM8pi90iu9OQQZWhT/9arLzgDh4PYad0pgVdWIsr1P6GUPb3paKqMs=; 25:4PkNrNR44LeZh6albkEI6JqWdeKtVL91i60k5ki5TrW/1Zgb3g2btHak3dXU59+V4tzZNY315gz4tjSnbcxmqPFbmm/Jjq2jr7cNg4h8kdEsdCoBqEHn3qcOkXTPS+Khzasv4YyjVudBVqKy0xwQ30dflb05M/SUCmtSVncCwb2YBes4N92UukoLBTjOhCkf9iyKc7jqVnVhRX6p0oqoW+qNyfYqWpKY0zOL1LK7Ud6KhhW7RENy3ZpjW1r0RDhF8fPgFIfYFZ+1aseXbqAlHQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1308; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1308; 20:Y7RcQJ0Vq6qUgkotVgPrp8Bzo/hq8gJxNJrISxHQLn/XkQD7u5sq1ejAZ/laut/yWSkkNvROMGG87pn35j6IV+/HwqJqW8bGYtwwUMPm1liermaf5JKnMKvoNHe7XzlqnmT1CVTH/dj8Yt3UHwA9I2l/+l1/uijp+0IKuddvbafAYbWy0qJjKJbndfsx07xT03NhMsVOusaKwSXoXJrz1/4fbp3yPh0QpQGXoBIVNHsn3F9CF78mlUWfIvDiN5UmBM50+af7KfcFF4XjMpvYEQ527j0VPuV+XH1rL1tUMbnt1EynSpF8bFLO+85o6LH8gEMMNVs063qP40kNNs2omgAISX83uB3hFKw34TcUWjM=; 4:VqXjHmxRyFzUYGLhL6aPNvTWP5NQiyO3ANyf7eJD+Otx+z3LBmQGEyi+Yxg4h0s8yvvSzXA1hsPzJSahHPQ5atSWz8lI0IbyK+SPQblgP4jubpLjNiUTS6t+PG8h6uFOVMK3xmIorNOEGLutLh8G3lBM15hqYg8viSA2MQgXQucQSTR5vTFep0v+nctyF6hPlZkHfc+PsUHt2m/VHKUgU3TysVW7/7MZ0aM+Wpv+ef0sCe34zmV3ZZikej7p7hE0+ygVIqoM1XFzB/4GvVFJreekb2/vXviDgXDRIw2WULgZqM+o1APdoFZYfHJPTpCgqPn4L/f3aUPcNtC2wQcqGy1Hn0S3zb0OsdvstUWd71g= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001); SRVR:CY1PR0301MB1308; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1308; X-Forefront-PRVS: 073515755F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1308; 23:xQhf/R4MxnWhuM4/PzSDlZvVzO3n9PLjQfd+uZO?= =?us-ascii?Q?ur8+nidu4E+z/yDw6NXxS+hI0rsi8KMo6jZzYTs7qQLX6a8R+s9o9e5EQA23?= =?us-ascii?Q?KYmX2FS6gD1pAZ2w6ZID77IQ8RSMEuAHTYhQW03C9pUXftT5+s+slnGV88Rt?= =?us-ascii?Q?6wJ1AowXwTk2yj+wVxTTS31yaZeoWABmNEdfr2fwI3371WlCeQHcHZSPbURh?= =?us-ascii?Q?nN+sTsZmCljRA/k1IVkNAitDxvxKB9fpkbHl0UCRW9fL1KIHMjK4KqqAEhgH?= =?us-ascii?Q?9SkTAv/HF6RJ5O440PHLkD9uRwD1dBaxGqnr3jkU8aJmrtexCXQPtgq/bdiN?= =?us-ascii?Q?7GkpektAU24/8NOZLD6lzG39/fZoERbrEjEkYt5diGOjSBCHmyrl4/DSJSMk?= =?us-ascii?Q?VBEwtmW3FZNKwg8W12itM0V56fqdjuPjvuX2Qo2LkE4V6fDmukGFCmqnQamX?= =?us-ascii?Q?1Krda+F+xYxsNmBvz38tILEehZ4GZF/Di02n6W36bGXP06CsKDkXpkg8Lkjg?= =?us-ascii?Q?vKXEg2842mj76H7ZnwsRN59rADHQbNzt/E3Q6uAvrR1i71NuIVN9hwNMncGq?= =?us-ascii?Q?ZvbmD7Tju5lvkfIzyZJbV2RdNG6spDiSTnXS551J2vwTsfYAb5EynosrQkHs?= =?us-ascii?Q?aWIkTWQQkKyvoIwCv7cZ4uiFHdFL08cSEf4EOO0nDGYBP4jVPXRxN3fzseX5?= =?us-ascii?Q?AmvHbIWu40tVafScREWCxC2laWmqJ+O9DH43ICK/W+LtTqso2K90z1xpXMBS?= =?us-ascii?Q?PesLv5lBmAxkfoy9azEUwG/2LubTzjGHShjV4O6abgoWftwkmIFeP11E1e8l?= =?us-ascii?Q?rqpExzwXsSQPEN0iSwD2TXXcGbKqxXn4vVam4T5NgKtvF4gHHgvgo8T+Z6/A?= =?us-ascii?Q?VDB6heZsSXUigJQwyzltFpzaUAPLNu68xNssCmZrpgEal99EUeG3tuS0YS3Q?= =?us-ascii?Q?o7dh2+fvINGxeIyRxtvW/wNJDoovg/lRc2WQcreCqn2XKJHB0JZkyhR7BQsk?= =?us-ascii?Q?01g/kEaUIYG5nD4zgprp51dX849xprMrfgxFGEO9uzCC8ro0/kOkdBbfACMG?= =?us-ascii?Q?heH27jQ0fD2v3DLs9TvcIhEStJaYv?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1308; 5:hBsCHrtv1nyLE7EhDnVREqdmS4xoxKxRm6Psmpq+70mFOgxkAx3Ntdydes3SHMJBCe8ODMubSnOn4MEYMaCRxy7NR/vyQ767oWJwgN8tSfCF9QWVKr3z1ihrwcrsS9Tb6mXBXletkjz7Xoh5ScgxmA==; 24:2rZbAMeZdzO61yHHcxKYRPBtLPscme7kya2gV0zetazO/9vQk84scmICOBGwm5bpaXo6n+mnwkfPJzTONIXJSCQn4xQh/B1tjK0/+VZcyAM=; 20:xvpdY3gD//LS7frg+emEp/o3VcuSEI20dvXLSigNWqyfOgyNEyOR/GKDZ4wto/wNjiOnHIjYU4ahpk1yhpmcOA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2015 06:59:51.2966 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1308 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151020_000014_522909_B8EF4909 X-CRM114-Status: GOOD ( 20.58 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, fabio.estevam@freescale.com, pawel.moll@arm.com, stable@vger.kernel.org, robh+dt@kernel.org, mkl@pengutronix.de, Peter Chen , kernel@pengutronix.de, 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For imx27, it needs three clocks to let the controller work, the old code is wrong, and usbmisc has not included clock handling code any more. Without this patch, it will cause below data abort when accessing usbmisc registers. usbcore: registered new interface driver usb-storage Unhandled fault: external abort on non-linefetch (0x008) at 0xf4424600 pgd = c0004000 [f4424600] *pgd=10000452(bad) Internal error: : 8 [#1] PREEMPT ARM Modules linked in: CPU: 0 PID: 1 Comm: swapper Not tainted 4.1.0-next-20150701-dirty #3089 Hardware name: Freescale i.MX27 (Device Tree Support) task: c7832b60 ti: c783e000 task.ti: c783e000 PC is at usbmisc_imx27_init+0x4c/0xbc LR is at usbmisc_imx27_init+0x40/0xbc pc : [] lr : [] psr: 60000093 sp : c783fe08 ip : 00000000 fp : 00000000 r10: c0576434 r9 : 0000009c r8 : c7a773a0 r7 : 01000000 r6 : 60000013 r5 : c7a776f0 r4 : c7a773f0 r3 : f4424600 r2 : 00000000 r1 : 00000001 r0 : 00000001 Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel Control: 0005317f Table: a0004000 DAC: 00000017 Process swapper (pid: 1, stack limit = 0xc783e190) Stack: (0xc783fe08 to 0xc7840000) Signed-off-by: Peter Chen Reported-by: Fabio Estevam Tested-by: Fabio Estevam Acked-by: Shawn Guo Cc: #v4.1+ --- arch/arm/boot/dts/imx27.dtsi | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi index feb9d34..f818ea4 100644 --- a/arch/arm/boot/dts/imx27.dtsi +++ b/arch/arm/boot/dts/imx27.dtsi @@ -486,7 +486,10 @@ compatible = "fsl,imx27-usb"; reg = <0x10024000 0x200>; interrupts = <56>; - clocks = <&clks IMX27_CLK_USB_IPG_GATE>; + clocks = <&clks IMX27_CLK_USB_IPG_GATE>, + <&clks IMX27_CLK_USB_AHB_GATE>, + <&clks IMX27_CLK_USB_DIV>; + clock-names = "ipg", "ahb", "per"; fsl,usbmisc = <&usbmisc 0>; status = "disabled"; }; @@ -495,7 +498,10 @@ compatible = "fsl,imx27-usb"; reg = <0x10024200 0x200>; interrupts = <54>; - clocks = <&clks IMX27_CLK_USB_IPG_GATE>; + clocks = <&clks IMX27_CLK_USB_IPG_GATE>, + <&clks IMX27_CLK_USB_AHB_GATE>, + <&clks IMX27_CLK_USB_DIV>; + clock-names = "ipg", "ahb", "per"; fsl,usbmisc = <&usbmisc 1>; dr_mode = "host"; status = "disabled"; @@ -505,7 +511,10 @@ compatible = "fsl,imx27-usb"; reg = <0x10024400 0x200>; interrupts = <55>; - clocks = <&clks IMX27_CLK_USB_IPG_GATE>; + clocks = <&clks IMX27_CLK_USB_IPG_GATE>, + <&clks IMX27_CLK_USB_AHB_GATE>, + <&clks IMX27_CLK_USB_DIV>; + clock-names = "ipg", "ahb", "per"; fsl,usbmisc = <&usbmisc 2>; dr_mode = "host"; status = "disabled"; @@ -515,7 +524,6 @@ #index-cells = <1>; compatible = "fsl,imx27-usbmisc"; reg = <0x10024600 0x200>; - clocks = <&clks IMX27_CLK_USB_AHB_GATE>; }; sahara2: sahara@10025000 {