dt-binding: mtd: physmap: Add example using addr-gpios property
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Fri, 29 Mar 2019 02:13:22 +0000 (15:13 +1300)
committerRichard Weinberger <richard@nod.at>
Mon, 6 May 2019 19:46:45 +0000 (21:46 +0200)
Add an example showing how to use the addr-gpios property to deal with a
system with limited IO space.

Cc: devicetree@vger.kernel.org
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Documentation/devicetree/bindings/mtd/mtd-physmap.txt

index 7df0dcaccb7d9691e00f741ece0b7fdf547fb6a4..c69f4f065d239fd29f5752da5ebf9cbf2f0a1207 100644 (file)
@@ -96,3 +96,19 @@ An example using SRAM:
                bank-width = <2>;
        };
 
+An example using gpio-addrs
+
+       flash@20000000 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "cfi-flash", "jedec-flash";
+               reg = <0x20000000 0x02000000>;
+               ranges = <0 0x00000000 0x02000000
+                         1 0x02000000 0x02000000>;
+               bank-width = <2>;
+               addr-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
+               partition@0 {
+                       label = "test-part1";
+                       reg = <0 0x04000000>;
+               };
+       };