Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5115317ybi; Tue, 4 Jun 2019 01:17:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzi16Rs4XVQTBts9qI7FwZgA0Q68fhnhieJvj4qPwV/AroTtjskYiVrkXg17QFN58nr+d5e X-Received: by 2002:a17:902:6bcb:: with SMTP id m11mr9364437plt.318.1559636254160; Tue, 04 Jun 2019 01:17:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559636254; cv=none; d=google.com; s=arc-20160816; b=vHxw13DI8FUhi0yJ9j8THHl6r7riLnJ198nZI9dNNsv/aYGpoN2tNDTnm97KyWvdVB xYl8ltj8S7wBJAyNL+Rs1/rnbsHbvxSSk17IPuphoxTCFOWKmO7cWXa5XoM0G1XkS0Xl WPP0Uvtc36VxMQWoBcMnP+0ZsDKEVOkgy0GRRSuD910xmatJH1XP6KJzrLH1VWt6foWR D+mK372HfZXMm+gr6Ch50ki8GBtoSb1kK0EyGWzcytbobhnbwqe/VZv++SDaFAaTbwVu ckOk9rHGb4VHQYtgcL8GIc0aoqUg3a3HelSyUEPvX6DenGVktUpZulg/PUgUwrC8aa7r rXWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=dER5z7AUiZqvyewGFEgnTI66kajUzFaGGa3MWKBcALw=; b=htI52U7dngO5//74POS/FKw6qp7mpil4qBjGNDQ6kcsp+z5oGJq/z13qUZlSSeUpLd ontIBC9+jtRSXWb/CKdCaEg5y8QAtBtSBSjSwzqbL2MRwV7HDSWMMFCF27+p7/X5vGBE S40FvwgUdyW0DGBTKa6f99CSvDiFeN8d4AbYOCyORq+A89h6xcspMtmPUs3Yl4uCJmtp B9aIDgSl013zx7LG3OZgspS+eQ419xukLzPYkCdGIQWfpdkkk8Ss///PeZrbjjxhOJsD CFi/q5+IMC4fPjoBGEPj6bF3af3K5P/SApcCEwlixOPNXDjqKGyJp3A8Yhhodswxzno1 K8Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vB+Hs12y; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c14si21585417pgd.314.2019.06.04.01.17.16; Tue, 04 Jun 2019 01:17:34 -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; dkim=pass header.i=@linaro.org header.s=google header.b=vB+Hs12y; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727266AbfFDIPg (ORCPT + 99 others); Tue, 4 Jun 2019 04:15:36 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:42233 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727226AbfFDIPa (ORCPT ); Tue, 4 Jun 2019 04:15:30 -0400 Received: by mail-pf1-f194.google.com with SMTP id q10so1997161pff.9 for ; Tue, 04 Jun 2019 01:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=dER5z7AUiZqvyewGFEgnTI66kajUzFaGGa3MWKBcALw=; b=vB+Hs12ydRRg7xKl2y5pq42c9TjetjyW0KPP4CLQt1K5QD8u1082ngypqoz/11y6pf HsTDlpjOvwfLUalvg4uG96nQ2MLMmkyHNeAodvBKqe1k6KliNxZtqwgdUPx1nRVCDaLS d/gpsoMpSCfGI5CUCM+4zoY7lZ6mNNLD4jXkaJ21sHDJsdpjn0SIxSCt9tqmtkfOofB7 RqQpd+nyHy8bd1NIy3azycy35bMkxl7stgprnj3dhXBUQy7smuGvkPvmCPP9+IRlqzDl nw7NJ48xznSFJhLrRThp2Bn4mrOl4dcFT4lxs6ckloBL3l1TfCRU8gfHKoeqhcD/oe+G fhMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=dER5z7AUiZqvyewGFEgnTI66kajUzFaGGa3MWKBcALw=; b=YIuYy51o04Ru63Uo7cO8z4MULsI2N48Te97vAqhDuERaooB2TpDyHmoT0S/qPzvkXU YDEOX6BR5R/14VUdEL4ks3Ly1+w3JtaAjgxmeQldcwg0BaC4oKrtzW3Ag2ItK9KwTduB nEpabvPcXXgG5IIkWBdSFukD7OHz2zsZc2prxfYQ420uKD6qZj9ZTRE2vLtFtFg6ifWz GtNxBfUP45wtvyYcNfz/0FyP5NetDgxf2+TxsPeRHNAIZp2EJR2mmy1km9LBhQbPAWuJ Ci0tLvQyAmScha31G4+tCkCZ5/cZLvKY63eN36ZuaWjzZPIexQZb+7yOEfspI6koyiHc tqXg== X-Gm-Message-State: APjAAAURfs7BCXxN3XpExHnXBjJUITBfyofEgdyM9O+ebLdhkh69PHFk zUqJl+dmN9Qsy9Q43KALeK7f0Q== X-Received: by 2002:a17:90a:1a84:: with SMTP id p4mr35971999pjp.15.1559636129484; Tue, 04 Jun 2019 01:15:29 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id j4sm14818804pgc.56.2019.06.04.01.15.25 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Jun 2019 01:15:29 -0700 (PDT) From: Baolin Wang To: adrian.hunter@intel.com, ulf.hansson@linaro.org, zhang.lyra@gmail.com, orsonzhai@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, arnd@arndb.de, olof@lixom.net Cc: baolin.wang@linaro.org, vincent.guittot@linaro.org, arm@kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 9/9] arm64: dts: sprd: Add Spreadtrum SD host controller support Date: Tue, 4 Jun 2019 16:14:29 +0800 Message-Id: <3ca273e341f2f5f66b121d411428c60afd412586.1559635435.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add one Spreadtrum SD host controller to support eMMC card for Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi index 4bb862c..79b9591c 100644 --- a/arch/arm64/boot/dts/sprd/whale2.dtsi +++ b/arch/arm64/boot/dts/sprd/whale2.dtsi @@ -130,6 +130,34 @@ clock-names = "enable"; clocks = <&apahb_gate CLK_DMA_EB>; }; + + sdio3: sdio@50430000 { + compatible = "sprd,sdhci-r11"; + reg = <0 0x50430000 0 0x1000>; + interrupts = ; + + clock-names = "sdio", "enable", "2x_enable"; + clocks = <&aon_prediv CLK_EMMC_2X>, + <&apahb_gate CLK_EMMC_EB>, + <&aon_gate CLK_EMMC_2X_EN>; + assigned-clocks = <&aon_prediv CLK_EMMC_2X>; + assigned-clock-parents = <&clk_l0_409m6>; + + sprd,phy-delay-mmc-hs400 = <0x44 0x7f 0x2e 0x2e>; + sprd,phy-delay-mmc-hs200 = <0x0 0x8c 0x8c 0x8c>; + sprd,phy-delay-mmc-ddr52 = <0x3f 0x75 0x14 0x14>; + sprd,phy-delay-mmc-hs400es = <0x3f 0x3f 0x2e 0x2e>; + vmmc-supply = <&vddemmccore>; + bus-width = <8>; + non-removable; + no-sdio; + no-sd; + cap-mmc-hw-reset; + mmc-hs400-enhanced-strobe; + mmc-hs400-1_8v; + mmc-hs200-1_8v; + mmc-ddr-1_8v; + }; }; aon { @@ -272,4 +300,11 @@ clock-frequency = <100000000>; clock-output-names = "ext-rco-100m"; }; + + clk_l0_409m6: clk_l0_409m6 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <409600000>; + clock-output-names = "ext-409m6"; + }; }; -- 1.7.9.5