Skip to content

Commit 920d477

Browse files
pabigotcarlescufi
authored andcommitted
dts: jedec,spi-nor: add support for deep-power-down specification
Provide information required to allow the driver to put the flash chip into a deep power down mode. This can reduce standby current by as much as 90%. Signed-off-by: Peter A. Bigot <[email protected]>
1 parent e4c3729 commit 920d477

File tree

5 files changed

+66
-0
lines changed

5 files changed

+66
-0
lines changed

boards/arm/nrf52840_pca10056/nrf52840_pca10056.dts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ arduino_i2c: &i2c0 {
199199
jedec-id = [c2 28 17];
200200
size = <67108864>;
201201
has-be32k;
202+
has-dpd;
203+
t-enter-dpd = <10000>;
204+
dpd-wakeup-sequence = <30000 20 45000>;
202205
wp-gpios = <&gpio0 22 0>;
203206
hold-gpios = <&gpio0 23 0>;
204207
};

boards/arm/particle_argon/dts/mesh_feather.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@
142142
hold-gpios = <&gpio0 23 0>;
143143
size = <0x2000000>;
144144
has-be32k;
145+
has-dpd;
146+
t-enter-dpd = <10000>;
147+
t-exit-dpd = <100000>;
145148
jedec-id = [c2 20 16];
146149
};
147150
};

boards/arm/particle_boron/dts/mesh_feather.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@
142142
hold-gpios = <&gpio0 23 0>;
143143
size = <0x2000000>;
144144
has-be32k;
145+
has-dpd;
146+
t-enter-dpd = <10000>;
147+
t-exit-dpd = <100000>;
145148
jedec-id = [c2 20 16];
146149
};
147150
};

boards/arm/particle_xenon/dts/mesh_feather.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@
142142
hold-gpios = <&gpio0 23 0>;
143143
size = <0x2000000>;
144144
has-be32k;
145+
has-dpd;
146+
t-enter-dpd = <10000>;
147+
t-exit-dpd = <100000>;
145148
jedec-id = [c2 20 16];
146149
};
147150
};

dts/bindings/mtd/jedec,spi-nor.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,60 @@ properties:
3232
property to indicate that the BPR must be unlocked before write
3333
operations can proceed.
3434
35+
has-dpd:
36+
type: boolean
37+
required: false
38+
description: |
39+
Indicates the device supports the DPD (0xB9) command.
40+
41+
Use this property to indicate the flash chip supports the Deep
42+
Power-Down mode that is entered by command 0xB9 to reduce power
43+
consumption below normal standby levels. Use of this property
44+
implies that the RDPD (0xAB) Release from Deep Power Down command
45+
is also supported. (On some chips this command functions as Read
46+
Electronic Signature; see t-enter-dpd).
47+
48+
dpd-wakeup-sequence:
49+
type: array
50+
required: false
51+
description: |
52+
Specifies wakeup durations for devices without RDPD.
53+
54+
Some devices (Macronix MX25R in particular) wake from deep power
55+
down by a timed sequence of CSn toggles rather than the RDPD
56+
command. This property specifies three durations measured in
57+
nanoseconds, in this order:
58+
(1) tDPDD (Delay Time for Release from Deep Power-Down Mode)
59+
(2) tCDRP (CSn Toggling Time before Release from Deep Power-Down Mode)
60+
(3) tRDP (Recovery Time for Release from Deep Power-Down Mode)
61+
62+
Absence of this property indicates that the RDPD command should be
63+
used to wake the chip from Deep Power-Down mode.
64+
65+
t-enter-dpd:
66+
type: int
67+
required: false
68+
description: |
69+
Duration required to complete the DPD command.
70+
71+
This provides the duration, in nanoseconds, that CSn must be
72+
remain deasserted after issuing DPD before the chip will enter
73+
deep power down.
74+
75+
If not provided the driver does not enforce a delay.
76+
77+
t-exit-dpd:
78+
type: int
79+
required: false
80+
description: |
81+
Duration required to complete the RDPD command.
82+
83+
This provides the duration, in nanoseconds, that CSn must be
84+
remain deasserted after issuing RDPD before the chip will exit
85+
deep power down and be ready to receive additional commands.
86+
87+
If not provided the driver does not enforce a delay.
88+
3589
size:
3690
type: int
3791
required: true

0 commit comments

Comments
 (0)