From patchwork Thu May 12 22:35:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 9086461 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EB18CBF29F for ; Thu, 12 May 2016 22:37:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E6B412025A for ; Thu, 12 May 2016 22:37:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 02ECF20225 for ; Thu, 12 May 2016 22:37:52 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b0zEs-0008Ey-Qz; Thu, 12 May 2016 22:37:50 +0000 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b0zEk-0008C1-RH for linux-rockchip@lists.infradead.org; Thu, 12 May 2016 22:37:43 +0000 Received: by mail-pa0-x230.google.com with SMTP id r5so34770442pag.1 for ; Thu, 12 May 2016 15:37:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=eEtvnc1iQDuOL532ux+1mLbLLSyQ/wvjEfS+44ucWYY=; b=gw8x4QzCdm+T9w3x4iKNYBWCozkNHFYTznAm1rc0hZ5NI2XYRdK5q8bOdJdSks6pRX 8pzBE8DTKSxri3IxfwC9G72YFBylFNZRybuN1C65dk+m+8SckLVT+fJwaMGpN3oHygxO oluujERFA07PBMa+Nd2n5nqGJFWi7sDFMTOm4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=eEtvnc1iQDuOL532ux+1mLbLLSyQ/wvjEfS+44ucWYY=; b=J57ZE3E7H/3PltRDW4nMIm4q1iutCSVbdAufz3bsCgh3tjHo1WOLnh/G4PJ/Hglgi/ cB4PM4sRr1OI4YAqgoG/+5UVszdAYMDwXPadwpM4k2o7AhI6+4RSDdNOTRzqox2b5Rkz x8m0VwQXyJ6qdXtAUBKio2y2N1KmrKB1l9grHcOwj8VDsobbopss8vU+hx34+zXEXnn0 JrZc+eAdW14m/PaDB9ne0knbQ6ux/iZ36mdmMZASABNn3EiMyLA4llCZIMFOnuaav6Aw 4oDaRCRzCFMbTbOtAEV6QYqXe0cJomcv6Af7382PWdAfA55GiAXmTXtvMDcUuOCXuuF1 KZWg== X-Gm-Message-State: AOPr4FUM9S8UfEk4AW2kwZofHHQlablpJtWheGYkl7rIIj0/+KSOypGg483NZodIuCHdUXl1 X-Received: by 10.67.4.225 with SMTP id ch1mr17614633pad.120.1463092641952; Thu, 12 May 2016 15:37:21 -0700 (PDT) Received: from ban.mtv.corp.google.com ([172.22.64.120]) by smtp.gmail.com with ESMTPSA id c190sm22242346pfb.33.2016.05.12.15.37.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 May 2016 15:37:21 -0700 (PDT) From: Brian Norris To: Heiko Stuebner Subject: [PATCH v2 1/2] ARM64: dts: rockchip: add sdhci/emmc for rk3399 Date: Thu, 12 May 2016 15:35:51 -0700 Message-Id: <1463092552-60696-1-git-send-email-briannorris@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160512_153742_927280_2B7CE99B X-CRM114-Status: GOOD ( 11.30 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Shawn Lin , Brian Norris , linux-kernel@vger.kernel.org, Doug Anderson , linux-rockchip@lists.infradead.org, Brian Norris , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add description for the SDHCI v5.1 eMMC controller on rk3399. Fix it to 200 MHz, to support all supported timing modes. Note that 'rockchip,rk3399-sdhci-5.1' is not documented; we presumably have a compliant Arasan controller, but let's have a rockchip property as the canonical backup/precautionary measure. Per Heiko's previous suggestion, let's not clutter the arasan doc with it. Signed-off-by: Brian Norris Reviewed-by: Shawn Lin --- v2: * improved commit message * assign eMMC clock to 200 MHz arch/arm64/boot/dts/rockchip/rk3399.dtsi | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 46f325a143b0..9980c2eab4e9 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -215,6 +215,19 @@ status = "disabled"; }; + sdhci: sdhci@fe330000 { + compatible = "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1"; + reg = <0x0 0xfe330000 0x0 0x10000>; + interrupts = ; + clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>; + clock-names = "clk_xin", "clk_ahb"; + assigned-clocks = <&cru SCLK_EMMC>; + assigned-clock-rates = <200000000>; + phys = <&emmc_phy>; + phy-names = "phy_arasan"; + status = "disabled"; + }; + usb_host0_ehci: usb@fe380000 { compatible = "generic-ehci"; reg = <0x0 0xfe380000 0x0 0x20000>; @@ -481,8 +494,18 @@ }; grf: syscon@ff770000 { - compatible = "rockchip,rk3399-grf", "syscon"; + compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd"; reg = <0x0 0xff770000 0x0 0x10000>; + + #address-cells = <1>; + #size-cells = <1>; + + emmc_phy: phy@f780 { + compatible = "rockchip,rk3399-emmc-phy"; + reg = <0xf780 0x20>; + #phy-cells = <0>; + status = "disabled"; + }; }; watchdog@ff840000 {