From patchwork Mon Jun 13 23:04:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 9174689 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 91E8860573 for ; Mon, 13 Jun 2016 23:09:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 834A526861 for ; Mon, 13 Jun 2016 23:09:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 77EAD2723E; Mon, 13 Jun 2016 23:09:32 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F67926861 for ; Mon, 13 Jun 2016 23:09:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423542AbcFMXJa (ORCPT ); Mon, 13 Jun 2016 19:09:30 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:35645 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423597AbcFMXFA (ORCPT ); Mon, 13 Jun 2016 19:05:00 -0400 Received: by mail-pf0-f178.google.com with SMTP id c2so50527712pfa.2 for ; Mon, 13 Jun 2016 16:04:59 -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:in-reply-to:references; bh=IW3KDAZPmtUhNqNNmCWzoRrKYahGRvrOHCMbMnBaPGo=; b=Ze+g+iBUssnmMuAIBU6BxaPEPrRT0D4cYBI5Ic4b2Kaj3kKvwzzvHmce/U+8FwfbIb vN6/zD4OjzbeX7Ka8wMLug72o8fr+9iE//hlSPEuFLjuXqIZI8uw+vIKzoGeZReTsfnw DinvJqqkwZcZExv4R7TX3TKReOKt49AippckQ= 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:in-reply-to :references; bh=IW3KDAZPmtUhNqNNmCWzoRrKYahGRvrOHCMbMnBaPGo=; b=mbqCaCVdGEoFEc5iFNe7V0VhC/IREAk3dact4pR2FwQCm/ww6w3YAnoXCqK8d3ofN/ YmuTixV3bFHiOoc+g4/h1FNHwLwBlFyMCm7bBVZeTxuLThnUaP13IOJF6E/4KVgJdwKo je9MR6zCHxMa8P7cbGMgHzTxmJqNNTQeoenIxbkhoDQWMr362Wp9a5stUbikTZNqxXmm HG4jliUPBguBQZ4fUciiSU1rUzdTvCRlR1sdNFupSsdtXBMdHZUWHwmJBiwCkwe+GyF4 v9RRecRikBRs1CrYb+rNVX38NYgkgeaa7AjvA7qdF5gzTUSWXILkocCpqY82VW+C4SxI e0WQ== X-Gm-Message-State: ALyK8tJIwcVJKaFMXu5lXqAoJ96XeLychK4jHh/X6PeIzXtShU1MgbDNUK/dHpcxrMJv9GIE X-Received: by 10.98.85.66 with SMTP id j63mr24482171pfb.90.1465859099166; Mon, 13 Jun 2016 16:04:59 -0700 (PDT) Received: from tictac.mtv.corp.google.com ([172.22.65.76]) by smtp.gmail.com with ESMTPSA id pk18sm8906434pab.27.2016.06.13.16.04.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Jun 2016 16:04:58 -0700 (PDT) From: Douglas Anderson To: ulf.hansson@linaro.org, kishon@ti.com, Heiko Stuebner , robh+dt@kernel.org Cc: shawn.lin@rock-chips.com, xzy.xu@rock-chips.com, briannorris@chromium.org, adrian.hunter@intel.com, linux-rockchip@lists.infradead.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, Douglas Anderson , pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 06/11] Documentation: mmc: sdhci-of-arasan: Add ability to export card clock Date: Mon, 13 Jun 2016 16:04:30 -0700 Message-Id: <1465859076-4868-7-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1465859076-4868-1-git-send-email-dianders@chromium.org> References: <1465859076-4868-1-git-send-email-dianders@chromium.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some SD/eMMC PHYs (like the PHY from Arasan that is designed to work with arasan,sdhci-5.1) need to know the card clock frequency in order to function properly. Physically in a SoC this clock is exported from the SDHCI IP block to the PHY IP block and the PHY needs to know the speed. Let's export the SDHCI card clock using a standard device tree mechanism so that the PHY can get access to it and query the card clock frequency. Signed-off-by: Douglas Anderson Acked-by: Rob Herring Reviewed-by: Heiko Stuebner --- Changes in v2: - Adjust commit message wording (Rob) - Add Rob Herring's Ack. Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt index 476604e6ce2a..3404afa9b938 100644 --- a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt +++ b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt @@ -30,6 +30,12 @@ Optional Properties: - arasan,soc-ctl-syscon: A phandle to a syscon device (see ../mfd/syscon.txt) used to access core corecfg registers. Offsets of registers in this syscon are determined based on the main compatible string for the device. + - clock-output-names: If specified, this will be the name of the card clock + which will be exposed by this device. Required if #clock-cells is + specified. + - #clock-cells: If specified this should be the value <0>. With this property + in place we will export a clock representing the Card Clock. This clock + is expected to be consumed by our PHY. You must also specify Example: sdhci@e0100000 { @@ -61,7 +67,9 @@ Example: arasan,soc-ctl-syscon = <&grf>; assigned-clocks = <&cru SCLK_EMMC>; assigned-clock-rates = <200000000>; + clock-output-names = "emmc_cardclock"; phys = <&emmc_phy>; phy-names = "phy_arasan"; + #clock-cells = <0>; status = "disabled"; };