Let $G$ be a finite $p$-group of nilpotency class $c$ and of derived length $d$. As is well known, we have $d\leq \lfloor\log_2 c\rfloor+1$,

(https://groupprops.subwiki.org/wiki/Derived_length_is_logarithmically_bounded_by_nilpotency_class).

Does there exist any information or any classification of finite $p$-group $G$, where $d=\lfloor\log_2 c\rfloor+1$?

Any answer or comment will be greatly appreciated!