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: 9086481 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 577BB9F1D3 for ; Thu, 12 May 2016 22:39:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 838DD2022D for ; Thu, 12 May 2016 22:39:28 +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 9EDB320225 for ; Thu, 12 May 2016 22:39:27 +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 1b0zEn-0008E3-Ig; Thu, 12 May 2016 22:37:45 +0000 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b0zEk-0008C0-RF for linux-arm-kernel@lists.infradead.org; Thu, 12 May 2016 22:37:43 +0000 Received: by mail-pa0-x231.google.com with SMTP id r5so34770443pag.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=XC5oEVT94YwBxVLV+YtHn/Vgob/mV2+D3HJS4kWGzIVrXUwGbTZyviENagd0xtPSzb UGTwW5cbmCLjX5SRswROZUB5LkiE5skpddcIbNigk/AqijfJYKFGvCx206MVktUUL61j lhN3JfwxNL8YxXn7UklFAoRtU3bi6kyP7xRL8TQB23+J9dIPM32cXFUh7MSxzBiQsiup Kut5txRo8QBUH/YdrSe0LIwvHpA3vOYv2f5PCz1fMWUVxjuQlz9mvPD7gZe++Y6B8Inc j8PxYHuZMD6ut7DzBinufCzJ/oZY3sObbrj6FMrc8dTaHZgQf2tlK0M5CoZ3XgOC2efA q4iA== X-Gm-Message-State: AOPr4FVdkmHNai0BKqvhAX7gRvFRDBYKC2Syc8w2JptEpvQ+MPcpOpLPpn3Qez2RPrcmgNRU 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_926689_26FEA9B8 X-CRM114-Status: GOOD ( 11.78 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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=unavailable 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 {