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: 9473593 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 2EB5F60762 for ; Wed, 14 Dec 2016 02:00:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C25D286E2 for ; Wed, 14 Dec 2016 02:00:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0BBE0286E4; Wed, 14 Dec 2016 02:00:35 +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=ham 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 81881286E2 for ; Wed, 14 Dec 2016 02:00:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754678AbcLNCAd (ORCPT ); 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 X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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 */ } };