From patchwork Fri May 26 05:52:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eddie Cai X-Patchwork-Id: 9749731 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 20A0E60249 for ; Fri, 26 May 2017 05:53:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17DA92624B for ; Fri, 26 May 2017 05:53:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0AF8E2656B; Fri, 26 May 2017 05:53:40 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 AACB32624B for ; Fri, 26 May 2017 05:53:39 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=Sj4etJXkHgOXaHLQ063/A6UwKlZzKTfFvltZpVRbNXk=; b=gBE gRNGYcIv5rhmpy3DMV+XmF58pJxLcNiaF6DG633lfLy9hRxUFfuIqrotccbvz9qOTFAD88GRseVPr 3bxcjCCPKH/83zIdZDU3FT56ad4AGwksE12pg2KSoQXrhZIqOK7UxcKaAqTRoc1UAyeQURbacqKQn FUSclTobN2ciBMQFulrKBBojCBVrU1/wRXkCdCYm0LJ/jmGx3WFHAl6/M6oQy4LkUenwwYx1mrfq1 jFUhJZN+5TOV2zS4VASl24O/BWJDt2ccqleBZd3Vv9GyTuHbAM9GJDMjob8IYqxW0q1R72uxcn7aO z1HlYDtFmKXYltjb34Sx/lLJ79Q3/RQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dE8Bu-0007Qa-Er; Fri, 26 May 2017 05:53:38 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dE8Bi-0007Bd-3D; Fri, 26 May 2017 05:53:27 +0000 Received: by mail-pf0-x243.google.com with SMTP id f27so424881pfe.0; Thu, 25 May 2017 22:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=dV9T2YUIKGN3lGOvb+jkKHr0Z+OkNbZV9s05S6MKXbM=; b=n4Wbawrp2uELL5tqo/tp0/9QfNS8N7vQNIZcepNbendcv6oz9VaL+7dFGKs/T5cplm z6a4mTDYcj6PEy0Ff3qEcRN29KrnRv+dIbGrYgoob+My9Ic6OviqsdKK7VVlsb/6pIqN Ga+N43MHh25tBLUsieij53FydWBEau+6FTiEwHw+7jdPpQnzuPhywF8X7ASDbKL2/Yt+ IpQlfVpLBMTUAkzUiN/ja99kDHFNqvGwE1om7Wg2ybWLyW39p46Y5hVS/85Vq1gYgQIx 9BhtHwjeC4XfQ+BxX4C6n24kvS9oJkfi7PBR0qzQiDAOuOFoG1yvM2G4kT9t/5nsHtrM g+kA== 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; bh=dV9T2YUIKGN3lGOvb+jkKHr0Z+OkNbZV9s05S6MKXbM=; b=qdaIuOIQitMA0qMHFK5bxozAdfqvAlgb3qAz9uXViBzKVSyNicrlw3jzcDBhlyPfiv oFqZKFd+8X8d2hjLT2cDREdz92vBn+lrLK1F68P1KrOFjcwypHlevMSw7qZ3GL/0q7gh 5QxT7DZ+gsDiLVTQXFxoWfQz9kONc0hBF2be8riRt170CSzKcG7hr5DVPBHrPflEvvr6 YxPatDcFIbQ41Tx/65CMHuboJQIvQuKiDOjQBGdGLdz4J6hNW0YrkF4r8RGZNO0TFNMZ JxTSMt3ZPa0iCZW49zJGRdRK3c5l1K+/+IyXI9EJbmXuvYK8cEtjGIfzLy5dvIS2EOKj JmAQ== X-Gm-Message-State: AODbwcBUU4m6L+OSB5MePIvvYVu4zbrTKKKS3t6XEiFrXjOrP2jyMip/ u80ooLx5pAcpYg== X-Received: by 10.99.175.18 with SMTP id w18mr263547pge.183.1495777984329; Thu, 25 May 2017 22:53:04 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id p13sm18643864pfl.52.2017.05.25.22.53.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 May 2017 22:53:02 -0700 (PDT) From: Eddie Cai To: heiko@sntech.de, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk Subject: [PATCH] ARM: dts: rockchip:add sd card support Date: Fri, 26 May 2017 13:52:46 +0800 Message-Id: <1495777966-26212-1-git-send-email-eddie.cai.linux@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170525_225326_165108_58FF9DAC X-CRM114-Status: UNSURE ( 7.54 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, Eddie Cai , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP firefly reload board not support sd card yet. so support it. Signed-off-by: Eddie Cai Reviewed-by: Shawn Lin --- arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi index 413b61f..2f41209 100644 --- a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi +++ b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi @@ -57,6 +57,17 @@ clock-output-names = "ext_gmac"; }; + vcc_sd: sdmmc-regulator { + compatible = "regulator-fixed"; + gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc_pwr>; + regulator-name = "vcc_sd"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + startup-delay-us = <100000>; + vin-supply = <&vcc_io>; + }; vcc_flash: flash-regulator { compatible = "regulator-fixed"; @@ -281,6 +292,26 @@ rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>; }; }; + + sdmmc { + sdmmc_pwr: sdmmc-pwr { + rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&sdmmc { + bus-width = <4>; + cap-mmc-highspeed; + cap-sd-highspeed; + card-detect-delay = <200>; + disable-wp; + num-slots = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>; + vmmc-supply = <&vcc_sd>; + vqmmc-supply = <&vccio_sd>; + status = "okay"; }; &tsadc {