From patchwork Fri Dec 28 03:26:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 10744115 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B7D2313AD for ; Fri, 28 Dec 2018 03:26:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A467E28D48 for ; Fri, 28 Dec 2018 03:26:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9869D28E2D; Fri, 28 Dec 2018 03:26:21 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D36128D48 for ; Fri, 28 Dec 2018 03:26:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728700AbeL1D0N (ORCPT ); Thu, 27 Dec 2018 22:26:13 -0500 Received: from mail-eopbgr60050.outbound.protection.outlook.com ([40.107.6.50]:24039 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728495AbeL1D0N (ORCPT ); Thu, 27 Dec 2018 22:26:13 -0500 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=z0iSe9y5AS0B1OtkN47pomV626BFa1lDY1arvnlcNuw=; b=F9FZYO2/64ETECylncajzOD6Pp+Ui0Fn3VrhMFvh1ClXK9Uz4Qn/zBYED8dJy6NzHeSFVjuH9kcP0CWFCEfaawxR6iNlTexKpmloBp5BOTucJySF6k5hniTM53Sb1Mn1v9FyTCxu+qF7R981hzAT10u8S6VS+XPLXGANCmTFj00= Received: from VI1PR04MB5040.eurprd04.prod.outlook.com (20.177.50.97) by VI1PR04MB6047.eurprd04.prod.outlook.com (20.179.24.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1446.23; Fri, 28 Dec 2018 03:26:04 +0000 Received: from VI1PR04MB5040.eurprd04.prod.outlook.com ([fe80::cd3d:ce97:132b:7148]) by VI1PR04MB5040.eurprd04.prod.outlook.com ([fe80::cd3d:ce97:132b:7148%3]) with mapi id 15.20.1471.019; Fri, 28 Dec 2018 03:26:04 +0000 From: BOUGH CHEN To: "ulf.hansson@linaro.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "adrian.hunter@intel.com" , "rmk+kernel@armlinux.org.uk" CC: Fabio Estevam , dl-linux-imx , "linux-mmc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH v2 1/3] dt-bindings: mmc: fsl-imx-esdhc: add imx6ull compatible string Thread-Topic: [PATCH v2 1/3] dt-bindings: mmc: fsl-imx-esdhc: add imx6ull compatible string Thread-Index: AQHUnl0QX2S2IOSkb0K6pA5VMcybrw== Date: Fri, 28 Dec 2018 03:26:04 +0000 Message-ID: <20181228033323.32308-1-haibo.chen@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-clientproxiedby: HK2PR02CA0141.apcprd02.prod.outlook.com (2603:1096:202:16::25) To VI1PR04MB5040.eurprd04.prod.outlook.com (2603:10a6:803:59::33) authentication-results: spf=none (sender IP is ) smtp.mailfrom=haibo.chen@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.121.68.129] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR04MB6047;6:wjsVxaak5YwioKYAhPcpLtjtQf77STnAl3K8FEFPLtaNSjy2lMapyZhjAfPCK5UrYpeasm2kyxZVsOb8GjeTRp7oL+6hPkFR/pqj2wENVGpLPkaUQtRy+9pXnAdKx/ehtXLPZARJSVkj4i/tcmGYjLh0yg2N9DP4gunoTUVUepmc5RwrTCvpxPpo14MoGKXBvvMTMJ6wCpYknmtybVkzda2IXHwiOBqXNuu94fvFJfRvxZEs1yJMM33Z6mLeeOhNhpW+15+Lc4J/bNEQWTfBKT0Zw6PD0RYucj1JYjUM70e8JeZc/fW+iX+Mditq7jM46GSUDCTA6FrF3CnyM0KPdrh004+Y7N94qgdyPie8aUnAdY3sKNJBEtnZeCtx8+KL/m50T41dX3cnR4D6v4tAVwRo5scOUgK4V4vLAReeS8a9Cp4iz3xquskfHZmwyURVNjNYu2LcYZ4HPaOOZ7KZ/w==;5:oaU5fhzs1TWMZRz5IWPrCmnQ2ugK0R2rV7avf1ETs/7NmVqn9utzOvytJKpBZzjxKhMKIYnnxdJDKGD65GeYogyowr8R3NK2IBChbiqO9T/iKZxn5FtcSgc50r7nHFUOeFZw2In4AJGk+Z2QdKbpjCtBf4d0sg4VrwcXw1ztOtI=;7:DDv1juMPG8XWBnGriKtOCHaTlyDG9g7/cWQoKa7PNVg58/uvgIKIJowfai/zwCblBTb73nil8w5I3Bos+TZt+M0Q9BMx0UPhEFR/FueySXr3qRy9WDMxQF9igpMsntN7O8sOE3a3obAiynwlSQIsNg== x-ms-office365-filtering-correlation-id: 49ff9528-2ae6-4313-c253-08d66c7432aa x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600109)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB6047; x-ms-traffictypediagnostic: VI1PR04MB6047: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(8220051)(2401047)(8121501046)(10201501046)(3231475)(944501520)(52105112)(3002001)(93006095)(93001095)(6055026)(6041310)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB6047;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB6047; x-forefront-prvs: 09007040D4 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(396003)(366004)(39860400002)(346002)(136003)(199004)(189003)(2906002)(68736007)(7736002)(5660300001)(86362001)(36756003)(6116002)(3846002)(102836004)(8936002)(26005)(52116002)(81166006)(81156014)(386003)(6506007)(8676002)(186003)(106356001)(105586002)(305945005)(50226002)(71190400001)(71200400001)(478600001)(66066001)(53346004)(7416002)(25786009)(316002)(97736004)(14454004)(1076003)(6436002)(256004)(476003)(6486002)(54906003)(99286004)(110136005)(486006)(2201001)(6512007)(4326008)(2616005)(2501003)(53936002)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB6047;H:VI1PR04MB5040.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: lhe6RReqAyUmOD7HZKnadT6t8qRn7hkpyks05UAM3kmVTYliDOAOocOgVC5+4ZbFA4FUeaOXsWMU/m/1APXDwLRDYvk6AEEhHDHdCxAOu8RAiGNuF8E4UHg+WUtE7v069xAp3BQS6544IfOJNZB6rHMrvRvzuJI0U0/Q9mG9T5G2wZYBNjNwu+vkbuQ8r4PBGG/tRcGDdWIyDI00exoV0KGwFAUNZexT3GkQ2JvVAGOdWvOO34F4WoBGk2iKZ18/tdWny4qg+kBQ/ZCsseg8FNKerf5suDQX2pgpOa61DxPqqrvde3LG39GCCKLAF6DI spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 49ff9528-2ae6-4313-c253-08d66c7432aa X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Dec 2018 03:26:04.8246 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6047 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add imx6ull compatible string Signed-off-by: Haibo Chen Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt index 9201a7d8d7b0..540c65ed9cba 100644 --- a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt +++ b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt @@ -15,6 +15,7 @@ Required properties: "fsl,imx6q-usdhc" "fsl,imx6sl-usdhc" "fsl,imx6sx-usdhc" + "fsl,imx6ull-usdhc" "fsl,imx7d-usdhc" "fsl,imx8qxp-usdhc" From patchwork Fri Dec 28 03:26:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 10744117 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ECB3A14E2 for ; Fri, 28 Dec 2018 03:26:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE3C428D48 for ; Fri, 28 Dec 2018 03:26:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D210428E2D; Fri, 28 Dec 2018 03:26:21 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E28C28D81 for ; Fri, 28 Dec 2018 03:26:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728495AbeL1D0Q (ORCPT ); Thu, 27 Dec 2018 22:26:16 -0500 Received: from mail-eopbgr60050.outbound.protection.outlook.com ([40.107.6.50]:24039 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728713AbeL1D0Q (ORCPT ); Thu, 27 Dec 2018 22:26:16 -0500 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=plG2ljvco3nfMRnvaeCKdR7A1pffA/YItylBmxxDd0Q=; b=SpVGQoN8vcVcCrVhq+cGthBNYyE3Zu9qjI6T2HFVZ8S0IPHkTmN4FRYTBPo9k8Gl2BFXc0IiMjxBa6Urx5/1wQYSC+DJ4rlWtm92YslrxdSFznMUrZe9HhREWqV7gKfUYV0AWjQwNPuyDTZvWG4i9HoIc10sGzl3QPFw/K0GL0E= Received: from VI1PR04MB5040.eurprd04.prod.outlook.com (20.177.50.97) by VI1PR04MB6047.eurprd04.prod.outlook.com (20.179.24.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1446.23; Fri, 28 Dec 2018 03:26:10 +0000 Received: from VI1PR04MB5040.eurprd04.prod.outlook.com ([fe80::cd3d:ce97:132b:7148]) by VI1PR04MB5040.eurprd04.prod.outlook.com ([fe80::cd3d:ce97:132b:7148%3]) with mapi id 15.20.1471.019; Fri, 28 Dec 2018 03:26:10 +0000 From: BOUGH CHEN To: "ulf.hansson@linaro.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "adrian.hunter@intel.com" , "rmk+kernel@armlinux.org.uk" CC: Fabio Estevam , dl-linux-imx , "linux-mmc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH v2 2/3] mmc: sdhci-esdhc-imx: add SD clock limitation for imx6ull Thread-Topic: [PATCH v2 2/3] mmc: sdhci-esdhc-imx: add SD clock limitation for imx6ull Thread-Index: AQHUnl0Tx2I9di4OK0SPJzvWAKhVnA== Date: Fri, 28 Dec 2018 03:26:10 +0000 Message-ID: <20181228033323.32308-2-haibo.chen@nxp.com> References: <20181228033323.32308-1-haibo.chen@nxp.com> In-Reply-To: <20181228033323.32308-1-haibo.chen@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-clientproxiedby: HK2PR02CA0141.apcprd02.prod.outlook.com (2603:1096:202:16::25) To VI1PR04MB5040.eurprd04.prod.outlook.com (2603:10a6:803:59::33) authentication-results: spf=none (sender IP is ) smtp.mailfrom=haibo.chen@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.121.68.129] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR04MB6047;6:twCR9u+bBrhgOFkwtD0RmO1SY5W809HHH8wgrFhzHyBtiBsitUN9126hE4O0ZSzOlmRfsQN2me+El2HnJRpZyZpHi2osm9fmzNJu0kHJ6Fym9AuBVpTNBovLAp96FK2/adqShYB0fPkCGmLMpHmmGInG+lITiAAjQDQ7AXqtjRYahcBBJUmXOrg6T4MxstEGPfbRtsNVC89XQn3RuQVi47IanIss+0FbZPGUfXjO0USAi1MpOZHB+ix0Jyte2lciLaZMQfnl//mYh6r8DpdmC/MpMvIA8D2EAai3vLAIysLIuBEbwVcdPCJ2LXsrA8lD3NP6xnWLOwPKxAzHwgdpp+uvaD3r+KQ2/b/NmjWQqbwOfPE+UqoAFE/3WGZIynFbEdXWJl4pb7njV2SUUmmwc1P19tz0lLQ1GgSioYYk3BaxdnWGX5xKnETM2z/uHMrs3jXFCoInqRhIuivBF841AA==;5:d/Q7gc1bmz1QGQ6wkdSKCDlWOCkQ4jQV1zMjJEBDhdeteVnr8xIoxH8P576CNwamGzY+wbzws574kc6HdzD8zASSwhN5j9l+2i8AxkjbLGgZabyD1IgkXoGp0NToAlV1fS+6PFJphR4N01vg9S5w0XhmTmCAnrA8PakArwTi3s8=;7:ChjhmGFqS4hqALCX3Ybevx/u0gWwuugVjwfVmiFxfp2Qg/O+R2FNcyQwjP4NoN5b2wTYa9+bG2196FCA0aDGLsdQSGafCZYQ8aqzUhhIw+efWAjoES/ky+vhUP885JqItnUILbNwPZ+IIUYsQfHzwQ== x-ms-office365-filtering-correlation-id: ad826683-c679-4060-7e8d-08d66c743631 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600109)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB6047; x-ms-traffictypediagnostic: VI1PR04MB6047: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(8220051)(2401047)(8121501046)(10201501046)(3231475)(944501520)(52105112)(3002001)(93006095)(93001095)(6055026)(6041310)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB6047;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB6047; x-forefront-prvs: 09007040D4 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(396003)(366004)(39860400002)(346002)(136003)(199004)(189003)(2906002)(68736007)(7736002)(5660300001)(86362001)(36756003)(6116002)(3846002)(102836004)(8936002)(26005)(52116002)(81166006)(81156014)(386003)(6506007)(76176011)(8676002)(186003)(106356001)(105586002)(305945005)(446003)(50226002)(71190400001)(71200400001)(478600001)(66066001)(53346004)(7416002)(25786009)(316002)(11346002)(97736004)(14454004)(1076003)(6436002)(256004)(476003)(14444005)(6486002)(54906003)(99286004)(110136005)(486006)(2201001)(6512007)(4326008)(2616005)(2501003)(53936002)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB6047;H:VI1PR04MB5040.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: k2FRwqp1Mo7rF/xzxjpS24Q3x0DJIbjpWquUcx+3ovZT4aWkjj8Teyf57Jdt9+ZQ2Oa12zgyH3an+RamJZSUwDMo0N4Dhki20txHf6GcHcH8kLOJrm07lFtJOHhV4bQ5m8rEzWnmtZlhq2pfTsceyVErRL7lqr2/ujy6wOq7ECr8wnESsgBDGqFKtCttlh2KP5nmyE+nsn3SP7qQl6RziYLVdjPXlibBUnJ4/Qkvsa7nwYPTxFMkzzpqAV5nGc3h1iqf8ut8AW44xpraWZh++quV88ifdwoC1K5JPSP7gFwFArhXZRWm6eg3UWixF40x spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ad826683-c679-4060-7e8d-08d66c743631 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Dec 2018 03:26:10.3925 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6047 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP i.MX6ULL has errata ERR010450, point out that due to SOC I/O timing limitation, for eMMC HS200 and SD/SDIO 3.0 SDR104, the clock rate can't exceed 150MHz. And for eMMC DDR52 and SD/SDIO DDR50 mode, the clock rate can't exceed 45MHz. This patch add this limit for imx6ull. Signed-off-by: Haibo Chen Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-esdhc-imx.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 7cfcc8618e45..e1d9b2985979 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -138,7 +138,11 @@ #define ESDHC_FLAG_HS200 BIT(8) /* The IP supports HS400 mode */ #define ESDHC_FLAG_HS400 BIT(9) - +/* The IP has errata ERR010450 + * uSDHC: Due to the I/O timing limit, for SDR mode, SD card clock can't + * exceed 150MHz, for DDR mode, SD card clock can't exceed 45MHz. + */ +#define ESDHC_FLAG_ERR010450 BIT(10) /* A clock frequency higher than this rate requires strobe dll control */ #define ESDHC_STROBE_DLL_CLK_FREQ 100000000 @@ -177,6 +181,12 @@ static struct esdhc_soc_data usdhc_imx6sx_data = { | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200, }; +static struct esdhc_soc_data usdhc_imx6ull_data = { + .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING + | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200 + | ESDHC_FLAG_ERR010450, +}; + static struct esdhc_soc_data usdhc_imx7d_data = { .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200 @@ -227,6 +237,7 @@ static const struct of_device_id imx_esdhc_dt_ids[] = { { .compatible = "fsl,imx6sx-usdhc", .data = &usdhc_imx6sx_data, }, { .compatible = "fsl,imx6sl-usdhc", .data = &usdhc_imx6sl_data, }, { .compatible = "fsl,imx6q-usdhc", .data = &usdhc_imx6q_data, }, + { .compatible = "fsl,imx6ull-usdhc", .data = &usdhc_imx6ull_data, }, { .compatible = "fsl,imx7d-usdhc", .data = &usdhc_imx7d_data, }, { /* sentinel */ } }; @@ -733,6 +744,14 @@ static inline void esdhc_pltfm_set_clock(struct sdhci_host *host, | ESDHC_CLOCK_MASK); sdhci_writel(host, temp, ESDHC_SYSTEM_CONTROL); + if (imx_data->socdata->flags & ESDHC_FLAG_ERR010450) { + unsigned int max_clock; + + max_clock = imx_data->is_ddr ? 45000000 : 150000000; + + clock = min(clock, max_clock); + } + while (host_clock / (16 * pre_div * ddr_pre_div) > clock && pre_div < 256) pre_div *= 2; From patchwork Fri Dec 28 03:26:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 10744119 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D5EED924 for ; Fri, 28 Dec 2018 03:26:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C978B28D48 for ; Fri, 28 Dec 2018 03:26:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD4DC28D81; Fri, 28 Dec 2018 03:26:22 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D58628E1C for ; Fri, 28 Dec 2018 03:26:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731182AbeL1D0V (ORCPT ); Thu, 27 Dec 2018 22:26:21 -0500 Received: from mail-eopbgr60083.outbound.protection.outlook.com ([40.107.6.83]:30522 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728713AbeL1D0U (ORCPT ); Thu, 27 Dec 2018 22:26:20 -0500 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=0WKMJDJ4zFL73UxJ9B4P6uMjXe9wcqTVkB4b8CIT4H8=; b=MaY+tEB4DnEOTz02QM3B1255AslYnXM5pbIFOkxKN1OH6YVoqi6bUmr6WK4jpBgu7ho+B+WEHcduyknfTO7uEE4zZaResTAGY8y34+glhY3nr65Fxv7umAgXz+Nds/RGuR8hHQ3OVLJmHEjS4m+GSWnjiJTe39I4i8evtA4Z2MI= Received: from VI1PR04MB5040.eurprd04.prod.outlook.com (20.177.50.97) by VI1PR04MB6047.eurprd04.prod.outlook.com (20.179.24.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1446.23; Fri, 28 Dec 2018 03:26:16 +0000 Received: from VI1PR04MB5040.eurprd04.prod.outlook.com ([fe80::cd3d:ce97:132b:7148]) by VI1PR04MB5040.eurprd04.prod.outlook.com ([fe80::cd3d:ce97:132b:7148%3]) with mapi id 15.20.1471.019; Fri, 28 Dec 2018 03:26:16 +0000 From: BOUGH CHEN To: "ulf.hansson@linaro.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "adrian.hunter@intel.com" , "rmk+kernel@armlinux.org.uk" CC: Fabio Estevam , dl-linux-imx , "linux-mmc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH v2 3/3] ARM: dts: imx6ull: change to use new compatible "fsl,imx6ull-usdhc" for usdhc Thread-Topic: [PATCH v2 3/3] ARM: dts: imx6ull: change to use new compatible "fsl,imx6ull-usdhc" for usdhc Thread-Index: AQHUnl0XSZn1LiPUw0Ku0PNeBt+ZMQ== Date: Fri, 28 Dec 2018 03:26:16 +0000 Message-ID: <20181228033323.32308-3-haibo.chen@nxp.com> References: <20181228033323.32308-1-haibo.chen@nxp.com> In-Reply-To: <20181228033323.32308-1-haibo.chen@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-clientproxiedby: HK2PR02CA0141.apcprd02.prod.outlook.com (2603:1096:202:16::25) To VI1PR04MB5040.eurprd04.prod.outlook.com (2603:10a6:803:59::33) authentication-results: spf=none (sender IP is ) smtp.mailfrom=haibo.chen@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.121.68.129] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR04MB6047;6:q+fCLKB8WDczR9Ul1DNfgKC/nRN/p4SdzpqQLPYWKAwn1xLTESrmcFTDOCHSq5WKyn4THaNOfGq3KlX4Eci/w0PHjiF8cwW2hhZoZ/SgvYhRqd5U1k7pd9vuCbJ+BiROpAM9DcJN8U0iOYc2DsdcLCBuVWM9u6ELkWJBHnpz7KLWHftudFqo5hyXlGX89aFntRpBmDEmsU/xaODJjBqZTBdiOrrFNzo+w40QtM1axHpDG5Fl1l88IawXerfYc4WNitONEANvZ3vkC1+GasfHC2HIGaDwlW2Uz8z3byxsjABrzhXzbcUdRL22q60SwGavwOOc1VAPAz3LYAUumPDEUFwdP3hMVa4BgWtacQXNGMm13dze1IAIm9DuoFJ8wHaF6WpY8tXO8ZOqsivvC7YsZsescRchFpMK5NedTWJt5Y7LlLAJ9PWLfzlTQLlQyrfhqTcKxX+hafUEZSth2wQnMw==;5:Q1zJ+g3jpVLeqkCw0pNQVQZN21qibU27u+1VcP/e61IVLE+DgFGrC7BeIAvvSPGgcW94e/PS9n+4QImrBVEQxMkdZcDk+lu8BegzpMtxP4LNc+M6GXH1x29OmafbhQxvOU4CSvQi9ola3UpGmWbkOdUmo5TO379hv+xNF1Pv8zg=;7:T+Jm7dnDj/xZGs216ez8ASx1Esj2woCCGU9FG4MSc0BEEuPRuL1gojycuyugxtLG89LPuS26AFbDZ2EBROv2UDtoyxSjEVHTT+XaZ9/ogMSRpF98twwaUZcRdYI1tD9wEeh/E/m8Qc2W8EpUrXOXng== x-ms-office365-filtering-correlation-id: da8bcf94-5cc4-4d52-1b44-08d66c743981 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600109)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB6047; x-ms-traffictypediagnostic: VI1PR04MB6047: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(8220051)(2401047)(8121501046)(10201501046)(3231475)(944501520)(52105112)(3002001)(93006095)(93001095)(6055026)(6041310)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB6047;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB6047; x-forefront-prvs: 09007040D4 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(396003)(366004)(39860400002)(346002)(136003)(199004)(189003)(2906002)(68736007)(7736002)(5660300001)(86362001)(36756003)(6116002)(3846002)(102836004)(8936002)(26005)(52116002)(81166006)(81156014)(386003)(6506007)(76176011)(8676002)(186003)(106356001)(105586002)(305945005)(446003)(50226002)(71190400001)(71200400001)(478600001)(66066001)(53346004)(7416002)(25786009)(316002)(11346002)(97736004)(14454004)(1076003)(6436002)(256004)(476003)(14444005)(6486002)(54906003)(99286004)(110136005)(486006)(2201001)(6512007)(4326008)(2616005)(2501003)(53936002)(142933001)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB6047;H:VI1PR04MB5040.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: /muYwXH8qNV0L0+yhbtnHlL1poRTmfC2CBhLwsWq4px1N9kwpixatsM4DoqJFRJg/jXkv7oUlnJmRiDjJF255XIqgw6g4PU4vjJIt0jb2WI6ysa1xnAJ7xaandE3h9X6rKkbjxlhtElgoOW81+o/azyUbKSmgLlmJkG2jthhs379wVf8vgNIHWkthcGUWnrklDFva1qZlW1nY+aFj5bannFw45n0ypTrOKa8el3LTAuS44Pqw5eC1ufRWBzHkAGA8O30C22Kpwn2kD0STG1r5V0PEk0qnShxeUFIl/XLMbNtQrY49YDWogKWDgIDeIIj spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: da8bcf94-5cc4-4d52-1b44-08d66c743981 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Dec 2018 03:26:16.0905 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6047 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP i.MX6ULL has errata ERR010450, there is I/O timing limitation, for SDR mode, SD card clock can't exceed 150MHz, for DDR mode, SD card clock can't exceed 45MHz. This patch change to use the new compatible "fsl,imx6ull-usdhc" to follow this limitation. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx6ull.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/imx6ull.dtsi b/arch/arm/boot/dts/imx6ull.dtsi index f3668fe69eac..4ad58283a9f4 100644 --- a/arch/arm/boot/dts/imx6ull.dtsi +++ b/arch/arm/boot/dts/imx6ull.dtsi @@ -30,6 +30,14 @@ >; }; +&usdhc1 { + compatible = "fsl,imx6ull-usdhc", "fsl,imx6sx-usdhc"; +}; + +&usdhc2 { + compatible = "fsl,imx6ull-usdhc", "fsl,imx6sx-usdhc"; +}; + / { soc { aips3: aips-bus@2200000 {