Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1654119ybg; Sun, 27 Oct 2019 02:12:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUVtd/LnLVvKT9Y+9Ff0Dp5YnXLdPJDb/zJ77eVkA2qTstnL/6QtITAcq4clQsDvtlwy19 X-Received: by 2002:a50:8a90:: with SMTP id j16mr13658433edj.283.1572167568252; Sun, 27 Oct 2019 02:12:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572167568; cv=none; d=google.com; s=arc-20160816; b=CvFrA7TbmRnnumb37qLTYPTOYASuTcK+W5xu5Dzi5iuM0cMhmtiv1D8F8ImhmaA3kq IiiKdaVOwRN4QDPpIr5GPbNVhNjTYHpXkOQoupgWncLxL2Ih4xtcQJGoV+cvwR1sBLaJ gye2SV43amjN1DYOK+Nem4tPQD/ArjGWVuGf0ulCD3U3GeZLaW5ae9quT+UOngnMM3j+ PwWE20PTCn0mA2hk1DCL1yzmf4iEBPw/YzUOmeR+SnAhdKqTGR2Sm1rxBuWAYMNvkIFW 7WKyKTTlxR4Z2jLSWOi/CNeCn/Zw2JS7gCfSL4f2O9TlzzoCCUrOQXKZo1pLEP5EeAnC L88w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=vhc2vlnBdVJ9oPEuwRlAvTTE1tlXKLOs0pAjHB9Vozo=; b=syKmMse1nnsXYWNUcmNP5KX+5tQ0/JeKqp7unQ5ayYkKmfDEQZ+ajt3vHMkZH69Fyt caUeY10TrQkNEFz5wnAObP88XlJHjqpG2s+9ZhtO0dDK53rgAcKvoEeLRT7mMTugiODW td8XPO9CnPNZ7lhQmY83dxhUM6WxFuHd411SSMVibkE6ExpcnG4/VqSbxupNJRlSTbHM XcQqXGbDgTScDi3cT/aa08FTEEmRc37TOkcAweuUSQqF8s7iCBKNmH4C9gOVNYtggnxX camKZGy7+z2WTQFUjtiDlBTYiCp7zs+yKZrJPGc7pajO1biIfv524QIG6wM5XeG8coBY +8WQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e23si5352266eda.248.2019.10.27.02.12.24; Sun, 27 Oct 2019 02:12:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726683AbfJ0JKB (ORCPT + 99 others); Sun, 27 Oct 2019 05:10:01 -0400 Received: from sci-ig2.spreadtrum.com ([222.66.158.135]:21925 "EHLO SHSQR01.spreadtrum.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726079AbfJ0JKB (ORCPT ); Sun, 27 Oct 2019 05:10:01 -0400 Received: from ig2.spreadtrum.com (bjmbx01.spreadtrum.com [10.0.64.7]) by SHSQR01.spreadtrum.com with ESMTPS id x9R99gMa087451 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO); Sun, 27 Oct 2019 17:09:42 +0800 (CST) (envelope-from Chunyan.Zhang@unisoc.com) Received: from localhost (10.0.74.79) by BJMBX01.spreadtrum.com (10.0.64.7) with Microsoft SMTP Server (TLS) id 15.0.847.32; Sun, 27 Oct 2019 17:09:48 +0800 From: Chunyan Zhang To: Rob Herring , Mark Rutland CC: , , Orson Zhai , Baolin Wang , Chunyan Zhang , Chunyan Zhang Subject: [PATCH 2/2] arm64: dts: Add SC9863A emmc and sd card nodes Date: Sun, 27 Oct 2019 17:09:03 +0800 Message-ID: <20191027090904.14349-3-chunyan.zhang@unisoc.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191027090904.14349-1-chunyan.zhang@unisoc.com> References: <20191027090904.14349-1-chunyan.zhang@unisoc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.0.74.79] X-ClientProxiedBy: shcas04.spreadtrum.com (10.29.35.89) To BJMBX01.spreadtrum.com (10.0.64.7) X-MAIL: SHSQR01.spreadtrum.com x9R99gMa087451 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add emmc and sd card devicetree nodes for SC9863A. Signed-off-by: Chunyan Zhang --- arch/arm64/boot/dts/sprd/sc9863a.dtsi | 31 +++++++++++++++++++++++ arch/arm64/boot/dts/sprd/sp9863a-1h10.dts | 16 ++++++++++++ 2 files changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/sc9863a.dtsi b/arch/arm64/boot/dts/sprd/sc9863a.dtsi index ceecf551fd01..e3ae64cc214a 100644 --- a/arch/arm64/boot/dts/sprd/sc9863a.dtsi +++ b/arch/arm64/boot/dts/sprd/sc9863a.dtsi @@ -626,5 +626,36 @@ }; }; }; + + ap-ahb { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + sdio0: sdio@20300000 { + compatible = "sprd,sdhci-r11"; + reg = <0 0x20300000 0 0x1000>; + interrupts = ; + + clock-names = "sdio", "enable"; + clocks = <&aon_clk CLK_SDIO0_2X>, + <&apahb_gate CLK_SDIO0_EB>; + assigned-clocks = <&aon_clk CLK_SDIO0_2X>; + assigned-clock-parents = <&rpll CLK_RPLL_390M>; + }; + + sdio3: sdio@20600000 { + compatible = "sprd,sdhci-r11"; + reg = <0 0x20600000 0 0x1000>; + interrupts = ; + + clock-names = "sdio", "enable"; + clocks = <&aon_clk CLK_EMMC_2X>, + <&apahb_gate CLK_EMMC_EB>; + assigned-clocks = <&aon_clk CLK_EMMC_2X>; + assigned-clock-parents = <&rpll CLK_RPLL_390M>; + }; + }; }; }; diff --git a/arch/arm64/boot/dts/sprd/sp9863a-1h10.dts b/arch/arm64/boot/dts/sprd/sp9863a-1h10.dts index b6fbb5ca37e1..14673a1e52cb 100644 --- a/arch/arm64/boot/dts/sprd/sp9863a-1h10.dts +++ b/arch/arm64/boot/dts/sprd/sp9863a-1h10.dts @@ -38,3 +38,19 @@ &uart1 { status = "okay"; }; + +&sdio0 { + bus-width = <4>; + no-sdio; + no-mmc; + status = "okay"; +}; + +&sdio3 { + bus-width = <8>; + non-removable; + no-sdio; + no-sd; + cap-mmc-hw-reset; + status = "okay"; +}; -- 2.20.1