[][kernel][common][pwm][Add pwm-gpio driver to Kconfig and Makefile]

[Description]
Add pwm-gpio driver to Kconfig and Makefile.

[Release-log]
N/A

Change-Id: Iee3897ea7890103012b17a82422eeb156992a50d
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8471748
diff --git a/target/linux/mediatek/patches-5.4/999-2134-add-pwm-gpio-support.patch b/target/linux/mediatek/patches-5.4/999-2134-add-pwm-gpio-support.patch
new file mode 100644
index 0000000..01426f1
--- /dev/null
+++ b/target/linux/mediatek/patches-5.4/999-2134-add-pwm-gpio-support.patch
@@ -0,0 +1,46 @@
+From 102d3751ff3a46edf91c96490a9c7bd2d32e788a Mon Sep 17 00:00:00 2001
+From: Maso Huang <maso.huang@mediatek.com>
+Date: Fri, 29 Dec 2023 16:26:16 +0800
+Subject: [PATCH] add pwm-gpio support
+
+---
+ drivers/pwm/Kconfig  | 10 ++++++++++
+ drivers/pwm/Makefile |  1 +
+ 2 files changed, 11 insertions(+)
+
+diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
+index e3a2518..9b2200c 100644
+--- a/drivers/pwm/Kconfig
++++ b/drivers/pwm/Kconfig
+@@ -171,6 +171,16 @@ config PWM_FSL_FTM
+ 	  To compile this driver as a module, choose M here: the module
+ 	  will be called pwm-fsl-ftm.
+ 
++config PWM_GPIO
++	tristate "GPIO PWM support"
++	depends on OF && GPIOLIB
++	help
++	  Generic PWM framework driver for a software PWM toggling a GPIO pin
++	  from kernel high-resolution timers.
++
++	  To compile this driver as a module, choose M here: the module
++	  will be called pwm-gpio.
++
+ config PWM_HIBVT
+ 	tristate "HiSilicon BVT PWM support"
+ 	depends on ARCH_HISI || COMPILE_TEST
+diff --git a/drivers/pwm/Makefile b/drivers/pwm/Makefile
+index 26326ad..034c1d0 100644
+--- a/drivers/pwm/Makefile
++++ b/drivers/pwm/Makefile
+@@ -15,6 +15,7 @@ obj-$(CONFIG_PWM_CRC)		+= pwm-crc.o
+ obj-$(CONFIG_PWM_CROS_EC)	+= pwm-cros-ec.o
+ obj-$(CONFIG_PWM_EP93XX)	+= pwm-ep93xx.o
+ obj-$(CONFIG_PWM_FSL_FTM)	+= pwm-fsl-ftm.o
++obj-$(CONFIG_PWM_GPIO)		+= pwm-gpio.o
+ obj-$(CONFIG_PWM_HIBVT)		+= pwm-hibvt.o
+ obj-$(CONFIG_PWM_IMG)		+= pwm-img.o
+ obj-$(CONFIG_PWM_IMX1)		+= pwm-imx1.o
+-- 
+2.18.0
+