pinctrl: mt7622: drop pwm ch7 as mt7622 only has 6 channels
authorFrank Wunderlich <frank-w@public-files.de>
Fri, 16 Oct 2020 20:40:19 +0000 (22:40 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 10 Nov 2020 13:58:14 +0000 (14:58 +0100)
mt7622 is reported by mediatek to have only 6 pwm channels
so drop pindefines for 7th channel

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Acked-by: Sean Wang <sean.wang@kernel.org>
Link: https://lore.kernel.org/r/20201016204019.2606-4-linux@fw-web.de
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt7622.c

index 38c5e166fd0f65896ebb3d9be6a5a91bc8fc8cb1..68eee881ee3d110861f95e359ed9cfcde59a8831 100644 (file)
@@ -501,12 +501,6 @@ static int mt7622_pwm_ch6_2_pins[] = { 81, };
 static int mt7622_pwm_ch6_2_funcs[] = { 4, };
 static int mt7622_pwm_ch6_3_pins[] = { 100, };
 static int mt7622_pwm_ch6_3_funcs[] = { 0, };
-static int mt7622_pwm_ch7_0_pins[] = { 70, };
-static int mt7622_pwm_ch7_0_funcs[] = { 3, };
-static int mt7622_pwm_ch7_1_pins[] = { 82, };
-static int mt7622_pwm_ch7_1_funcs[] = { 4, };
-static int mt7622_pwm_ch7_2_pins[] = { 101, };
-static int mt7622_pwm_ch7_2_funcs[] = { 0, };
 
 /* SD */
 static int mt7622_sd_0_pins[] = { 16, 17, 18, 19, 20, 21, };
@@ -703,9 +697,6 @@ static const struct group_desc mt7622_groups[] = {
        PINCTRL_PIN_GROUP("pwm_ch6_1", mt7622_pwm_ch6_1),
        PINCTRL_PIN_GROUP("pwm_ch6_2", mt7622_pwm_ch6_2),
        PINCTRL_PIN_GROUP("pwm_ch6_3", mt7622_pwm_ch6_3),
-       PINCTRL_PIN_GROUP("pwm_ch7_0", mt7622_pwm_ch7_0),
-       PINCTRL_PIN_GROUP("pwm_ch7_1", mt7622_pwm_ch7_1),
-       PINCTRL_PIN_GROUP("pwm_ch7_2", mt7622_pwm_ch7_2),
        PINCTRL_PIN_GROUP("sd_0", mt7622_sd_0),
        PINCTRL_PIN_GROUP("sd_1", mt7622_sd_1),
        PINCTRL_PIN_GROUP("snfi", mt7622_snfi),
@@ -802,9 +793,7 @@ static const char *mt7622_pwm_groups[] = { "pwm_ch1_0", "pwm_ch1_1",
                                           "pwm_ch4_3", "pwm_ch5_0",
                                           "pwm_ch5_1", "pwm_ch5_2",
                                           "pwm_ch6_0", "pwm_ch6_1",
-                                          "pwm_ch6_2", "pwm_ch6_3",
-                                          "pwm_ch7_0", "pwm_ch7_1",
-                                          "pwm_ch7_2", };
+                                          "pwm_ch6_2", "pwm_ch6_3", };
 static const char *mt7622_sd_groups[] = { "sd_0", "sd_1", };
 static const char *mt7622_spic_groups[] = { "spic0_0", "spic0_1", "spic1_0",
                                            "spic1_1", "spic2_0",