Commit b840d649 authored by Jerome Brunet's avatar Jerome Brunet Committed by Linus Walleij

pinctrl: meson: gxl: add spdif output pins

Signed-off-by: default avatarJerome Brunet <jbrunet@baylibre.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 2899adf0
...@@ -232,6 +232,8 @@ static const unsigned int i2s_out_ch23_z_pins[] = { PIN(GPIOZ_5, EE_OFF) }; ...@@ -232,6 +232,8 @@ static const unsigned int i2s_out_ch23_z_pins[] = { PIN(GPIOZ_5, EE_OFF) };
static const unsigned int i2s_out_ch45_z_pins[] = { PIN(GPIOZ_6, EE_OFF) }; static const unsigned int i2s_out_ch45_z_pins[] = { PIN(GPIOZ_6, EE_OFF) };
static const unsigned int i2s_out_ch67_z_pins[] = { PIN(GPIOZ_7, EE_OFF) }; static const unsigned int i2s_out_ch67_z_pins[] = { PIN(GPIOZ_7, EE_OFF) };
static const unsigned int spdif_out_h_pins[] = { PIN(GPIOH_4, EE_OFF) };
static const struct pinctrl_pin_desc meson_gxl_aobus_pins[] = { static const struct pinctrl_pin_desc meson_gxl_aobus_pins[] = {
MESON_PIN(GPIOAO_0, 0), MESON_PIN(GPIOAO_0, 0),
MESON_PIN(GPIOAO_1, 0), MESON_PIN(GPIOAO_1, 0),
...@@ -272,6 +274,9 @@ static const unsigned int pwm_ao_b_6_pins[] = { PIN(GPIOAO_6, 0) }; ...@@ -272,6 +274,9 @@ static const unsigned int pwm_ao_b_6_pins[] = { PIN(GPIOAO_6, 0) };
static const unsigned int i2s_out_ch23_ao_pins[] = { PIN(GPIOAO_8, EE_OFF) }; static const unsigned int i2s_out_ch23_ao_pins[] = { PIN(GPIOAO_8, EE_OFF) };
static const unsigned int i2s_out_ch45_ao_pins[] = { PIN(GPIOAO_9, EE_OFF) }; static const unsigned int i2s_out_ch45_ao_pins[] = { PIN(GPIOAO_9, EE_OFF) };
static const unsigned int spdif_out_ao_6_pins[] = { PIN(GPIOAO_6, EE_OFF) };
static const unsigned int spdif_out_ao_9_pins[] = { PIN(GPIOAO_9, EE_OFF) };
static struct meson_pmx_group meson_gxl_periphs_groups[] = { static struct meson_pmx_group meson_gxl_periphs_groups[] = {
GPIO_GROUP(GPIOZ_0, EE_OFF), GPIO_GROUP(GPIOZ_0, EE_OFF),
GPIO_GROUP(GPIOZ_1, EE_OFF), GPIO_GROUP(GPIOZ_1, EE_OFF),
...@@ -429,6 +434,7 @@ static struct meson_pmx_group meson_gxl_periphs_groups[] = { ...@@ -429,6 +434,7 @@ static struct meson_pmx_group meson_gxl_periphs_groups[] = {
GROUP(i2s_out_ao_clk, 6, 25), GROUP(i2s_out_ao_clk, 6, 25),
GROUP(i2s_out_lr_clk, 6, 24), GROUP(i2s_out_lr_clk, 6, 24),
GROUP(i2s_out_ch01, 6, 23), GROUP(i2s_out_ch01, 6, 23),
GROUP(spdif_out_h, 6, 28),
/* Bank DV */ /* Bank DV */
GROUP(uart_tx_b, 2, 16), GROUP(uart_tx_b, 2, 16),
...@@ -510,6 +516,8 @@ static struct meson_pmx_group meson_gxl_aobus_groups[] = { ...@@ -510,6 +516,8 @@ static struct meson_pmx_group meson_gxl_aobus_groups[] = {
GROUP(pwm_ao_b, 0, 3), GROUP(pwm_ao_b, 0, 3),
GROUP(i2s_out_ch23_ao, 1, 0), GROUP(i2s_out_ch23_ao, 1, 0),
GROUP(i2s_out_ch45_ao, 1, 1), GROUP(i2s_out_ch45_ao, 1, 1),
GROUP(spdif_out_ao_6, 0, 16),
GROUP(spdif_out_ao_9, 0, 4),
}; };
static const char * const gpio_periphs_groups[] = { static const char * const gpio_periphs_groups[] = {
...@@ -635,6 +643,10 @@ static const char * const i2s_out_groups[] = { ...@@ -635,6 +643,10 @@ static const char * const i2s_out_groups[] = {
"i2s_out_ch01", "i2s_out_ch23_z", "i2s_out_ch45_z", "i2s_out_ch67_z", "i2s_out_ch01", "i2s_out_ch23_z", "i2s_out_ch45_z", "i2s_out_ch67_z",
}; };
static const char * const spdif_out_groups[] = {
"spdif_out_h",
};
static const char * const gpio_aobus_groups[] = { static const char * const gpio_aobus_groups[] = {
"GPIOAO_0", "GPIOAO_1", "GPIOAO_2", "GPIOAO_3", "GPIOAO_4", "GPIOAO_0", "GPIOAO_1", "GPIOAO_2", "GPIOAO_3", "GPIOAO_4",
"GPIOAO_5", "GPIOAO_6", "GPIOAO_7", "GPIOAO_8", "GPIOAO_9", "GPIOAO_5", "GPIOAO_6", "GPIOAO_7", "GPIOAO_8", "GPIOAO_9",
...@@ -673,6 +685,10 @@ static const char * const i2s_out_ao_groups[] = { ...@@ -673,6 +685,10 @@ static const char * const i2s_out_ao_groups[] = {
"i2s_out_ch23_ao", "i2s_out_ch45_ao", "i2s_out_ch23_ao", "i2s_out_ch45_ao",
}; };
static const char * const spdif_out_ao_groups[] = {
"spdif_out_ao_6", "spdif_out_ao_9",
};
static struct meson_pmx_func meson_gxl_periphs_functions[] = { static struct meson_pmx_func meson_gxl_periphs_functions[] = {
FUNCTION(gpio_periphs), FUNCTION(gpio_periphs),
FUNCTION(emmc), FUNCTION(emmc),
...@@ -696,6 +712,7 @@ static struct meson_pmx_func meson_gxl_periphs_functions[] = { ...@@ -696,6 +712,7 @@ static struct meson_pmx_func meson_gxl_periphs_functions[] = {
FUNCTION(hdmi_hpd), FUNCTION(hdmi_hpd),
FUNCTION(hdmi_i2c), FUNCTION(hdmi_i2c),
FUNCTION(i2s_out), FUNCTION(i2s_out),
FUNCTION(spdif_out),
}; };
static struct meson_pmx_func meson_gxl_aobus_functions[] = { static struct meson_pmx_func meson_gxl_aobus_functions[] = {
...@@ -708,6 +725,7 @@ static struct meson_pmx_func meson_gxl_aobus_functions[] = { ...@@ -708,6 +725,7 @@ static struct meson_pmx_func meson_gxl_aobus_functions[] = {
FUNCTION(pwm_ao_a), FUNCTION(pwm_ao_a),
FUNCTION(pwm_ao_b), FUNCTION(pwm_ao_b),
FUNCTION(i2s_out_ao), FUNCTION(i2s_out_ao),
FUNCTION(spdif_out_ao),
}; };
static struct meson_bank meson_gxl_periphs_banks[] = { static struct meson_bank meson_gxl_periphs_banks[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment