From patchwork Fri May 26 07:07:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eddie Cai X-Patchwork-Id: 9749797 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 17FE560246 for ; Fri, 26 May 2017 07:08:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03F7D281C3 for ; Fri, 26 May 2017 07:08:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB4A5283BB; Fri, 26 May 2017 07:08:08 +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 A2441281C3 for ; Fri, 26 May 2017 07:08:08 +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=LJT9A3aDd6dOIZmixcJfjB1x8c+lidPgqM3xyTXJy6g=; b=MOm cxhFSpxIEUWUpYAZE3PI92Wm+6S/hJ+ct3T1yifMuUOjDU7T9fKPrFBlISIOuBrMS+8+k2Gq/MPiA tDiiI5ke11fQQlVtLTMCFoVPf47kVsWvC/3AnTlGyBlPvuxUNEA02PalCRqRPlaUf4Y7r96+Po3PP 6DzXAXw0KePJh+qBt7I2qliM+KnOlfLxSx0KU2cGUDMSWyNBVoW5a7nw978vbyIz1+rJYbqFw8O+f Oo6tFC41mijENGMTbB+IV78ER44Cm/a+pxZfVj7pE6QfcXL43n99e4Yyntz7ltWPCTDBeIxwnYLr6 kcA9ml/ujX6qTkNQL9gjG+R5NkZ/PKw==; 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 1dE9Ly-0005QI-VG; Fri, 26 May 2017 07:08:07 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dE9Ll-0004qW-G4; Fri, 26 May 2017 07:07:55 +0000 Received: by mail-pf0-x242.google.com with SMTP id w69so822561pfk.1; Fri, 26 May 2017 00:07:33 -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=3fZlAz02MCxw/3DSiL5MNgBjbJdCaHpKpcAB5Ig3Bxs=; b=RLW6rk+8MgQ2+yHcZZ6d7RJbrDglxqemww6l/HbEEd0Iay2VSQXqyF+MfJBv8FBJ1o cbiexWlwOJ44ewcr4l1PvKO4Xmh1S8bf9i/5ES44l2PElw6w9D6LXuFm4zQ8YjZC+JTE 40Gpk2yKwNVjxhvJuVoaKFZlLGHuF2Aaw7hqy6qVAMZZ3u4Lls0dTo5h2ixN7ViaA8K4 VNdk6RlQbs7VFE2ibxAWGlp6TiA53RIzeww+X5mEJZeQzeVLfXg4dgrlpknzNd17o5Is hobhJM2Ikeh3LbxJK4vrlsDsIzB4WoM1FZehtlDeZ+8vljCXn6L5ddyV+C5jWqcZyBjD T2rA== 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=3fZlAz02MCxw/3DSiL5MNgBjbJdCaHpKpcAB5Ig3Bxs=; b=XDTkbRBasGbqZzKnf9yBM3oMUqJpkrWCVvqGa1F4ReSG581QlRyR8kJ894V6x3yS5p VS62eRDtwEkBCQPCEBGoaqzSIxvjEYFhD2afd0HkC06nbmk7F0/+7Nuk6h/D9140MAan 1lD6srIkgHanXGIC51ab4ioMj9BlUnhncGgPMarfYYevDf11GXwSSI8z/H98xs9mlRrW JZksjJMZauRCDz3JhfYjmxAzx8C5GZ5gth5pPHHkUgvFFzNzuBzR0neMV+k6vHV3UV5S /pJw651leRSM3hfvBGutxtGIS2/5GwcXAUdjZdvigOTWOPk6wcDez0dlKVQVKxkEv/ER VejQ== X-Gm-Message-State: AODbwcAVkK0ghk99IxJ6QNnfRs1SdNVHzH08Jy74P64VzZKrxTabXsUH 10L2z7xl5YuwoA== X-Received: by 10.84.160.197 with SMTP id v5mr55219366plg.30.1495782452690; Fri, 26 May 2017 00:07:32 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id b129sm15264171pfg.102.2017.05.26.00.07.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 May 2017 00:07:31 -0700 (PDT) From: Eddie Cai To: heiko@sntech.de, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk Subject: [PATCH V2] ARM: dts: rockchip:add sd card support for firefly reload board Date: Fri, 26 May 2017 15:07:19 +0800 Message-Id: <1495782439-27142-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-20170526_000753_717471_6F2410E3 X-CRM114-Status: UNSURE ( 7.65 ) 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 {