#define R1_BASE2                               0x250
 
 struct mtk_spec_pull_set {
-       unsigned int pin;
-       unsigned int pupd_offset;
+       unsigned char pin;
        unsigned char pupd_bit;
-       unsigned int r0_offset;
+       unsigned short pupd_offset;
+       unsigned short r0_offset;
+       unsigned short r1_offset;
        unsigned char r0_bit;
-       unsigned int r1_offset;
        unsigned char r1_bit;
 };
 
        .pullen_offset = 0x0200,
        .smt_offset = 0x0300,
        .pullsel_offset = 0x0400,
-       .invser_offset = 0x0600,
        .dout_offset = 0x0800,
        .din_offset = 0x0A00,
        .pinmux_offset = 0x0C00,
        .port_shf = 4,
        .port_mask = 0xf,
        .port_align = 4,
-       .chip_type = MTK_CHIP_TYPE_BASE,
        .eint_offsets = {
                .name = "mt8135_eint",
                .stat      = 0x000,
 
 #include <linux/regmap.h>
 
 #define NO_EINT_SUPPORT    255
-#define MTK_CHIP_TYPE_BASE     0
-#define MTK_CHIP_TYPE_PMIC     1
 #define MT_EDGE_SENSITIVE           0
 #define MT_LEVEL_SENSITIVE          1
 #define EINT_DBNC_SET_DBNC_BITS     4
 
 struct mtk_desc_pin {
        struct pinctrl_pin_desc pin;
-       const char *chip;
        const struct mtk_desc_eint eint;
        const struct mtk_desc_function  *functions;
 };
 #define MTK_PIN(_pin, _pad, _chip, _eint, ...)         \
        {                                                       \
                .pin = _pin,                                    \
-               .chip = _chip,                                  \
                .eint = _eint,                                  \
                .functions = (struct mtk_desc_function[]){      \
                        __VA_ARGS__, { } },                     \
  * @grp: The group for this pin belongs to.
  */
 struct mtk_pin_drv_grp {
-       unsigned int pin;
-       unsigned int offset;
+       unsigned short pin;
+       unsigned short offset;
        unsigned char bit;
        unsigned char grp;
 };
        unsigned int pullen_offset;
        unsigned int pullsel_offset;
        unsigned int drv_offset;
-       unsigned int invser_offset;
        unsigned int dout_offset;
        unsigned int din_offset;
        unsigned int pinmux_offset;
        unsigned char  port_shf;
        unsigned char  port_mask;
        unsigned char  port_align;
-       unsigned char   chip_type;
        struct mtk_eint_offsets eint_offsets;
        unsigned int    ap_num;
        unsigned int    db_cnt;