Skip to content

Commit 4b490cc

Browse files
goldelicoLinus Walleij
authored andcommitted
pinctrl: ingenic: jz4730: add pinmux for MII
The MII interface is used for the Ethernet connection of the Alpha400. Reviewed-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Link: https://lore.kernel.org/972b31e1fce03808745e53df17315b29e2bcf696.1740823241.git.hns@goldelico.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 4da56f9 commit 4b490cc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/pinctrl/pinctrl-ingenic.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ static int jz4730_nand_cs5_pins[] = { 0x57, };
210210
static int jz4730_pwm_pwm0_pins[] = { 0x5e, };
211211
static int jz4730_pwm_pwm1_pins[] = { 0x5f, };
212212

213+
static int jz4730_mii_pins[] = { 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76,
214+
0x77, 0x78, 0x19, 0x7a, 0x1b, 0x7c, };
215+
213216
static u8 jz4730_lcd_8bit_funcs[] = { 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, };
214217

215218
static const struct group_desc jz4730_groups[] = {
@@ -231,6 +234,7 @@ static const struct group_desc jz4730_groups[] = {
231234
INGENIC_PIN_GROUP("nand-cs5", jz4730_nand_cs5, 1),
232235
INGENIC_PIN_GROUP("pwm0", jz4730_pwm_pwm0, 1),
233236
INGENIC_PIN_GROUP("pwm1", jz4730_pwm_pwm1, 1),
237+
INGENIC_PIN_GROUP("mii", jz4730_mii, 1),
234238
};
235239

236240
static const char *jz4730_mmc_groups[] = { "mmc-1bit", "mmc-4bit", };
@@ -246,6 +250,7 @@ static const char *jz4730_nand_groups[] = {
246250
};
247251
static const char *jz4730_pwm0_groups[] = { "pwm0", };
248252
static const char *jz4730_pwm1_groups[] = { "pwm1", };
253+
static const char *jz4730_mii_groups[] = { "mii", };
249254

250255
static const struct function_desc jz4730_functions[] = {
251256
INGENIC_PIN_FUNCTION("mmc", jz4730_mmc),
@@ -257,6 +262,7 @@ static const struct function_desc jz4730_functions[] = {
257262
INGENIC_PIN_FUNCTION("nand", jz4730_nand),
258263
INGENIC_PIN_FUNCTION("pwm0", jz4730_pwm0),
259264
INGENIC_PIN_FUNCTION("pwm1", jz4730_pwm1),
265+
INGENIC_PIN_FUNCTION("mii", jz4730_mii),
260266
};
261267

262268
static const struct ingenic_chip_info jz4730_chip_info = {

0 commit comments

Comments
 (0)