Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755927Ab2EBSHs (ORCPT ); Wed, 2 May 2012 14:07:48 -0400 Received: from mail-gy0-f174.google.com ([209.85.160.174]:57636 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755494Ab2EBSHq convert rfc822-to-8bit (ORCPT ); Wed, 2 May 2012 14:07:46 -0400 MIME-Version: 1.0 X-Originating-IP: [172.22.162.26] In-Reply-To: <1335935266-25289-4-git-send-email-thomas.abraham@linaro.org> References: <1335935266-25289-1-git-send-email-thomas.abraham@linaro.org> <1335935266-25289-4-git-send-email-thomas.abraham@linaro.org> Date: Wed, 2 May 2012 11:07:45 -0700 Message-ID: Subject: Re: [PATCH 3/7] mmc: dw_mmc: add device tree support From: Olof Johansson To: Thomas Abraham Cc: linux-mmc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, cjb@laptop.org, grant.likely@secretlab.ca, rob.herring@calxeda.com, linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, patches@linaro.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2693 Lines: 67 Hi, On Tue, May 1, 2012 at 10:07 PM, Thomas Abraham wrote: > Add device tree based discovery support. > > Signed-off-by: Thomas Abraham > --- > ?.../devicetree/bindings/mmc/synposis-dw-mshc.txt ? | ? 85 +++++++++ > ?drivers/mmc/host/dw_mmc-pltfm.c ? ? ? ? ? ? ? ? ? ?| ? 24 +++ > ?drivers/mmc/host/dw_mmc.c ? ? ? ? ? ? ? ? ? ? ? ? ?| ?181 +++++++++++++++++++- > ?drivers/mmc/host/dw_mmc.h ? ? ? ? ? ? ? ? ? ? ? ? ?| ? 10 + > ?include/linux/mmc/dw_mmc.h ? ? ? ? ? ? ? ? ? ? ? ? | ? ?2 + > ?5 files changed, 296 insertions(+), 6 deletions(-) > ?create mode 100644 Documentation/devicetree/bindings/mmc/synposis-dw-mshc.txt > > diff --git a/Documentation/devicetree/bindings/mmc/synposis-dw-mshc.txt b/Documentation/devicetree/bindings/mmc/synposis-dw-mshc.txt > new file mode 100644 > index 0000000..c1ed70e > --- /dev/null > +++ b/Documentation/devicetree/bindings/mmc/synposis-dw-mshc.txt > @@ -0,0 +1,85 @@ > +* Synopsis Designware Mobile Storage Host Controller > + > +The Synopsis designware mobile storage host controller is used to interface > +a SoC with storage medium such as eMMC or SD/MMC cards. > + > +Required Properties: > + > +* compatible: should be one of the following > + ? ? ? - synopsis,dw-mshc: for controllers compliant with synopsis dw-mshc. > + > +* reg: physical base address of the dw-mshc controller and size of its memory > + ?region. > + > +* interrupts: interrupt specifier for the controller. The format and value of > + ?the interrupt specifier depends on the interrupt parent for the controller. > + > +# Slots: The slot specific information are contained within child-nodes with > + ?each child-node representing a supported slot. There should be atleast one > + ?child node representing a card slot. The name of the slot child node should > + ?be 'slot{n}' where n is the unique number of the slot connnected to the > + ?controller. The following are optional properties which can be included in > + ?the slot child node. Since we're talking slots / cards on a bus, I think the addressing model would be useful here. So in the main controller node: #address-cells = <1>; #size-cells = <0>; And then each slot would need a reg property and possibly unit address: slot { reg = <0>; ... }; (unit addresses on the slots are only needed if they can't be disambiguated by name, so not needed if you only have one slot). -Olof -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/