spi: dt-bindings: Add an example with two stacked flashes
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 26 Jan 2022 11:26:07 +0000 (12:26 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 21 Feb 2022 13:25:01 +0000 (13:25 +0000)
Provide an example of how to describe two flashes in eg. stacked mode.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220126112608.955728-4-miquel.raynal@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/spi/spi-controller.yaml

index 36b7251..0f4d402 100644 (file)
@@ -139,4 +139,11 @@ examples:
             spi-max-frequency = <100000>;
             reg = <1>;
         };
+
+        flash@2 {
+          compatible = "jedec,spi-nor";
+          spi-max-frequency = <50000000>;
+          reg = <2>, <3>;
+          stacked-memories = /bits/ 64 <0x10000000 0x10000000>;
+        };
     };