Skip to content

Commit 8171e7b

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

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

drivers/pinctrl/pinctrl-ingenic.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ static int jz4730_pwm_pwm1_pins[] = { 0x5f, };
213213
static int jz4730_mii_pins[] = { 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76,
214214
0x77, 0x78, 0x19, 0x7a, 0x1b, 0x7c, };
215215

216+
static int jz4730_i2s_mclk_pins[] = { 0x44, };
217+
static int jz4730_i2s_acreset_pins[] = { 0x45, };
218+
static int jz4730_i2s_data_pins[] = { 0x46, 0x47, };
219+
static int jz4730_i2s_clock_pins[] = { 0x4d, 0x4e, };
220+
216221
static u8 jz4730_lcd_8bit_funcs[] = { 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, };
217222

218223
static const struct group_desc jz4730_groups[] = {
@@ -235,6 +240,11 @@ static const struct group_desc jz4730_groups[] = {
235240
INGENIC_PIN_GROUP("pwm0", jz4730_pwm_pwm0, 1),
236241
INGENIC_PIN_GROUP("pwm1", jz4730_pwm_pwm1, 1),
237242
INGENIC_PIN_GROUP("mii", jz4730_mii, 1),
243+
INGENIC_PIN_GROUP("i2s-mclk-out", jz4730_i2s_mclk, 1),
244+
INGENIC_PIN_GROUP("i2s-acreset", jz4730_i2s_acreset, 1),
245+
INGENIC_PIN_GROUP("i2s-data", jz4730_i2s_data, 1),
246+
INGENIC_PIN_GROUP("i2s-master", jz4730_i2s_clock, 1),
247+
INGENIC_PIN_GROUP("i2s-slave", jz4730_i2s_clock, 2),
238248
};
239249

240250
static const char *jz4730_mmc_groups[] = { "mmc-1bit", "mmc-4bit", };
@@ -251,6 +261,7 @@ static const char *jz4730_nand_groups[] = {
251261
static const char *jz4730_pwm0_groups[] = { "pwm0", };
252262
static const char *jz4730_pwm1_groups[] = { "pwm1", };
253263
static const char *jz4730_mii_groups[] = { "mii", };
264+
static const char *jz4730_i2s_groups[] = { "i2s-data", "i2s-master", "i2s-slave", };
254265

255266
static const struct function_desc jz4730_functions[] = {
256267
INGENIC_PIN_FUNCTION("mmc", jz4730_mmc),
@@ -263,6 +274,7 @@ static const struct function_desc jz4730_functions[] = {
263274
INGENIC_PIN_FUNCTION("pwm0", jz4730_pwm0),
264275
INGENIC_PIN_FUNCTION("pwm1", jz4730_pwm1),
265276
INGENIC_PIN_FUNCTION("mii", jz4730_mii),
277+
INGENIC_PIN_FUNCTION("i2s", jz4730_i2s),
266278
};
267279

268280
static const struct ingenic_chip_info jz4730_chip_info = {

0 commit comments

Comments
 (0)