mbox series

[0/3] mediatek: pwm: add pwm driver for MediaTek SoCs

Message ID 1582290108-3234-1-git-send-email-sam.shih@mediatek.com
Headers show
Series mediatek: pwm: add pwm driver for MediaTek SoCs | expand

Message

Sam Shih Feb. 21, 2020, 1:01 p.m. UTC
Add pwm support for MediaTek SoCs: mt7622, mt7623 and mt7629,
also fix mt7622 and mt7623 boot problem caused by BINMAN_FDT 

Sam Shih (3):
  mediatek: pwm: add pwm driver for MediaTek SoCs
  arm: dts: add pwm support for MediaTek SoCs
  arm: mediatek: remove unuse binman config

 arch/arm/Kconfig               |   1 -
 arch/arm/dts/mt7622.dtsi       |  19 ++++
 arch/arm/dts/mt7623.dtsi       |  17 +++
 arch/arm/dts/mt7629.dtsi       |  16 +++
 arch/arm/mach-mediatek/Kconfig |   1 +
 drivers/pwm/Kconfig            |   7 ++
 drivers/pwm/Makefile           |   1 +
 drivers/pwm/pwm-mtk.c          | 188 +++++++++++++++++++++++++++++++++
 8 files changed, 249 insertions(+), 1 deletion(-)
 create mode 100644 drivers/pwm/pwm-mtk.c

Comments

Frank Wunderlich Feb. 24, 2020, 6:51 p.m. UTC | #1
tested pwm on bananapi r64 (with LED on gpio pins 9 as GND + 11 as pwm) with commands

BPI-R64> pwm 0 config 1000000000 500000000
BPI-R64> pwm 0 enable

also no boot-problem after last Patch (removed my temporary workaround)

Tested-by: Frank Wunderlich <frank-w@public-files.de>

only a small typo in last patches subject (missing d in unused):

arm: mediatek: remove unuse binman config

regards Frank