Skip to contentSkip to conversation

pwm: remove zte zx driver

PATCH In review Arnd Bergmann 2 participants 4 messages Jan 20, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pwm: remove zte zx driver

From: Arnd Bergmann <[email protected]>

The zte zx platform is getting removed, so this driver is no longer needed.

---
 .../devicetree/bindings/pwm/pwm-zx.txt        |  22 --
 drivers/pwm/Kconfig                           |  20 --
 drivers/pwm/Makefile                          |   2 -
 drivers/pwm/pwm-zx.c                          | 278 ------------------
 4 files changed, 322 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-zx.txt
 delete mode 100644 drivers/pwm/pwm-zx.c
Documentation/devicetree/bindings/pwm/pwm-zx.txt deleted +0 -22
deleted file mode 100644
index 3c8fe7aa8269..000000000000
@@ -1,22 +0,0 @@
-ZTE ZX PWM controller
-
-Required properties:
- - compatible: Should be "zte,zx296718-pwm".
- - reg: Physical base address and length of the controller's registers.
- - clocks : The phandle and specifier referencing the controller's clocks.
- - clock-names: "pclk" for PCLK, "wclk" for WCLK to the PWM controller.  The
-   PCLK is for register access, while WCLK is the reference clock for
-   calculating period and duty cycles.
- - #pwm-cells: Should be 3. See pwm.yaml in this directory for a description of
-   the cells format.
-
-Example:
-
-	pwm: pwm@1439000 {
-		compatible = "zte,zx296718-pwm";
-		reg = <0x1439000 0x1000>;
-		clocks = <&lsp1crm LSP1_PWM_PCLK>,
-			 <&lsp1crm LSP1_PWM_WCLK>;
-		clock-names = "pclk", "wclk";
-		#pwm-cells = <3>;
-	};
drivers/pwm/Kconfig +0 -20
index 0937e1c047ac..4c28d0634ce9 100644
@@ -601,24 +601,4 @@ config PWM_TWL_LED
 	  To compile this driver as a module, choose M here: the module
 	  will be called pwm-twl-led.
 
-config PWM_VT8500
-	tristate "vt8500 PWM support"
-	depends on ARCH_VT8500 || COMPILE_TEST
-	depends on HAS_IOMEM
-	help
-	  Generic PWM framework driver for vt8500.
-
-	  To compile this driver as a module, choose M here: the module
-	  will be called pwm-vt8500.
-
-config PWM_ZX
-	tristate "ZTE ZX PWM support"
-	depends on ARCH_ZX || COMPILE_TEST
-	depends on HAS_IOMEM
-	help
-	  Generic PWM framework driver for ZTE ZX family SoCs.
-
-	  To compile this driver as a module, choose M here: the module
-	  will be called pwm-zx.
-
 endif
drivers/pwm/Makefile +0 -2
index 18b89d7fd092..e90d0fd789f3 100644
@@ -56,5 +56,3 @@ obj-$(CONFIG_PWM_TIECAP)	+= pwm-tiecap.o
 obj-$(CONFIG_PWM_TIEHRPWM)	+= pwm-tiehrpwm.o
 obj-$(CONFIG_PWM_TWL)		+= pwm-twl.o
 obj-$(CONFIG_PWM_TWL_LED)	+= pwm-twl-led.o
-obj-$(CONFIG_PWM_VT8500)	+= pwm-vt8500.o
-obj-$(CONFIG_PWM_ZX)		+= pwm-zx.o
drivers/pwm/pwm-zx.c deleted +0 -278

278 lines not on this page · raw message

Signature · 1 line
2.29.2
#1 lore raw
Quoted 53 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The zte zx platform is getting removed, so this driver is no longer needed.

---
 .../devicetree/bindings/pwm/pwm-zx.txt        |  22 --
 drivers/pwm/Kconfig                           |  20 --
 drivers/pwm/Makefile                          |   2 -
 drivers/pwm/pwm-zx.c                          | 278 ------------------
 4 files changed, 322 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-zx.txt
 delete mode 100644 drivers/pwm/pwm-zx.c
Documentation/devicetree/bindings/pwm/pwm-zx.txt deleted +0 -22
deleted file mode 100644
index 3c8fe7aa8269..000000000000
@@ -1,22 +0,0 @@
-ZTE ZX PWM controller
-
-Required properties:
- - compatible: Should be "zte,zx296718-pwm".
- - reg: Physical base address and length of the controller's registers.
- - clocks : The phandle and specifier referencing the controller's clocks.
- - clock-names: "pclk" for PCLK, "wclk" for WCLK to the PWM controller.  The
-   PCLK is for register access, while WCLK is the reference clock for
-   calculating period and duty cycles.
- - #pwm-cells: Should be 3. See pwm.yaml in this directory for a description of
-   the cells format.
-
-Example:
-
-	pwm: pwm@1439000 {
-		compatible = "zte,zx296718-pwm";
-		reg = <0x1439000 0x1000>;
-		clocks = <&lsp1crm LSP1_PWM_PCLK>,
-			 <&lsp1crm LSP1_PWM_WCLK>;
-		clock-names = "pclk", "wclk";
-		#pwm-cells = <3>;
-	};
drivers/pwm/Kconfig +0 -0
index 0937e1c047ac..4c28d0634ce9 100644
@@ -601,24 +601,4 @@ config PWM_TWL_LED
 	  To compile this driver as a module, choose M here: the module
 	  will be called pwm-twl-led.
 

drivers/pwm/Kconfig config PWM_TWL_LED · line 613

Quoted 10 lines
drivers/pwm/Kconfig +0 -10
-config PWM_VT8500
-	tristate "vt8500 PWM support"
-	depends on ARCH_VT8500 || COMPILE_TEST
-	depends on HAS_IOMEM
-	help
-	  Generic PWM framework driver for vt8500.
-
-	  To compile this driver as a module, choose M here: the module
-	  will be called pwm-vt8500.
-

I assume that you dropped the PWM_VT8500 symbol by mistake? I can fix that up while applying, so no need to resend.

Thierry

#2 lore raw
Quoted 15 lines · Thierry Reding

drivers/pwm/Kconfig config PWM_TWL_LED · line 613

Quoted 10 lines · Arnd Bergmann
drivers/pwm/Kconfig +0 -10
-config PWM_VT8500
-     tristate "vt8500 PWM support"
-     depends on ARCH_VT8500 || COMPILE_TEST
-     depends on HAS_IOMEM
-     help
-       Generic PWM framework driver for vt8500.
-
-       To compile this driver as a module, choose M here: the module
-       will be called pwm-vt8500.
-

I assume that you dropped the PWM_VT8500 symbol by mistake? I can fix that up while applying, so no need to resend.

Indeed, thanks for catching my mistake and fixing it up!

Arnd

#3 lore raw
Quoted 17 lines · Arnd Bergmann
Quoted 15 lines · Thierry Reding

drivers/pwm/Kconfig config PWM_TWL_LED · line 613

Quoted 10 lines · Arnd Bergmann
drivers/pwm/Kconfig +0 -10
-config PWM_VT8500
-     tristate "vt8500 PWM support"
-     depends on ARCH_VT8500 || COMPILE_TEST
-     depends on HAS_IOMEM
-     help
-       Generic PWM framework driver for vt8500.
-
-       To compile this driver as a module, choose M here: the module
-       will be called pwm-vt8500.
-

I assume that you dropped the PWM_VT8500 symbol by mistake? I can fix that up while applying, so no need to resend.

Quoted 1 line

Indeed, thanks for catching my mistake and fixing it up!

Fixed up and applied, thanks!

Thierry