linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH mmc-next v3 1/2] dt-bindings: mmc: add alias example
@ 2020-08-25 13:44 Matthias Schiffer
  2020-08-25 13:44 ` [PATCH mmc-next v3 2/2] mmc: allow setting slot index via device tree alias Matthias Schiffer
  2020-08-28 22:24 ` [PATCH mmc-next v3 1/2] dt-bindings: mmc: add alias example Rob Herring
  0 siblings, 2 replies; 5+ messages in thread
From: Matthias Schiffer @ 2020-08-25 13:44 UTC (permalink / raw)
  To: Ulf Hansson, Rob Herring
  Cc: Sascha Hauer, linux-mmc, devicetree, linux-kernel, Matthias Schiffer

As for I2C and SPI, it now is possible to reserve a fixed index for
mmc/mmcblk devices.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
---

v3: new patch

 Documentation/devicetree/bindings/mmc/mmc-controller.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Documentation/devicetree/bindings/mmc/mmc-controller.yaml b/Documentation/devicetree/bindings/mmc/mmc-controller.yaml
index b96da0c7f819..22ed4a36c65d 100644
--- a/Documentation/devicetree/bindings/mmc/mmc-controller.yaml
+++ b/Documentation/devicetree/bindings/mmc/mmc-controller.yaml
@@ -367,6 +367,14 @@ examples:
     };
 
   - |
+    /*
+     * Optionally define an alias to reserve a fixed index for the
+     * mmc and mmcblk devices
+     */
+    aliases {
+        mmc0 = &mmc3;
+    };
+
     mmc3: mmc@1c12000 {
         #address-cells = <1>;
         #size-cells = <0>;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-08-31  9:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-25 13:44 [PATCH mmc-next v3 1/2] dt-bindings: mmc: add alias example Matthias Schiffer
2020-08-25 13:44 ` [PATCH mmc-next v3 2/2] mmc: allow setting slot index via device tree alias Matthias Schiffer
2020-08-28 22:24 ` [PATCH mmc-next v3 1/2] dt-bindings: mmc: add alias example Rob Herring
2020-08-31  7:58   ` Matthias Schiffer
2020-08-31  9:16     ` Ulf Hansson

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).