From patchwork Tue Apr 23 11:42:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 10912837 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 4B037922 for ; Tue, 23 Apr 2019 11:43:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39E4F285B3 for ; Tue, 23 Apr 2019 11:43:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D36D28846; Tue, 23 Apr 2019 11:43:06 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham 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 90707285B3 for ; Tue, 23 Apr 2019 11:43:05 +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: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:In-Reply-To:References: List-Owner; bh=7yvuP95Hk4tptEFlJCrduB3OQj5zin2WutWJvawKetQ=; b=buS55DdKVOfvPp EXozYfAvTcv8q9HVMRhJlsjexwOIWGoMIcoCMLsw48F7g76QJMhT+RRA2n3TE4cY4odSPo2Z+oo4k 50vz5dZ2Q/3pIE8B8KJyY3fZex2M48ZtEXyauhNJKdw6FLl2H5nErg0gzy7h86fO4HoxLwik3L77g LL55vIiqxgzejQpgGY3HkVftL4wr4Nd3XNaNJsupxdIVpTghgi+/BZDDTWQLPin2xhOFgRK6fAy+W jyDRyODVEkIzIIfGjS7nKUHKsy/eT/rEwWjREB2/rxzh5NB3unkdmW0nT0Pv1XLHgk36kCYPMEvJj ZWJF8ugJHOa99z49gcSw==; 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 1hItpD-00087q-N3; Tue, 23 Apr 2019 11:42:59 +0000 Received: from mail-eopbgr00052.outbound.protection.outlook.com ([40.107.0.52] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hItpA-000863-8S for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2019 11:42:57 +0000 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=jEV7n+bHzMn4A2hVFaRREL7227tLQLxYpjs0xn5Cdbc=; b=qHVCqelCUO1ssUFScOsRB42uov81o29FBeNwrL/CJ6whdu68p0PRoiHTH+BbW+aUf4I0CI8LPhBW4Ua1yjQ8GZj2IT1N/9s+8vHfJNtfAxPkJRqLx8n+2HvIAKxI8/Pb+cjm09+66nvYA9xqB++AMz42HcmpKaZX9gBNP8qklr4= Received: from VI1PR04MB4158.eurprd04.prod.outlook.com (52.133.15.33) by VI1PR04MB4878.eurprd04.prod.outlook.com (20.177.49.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.17; Tue, 23 Apr 2019 11:42:51 +0000 Received: from VI1PR04MB4158.eurprd04.prod.outlook.com ([fe80::8015:ec84:d721:b566]) by VI1PR04MB4158.eurprd04.prod.outlook.com ([fe80::8015:ec84:d721:b566%5]) with mapi id 15.20.1813.017; Tue, 23 Apr 2019 11:42:51 +0000 From: Yinbo Zhu To: Shawn Guo , Leo Li , Rob Herring Subject: [PATCH v1] arm64: ls1028: dtsi: Add esdhc node in dtsi Thread-Topic: [PATCH v1] arm64: ls1028: dtsi: Add esdhc node in dtsi Thread-Index: AQHU+cmuEJQ1seVcO0uOXKGj5Q3IFw== Date: Tue, 23 Apr 2019 11:42:50 +0000 Message-ID: <20190423114424.3578-1-yinbo.zhu@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK2PR0302CA0019.apcprd03.prod.outlook.com (2603:1096:202::29) To VI1PR04MB4158.eurprd04.prod.outlook.com (2603:10a6:803:46::33) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yinbo.zhu@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8f19f5e0-25cb-4e13-33b0-08d6c7e0d09f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:VI1PR04MB4878; x-ms-traffictypediagnostic: VI1PR04MB4878: x-microsoft-antispam-prvs: x-forefront-prvs: 0016DEFF96 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(376002)(39860400002)(346002)(396003)(199004)(189003)(73956011)(66446008)(66946007)(36756003)(6486002)(71190400001)(66556008)(2906002)(97736004)(71200400001)(64756008)(53936002)(66476007)(102836004)(316002)(6506007)(25786009)(54906003)(256004)(110136005)(386003)(44832011)(3846002)(81156014)(81166006)(68736007)(26005)(6116002)(8676002)(52116002)(14444005)(8936002)(6512007)(14454004)(186003)(4326008)(486006)(1076003)(305945005)(86362001)(5660300002)(6436002)(7736002)(476003)(99286004)(478600001)(50226002)(66066001)(2616005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4878; H:VI1PR04MB4158.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: TnvfVIWPirgPSEZoSckWp0GSNRwGS2BfMTif4ILHU7Rt1oEOpW+exF0uml4oFhhn63rsbbw3ppGZRVuTOhpxK/sHmnpzt64AbO0sdfJVtSyfNfuM0xZpb7plxNYVUH4SY5Tm/C0YxKwJrtq1vkcrzTEaVnzSy0yM3liedXD/mrn4d8eaF86VljqzLF5nrRrREinCsvfs7qP1mdK8zpI2ctFSfnseGLNNiGLVGvCRBWNsS+fO4qpFVWSHqBaZ3FVABP3kUpEV4Bdsv0XVTt4gyAn0yCgwtW5TRVT13bWfrwcFxkdK9ChI7CIJ0Y5l3l9vQepyxZ0K7asbxbiN45E64Mt/ap5xl5PxjmVHwLqrrUHwqa2a4JiJxRW/DjYxo1aAmjAq05Enr+EkSi2lypu/Q7TCr5F7mv5zMagIpnz5wCo= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8f19f5e0-25cb-4e13-33b0-08d6c7e0d09f X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Apr 2019 11:42:50.9842 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4878 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190423_044256_306674_AE5658F5 X-CRM114-Status: GOOD ( 12.73 ) 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: Mark Rutland , "devicetree@vger.kernel.org" , Ashish Kumar , "linux-mmc@vger.kernel.org" , Xiaobo Xie , "linux-kernel@vger.kernel.org" , "Y.b. Lu" , Yinbo Zhu , Jiafei Pan , "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 From: Ashish Kumar This patch is to add esdhc node and enable SD UHS-I, eMMC HS200 for ls1028ardb/ls1028aqds board. Signed-off-by: Ashish Kumar Signed-off-by: Yangbo Lu Signed-off-by: Yinbo Zhu --- .../boot/dts/freescale/fsl-ls1028a-qds.dts | 8 ++++++ .../boot/dts/freescale/fsl-ls1028a-rdb.dts | 13 +++++++++ .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 27 +++++++++++++++++++ 3 files changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts index 14c79f4691ea..180e5d2a00d1 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts @@ -42,6 +42,14 @@ status = "okay"; }; +&esdhc { + status = "okay"; +}; + +&esdhc1 { + status = "okay"; +}; + &i2c0 { status = "okay"; diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts index f86b054a74ae..1bfaf4294db4 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts @@ -30,6 +30,19 @@ }; }; +&esdhc { + status = "okay"; + sd-uhs-sdr104; + sd-uhs-sdr50; + sd-uhs-sdr25; + sd-uhs-sdr12; + }; + +&esdhc1 { + status = "okay"; + mmc-hs200-1_8v; + }; + &i2c0 { status = "okay"; diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index 2896bbcfa3bb..d13cd3fb455b 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -274,6 +274,33 @@ status = "disabled"; }; + esdhc: esdhc@2140000 { + compatible = "fsl,ls1028a-esdhc", "fsl,esdhc"; + reg = <0x0 0x2140000 0x0 0x10000>; + interrupts = <0 28 0x4>; /* Level high type */ + clock-frequency = <0>; + clocks = <&clockgen 2 1>; + voltage-ranges = <1800 1800 3300 3300>; + sdhci,auto-cmd12; + little-endian; + bus-width = <4>; + status = "disabled"; + }; + + esdhc1: esdhc@2150000 { + compatible = "fsl,ls1028a-esdhc", "fsl,esdhc"; + reg = <0x0 0x2150000 0x0 0x10000>; + interrupts = <0 63 0x4>; /* Level high type */ + clock-frequency = <0>; + clocks = <&clockgen 2 1>; + voltage-ranges = <1800 1800 3300 3300>; + sdhci,auto-cmd12; + broken-cd; + little-endian; + bus-width = <4>; + status = "disabled"; + }; + sata: sata@3200000 { compatible = "fsl,ls1028a-ahci"; reg = <0x0 0x3200000 0x0 0x10000>,