On Thu, Apr 23, 2020 at 07:45:35PM +0200, Michael Walle wrote: > This adds support for the PWM controller of the sl28cpld board > management controller. This is part of a multi-function device driver. > > Signed-off-by: Michael Walle <michael@xxxxxxxx> > --- > drivers/pwm/Kconfig | 10 ++ > drivers/pwm/Makefile | 1 + > drivers/pwm/pwm-sl28cpld.c | 203 +++++++++++++++++++++++++++++++++++++ > 3 files changed, 214 insertions(+) > create mode 100644 drivers/pwm/pwm-sl28cpld.c > +static const struct of_device_id sl28cpld_pwm_of_match[] = { > + { .compatible = "kontron,sl28cpld-pwm" }, > + {}, > +}; > +MODULE_DEVICE_TABLE(of, sl28cpld_pwm_of_match); > + > +static const struct platform_device_id sl28cpld_pwm_id_table[] = { > + {"sl28cpld-gpio"}, copy-n-paste error? > + {}, > +}; > +MODULE_DEVICE_TABLE(platform, sl28cpld_pwm_id_table); > + > +static struct platform_driver sl28cpld_pwm_driver = { > + .probe = sl28cpld_pwm_probe, > + .remove = sl28cpld_pwm_remove, > + .id_table = sl28cpld_pwm_id_table, > + .driver = { > + .name = KBUILD_MODNAME, > + .of_match_table = sl28cpld_pwm_of_match, > + }, > +}; > +module_platform_driver(sl28cpld_pwm_driver); > + > +MODULE_DESCRIPTION("sl28cpld PWM Driver"); > +MODULE_AUTHOR("Michael Walle <michael@xxxxxxxx>"); > +MODULE_LICENSE("GPL"); > -- > 2.20.1 >