stm32mp: cmd_stm32key: add get_misc_dev function