From patchwork Wed Dec 14 01:59:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 87968 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp2523488qgi; Tue, 13 Dec 2016 18:00:35 -0800 (PST) X-Received: by 10.84.176.131 with SMTP id v3mr202671706plb.51.1481680835124; Tue, 13 Dec 2016 18:00:35 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t78si50300876pfj.273.2016.12.13.18.00.34; Tue, 13 Dec 2016 18:00:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754678AbcLNCAd (ORCPT + 5 others); Tue, 13 Dec 2016 21:00:33 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:60383 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753256AbcLNCAc (ORCPT ); Tue, 13 Dec 2016 21:00:32 -0500 Received: from pug.jp.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id uBE203S0024800; Wed, 14 Dec 2016 11:00:03 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com uBE203S0024800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1481680804; bh=Ko2ay5OyBwlDI8X85tqGJR25JNOCUykMYrbyie/cS9w=; h=From:To:Cc:Subject:Date:From; b=ACzPcTsOwrwPLMybsJYrtdOF7F1RNR2XjGphnxCRJJwJju2ra4LtedgPiKFifONvw pVU3QqBEIi6lfbdfctOLhIjWuRPLCZTK/ZBEPUEFUC7MqHeOGurvI1Y4iLz0a+YjYE QKMSYhQX85jw2ChCR8HS0bJJBlgF4uvrCebG29j5XtIca0bvDrOXWmMaA5/puoqvM4 etngoleSKz5Rm1SRf/PKHBXCb8rwe5w8ufVjxie0ntBrn71PwTQ6yIcRQXgekJwmTE q2/ozAP1eOm8JweG9cBvRLR3EM2Wz059SwkZTyLiWQF/vHA/0Vkx2ZNjmQMgKEyxGJ gExfD4Md9AgYg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mmc@vger.kernel.org Cc: Rob Herring , Adrian Hunter , Ulf Hansson , Masahiro Yamada , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland Subject: [PATCH] mmc: sdhci-cadence: add SoC specific compatible string Date: Wed, 14 Dec 2016 10:59:55 +0900 Message-Id: <1481680795-15697-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Add a Socionext SoC specific compatible (suggested by Rob Herring). No SoC specific data are associated with the compatible strings for now, but other SoC vendors may use this IP and want to differentiate IP variants in the future. Signed-off-by: Masahiro Yamada --- Documentation/devicetree/bindings/mmc/sdhci-cadence.txt | 6 ++++-- drivers/mmc/host/sdhci-cadence.c | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/mmc/sdhci-cadence.txt b/Documentation/devicetree/bindings/mmc/sdhci-cadence.txt index 750374f..de66ac0 100644 --- a/Documentation/devicetree/bindings/mmc/sdhci-cadence.txt +++ b/Documentation/devicetree/bindings/mmc/sdhci-cadence.txt @@ -1,7 +1,9 @@ * Cadence SD/SDIO/eMMC Host Controller Required properties: -- compatible: should be "cdns,sd4hc". +- compatible: should be one of the following: + "cdns,sd4hc" + "socionext,sd4hc" - reg: offset and length of the register set for the device. - interrupts: a single interrupt specifier. - clocks: phandle to the input clock. @@ -19,7 +21,7 @@ if supported. See mmc.txt for details. Example: emmc: sdhci@5a000000 { - compatible = "cdns,sd4hc"; + compatible = "socionext,sd4hc", "cdns,sd4hc"; reg = <0x5a000000 0x400>; interrupts = <0 78 4>; clocks = <&clk 4>; diff --git a/drivers/mmc/host/sdhci-cadence.c b/drivers/mmc/host/sdhci-cadence.c index 1501cfd..66b99f7 100644 --- a/drivers/mmc/host/sdhci-cadence.c +++ b/drivers/mmc/host/sdhci-cadence.c @@ -262,6 +262,7 @@ static int sdhci_cdns_probe(struct platform_device *pdev) } static const struct of_device_id sdhci_cdns_match[] = { + { .compatible = "socionext,sd4hc" }, { .compatible = "cdns,sd4hc" }, { /* sentinel */ } };