hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/Documentation/devicetree/bindings/mtd/mtd-physmap.txt
....@@ -29,6 +29,8 @@
2929 - use-advanced-sector-protection: boolean to enable support for the
3030 advanced sector protection (Spansion: PPB - Persistent Protection
3131 Bits) locking.
32
+ - addr-gpios : (optional) List of GPIO descriptors that will be used to
33
+ address the MSBs address lines. The order goes from LSB to MSB.
3234
3335 For JEDEC compatible devices, the following additional properties
3436 are defined:
....@@ -94,3 +96,19 @@
9496 bank-width = <2>;
9597 };
9698
99
+An example using gpio-addrs
100
+
101
+ flash@20000000 {
102
+ #address-cells = <1>;
103
+ #size-cells = <1>;
104
+ compatible = "cfi-flash", "jedec-flash";
105
+ reg = <0x20000000 0x02000000>;
106
+ ranges = <0 0x00000000 0x02000000
107
+ 1 0x02000000 0x02000000>;
108
+ bank-width = <2>;
109
+ addr-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
110
+ partition@0 {
111
+ label = "test-part1";
112
+ reg = <0 0x04000000>;
113
+ };
114
+ };