STi drivers cleanup
Subsystems (3)
cover STi drivers cleanup
With B2120 board removal[1] several drivers are left unused.
Remove the following compatibles:
- st,flexgen-stih407-a0
- st,flexgen-stih407-c0
- st,flexgen-stih407-d0
- st,stih407-c8sectpfe
[1] commit dee546e1adef ("ARM: sti: drop B2120 board support")
---
Raphael Gallais-Pou (4):
media: c8sectpfe: remove support of STi c8sectpfe driver
dt-bindings: media: remove support of stih407-c8sectpfe
clk: st: flexgen: remove unused compatible
dt-bindings: clock: st: flexgen: remove deprecated compatibles
.../devicetree/bindings/clock/st/st,flexgen.txt | 3 - .../bindings/media/stih407-c8sectpfe.txt | 88 -- MAINTAINERS | 1 - drivers/clk/st/clk-flexgen.c | 80 -- drivers/media/platform/st/sti/Kconfig | 1 - drivers/media/platform/st/sti/Makefile | 1 - drivers/media/platform/st/sti/c8sectpfe/Kconfig | 28 - drivers/media/platform/st/sti/c8sectpfe/Makefile | 11 - .../platform/st/sti/c8sectpfe/c8sectpfe-common.c | 262 ----- .../platform/st/sti/c8sectpfe/c8sectpfe-common.h | 60 - .../platform/st/sti/c8sectpfe/c8sectpfe-core.c | 1158 -------------------- .../platform/st/sti/c8sectpfe/c8sectpfe-core.h | 287 ----- .../platform/st/sti/c8sectpfe/c8sectpfe-debugfs.c | 244 ----- .../platform/st/sti/c8sectpfe/c8sectpfe-debugfs.h | 23 - .../platform/st/sti/c8sectpfe/c8sectpfe-dvb.c | 235 ---- .../platform/st/sti/c8sectpfe/c8sectpfe-dvb.h | 17 - 16 files changed, 2499 deletions(-)
---
base-commit: 8f21d9da46702c4d6951ba60ca8a05f42870fe8f
change-id: 20250908-master-5c5c980cfb03
Best regards,
Signature · 1 line
Raphael Gallais-Pou <[email protected]>
PATCH 1/4 media: c8sectpfe: remove support of STi c8sectpfe driver
STi c8sectpfe device is only used on B2120 boards, which support has been withdrawn in commit dee546e1adef ("ARM: sti: drop B2120 board support").
--- MAINTAINERS | 1 - drivers/media/platform/st/sti/Kconfig | 1 - drivers/media/platform/st/sti/Makefile | 1 - drivers/media/platform/st/sti/c8sectpfe/Kconfig | 28 - drivers/media/platform/st/sti/c8sectpfe/Makefile | 11 - .../platform/st/sti/c8sectpfe/c8sectpfe-common.c | 262 ----- .../platform/st/sti/c8sectpfe/c8sectpfe-common.h | 60 - .../platform/st/sti/c8sectpfe/c8sectpfe-core.c | 1158 -------------------- .../platform/st/sti/c8sectpfe/c8sectpfe-core.h | 287 ----- .../platform/st/sti/c8sectpfe/c8sectpfe-debugfs.c | 244 ----- .../platform/st/sti/c8sectpfe/c8sectpfe-debugfs.h | 23 - .../platform/st/sti/c8sectpfe/c8sectpfe-dvb.c | 235 ---- .../platform/st/sti/c8sectpfe/c8sectpfe-dvb.h | 17 - 13 files changed, 2328 deletions(-)
MAINTAINERS +0 -1
@@ -3413,7 +3413,6 @@ F: drivers/clocksource/clksrc_st_lpc.c F: drivers/cpufreq/sti-cpufreq.c F: drivers/dma/st_fdma* F: drivers/i2c/busses/i2c-st.c -F: drivers/media/platform/st/sti/c8sectpfe/ F: drivers/media/rc/st_rc.c F: drivers/mmc/host/sdhci-st.c F: drivers/phy/st/phy-miphy28lp.c
drivers/media/platform/st/sti/Kconfig +0 -1
@@ -1,5 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only source "drivers/media/platform/st/sti/bdisp/Kconfig" -source "drivers/media/platform/st/sti/c8sectpfe/Kconfig" source "drivers/media/platform/st/sti/delta/Kconfig" source "drivers/media/platform/st/sti/hva/Kconfig"
drivers/media/platform/st/sti/Makefile +0 -1
@@ -1,6 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only obj-y += bdisp/ -obj-y += c8sectpfe/ obj-y += delta/ obj-y += hva/ obj-y += stm32/
drivers/media/platform/st/sti/c8sectpfe/Kconfig deleted +0 -28
@@ -1,28 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -config DVB_C8SECTPFE - tristate "STMicroelectronics C8SECTPFE DVB support" - depends on DVB_PLATFORM_DRIVERS - depends on PINCTRL && DVB_CORE && I2C - depends on ARCH_STI || ARCH_MULTIPLATFORM || COMPILE_TEST - select FW_LOADER - select DVB_LNBP21 if MEDIA_SUBDRV_AUTOSELECT - select DVB_STV090x if MEDIA_SUBDRV_AUTOSELECT - select DVB_STB6100 if MEDIA_SUBDRV_AUTOSELECT - select DVB_STV6110 if MEDIA_SUBDRV_AUTOSELECT - select DVB_STV0900 if MEDIA_SUBDRV_AUTOSELECT - select DVB_STV0367 if MEDIA_SUBDRV_AUTOSELECT - select MEDIA_TUNER_TDA18212 if MEDIA_SUBDRV_AUTOSELECT - - help - This adds support for DVB front-end cards connected - to TS inputs of STiH407/410 SoC. - - The driver currently supports C8SECTPFE's TS input block, - memdma engine, and HW PID filtering. - - Supported DVB front-end cards are: - - STMicroelectronics DVB-T B2100A (STV0367 + TDA18212) - - STMicroelectronics DVB-S/S2 STV0903 + STV6110 + LNBP24 board - - To compile this driver as a module, choose M here: the - module will be called c8sectpfe.
drivers/media/platform/st/sti/c8sectpfe/Makefile deleted +0 -11
@@ -1,11 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -c8sectpfe-y += c8sectpfe-core.o c8sectpfe-common.o c8sectpfe-dvb.o - -ifneq ($(CONFIG_DEBUG_FS),) -c8sectpfe-y += c8sectpfe-debugfs.o -endif - -obj-$(CONFIG_DVB_C8SECTPFE) += c8sectpfe.o - -ccflags-y += -I $(srctree)/drivers/media/dvb-frontends/ -ccflags-y += -I $(srctree)/drivers/media/tuners/
drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-common.c deleted +0 -262
262 lines not on this page · raw message
drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-common.h deleted +0 -60
60 lines not on this page · raw message
drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c deleted +0 -1158
1,158 lines not on this page · raw message
drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.h deleted +0 -287
287 lines not on this page · raw message
drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-debugfs.c deleted +0 -244
244 lines not on this page · raw message
drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-debugfs.h deleted +0 -23
@@ -1,23 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* -* c8sectpfe-debugfs.h - C8SECTPFE STi DVB driver debugfs header -* -* Copyright (c) STMicroelectronics 2015 -* -* Authors: Peter Griffin <[email protected]> -*/ - -#ifndef __C8SECTPFE_DEBUG_H -#define __C8SECTPFE_DEBUG_H - -#include "c8sectpfe-core.h" - -#if defined(CONFIG_DEBUG_FS ) -void c8sectpfe_debugfs_init (struct c8sectpfei *); -void c8sectpfe_debugfs_exit (struct c8sectpfei *); -#else -static inline void c8sectpfe_debugfs_init (struct c8sectpfei *fei) {}; -static inline void c8sectpfe_debugfs_exit (struct c8sectpfei *fei) {}; -#endif - -#endif /* __C8SECTPFE_DEBUG_H */
drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-dvb.c deleted +0 -235
235 lines not on this page · raw message
drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-dvb.h deleted +0 -17
@@ -1,17 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* -* c8sectpfe-common.h - C8SECTPFE STi DVB driver -* -* Copyright (c) STMicroelectronics 2015 -* -* Author: Peter Griffin <[email protected]> -* -*/ -#ifndef _C8SECTPFE_DVB_H_ -#define _C8SECTPFE_DVB_H_ - -int c8sectpfe_frontend_attach (struct dvb_frontend **fe, -struct c8sectpfe *c8sectpfe,struct channel_info *tsin, -int chan_num); - -#endif
Signature · 1 line
2.51.0
PATCH 2/4 dt-bindings: media: remove support of stih407-c8sectpfe
In reply to Raphael Gallais-PouRemove file documentation from stih407-c8sectpfe driver.
--- .../bindings/media/stih407-c8sectpfe.txt | 88 ---------------------- 1 file changed, 88 deletions(-)
Documentation/devicetree/bindings/media/stih407-c8sectpfe.txt deleted +0 -88
@@ -1,88 +0,0 @@ -STMicroelectronics STi c8sectpfe binding -============================================ - -This document describes the c8sectpfe device bindings that is used to get transport -stream data into the SoC on the TS pins, and into DDR for further processing. - -It is typically used in conjunction with one or more demodulator and tuner devices -which converts from the RF to digital domain. Demodulators and tuners are usually -located on an external DVB frontend card connected to SoC TS input pins. - -Currently 7 TS input (tsin) channels are supported on the stih407 family SoC. - -Required properties (controller (parent) node): -- compatible : Should be "stih407-c8sectpfe" - -- reg : Address and length of register sets for each device in - "reg-names" - -- reg-names : The names of the register addresses corresponding to the - registers filled in "reg": - - c8sectpfe: c8sectpfe registers - - c8sectpfe-ram: c8sectpfe internal sram - -- clocks : phandle list of c8sectpfe clocks -- clock-names : should be "c8sectpfe" -See: Documentation/devicetree/bindings/clock/clock-bindings.txt - -- pinctrl-names : a pinctrl state named tsin%d-serial or tsin%d-parallel (where %d is tsin-num) - must be defined for each tsin child node. -- pinctrl-0 : phandle referencing pin configuration for this tsin configuration -See: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt - - -Required properties (tsin (child) node): - -- tsin-num : tsin id of the InputBlock (must be between 0 to 6) -- i2c-bus : phandle to the I2C bus DT node which the demodulators & tuners on this tsin channel are connected. -- reset-gpios : reset gpio for this tsin channel. - -Optional properties (tsin (child) node): - -- invert-ts-clk : Bool property to control sense of ts input clock (data stored on falling edge of clk). -- serial-not-parallel : Bool property to configure input bus width (serial on ts_data<7>). -- async-not-sync : Bool property to control if data is received in asynchronous mode - (all bits/bytes with ts_valid or ts_packet asserted are valid). - -- dvb-card : Describes the NIM card connected to this tsin channel. - -Example: - -/* stih410 SoC b2120 + b2004a + stv0367-pll(NIMB) + stv0367-tda18212 (NIMA) DT example) */ - - c8sectpfe@8a20000 { - compatible = "st,stih407-c8sectpfe"; - reg = <0x08a20000 0x10000>, <0x08a00000 0x4000>; - reg-names = "stfe", "stfe-ram"; - interrupts = <GIC_SPI 34 IRQ_TYPE_NONE>, <GIC_SPI 35 IRQ_TYPE_NONE>; - interrupt-names = "stfe-error-irq", "stfe-idle-irq"; - pinctrl-0 = <&pinctrl_tsin0_serial>; - pinctrl-1 = <&pinctrl_tsin0_parallel>; - pinctrl-2 = <&pinctrl_tsin3_serial>; - pinctrl-3 = <&pinctrl_tsin4_serial_alt3>; - pinctrl-4 = <&pinctrl_tsin5_serial_alt1>; - pinctrl-names = "tsin0-serial", - "tsin0-parallel", - "tsin3-serial", - "tsin4-serial", - "tsin5-serial"; - clocks = <&clk_s_c0_flexgen CLK_PROC_STFE>; - clock-names = "c8sectpfe"; - - /* tsin0 is TSA on NIMA */ - tsin0: port@0 { - tsin-num = <0>; - serial-not-parallel; - i2c-bus = <&ssc2>; - reset-gpios = <&pio15 4 GPIO_ACTIVE_HIGH>; - dvb-card = <STV0367_TDA18212_NIMA_1>; - }; - - tsin3: port@3 { - tsin-num = <3>; - serial-not-parallel; - i2c-bus = <&ssc3>; - reset-gpios = <&pio15 7 GPIO_ACTIVE_HIGH>; - dvb-card = <STV0367_TDA18212_NIMB_1>; - }; - };
Signature · 1 line
2.51.0
PATCH 3/4 clk: st: flexgen: remove unused compatible
In reply to Raphael Gallais-PouFollowing B2120 boards removal in commit dee546e1adef ("ARM: sti: drop B2120 board support"), several compatibles are left unused. Remove them.
--- drivers/clk/st/clk-flexgen.c | 80 -------------------------------------------- 1 file changed, 80 deletions(-)
drivers/clk/st/clk-flexgen.c +0 -80
@@ -303,16 +303,6 @@ static const struct clkgen_data clkgen_video = { .mode = 1, }; -static const struct clkgen_clk_out clkgen_stih407_a0_clk_out[] = { -/* This clk needs to be on so that memory interface is accessible */ - { .name ="clk-ic-lmi0" , .flags =CLK_IS_CRITICAL }, -}; - -static const struct clkgen_data clkgen_stih407_a0 = { - .outputs = clkgen_stih407_a0_clk_out, - .outputs_nb =ARRAY_SIZE (clkgen_stih407_a0_clk_out), -}; -static const struct clkgen_clk_out clkgen_stih410_a0_clk_out[] = {/* Those clks need to be on so that memory interface is accessible */ { .name ="clk-ic-lmi0" , .flags =CLK_IS_CRITICAL },
@@ -324,51 +314,6 @@ static const struct clkgen_data clkgen_stih410_a0 = { .outputs_nb = ARRAY_SIZE(clkgen_stih410_a0_clk_out), }; -static const struct clkgen_clk_out clkgen_stih407_c0_clk_out[] = { - { .name ="clk-icn-gpu" , }, - { .name ="clk-fdma" , }, - { .name ="clk-nand" , }, - { .name ="clk-hva" , }, - { .name ="clk-proc-stfe" , }, - { .name ="clk-proc-tp" , }, - { .name ="clk-rx-icn-dmu" , }, - { .name ="clk-rx-icn-hva" , }, -/* This clk needs to be on to keep bus interconnect alive */ - { .name ="clk-icn-cpu" , .flags =CLK_IS_CRITICAL }, -/* This clk needs to be on to keep bus interconnect alive */ - { .name ="clk-tx-icn-dmu" , .flags =CLK_IS_CRITICAL }, - { .name ="clk-mmc-0" , }, - { .name ="clk-mmc-1" , }, - { .name ="clk-jpegdec" , }, -/* This clk needs to be on to keep A9 running */ - { .name ="clk-ext2fa9" , .flags =CLK_IS_CRITICAL }, - { .name ="clk-ic-bdisp-0" , }, - { .name ="clk-ic-bdisp-1" , }, - { .name ="clk-pp-dmu" , }, - { .name ="clk-vid-dmu" , }, - { .name ="clk-dss-lpc" , }, - { .name ="clk-st231-aud-0" , }, - { .name ="clk-st231-gp-1" , }, - { .name ="clk-st231-dmu" , }, -/* This clk needs to be on to keep bus interconnect alive */ - { .name ="clk-icn-lmi" , .flags =CLK_IS_CRITICAL }, - { .name ="clk-tx-icn-disp-1" , }, -/* This clk needs to be on to keep bus interconnect alive */ - { .name ="clk-icn-sbc" , .flags =CLK_IS_CRITICAL }, - { .name ="clk-stfe-frc2" , }, - { .name ="clk-eth-phy" , }, - { .name ="clk-eth-ref-phyclk" , }, - { .name ="clk-flash-promip" , }, - { .name ="clk-main-disp" , }, - { .name ="clk-aux-disp" , }, - { .name ="clk-compo-dvp" , }, -}; - -static const struct clkgen_data clkgen_stih407_c0 = { - .outputs = clkgen_stih407_c0_clk_out, - .outputs_nb =ARRAY_SIZE (clkgen_stih407_c0_clk_out), -}; -static const struct clkgen_clk_out clkgen_stih410_c0_clk_out[] = { { .name ="clk-icn-gpu" , }, { .name ="clk-fdma" , },
@@ -482,19 +427,6 @@ static const struct clkgen_data clkgen_stih418_c0 = { .outputs_nb = ARRAY_SIZE(clkgen_stih418_c0_clk_out), }; -static const struct clkgen_clk_out clkgen_stih407_d0_clk_out[] = { - { .name ="clk-pcm-0" , }, - { .name ="clk-pcm-1" , }, - { .name ="clk-pcm-2" , }, - { .name ="clk-spdiff" , }, -}; - -static const struct clkgen_data clkgen_stih407_d0 = { - .flags =CLK_SET_RATE_PARENT , - .outputs = clkgen_stih407_d0_clk_out, - .outputs_nb =ARRAY_SIZE (clkgen_stih407_d0_clk_out), -}; -static const struct clkgen_clk_out clkgen_stih410_d0_clk_out[] = { { .name ="clk-pcm-0" , }, { .name ="clk-pcm-1" , },
@@ -596,18 +528,10 @@ static const struct of_device_id flexgen_of_match[] = { .compatible = "st,flexgen-video", .data = &clkgen_video, }, - { - .compatible = "st,flexgen-stih407-a0", - .data = &clkgen_stih407_a0, - }, { .compatible = "st,flexgen-stih410-a0", .data = &clkgen_stih410_a0, }, - { - .compatible = "st,flexgen-stih407-c0", - .data = &clkgen_stih407_c0, - }, { .compatible = "st,flexgen-stih410-c0", .data = &clkgen_stih410_c0,
@@ -616,10 +540,6 @@ static const struct of_device_id flexgen_of_match[] = { .compatible = "st,flexgen-stih418-c0", .data = &clkgen_stih418_c0, }, - { - .compatible = "st,flexgen-stih407-d0", - .data = &clkgen_stih407_d0, - }, { .compatible = "st,flexgen-stih410-d0", .data = &clkgen_stih410_d0,
Signature · 1 line
2.51.0
PATCH 4/4 dt-bindings: clock: st: flexgen: remove deprecated compatibles
In reply to Raphael Gallais-Poust/stih407-clock.dtsi file has been removed in commit 65322c1daf51 ("clk: st: flexgen: remove unused compatible"). This file has three compatibles which are now dangling. Remove them from documentation.
--- Documentation/devicetree/bindings/clock/st/st,flexgen.txt | 3 --- 1 file changed, 3 deletions(-)
Documentation/devicetree/bindings/clock/st/st,flexgen.txt +0 -3
@@ -64,12 +64,9 @@ Required properties: audio use case) "st,flexgen-video", "st,flexgen" (enable clock propagation on parent and activate synchronous mode) - "st,flexgen-stih407-a0" "st,flexgen-stih410-a0" - "st,flexgen-stih407-c0" "st,flexgen-stih410-c0" "st,flexgen-stih418-c0" - "st,flexgen-stih407-d0" "st,flexgen-stih410-d0" "st,flexgen-stih407-d2" "st,flexgen-stih418-d2"
Signature · 1 line
2.51.0