* [PATCH 6/6] mmc: dt: bus-width can be an optional property [not found] <1358766149-9534-1-git-send-email-shawn.guo@linaro.org> @ 2013-01-21 11:02 ` Shawn Guo 2013-02-08 23:02 ` Grant Likely 0 siblings, 1 reply; 2+ messages in thread From: Shawn Guo @ 2013-01-21 11:02 UTC (permalink / raw) To: linux-mmc; +Cc: Sascha Hauer, Chris Ball, Shawn Guo, devicetree-discuss None of mmc drivers implements bus-width as a required device tree property. Instead, some drivers like atmel-mci, dw_mmc, sdhci-s3c implement it as an optional one, and will force bus width to be 1 when the property is absent. Let's change the common binding to reflect what the drivers are usually doing. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Cc: devicetree-discuss@lists.ozlabs.org --- Documentation/devicetree/bindings/mmc/mmc.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt index a591c67..cef217d 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt @@ -6,9 +6,6 @@ Interpreted by the OF core: - reg: Registers location and length. - interrupts: Interrupts used by the MMC controller. -Required properties: -- bus-width: Number of data lines, can be <1>, <4>, or <8> - Card detection: If no property below is supplied, standard SDHCI card detect is used. Only one of the properties in this section should be supplied: @@ -17,6 +14,8 @@ Only one of the properties in this section should be supplied: - non-removable: non-removable slot (like eMMC); assume always present. Optional properties: +- bus-width: Number of data lines, can be <1>, <4>, or <8>. The default + will be <1> if the property is absent. - wp-gpios: Specify GPIOs for write protection, see gpio binding - cd-inverted: when present, polarity on the cd gpio line is inverted - wp-inverted: when present, polarity on the wp gpio line is inverted -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 6/6] mmc: dt: bus-width can be an optional property 2013-01-21 11:02 ` [PATCH 6/6] mmc: dt: bus-width can be an optional property Shawn Guo @ 2013-02-08 23:02 ` Grant Likely 0 siblings, 0 replies; 2+ messages in thread From: Grant Likely @ 2013-02-08 23:02 UTC (permalink / raw) To: Shawn Guo, linux-mmc; +Cc: Sascha Hauer, Chris Ball, devicetree-discuss On Mon, 21 Jan 2013 19:02:29 +0800, Shawn Guo <shawn.guo@linaro.org> wrote: > None of mmc drivers implements bus-width as a required device tree > property. Instead, some drivers like atmel-mci, dw_mmc, sdhci-s3c > implement it as an optional one, and will force bus width to be 1 > when the property is absent. Let's change the common binding to > reflect what the drivers are usually doing. > > Signed-off-by: Shawn Guo <shawn.guo@linaro.org> > Cc: devicetree-discuss@lists.ozlabs.org Acked-by: Grant Likely <grant.likely@secretlab.ca> > --- > Documentation/devicetree/bindings/mmc/mmc.txt | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt > index a591c67..cef217d 100644 > --- a/Documentation/devicetree/bindings/mmc/mmc.txt > +++ b/Documentation/devicetree/bindings/mmc/mmc.txt > @@ -6,9 +6,6 @@ Interpreted by the OF core: > - reg: Registers location and length. > - interrupts: Interrupts used by the MMC controller. > > -Required properties: > -- bus-width: Number of data lines, can be <1>, <4>, or <8> > - > Card detection: > If no property below is supplied, standard SDHCI card detect is used. > Only one of the properties in this section should be supplied: > @@ -17,6 +14,8 @@ Only one of the properties in this section should be supplied: > - non-removable: non-removable slot (like eMMC); assume always present. > > Optional properties: > +- bus-width: Number of data lines, can be <1>, <4>, or <8>. The default > + will be <1> if the property is absent. > - wp-gpios: Specify GPIOs for write protection, see gpio binding > - cd-inverted: when present, polarity on the cd gpio line is inverted > - wp-inverted: when present, polarity on the wp gpio line is inverted > -- > 1.7.9.5 > > > _______________________________________________ > devicetree-discuss mailing list > devicetree-discuss@lists.ozlabs.org > https://lists.ozlabs.org/listinfo/devicetree-discuss -- Grant Likely, B.Sc, P.Eng. Secret Lab Technologies, Ltd. ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-08 23:02 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1358766149-9534-1-git-send-email-shawn.guo@linaro.org> 2013-01-21 11:02 ` [PATCH 6/6] mmc: dt: bus-width can be an optional property Shawn Guo 2013-02-08 23:02 ` Grant Likely
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).