Thread (2 messages) 2 messages, 2 authors, 2017-01-23

[PATCH 2/3] pinctrl: meson: meson-gxl: add the pwm_ao_b pin

From: khilman@baylibre.com (Kevin Hilman)
Date: 2017-01-23 19:12:45
Also in: linux-amlogic, linux-devicetree, linux-gpio

On Mon, Jan 23, 2017 at 11:10 AM, Kevin Hilman [off-list ref] wrote:
Martin Blumenstingl [off-list ref] writes:
quoted
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: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 drivers/pinctrl/meson/pinctrl-meson-gxl.c | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxl.c b/drivers/pinctrl/meson/pinctrl-meson-gxl.c
index 25694f7094c7..6ff321a7366d 100644
--- a/drivers/pinctrl/meson/pinctrl-meson-gxl.c
+++ b/drivers/pinctrl/meson/pinctrl-meson-gxl.c
@@ -222,6 +222,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 pwm_ao_b_pins[]    = { PIN(GPIOAO_9, 0) };
+
Hmm, the S905 public data sheet[1] shows this as GPIOAO_13.
gack, nevermind.  I see now this is for GXL, not GXBB.  Ignore my comments.

Linus, feel free to apply with:

Acked-by: Kevin Hilman <khilman@baylibre.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help