From patchwork Thu Dec 20 07:49:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 10738571 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 623BA14E5 for ; Thu, 20 Dec 2018 07:49:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56306284F1 for ; Thu, 20 Dec 2018 07:49:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49C19284F9; Thu, 20 Dec 2018 07:49:47 +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 32725284FF for ; Thu, 20 Dec 2018 07:49:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727829AbeLTHto (ORCPT ); Thu, 20 Dec 2018 02:49:44 -0500 Received: from mail-eopbgr130043.outbound.protection.outlook.com ([40.107.13.43]:45906 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729096AbeLTHtn (ORCPT ); Thu, 20 Dec 2018 02:49:43 -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=tQ0pFpsAui/9mayKVhjO95qkzPU9HoYx7HCHfcpuOKc=; b=lEdP5tBVXv+8xIJNEVQ4UP86sBH663OfcavC7qm7W53AUY48+peLnhMUNlIEpeRBuHRro6LKmdawDXDwq69xdoXaVqCERUKYpp+AMj0a7sAfCRkDdMd2PPnFrMMNbZfrgzOwkebMpIegvaNMhWknN+AfT3P9FzTv2qxhQHu81kc= Received: from VI1PR04MB5040.eurprd04.prod.outlook.com (20.177.50.97) by VI1PR04MB2158.eurprd04.prod.outlook.com (10.166.43.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1446.17; Thu, 20 Dec 2018 07:49:38 +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.1446.018; Thu, 20 Dec 2018 07:49:38 +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" , Fabio Estevam , "adrian.hunter@intel.com" CC: dl-linux-imx , "linux-mmc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH 1/3] dt-bindings: mmc: fsl-imx-esdhc: add imx6ull compatible string Thread-Topic: [PATCH 1/3] dt-bindings: mmc: fsl-imx-esdhc: add imx6ull compatible string Thread-Index: AQHUmDiOtUFXPIG7hEqnrPtukWPVZQ== Date: Thu, 20 Dec 2018 07:49:37 +0000 Message-ID: <1545292612-14471-1-git-send-email-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 1.9.1 x-clientproxiedby: HK0PR03CA0025.apcprd03.prod.outlook.com (2603:1096:203:2f::13) 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;VI1PR04MB2158;6:yzcpPIIyZUHD8px/fStJ09LNlWL/jGkuCxNetubXEkOBoHhMHdKWdttTfnza6RhNpSivAvybBurj0pNzo0QJsrr+lEncPJRv4XYGVZmd8+Mlx0F9aF4LTMo8hSKBXuaDzx9ajIdeklws5FF+Srx7ZBomw7KF1KjD0AD8O3MIuLIY+zmwZDMZfQuV2fE2bRWvv8L0N6L/zeRyIxSBkswAjIkEBuQy7PEwov9TLkuxdGlXQeTxly9HaC7YPAHcZVRkswfSFw4yHHXkbrLDmcYBj8nyf1zMiRiap5e0Ix4V9u3LcJfYUEyY51iLb/Y/YNgVQgHAa/D/J0kPWtZp9ALIjLBdaiFSSfcI5UBDEBpooh3Pv+apiSRm/CltO8kLUld7P+3eh7kjlBaiYR14jG4RJCuRRIymF1VErSzTrXuFYhx2Dr9a+SaZ6RH1VmwEllQgmxZ/oFot5k/HYoN7CqGCIA==;5:fC7okjicp7Tzu5NVfi8rLIMCjjVdz9c0gf8taGLAD9ILFi4OwT9fcyEBYJj/utzN3Iw6XeOwvGM6luV2BavcQ/guZAAKhT5hzE+3K7Ve5dBCABYZwCIMKgwSWBchjZOsOJCV0C2Une7JBsGq41etMO1AvvqlfhVqzDxZ2ILvmkI=;7:ag15dB8as5lYJFT1624AMpMWzaRgn3gpg0mrLtQh5rl7F2SliLFxmC7AgO5xc2fsg+0848OEGKMBiIB47JdOkZavJyFTY3QJDQNtSkgDgjvhVHVpbilwWdd8XKbonRMG7zeYw9SokgjU9lgHg56zCg== x-ms-office365-filtering-correlation-id: 240c5be4-fbad-4ddb-d155-08d6664fb0b0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB2158; x-ms-traffictypediagnostic: VI1PR04MB2158: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(999002)(5005026)(6040522)(2401047)(8121501046)(93006095)(93001095)(3231475)(944501520)(52105112)(3002001)(10201501046)(6055026)(149066)(150057)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB2158;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB2158; x-forefront-prvs: 0892FA9A88 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(396003)(366004)(376002)(136003)(346002)(189003)(199004)(50226002)(2501003)(71200400001)(71190400001)(81166006)(25786009)(316002)(6116002)(36756003)(3846002)(386003)(2616005)(476003)(486006)(256004)(102836004)(99286004)(14454004)(6506007)(66066001)(26005)(97736004)(7416002)(7736002)(186003)(105586002)(81156014)(8676002)(6486002)(2906002)(8936002)(5660300001)(106356001)(53936002)(6512007)(305945005)(52116002)(86362001)(110136005)(478600001)(68736007)(6436002)(53346004)(54906003)(2201001)(4326008)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB2158;H:VI1PR04MB5040.eurprd04.prod.outlook.com;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-antispam-message-info: cdAP+INcz/xZVN3gP4pTBy9BedyDUjdLe138IgtUNtr+ZoXTy+tOea2lJGzThodoILzyKiEm1kzDfM31gCM2+WFJyrd7k0EZ8Zw5BGrD5CJciSzkh4qa00BBoW1jVyGhwryxNcNA+5kQZ/JLYgcv4cNJEYHThkr/OQ8GxATofh6iloWjLEH4yIg9WvniogsmfvQEzvV14sQZhpLRFj5LLCHGPGS8+MsxcZbdKSObQmoqinnpkcCtBSE558RDLgEAynKBClzoRsJoLbeiJBK+ASmzTICbQgf64ZmiuyexjBrFZ/kdQvbpCgslk/x+JIA/ spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 240c5be4-fbad-4ddb-d155-08d6664fb0b0 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2018 07:49:38.0086 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB2158 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 --- 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 9201a7d..540c65e 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 Thu Dec 20 07:49:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 10738579 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 BF0E8161F for ; Thu, 20 Dec 2018 07:50:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2447285E3 for ; Thu, 20 Dec 2018 07:50:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5EE728662; Thu, 20 Dec 2018 07:50:33 +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 3ED7D285E3 for ; Thu, 20 Dec 2018 07:50:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729586AbeLTHuc (ORCPT ); Thu, 20 Dec 2018 02:50:32 -0500 Received: from mail-eopbgr60078.outbound.protection.outlook.com ([40.107.6.78]:60472 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730653AbeLTHuc (ORCPT ); Thu, 20 Dec 2018 02:50:32 -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=4eyy/MrXmAaSLJse9sJv3PoitvJZRCIrqVlFD9uN0f0=; b=pzlIRktVwM6TgmBiuYavKd1KqiC15vCV56MYbcSnfXI5Dew1j2CSBtZqEzszyIvTSKecTD0X5JZhV4nLEaIg/jfTen1cdc2nrTJrSNSoQtgMNNPO7sXjv4A6Z3u3Br1yymLBPFxzPiznAX9/vc13h4gsMnxmPMnymXtLhtwPgnA= Received: from VI1PR04MB5040.eurprd04.prod.outlook.com (20.177.50.97) by VI1PR04MB4319.eurprd04.prod.outlook.com (52.134.122.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.20; Thu, 20 Dec 2018 07:49:46 +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.1446.018; Thu, 20 Dec 2018 07:49:46 +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" , Fabio Estevam , "adrian.hunter@intel.com" CC: dl-linux-imx , "linux-mmc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH 2/3] mmc: sdhci-esdhc-imx: add SD clock limitation for imx6ull Thread-Topic: [PATCH 2/3] mmc: sdhci-esdhc-imx: add SD clock limitation for imx6ull Thread-Index: AQHUmDiTyHn+7tGsDkmINmEMtso26w== Date: Thu, 20 Dec 2018 07:49:46 +0000 Message-ID: <1545292612-14471-2-git-send-email-haibo.chen@nxp.com> References: <1545292612-14471-1-git-send-email-haibo.chen@nxp.com> In-Reply-To: <1545292612-14471-1-git-send-email-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 1.9.1 x-clientproxiedby: HK0PR03CA0025.apcprd03.prod.outlook.com (2603:1096:203:2f::13) 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;VI1PR04MB4319;6:86MvgBe15WyCYE21Sk8qKGmCnLRqo+GXSt2dXbaM3GXtQaRakN5xv1yJlnRPtMQavqCoujFMME8h5b2QoyO/NHoWwGSgya+rGjzZ2gQFwjixwqbaSX2La7MRYSBEGHmADcppP4W00H3lKoSCWr+qW97iZO6rZ6hDaNYFe6CUX55gK69EK/jIu1YMP2MQg3ByHSyhRsL8fQZsFFYBuR8gGso64eZ8olknm7cUK5S62ly9eiWRI86RlcBOxmrT5QQ4CcJn55/4G6o+O8PJIFmjFu4zdhYuQLegJ0iMzwTKLAnJnxnpxomufmM+nZeCPmKE/KFhaMOmPr8I/ajTp2qD2TFWiWDWTB1Z+I9NNtieoJ8ZjvH0YX5PXEn+SgnbCMyjcj0U2IgXNGmt+fgbCqx5NXPjQYNd8CLeKG6l9CBUdbzaOEtIn77Rv8MHLFYTs0+zOpgRVJE+s9Ivr//SzFrYqA==;5:uK8JaU1YwF/XU6GtKmNmhvkxZvkiWJqp0tJZYkIXscWJIwd7XxGT/1DF7bjKQ96p59WYNaAYefnEFvrM0rx8yMJUbDG6rcqBU2oPEDRVw+mpo4UUTLfJ4wi6CQVKJ39nemRZbwGtB3/AqcXjoMEDaEn7WeNASdurv/U+UbIXOPg=;7:OG8m4uu30oBtc0pMIxtWXZsPe0+tAan64dO0oxGsKwD0KbU5ywU9IREbRa7vKwDIhBVpdRwGdNKsRP4MSF9mD2YTlNkoyPh5H+XLd9O9YW72pHZ2NDiOT7rUrsvutplHYIbeMoE1F+j5NANduq/Qmg== x-ms-office365-filtering-correlation-id: 5d3c1ed6-b6a0-477e-59b8-08d6664fb615 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB4319; x-ms-traffictypediagnostic: VI1PR04MB4319: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(999002)(5005026)(6040522)(2401047)(8121501046)(10201501046)(3002001)(3231475)(944501520)(52105112)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB4319;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB4319; x-forefront-prvs: 0892FA9A88 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(396003)(366004)(39860400002)(376002)(136003)(199004)(189003)(305945005)(6436002)(6486002)(7416002)(105586002)(7736002)(106356001)(386003)(6506007)(2501003)(14444005)(76176011)(52116002)(3846002)(6116002)(102836004)(54906003)(110136005)(316002)(256004)(53936002)(53346004)(86362001)(446003)(8936002)(476003)(575784001)(5660300001)(66066001)(478600001)(81166006)(99286004)(6512007)(2616005)(8676002)(11346002)(486006)(4326008)(81156014)(68736007)(71190400001)(97736004)(186003)(2201001)(26005)(71200400001)(50226002)(14454004)(2906002)(25786009)(36756003)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4319;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-microsoft-antispam-message-info: kmgNAxu8nXe8xiG7ddzW9MoNVYfq9gA/NhiBOIGeDLbkpzb7ID60BSCtWdh3TEoEYr7nPNdsd+ytdDdrhq0AHhKAjYpgCAd7nyNKharzmvRmGvDjuc48/g8UICmNED8FpcK9lhvZ7BGRL7x+bOQJiduhyggMzJIWk/oSVJHebvwZIUk8gt90l739nA4GwAm18YLwm0RlW+EKD2wNPx555QsGpvYzC7yFb6+F5ASBWfHoGUWQ14iqcZbWi4VvgOiKZFqX2w4JxboQZy7rJTHMeFjywHmtCmpO8TeznSEIy3AHdWLFgG/m13NdJIW8qqsQ spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5d3c1ed6-b6a0-477e-59b8-08d6664fb615 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2018 07:49:46.9030 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4319 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 Nacked-by: Russell King --- drivers/mmc/host/sdhci-esdhc-imx.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index d0d3193..75a2484 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 @@ struct esdhc_soc_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 @@ struct pltfm_imx_data { { .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,12 @@ 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) { + if (imx_data->is_ddr) + clock = clock > 45000000 ? 45000000 : clock; + else + clock = clock > 150000000 ? 150000000 : clock; + while (host_clock / (16 * pre_div * ddr_pre_div) > clock && pre_div < 256) pre_div *= 2; From patchwork Thu Dec 20 07:49:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 10738577 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 22E881399 for ; Thu, 20 Dec 2018 07:50:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15BF3285E3 for ; Thu, 20 Dec 2018 07:50:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 090C828662; Thu, 20 Dec 2018 07:50:33 +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 B3B21285E3 for ; Thu, 20 Dec 2018 07:50:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729096AbeLTHuc (ORCPT ); Thu, 20 Dec 2018 02:50:32 -0500 Received: from mail-eopbgr60048.outbound.protection.outlook.com ([40.107.6.48]:33856 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725306AbeLTHuc (ORCPT ); Thu, 20 Dec 2018 02:50:32 -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=3Bycp1YZ8o0VPWLfotuzwbZYOoNfemcHZhKaClerHYc=; b=K+1iHthW7687Ks3MliZWLNTwh118yaK18hkYntKW0RchUiL9ByYV5CmdjsaVnw2n1RMK6YIe7CTDIGeSrX4U8ZqSbt0r+N7W0E743YGcSJdTmLYCb72xAw8H1xW/6glaK6/kStztS9FwTMRy0dROHCXEHgrG1j+U6dpCptwfqg8= Received: from VI1PR04MB5040.eurprd04.prod.outlook.com (20.177.50.97) by VI1PR04MB4319.eurprd04.prod.outlook.com (52.134.122.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.20; Thu, 20 Dec 2018 07:49:55 +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.1446.018; Thu, 20 Dec 2018 07:49:55 +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" , Fabio Estevam , "adrian.hunter@intel.com" CC: dl-linux-imx , "linux-mmc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH 3/3] ARM: dts: imx6ull: change to use new compatible "fsl,imx6ull-usdhc" for usdhc Thread-Topic: [PATCH 3/3] ARM: dts: imx6ull: change to use new compatible "fsl,imx6ull-usdhc" for usdhc Thread-Index: AQHUmDiZPrzcvBlVt0CVYqojn1jKlA== Date: Thu, 20 Dec 2018 07:49:55 +0000 Message-ID: <1545292612-14471-3-git-send-email-haibo.chen@nxp.com> References: <1545292612-14471-1-git-send-email-haibo.chen@nxp.com> In-Reply-To: <1545292612-14471-1-git-send-email-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 1.9.1 x-clientproxiedby: HK0PR03CA0025.apcprd03.prod.outlook.com (2603:1096:203:2f::13) 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;VI1PR04MB4319;6:FOJu7b81CS0AM1ukaTArTS67K2nA46dKlQbrE8u1DAMGOwUrhgmTkJgrr1V5HyZZwLRJivDm5OMxRSf9r2MeZVaEvnKsbYqPhL4Zfv9c34BU4DUQ4RyBm2whqi07MqFjXbYcnQpJ6pjPQeH1YZS40aru4KMPopdpRivCAYHYhvTwIg3HdRoCVI4H6jiQSl1TXhlXz4NUj4o65aKwA7hR9X7pOQZ73kwojrzx9/1OFGwIY0X5Lw/226zOBW6VIyRhJdz4U9W/Wbg1jaT/NsVuj6oZx/bnvOev8FCQJHTQovObfbgo45tcmjlX4Ns7fyGBe9bRZc+SW/6ELj8u6HUaaUOj87pveuWf+fLw2dLdEQR1qwArDBaFJTcmYkrgq0E+ZSHCM3sS7ril7wSF4gwLrs7aBGNV66x7+YvH3CmvbTpCQWxSQ+AL/1UAzNCbILEpotoTOMzgHf26tXHJiqVXpQ==;5:GifqAZf4eMceHCJyzQrBwKyS/HxEE8c4AO80RCU1G/KzfE8m79s1Rg5+ymER4FjQx57eQAU+UZryLyikIK2ZxsaeyrLeQKDtgioTDrDIB8yIJG8jE9udkNeLPeVKdeFRAfv2emCmi6sq4SqF6YnE1gfkB5igyBY8Exd2tSnlyc8=;7:wr/BgzhPE8UT6NkrIQ3dCHY3bJlb7mFflEwmBTwjdUu7l//YC0UyXoN7qoIMjtXuhVx7xSvk+zwP6TXCRt+BKFk6TsOy8AWIrKPaEEDWKE58hNINAw5Qsbev6wpBKoq4UXXY8ugdOTKwtnyaaGzN1g== x-ms-office365-filtering-correlation-id: 73c603ce-4de7-4ae9-6505-08d6664fbb4a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB4319; x-ms-traffictypediagnostic: VI1PR04MB4319: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(999002)(5005026)(6040522)(2401047)(8121501046)(10201501046)(3002001)(3231475)(944501520)(52105112)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB4319;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB4319; x-forefront-prvs: 0892FA9A88 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(396003)(366004)(39860400002)(376002)(136003)(199004)(189003)(305945005)(6436002)(6486002)(7416002)(105586002)(7736002)(106356001)(386003)(6506007)(2501003)(14444005)(76176011)(52116002)(3846002)(6116002)(102836004)(54906003)(110136005)(316002)(256004)(53936002)(53346004)(86362001)(446003)(8936002)(476003)(5660300001)(66066001)(478600001)(81166006)(99286004)(6512007)(2616005)(8676002)(11346002)(486006)(4326008)(81156014)(68736007)(71190400001)(97736004)(186003)(2201001)(26005)(71200400001)(50226002)(14454004)(2906002)(25786009)(36756003)(32563001)(142933001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4319;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-microsoft-antispam-message-info: ILQf0rQEp8rlORbZSQ+KGmRw1GAzzDXwZuC2ydTbexwE2QpXOGtGu1NwP0t7Te7xKB6C3oBp/cwC4sGibG8GiyDTahvGCyJrG3HsmJ/mydByBpskPuOCAZSoCAhtnwZcl63iR5dZfTN2oexqFgBWVQR2+6gZCqwZ5JGwsVje9UUkNJZwrXnQLsA08MO7+jqpDJ0z7s2CDtwtM9hKg19Jv6/lZX9q4tNgBISc5RNHVQ28mSdJW2ESA4hcu5GpGGC354ZE5DptOCrToBAS72YrkOOKFSzD4amwDmLTvaYzh6lSsEoq2PMWUFcyFgnEWAr8 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73c603ce-4de7-4ae9-6505-08d6664fbb4a X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2018 07:49:55.6162 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4319 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 f3668fe..4ad5828 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 {