[PATCH v2 0/4] Meson8 pinctrl updates (PWM, I2S, SPDIF, AO pins)

Martin Blumenstingl martin.blumenstingl at googlemail.com
Sat May 6 09:57:47 PDT 2017

This adds a bunch of missing pins to the Meson8 pinctrl driver.
The full pinctrl register documentation can be found in a file called
"m8_gpio.csv" which is part of older Amlogic GPL kernel releases (one
example is the GPL kernel source of the Odroid-C1, see [0]).

To sum it up, this series adds:
- all pins with PWM function (PWM_A, PWM_B, PWM_C, PWM_D, PWM_E and PWM_F)
- I2S input and output
- SPDIF input and output
- IR remote output ("IR blaster")
- HDMI CEC in the AO domain

This series does NOT add:
- PWM_VS (exposed on a lot of pins, as these cannot be driven by the PWM
  controllers/pwm-meson driver - these seem to be used for the backlight?)
- UART_TX_AO_A and UART_RX_AO_A on CARD_4 and CARD_5 (I'm not sure why
  there is AO functionality on non-AO pins)
- I2C_SDA_A and I2C_SCK_A on GPIOZ_9/GPIOZ_10 and GPIOZ_11/GPIOZ_12
- CLK_24M_OUT on GPIOZ_6 and CLK_32K_INCLK_32K_OUT on GPIOAO_6 as we don't
  have a driver (or documentation) how to configure the clock rate for
  these pins
- all pins for which I don't know the actual purpose (isp_led_en1 and
  isp_led_en2, all TSout pins, all TSin pins, all DVP pins, all TCON pins)

Changes since v1:
- fixed a typo in the subject of patch #1 (which said meson8b instead of
- fixed a typo in the pwm_f_ao_groups definition, it referenced a pin
  with the name "pwm_f", however that pin is actually called "pwm_f_ao"

[0] https://github.com/hardkernel/linux/blob/d1342c45452ebafb4903557f0c909f4517c90934/arch/arm/mach-meson8/tool/m8_gpio.csv

Martin Blumenstingl (4):
  pinctrl: meson: meson8: add the PWM pins
  pinctrl: meson: meson8: add support for the I2S and SPDIF pins
  pinctrl: meson: meson8: add support for the AO remote output pin
  pinctrl: meson: meson8: add the AO HDMI CEC pin

 drivers/pinctrl/meson/pinctrl-meson8.c | 127 ++++++++++++++++++++++++++++++++-
 1 file changed, 126 insertions(+), 1 deletion(-)


More information about the linux-amlogic mailing list