Reboot command

In terms of Linux implementation, based on the above patch, this sequence would be this, right?

static int da9063_restart_notify(struct notifier_block *this,
                                unsigned long mode, void *cmd)
{
    struct da9063 *da9063 = container_of(this, struct da9063, restart_handler);
    
    regmap_write(da9063->regmap, DA9063_REG_PAGE_CON, 0x00);
    regmap_write(da9063->regmap, DA9063_REG_SEQ_B, 0xdf);
    regmap_write(da9063->regmap, DA9063_BB_REG_ALARM_MO, 0x20);
    regmap_write(da9063->regmap, DA9063_BB_REG_ALARM_Y, 0x80);
    regmap_write(da9063->regmap, DA9063_REG_EVENT_A, 0x4);
    regmap_write(da9063->regmap, DA9063_REG_CONTROL_A, 0x68);
    
    return NOTIFY_DONE;
}

Edit: updated according to andersm’s comment below