Skip to content

Commit 5754a1c

Browse files
Guodong Liulinusw
authored andcommitted
pinctrl: mediatek: Fix the drive register definition of some Pins
The drive adjustment register definition of gpio13 and gpio81 is wrong: "the start address for the range" of gpio18 is corrected to 0x000, "the start bit for the first register within the range" of gpio81 is corrected to 24. Fixes: 6cf5e9e ("pinctrl: add pinctrl driver on mt8195") Signed-off-by: Guodong Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 2241ab5 commit 5754a1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pinctrl/mediatek/pinctrl-mt8195.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ static const struct mtk_pin_field_calc mt8195_pin_drv_range[] = {
659659
PIN_FIELD_BASE(10, 10, 4, 0x010, 0x10, 9, 3),
660660
PIN_FIELD_BASE(11, 11, 4, 0x000, 0x10, 24, 3),
661661
PIN_FIELD_BASE(12, 12, 4, 0x010, 0x10, 12, 3),
662-
PIN_FIELD_BASE(13, 13, 4, 0x010, 0x10, 27, 3),
662+
PIN_FIELD_BASE(13, 13, 4, 0x000, 0x10, 27, 3),
663663
PIN_FIELD_BASE(14, 14, 4, 0x010, 0x10, 15, 3),
664664
PIN_FIELD_BASE(15, 15, 4, 0x010, 0x10, 0, 3),
665665
PIN_FIELD_BASE(16, 16, 4, 0x010, 0x10, 18, 3),
@@ -708,7 +708,7 @@ static const struct mtk_pin_field_calc mt8195_pin_drv_range[] = {
708708
PIN_FIELD_BASE(78, 78, 3, 0x000, 0x10, 15, 3),
709709
PIN_FIELD_BASE(79, 79, 3, 0x000, 0x10, 18, 3),
710710
PIN_FIELD_BASE(80, 80, 3, 0x000, 0x10, 21, 3),
711-
PIN_FIELD_BASE(81, 81, 3, 0x000, 0x10, 28, 3),
711+
PIN_FIELD_BASE(81, 81, 3, 0x000, 0x10, 24, 3),
712712
PIN_FIELD_BASE(82, 82, 3, 0x000, 0x10, 27, 3),
713713
PIN_FIELD_BASE(83, 83, 3, 0x010, 0x10, 0, 3),
714714
PIN_FIELD_BASE(84, 84, 3, 0x010, 0x10, 3, 3),

0 commit comments

Comments
 (0)