clk: remove unused device drivers
Subsystems (2)
cover clk: remove unused device drivers
From: Arnd Bergmann <[email protected]>
A few Arm platforms are getting removed in v5.12, this removes the corresponding clk drivers.
Arnd Bergmann (4):
clk: remove tango4 driver
clk: remove zte zx driver
clk: remove sirf prima2/atlas drivers
clk: remove u300 driver
.../bindings/clock/csr,atlas7-car.txt | 55 - .../bindings/clock/prima2-clock.txt | 73 - .../bindings/clock/ste-u300-syscon-clock.txt | 80 - .../bindings/clock/tango4-clock.txt | 23 - .../bindings/clock/zx296702-clk.txt | 34 - .../bindings/clock/zx296718-clk.txt | 37 - drivers/clk/Makefile | 4 - drivers/clk/clk-tango4.c | 85 - drivers/clk/clk-u300.c | 1199 ------------ drivers/clk/sirf/Makefile | 6 - drivers/clk/sirf/atlas6.h | 32 - drivers/clk/sirf/clk-atlas6.c | 150 -- drivers/clk/sirf/clk-atlas7.c | 1682 ----------------- drivers/clk/sirf/clk-common.c | 1037 ---------- drivers/clk/sirf/clk-prima2.c | 149 -- drivers/clk/sirf/prima2.h | 26 - drivers/clk/zte/Makefile | 4 - drivers/clk/zte/clk-zx296702.c | 741 -------- drivers/clk/zte/clk-zx296718.c | 1074 ----------- drivers/clk/zte/clk.c | 446 ----- drivers/clk/zte/clk.h | 174 -- include/dt-bindings/clock/zx296702-clock.h | 180 -- include/linux/platform_data/clk-u300.h | 1 - 23 files changed, 7292 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/csr,atlas7-car.txt delete mode 100644 Documentation/devicetree/bindings/clock/prima2-clock.txt delete mode 100644 Documentation/devicetree/bindings/clock/ste-u300-syscon-clock.txt delete mode 100644 Documentation/devicetree/bindings/clock/tango4-clock.txt delete mode 100644 Documentation/devicetree/bindings/clock/zx296702-clk.txt delete mode 100644 Documentation/devicetree/bindings/clock/zx296718-clk.txt delete mode 100644 drivers/clk/clk-tango4.c delete mode 100644 drivers/clk/clk-u300.c delete mode 100644 drivers/clk/sirf/Makefile delete mode 100644 drivers/clk/sirf/atlas6.h delete mode 100644 drivers/clk/sirf/clk-atlas6.c delete mode 100644 drivers/clk/sirf/clk-atlas7.c delete mode 100644 drivers/clk/sirf/clk-common.c delete mode 100644 drivers/clk/sirf/clk-prima2.c delete mode 100644 drivers/clk/sirf/prima2.h delete mode 100644 drivers/clk/zte/Makefile delete mode 100644 drivers/clk/zte/clk-zx296702.c delete mode 100644 drivers/clk/zte/clk-zx296718.c delete mode 100644 drivers/clk/zte/clk.c delete mode 100644 drivers/clk/zte/clk.h delete mode 100644 include/dt-bindings/clock/zx296702-clock.h delete mode 100644 include/linux/platform_data/clk-u300.h
Signature · 7 lines
2.29.2 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 1/4 clk: remove tango4 driver
From: Arnd Bergmann <[email protected]>
The tango platform is getting removed, so the driver is no longer needed.
--- .../bindings/clock/tango4-clock.txt | 23 ----- drivers/clk/Makefile | 1 - drivers/clk/clk-tango4.c | 85 ------------------- 3 files changed, 109 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/tango4-clock.txt delete mode 100644 drivers/clk/clk-tango4.c
Documentation/devicetree/bindings/clock/tango4-clock.txt deleted +0 -23
@@ -1,23 +0,0 @@ -* Sigma Designs Tango4 Clock Generator - -The Tango4 clock generator outputs cpu_clk and sys_clk (the latter is used -for RAM and various peripheral devices). The clock binding described here -is applicable to all Tango4 SoCs. - -Required Properties: - -- compatible: should be "sigma,tango4-clkgen". -- reg: physical base address of the device and length of memory mapped region. -- clocks: phandle of the input clock (crystal oscillator). -- clock-output-names: should be "cpuclk" and "sysclk". -- #clock-cells: should be set to 1. - -Example: - - clkgen: clkgen@10000 { - compatible = "sigma,tango4-clkgen"; - reg = <0x10000 0x40>; - clocks = <&xtal>; - clock-output-names = "cpuclk", "sysclk"; - #clock-cells = <1>; - };
drivers/clk/Makefile +0 -1
@@ -63,7 +63,6 @@ obj-$(CONFIG_COMMON_CLK_SI570) += clk-si570.o obj-$(CONFIG_COMMON_CLK_STM32F) += clk-stm32f4.o obj-$(CONFIG_COMMON_CLK_STM32H7) += clk-stm32h7.o obj-$(CONFIG_COMMON_CLK_STM32MP157) += clk-stm32mp1.o -obj-$(CONFIG_ARCH_TANGO) += clk-tango4.o obj-$(CONFIG_CLK_TWL6040) += clk-twl6040.o obj-$(CONFIG_ARCH_U300) += clk-u300.o obj-$(CONFIG_ARCH_VT8500) += clk-vt8500.o
drivers/clk/clk-tango4.c deleted +0 -85
85 lines not on this page · raw message
Signature · 7 lines
2.29.2 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 1/4] clk: remove tango4 driver
Quoted 8 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The tango platform is getting removed, so the driver is no longer needed.
Cc Marc Gonzalez <[email protected]>Cc Mans Rullgard <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>
Quoted 146 lines
--- .../bindings/clock/tango4-clock.txt | 23 ----- drivers/clk/Makefile | 1 - drivers/clk/clk-tango4.c | 85 ------------------- 3 files changed, 109 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/tango4-clock.txt delete mode 100644 drivers/clk/clk-tango4.cDocumentation/devicetree/bindings/clock/tango4-clock.txt deleted +0
-23@@ -1,23 +0,0 @@ -* Sigma Designs Tango4 Clock Generator - -The Tango4 clock generator outputs cpu_clk and sys_clk (the latter is used -for RAM and various peripheral devices). The clock binding described here -is applicable to all Tango4 SoCs. - -Required Properties: - -- compatible: should be "sigma,tango4-clkgen". -- reg: physical base address of the device and length of memory mapped region. -- clocks: phandle of the input clock (crystal oscillator). -- clock-output-names: should be "cpuclk" and "sysclk". -- #clock-cells: should be set to 1. - -Example: - - clkgen: clkgen@10000 { - compatible = "sigma,tango4-clkgen"; - reg = <0x10000 0x40>; - clocks = <&xtal>; - clock-output-names = "cpuclk", "sysclk"; - #clock-cells = <1>; - };drivers/clk/Makefile +0
-1@@ -63,7 +63,6 @@ obj-$(CONFIG_COMMON_CLK_SI570) += clk-si570.o obj-$(CONFIG_COMMON_CLK_STM32F) += clk-stm32f4.o obj-$(CONFIG_COMMON_CLK_STM32H7) += clk-stm32h7.o obj-$(CONFIG_COMMON_CLK_STM32MP157) += clk-stm32mp1.o -obj-$(CONFIG_ARCH_TANGO) += clk-tango4.o obj-$(CONFIG_CLK_TWL6040) += clk-twl6040.o obj-$(CONFIG_ARCH_U300) += clk-u300.o obj-$(CONFIG_ARCH_VT8500) += clk-vt8500.odrivers/clk/clk-tango4.c deleted +0
-85@@ -1,85 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#include <linux/kernel.h> -#include <linux/clk-provider.h> -#include <linux/of_address.h> -#include <linux/init.h> -#include <linux/io.h> - -#define CLK_COUNT 4/* cpu_clk, sys_clk, usb_clk, sdio_clk */ -static struct clk *clks[CLK_COUNT ]; -static struct clk_onecell_data clk_data = { clks,CLK_COUNT }; - -#define SYSCLK_DIV 0x20 -#define CPUCLK_DIV 0x24 -#define DIV_BYPASS BIT(23) - -/*** CLKGEN_PLL ***/ -#define extract_pll_n (val) ((val >> 0) & ((1u << 7) - 1)) -#define extract_pll_k (val) ((val >> 13) & ((1u << 3) - 1)) -#define extract_pll_m (val) ((val >> 16) & ((1u << 3) - 1)) -#define extract_pll_isel (val) ((val >> 24) & ((1u << 3) - 1)) - -static void __init make_pll (int idx,const char *parent,void __iomem *base) -{ -char name[8 ]; -u32 val, mul, div; - -sprintf (name,"pll%d" , idx); - val =readl (base + idx *8 ); - mul =extract_pll_n (val) +1 ; - div = (extract_pll_m (val) +1 ) <<extract_pll_k (val); -clk_register_fixed_factor (NULL , name, parent,0 , mul, div); -if (extract_pll_isel (val) !=1 ) -panic ("%s: input not set to XTAL_IN\n" , name); -} - -static void __init make_cd (int idx,void __iomem *base) -{ -char name[8 ]; -u32 val, mul, div; - -sprintf (name,"cd%d" , idx); - val =readl (base + idx *8 ); - mul =1 <<27 ; - div = (2 <<27 ) + val; -clk_register_fixed_factor (NULL , name,"pll2" ,0 , mul, div); -if (val >0xf0000000 ) -panic ("%s: unsupported divider %x\n" , name, val); -} - -static void __init tango4_clkgen_setup (struct device_node *np) -{ -struct clk **pp = clk_data.clks; -void __iomem *base =of_iomap (np,0 ); -const char *parent =of_clk_get_parent_name (np,0 ); - -if (!base) -panic ("%pOFn: invalid address\n" , np); - -if (readl (base +CPUCLK_DIV ) &DIV_BYPASS ) -panic ("%pOFn: unsupported cpuclk setup\n" , np); - -if (readl (base +SYSCLK_DIV ) &DIV_BYPASS ) -panic ("%pOFn: unsupported sysclk setup\n" , np); - -writel (0x100 , base +CPUCLK_DIV );/* disable frequency ramping */ - -make_pll (0 , parent, base); -make_pll (1 , parent, base); -make_pll (2 , parent, base); -make_cd (2 , base +0x80 ); -make_cd (6 , base +0x80 ); - - pp[0 ] =clk_register_divider (NULL ,"cpu_clk" ,"pll0" ,0 , - base +CPUCLK_DIV ,8 ,8 ,CLK_DIVIDER_ONE_BASED ,NULL ); - pp[1 ] =clk_register_fixed_factor (NULL ,"sys_clk" ,"pll1" ,0 ,1 ,4 ); - pp[2 ] =clk_register_fixed_factor (NULL ,"usb_clk" ,"cd2" ,0 ,1 ,2 ); - pp[3 ] =clk_register_fixed_factor (NULL ,"sdio_clk" ,"cd6" ,0 ,1 ,2 ); - -if (IS_ERR (pp[0 ]) ||IS_ERR (pp[1 ]) ||IS_ERR (pp[2 ]) ||IS_ERR (pp[3 ])) -panic ("%pOFn: clk registration failed\n" , np); - -if (of_clk_add_provider (np, of_clk_src_onecell_get, &clk_data)) -panic ("%pOFn: clk provider registration failed\n" , np); -} -CLK_OF_DECLARE (tango4_clkgen,"sigma,tango4-clkgen" , tango4_clkgen_setup);Signature · 1 line
2.29.2
Signature · 6 lines
Måns Rullgård _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 1/4] clk: remove tango4 driver
In reply to Arnd BergmannQuoting Arnd Bergmann (2021-01-20 05:10:23)
Quoted 9 lines
From: Arnd Bergmann <[email protected]>
The tango platform is getting removed, so the driver is no longer needed.
Cc Marc Gonzalez <[email protected]>Cc Mans Rullgard <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>---
Applied to clk-next
PATCH 2/4 clk: remove zte zx driver
In reply to Arnd BergmannFrom: Arnd Bergmann <[email protected]>
The zte zx platform is getting removed, so this driver is no longer needed.
--- .../bindings/clock/zx296702-clk.txt | 34 - .../bindings/clock/zx296718-clk.txt | 37 - drivers/clk/Makefile | 1 - drivers/clk/zte/Makefile | 4 - drivers/clk/zte/clk-zx296702.c | 741 ------------ drivers/clk/zte/clk-zx296718.c | 1074 ----------------- drivers/clk/zte/clk.c | 446 ------- drivers/clk/zte/clk.h | 174 --- include/dt-bindings/clock/zx296702-clock.h | 180 --- 9 files changed, 2691 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/zx296702-clk.txt delete mode 100644 Documentation/devicetree/bindings/clock/zx296718-clk.txt delete mode 100644 drivers/clk/zte/Makefile delete mode 100644 drivers/clk/zte/clk-zx296702.c delete mode 100644 drivers/clk/zte/clk-zx296718.c delete mode 100644 drivers/clk/zte/clk.c delete mode 100644 drivers/clk/zte/clk.h delete mode 100644 include/dt-bindings/clock/zx296702-clock.h
Documentation/devicetree/bindings/clock/zx296702-clk.txt deleted +0 -34
@@ -1,34 +0,0 @@ -Device Tree Clock bindings for ZTE zx296702 - -This binding uses the common clock binding[1]. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt - -Required properties: -- compatible : shall be one of the following: - "zte,zx296702-topcrm-clk": - zx296702 top clock selection, divider and gating - - "zte,zx296702-lsp0crpm-clk" and - "zte,zx296702-lsp1crpm-clk": - zx296702 device level clock selection and gating - -- reg: Address and length of the register set - -The clock consumer should specify the desired clock by having the clock -ID in its "clocks" phandle cell. See include/dt-bindings/clock/zx296702-clock.h -for the full list of zx296702 clock IDs. - - -topclk: topcrm@09800000 { - compatible = "zte,zx296702-topcrm-clk"; - reg = <0x09800000 0x1000>; - #clock-cells = <1>; -}; - -uart0: serial@09405000 { - compatible = "zte,zx296702-uart"; - reg = <0x09405000 0x1000>; - interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&lsp1clk ZX296702_UART0_PCLK>; -};
Documentation/devicetree/bindings/clock/zx296718-clk.txt deleted +0 -37
@@ -1,37 +0,0 @@ -Device Tree Clock bindings for ZTE zx296718 - -This binding uses the common clock binding[1]. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt - -Required properties: -- compatible : shall be one of the following: - "zte,zx296718-topcrm": - zx296718 top clock selection, divider and gating - - "zte,zx296718-lsp0crm" and - "zte,zx296718-lsp1crm": - zx296718 device level clock selection and gating - - "zte,zx296718-audiocrm": - zx296718 audio clock selection, divider and gating - -- reg: Address and length of the register set - -The clock consumer should specify the desired clock by having the clock -ID in its "clocks" phandle cell. See include/dt-bindings/clock/zx296718-clock.h -for the full list of zx296718 clock IDs. - - -topclk: topcrm@1461000 { - compatible = "zte,zx296718-topcrm-clk"; - reg = <0x01461000 0x1000>; - #clock-cells = <1>; -}; - -usbphy0:usb-phy0 { - compatible = "zte,zx296718-usb-phy"; - #phy-cells = <0>; - clocks = <&topclk USB20_PHY_CLK>; - clock-names = "phyclk"; -};
drivers/clk/Makefile +0 -1
@@ -121,6 +121,5 @@ obj-y += versatile/ ifeq ($(CONFIG_COMMON_CLK), y) obj-$(CONFIG_X86) += x86/ endif -obj-$(CONFIG_ARCH_ZX) += zte/ obj-$(CONFIG_ARCH_ZYNQ) += zynq/ obj-$(CONFIG_COMMON_CLK_ZYNQMP) += zynqmp/
drivers/clk/zte/Makefile deleted +0 -4
@@ -1,4 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -obj-y := clk.o -obj-$(CONFIG_SOC_ZX296702) += clk-zx296702.o -obj-$(CONFIG_ARCH_ZX) += clk-zx296718.o
drivers/clk/zte/clk-zx296702.c deleted +0 -741
741 lines not on this page · raw message
drivers/clk/zte/clk-zx296718.c deleted +0 -1074
1,074 lines not on this page · raw message
drivers/clk/zte/clk.c deleted +0 -446
446 lines not on this page · raw message
drivers/clk/zte/clk.h deleted +0 -174
174 lines not on this page · raw message
include/dt-bindings/clock/zx296702-clock.h deleted +0 -180
180 lines not on this page · raw message
Signature · 7 lines
2.29.2 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 2/4] clk: remove zte zx driver
Quoting Arnd Bergmann (2021-01-20 05:10:24)
Quoted 9 lines
From: Arnd Bergmann <[email protected]>
The zte zx platform is getting removed, so this driver is no longer needed.
Cc Jun Nie <[email protected]>Cc Shawn Guo <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>---
Applied to clk-next
PATCH 4/4 clk: remove u300 driver
In reply to Arnd BergmannFrom: Arnd Bergmann <[email protected]>
The ST-Ericsson U300 platform is getting removed, so this driver is no longer needed.
--- .../bindings/clock/ste-u300-syscon-clock.txt | 80 -- drivers/clk/Makefile | 1 - drivers/clk/clk-u300.c | 1199 ----------------- include/linux/platform_data/clk-u300.h | 1 - 4 files changed, 1281 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/ste-u300-syscon-clock.txt delete mode 100644 drivers/clk/clk-u300.c delete mode 100644 include/linux/platform_data/clk-u300.h
Documentation/devicetree/bindings/clock/ste-u300-syscon-clock.txt deleted +0 -80
@@ -1,80 +0,0 @@ -Clock bindings for ST-Ericsson U300 System Controller Clocks - -Bindings for the gated system controller clocks: - -Required properties: -- compatible: must be "stericsson,u300-syscon-clk" -- #clock-cells: must be <0> -- clock-type: specifies the type of clock: - 0 = slow clock - 1 = fast clock - 2 = rest/remaining clock -- clock-id: specifies the clock in the type range - -Optional properties: -- clocks: parent clock(s) - -The available clocks per type are as follows: - -Type: ID: Clock: -------------------- -0 0 Slow peripheral bridge clock -0 1 UART0 clock -0 4 GPIO clock -0 6 RTC clock -0 7 Application timer clock -0 8 Access timer clock - -1 0 Fast peripheral bridge clock -1 1 I2C bus 0 clock -1 2 I2C bus 1 clock -1 5 MMC interface peripheral (silicon) clock -1 6 SPI clock - -2 3 CPU clock -2 4 DMA controller clock -2 5 External Memory Interface (EMIF) clock -2 6 NAND flask interface clock -2 8 XGAM graphics engine clock -2 9 Shared External Memory Interface (SEMI) clock -2 10 AHB Subsystem Bridge clock -2 12 Interrupt controller clock - -Example: - -gpio_clk: gpio_clk@13M { - #clock-cells = <0>; - compatible = "stericsson,u300-syscon-clk"; - clock-type = <0>; /* Slow */ - clock-id = <4>; - clocks = <&slow_clk>; -}; - -gpio: gpio@c0016000 { - compatible = "stericsson,gpio-coh901"; - (...) - clocks = <&gpio_clk>; -}; - - -Bindings for the MMC/SD card clock: - -Required properties: -- compatible: must be "stericsson,u300-syscon-mclk" -- #clock-cells: must be <0> - -Optional properties: -- clocks: parent clock(s) - -mmc_mclk: mmc_mclk { - #clock-cells = <0>; - compatible = "stericsson,u300-syscon-mclk"; - clocks = <&mmc_pclk>; -}; - -mmcsd: mmcsd@c0001000 { - compatible = "arm,pl18x", "arm,primecell"; - clocks = <&mmc_pclk>, <&mmc_mclk>; - clock-names = "apb_pclk", "mclk"; - (...) -};
drivers/clk/Makefile +0 -1
@@ -64,7 +64,6 @@ obj-$(CONFIG_COMMON_CLK_STM32F) += clk-stm32f4.o obj-$(CONFIG_COMMON_CLK_STM32H7) += clk-stm32h7.o obj-$(CONFIG_COMMON_CLK_STM32MP157) += clk-stm32mp1.o obj-$(CONFIG_CLK_TWL6040) += clk-twl6040.o -obj-$(CONFIG_ARCH_U300) += clk-u300.o obj-$(CONFIG_ARCH_VT8500) += clk-vt8500.o obj-$(CONFIG_COMMON_CLK_VC5) += clk-versaclock5.o obj-$(CONFIG_COMMON_CLK_WM831X) += clk-wm831x.o
drivers/clk/clk-u300.c deleted +0 -1199
1,199 lines not on this page · raw message
include/linux/platform_data/clk-u300.h deleted +0 -1
@@ -1 +0,0 @@ -void __init u300_clk_init (void __iomem *base);
Signature · 7 lines
2.29.2 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 4/4] clk: remove u300 driver
Quoted 7 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The ST-Ericsson U300 platform is getting removed, so this driver is no longer needed.
Cc Linus Walleij <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>
Yours,
Linus Walleij
Re: [PATCH 4/4] clk: remove u300 driver
In reply to Arnd BergmannQuoting Arnd Bergmann (2021-01-20 05:10:26)
Quoted 8 lines
From: Arnd Bergmann <[email protected]>
The ST-Ericsson U300 platform is getting removed, so this driver is no longer needed.
Cc Linus Walleij <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>---
Applied to clk-next
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH 3/4] clk: remove sirf prima2/atlas drivers
Quoting Arnd Bergmann (2021-01-20 05:10:25)
Quoted 8 lines
From: Arnd Bergmann <[email protected]>
The CSR SiRF prima2/atlas platforms are getting removed, so this driver is no longer needed.
Cc Barry Song <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>---
Applied to clk-next