mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 12:52:29 -04:00
pinctrl: airoha: fix I2C1 pin mux config for AN7581
The pin mux on GPIOs 1 and 2 on AN7581 supports I2C in master and slave mode. When selecting I2C the according bits (bit 13 for master, bit 11 for slave) must be set in REG_GPIO_2ND_I2C_MODE. Fix the i2c1 pin group to set bits 0 and 13 to set I2C1 master mode by default. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
committed by
Linus Walleij
parent
aaa41d8010
commit
bf76a61cf9
@@ -1158,8 +1158,8 @@ static const struct airoha_pinctrl_func_group i2c_func_group[] = {
|
||||
.regmap[0] = {
|
||||
AIROHA_FUNC_MUX,
|
||||
REG_GPIO_2ND_I2C_MODE,
|
||||
GPIO_2ND_I2C_MODE_MASK,
|
||||
GPIO_2ND_I2C_MODE_MASK
|
||||
GPIO_2ND_I2C_MODE_MASK | GPIO_I2C_MASTER_MODE_MODE,
|
||||
GPIO_2ND_I2C_MODE_MASK | GPIO_I2C_MASTER_MODE_MODE,
|
||||
},
|
||||
.regmap_size = 1,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user