pinctrl: airoha: an7583: rename registers to match its an7583 names

In the an7581 case the register at 0x1FA20214 is called
RG_GPIO_2ND_I2C_MODE. The same register in the an7583 case is called
RG_SW_TOD_1PPS_MODE.

Let's rename this register to avoid potential confuse.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
Mikhail Kshevetskiy 2026-08-07 01:06:06 +03:00 committed by Linus Walleij
parent bf3cdf90e3
commit c4776d20be

View File

@ -8,7 +8,7 @@
#include "airoha-common.h"
/* MUX */
#define REG_GPIO_2ND_I2C_MODE 0x0214
#define REG_SW_TOD_1PPS_MODE 0x0214
#define GPIO_LAN3_LED1_MODE_MASK BIT(10)
#define GPIO_LAN3_LED0_MODE_MASK BIT(9)
#define GPIO_LAN2_LED1_MODE_MASK BIT(8)
@ -302,7 +302,7 @@
.name = (gpio), \
.regmap[0] = { \
AIROHA_FUNC_MUX, \
REG_GPIO_2ND_I2C_MODE, \
REG_SW_TOD_1PPS_MODE, \
(mux_val), \
(mux_val), \
}, \
@ -320,7 +320,7 @@
.name = (gpio), \
.regmap[0] = { \
AIROHA_FUNC_MUX, \
REG_GPIO_2ND_I2C_MODE, \
REG_SW_TOD_1PPS_MODE, \
(mux_val), \
(mux_val), \
}, \
@ -643,7 +643,7 @@ static const struct airoha_pinctrl_func_group tod_1pps_func_group[] = {
.name = "pon_tod_1pps",
.regmap[0] = {
AIROHA_FUNC_MUX,
REG_GPIO_2ND_I2C_MODE,
REG_SW_TOD_1PPS_MODE,
PON_TOD_1PPS_MODE_MASK,
PON_TOD_1PPS_MODE_MASK
},
@ -652,7 +652,7 @@ static const struct airoha_pinctrl_func_group tod_1pps_func_group[] = {
.name = "gsw_tod_1pps",
.regmap[0] = {
AIROHA_FUNC_MUX,
REG_GPIO_2ND_I2C_MODE,
REG_SW_TOD_1PPS_MODE,
GSW_TOD_1PPS_MODE_MASK,
GSW_TOD_1PPS_MODE_MASK
},