NMK_GPIO_DIR
dir = readl(nmk_chip->addr + NMK_GPIO_DIR) & BIT(offset);
is_out = !!(readl(nmk_chip->addr + NMK_GPIO_DIR) & BIT(offset));