Commit cff2b010 authored by Martin Blumenstingl's avatar Martin Blumenstingl Committed by Linus Walleij

pinctrl: meson: meson-gxl: add the pwm_ao_b pin

This adds support for the pwm_ao_b pin. Unfortunately the registers for
the pwm_ao pins are not documented at all. The source for the pwm_ao_b
pin from this patch is the Khadas VIM GPL kernel source, which sets bit
3 and unsets bits 4 and 31 to enable the PWM LEDs.
Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: default avatarKevin Hilman <khilman@baylibre.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent ece2dac9
...@@ -226,6 +226,8 @@ static const unsigned int uart_rts_ao_b_pins[] = { PIN(GPIOAO_3, 0) }; ...@@ -226,6 +226,8 @@ static const unsigned int uart_rts_ao_b_pins[] = { PIN(GPIOAO_3, 0) };
static const unsigned int remote_input_ao_pins[] = {PIN(GPIOAO_7, 0) }; static const unsigned int remote_input_ao_pins[] = {PIN(GPIOAO_7, 0) };
static const unsigned int pwm_ao_b_pins[] = { PIN(GPIOAO_9, 0) };
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),
...@@ -427,6 +429,7 @@ static struct meson_pmx_group meson_gxl_aobus_groups[] = { ...@@ -427,6 +429,7 @@ static struct meson_pmx_group meson_gxl_aobus_groups[] = {
GROUP(uart_cts_ao_b, 0, 8), GROUP(uart_cts_ao_b, 0, 8),
GROUP(uart_rts_ao_b, 0, 7), GROUP(uart_rts_ao_b, 0, 7),
GROUP(remote_input_ao, 0, 0), GROUP(remote_input_ao, 0, 0),
GROUP(pwm_ao_b, 0, 3),
}; };
static const char * const gpio_periphs_groups[] = { static const char * const gpio_periphs_groups[] = {
...@@ -540,6 +543,10 @@ static const char * const remote_input_ao_groups[] = { ...@@ -540,6 +543,10 @@ static const char * const remote_input_ao_groups[] = {
"remote_input_ao", "remote_input_ao",
}; };
static const char * const pwm_ao_b_groups[] = {
"pwm_ao_b",
};
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),
...@@ -563,6 +570,7 @@ static struct meson_pmx_func meson_gxl_aobus_functions[] = { ...@@ -563,6 +570,7 @@ static struct meson_pmx_func meson_gxl_aobus_functions[] = {
FUNCTION(uart_ao), FUNCTION(uart_ao),
FUNCTION(uart_ao_b), FUNCTION(uart_ao_b),
FUNCTION(remote_input_ao), FUNCTION(remote_input_ao),
FUNCTION(pwm_ao_b),
}; };
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