Home
last modified time | relevance | path

Searched +full:cec +full:- +full:clk (Results 1 – 25 of 202) sorted by relevance

123456789

/kernel/linux/linux-6.6/drivers/media/cec/platform/tegra/
Dtegra_cec.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Tegra CEC implementation
5 * The original 3.10 CEC driver using a custom API:
7 * Copyright (c) 2012-2015, NVIDIA CORPORATION. All rights reserved.
9 * Conversion to the CEC framework and to the mainline kernel:
11 * Copyright 2016-2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
21 #include <linux/clk.h>
27 #include <linux/clk/tegra.h>
29 #include <media/cec-notifier.h>
33 #define TEGRA_CEC_NAME "tegra-cec"
[all …]
/kernel/linux/linux-5.10/drivers/media/cec/platform/tegra/
Dtegra_cec.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Tegra CEC implementation
5 * The original 3.10 CEC driver using a custom API:
7 * Copyright (c) 2012-2015, NVIDIA CORPORATION. All rights reserved.
9 * Conversion to the CEC framework and to the mainline kernel:
11 * Copyright 2016-2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
21 #include <linux/clk.h>
27 #include <linux/clk/tegra.h>
29 #include <media/cec-notifier.h>
33 #define TEGRA_CEC_NAME "tegra-cec"
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/
Dmtk_cec.c1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <linux/clk.h>
51 struct clk *clk; member
59 static void mtk_cec_clear_bits(struct mtk_cec *cec, unsigned int offset, in mtk_cec_clear_bits() argument
62 void __iomem *reg = cec->regs + offset; in mtk_cec_clear_bits()
70 static void mtk_cec_set_bits(struct mtk_cec *cec, unsigned int offset, in mtk_cec_set_bits() argument
73 void __iomem *reg = cec->regs + offset; in mtk_cec_set_bits()
81 static void mtk_cec_mask(struct mtk_cec *cec, unsigned int offset, in mtk_cec_mask() argument
84 u32 tmp = readl(cec->regs + offset) & ~mask; in mtk_cec_mask()
87 writel(tmp, cec->regs + offset); in mtk_cec_mask()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/mediatek/
Dmtk_cec.c1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <linux/clk.h>
54 struct clk *clk; member
62 static void mtk_cec_clear_bits(struct mtk_cec *cec, unsigned int offset, in mtk_cec_clear_bits() argument
65 void __iomem *reg = cec->regs + offset; in mtk_cec_clear_bits()
73 static void mtk_cec_set_bits(struct mtk_cec *cec, unsigned int offset, in mtk_cec_set_bits() argument
76 void __iomem *reg = cec->regs + offset; in mtk_cec_set_bits()
84 static void mtk_cec_mask(struct mtk_cec *cec, unsigned int offset, in mtk_cec_mask() argument
87 u32 tmp = readl(cec->regs + offset) & ~mask; in mtk_cec_mask()
90 writel(tmp, cec->regs + offset); in mtk_cec_mask()
[all …]
/kernel/linux/linux-5.10/drivers/media/cec/platform/sti/
Dstih-cec.c1 // SPDX-License-Identifier: GPL-2.0
3 * STIH4xx CEC driver
7 #include <linux/clk.h>
16 #include <media/cec.h>
17 #include <media/cec-notifier.h>
19 #define CEC_NAME "stih-cec"
21 /* CEC registers */
125 struct clk *clk; member
134 struct stih_cec *cec = cec_get_drvdata(adap); in stih_cec_adap_enable() local
138 unsigned long clk_freq = clk_get_rate(cec->clk); in stih_cec_adap_enable()
[all …]
/kernel/linux/linux-6.6/drivers/media/cec/platform/sti/
Dstih-cec.c1 // SPDX-License-Identifier: GPL-2.0
3 * STIH4xx CEC driver
7 #include <linux/clk.h>
16 #include <media/cec.h>
17 #include <media/cec-notifier.h>
19 #define CEC_NAME "stih-cec"
21 /* CEC registers */
125 struct clk *clk; member
134 struct stih_cec *cec = cec_get_drvdata(adap); in stih_cec_adap_enable() local
138 unsigned long clk_freq = clk_get_rate(cec->clk); in stih_cec_adap_enable()
[all …]
/kernel/linux/linux-6.6/drivers/media/cec/platform/s5p/
Ds5p_cec.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* drivers/media/platform/s5p-cec/s5p_cec.c
4 * Samsung S5P CEC driver
8 * This driver is based on the "cec interface driver for exynos soc" by
12 #include <linux/clk.h>
23 #include <media/cec.h>
24 #include <media/cec-notifier.h>
27 #include "regs-cec.h"
30 #define CEC_NAME "s5p-cec"
34 MODULE_PARM_DESC(debug, "debug level (0-2)");
[all …]
Ds5p_cec.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* drivers/media/platform/s5p-cec/s5p_cec.h
4 * Samsung S5P HDMI CEC driver
12 #include <linux/clk.h>
22 #include <media/cec.h>
25 #include "regs-cec.h"
28 #define CEC_NAME "s5p-cec"
46 /* CEC Rx buffer size */
48 /* CEC Tx buffer size */
63 struct clk *clk; member
/kernel/linux/linux-5.10/drivers/media/cec/platform/s5p/
Ds5p_cec.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* drivers/media/platform/s5p-cec/s5p_cec.c
4 * Samsung S5P CEC driver
8 * This driver is based on the "cec interface driver for exynos soc" by
12 #include <linux/clk.h>
23 #include <media/cec.h>
24 #include <media/cec-notifier.h>
27 #include "regs-cec.h"
30 #define CEC_NAME "s5p-cec"
34 MODULE_PARM_DESC(debug, "debug level (0-2)");
[all …]
Ds5p_cec.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* drivers/media/platform/s5p-cec/s5p_cec.h
4 * Samsung S5P HDMI CEC driver
12 #include <linux/clk.h>
22 #include <media/cec.h>
25 #include "regs-cec.h"
28 #define CEC_NAME "s5p-cec"
46 /* CEC Rx buffer size */
48 /* CEC Tx buffer size */
63 struct clk *clk; member
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/media/cec/
Dst,stih-cec.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/media/cec/st,stih-cec.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: STMicroelectronics STIH4xx HDMI CEC
10 - Alain Volmat <alain.volmat@foss.st.com>
13 - $ref: cec-common.yaml#
17 const: st,stih-cec
22 clock-names:
24 - const: cec-clk
[all …]
/kernel/linux/linux-5.10/drivers/media/cec/platform/stm32/
Dstm32-cec.c1 // SPDX-License-Identifier: GPL-2.0
3 * STM32 CEC driver
8 #include <linux/clk.h>
17 #include <media/cec.h>
19 #define CEC_NAME "stm32-cec"
21 /* CEC registers */
69 struct clk *clk_cec;
70 struct clk *clk_hdmi_cec;
80 static void cec_hw_init(struct stm32_cec *cec) in cec_hw_init() argument
82 regmap_update_bits(cec->regmap, CEC_CR, TXEOM | TXSOM | CECEN, 0); in cec_hw_init()
[all …]
/kernel/linux/linux-6.6/drivers/media/cec/platform/stm32/
Dstm32-cec.c1 // SPDX-License-Identifier: GPL-2.0
3 * STM32 CEC driver
8 #include <linux/clk.h>
16 #include <media/cec.h>
18 #define CEC_NAME "stm32-cec"
20 /* CEC registers */
68 struct clk *clk_cec;
69 struct clk *clk_hdmi_cec;
79 static void cec_hw_init(struct stm32_cec *cec) in cec_hw_init() argument
81 regmap_update_bits(cec->regmap, CEC_CR, TXEOM | TXSOM | CECEN, 0); in cec_hw_init()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/
Dstih-cec.txt1 STMicroelectronics STIH4xx HDMI CEC driver
4 - compatible : value should be "st,stih-cec"
5 - reg : Physical base address of the IP registers and length of memory
7 - clocks : from common clock binding: handle to HDMI CEC clock
8 - interrupts : HDMI CEC interrupt number to the CPU.
9 - pinctrl-names: Contains only one value - "default"
10 - pinctrl-0: Specifies the pin control groups used for CEC hardware.
11 - resets: Reference to a reset controller
12 - hdmi-phandle: Phandle to the HDMI controller, see also cec.txt.
16 sti-cec@94a087c {
[all …]
/kernel/linux/linux-5.10/drivers/media/cec/platform/meson/
Dao-cec-g12a.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Driver for Amlogic Meson AO CEC G12A Controller
11 #include <linux/clk.h>
25 #include <media/cec.h>
26 #include <media/cec-notifier.h>
27 #include <linux/clk-provider.h>
29 /* CEC Registers */
46 * [14:12] Filter_del. For glitch-filtering CEC line, ignore signal
49 * glitch-filtering CEC line signal.
50 * - 0=Use T(xtal)*3 = 125ns;
[all …]
Dao-cec.c2 * Driver for Amlogic Meson AO CEC Controller
8 * SPDX-License-Identifier: GPL-2.0+
12 #include <linux/clk.h>
24 #include <media/cec.h>
25 #include <media/cec-notifier.h>
27 /* CEC Registers */
31 * - 0 = Disable clk (Power-off mode)
32 * - 1 = Enable gated clock (Normal mode)
33 * - 2 = Enable free-run clk (Debug mode)
47 * - 0 = Read
[all …]
/kernel/linux/linux-6.6/drivers/media/cec/platform/meson/
Dao-cec-g12a.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Driver for Amlogic Meson AO CEC G12A Controller
11 #include <linux/clk.h>
25 #include <media/cec.h>
26 #include <media/cec-notifier.h>
27 #include <linux/clk-provider.h>
29 /* CEC Registers */
46 * [14:12] Filter_del. For glitch-filtering CEC line, ignore signal
49 * glitch-filtering CEC line signal.
50 * - 0=Use T(xtal)*3 = 125ns;
[all …]
Dao-cec.c2 * Driver for Amlogic Meson AO CEC Controller
8 * SPDX-License-Identifier: GPL-2.0+
12 #include <linux/clk.h>
24 #include <media/cec.h>
25 #include <media/cec-notifier.h>
27 /* CEC Registers */
31 * - 0 = Disable clk (Power-off mode)
32 * - 1 = Enable gated clock (Normal mode)
33 * - 2 = Enable free-run clk (Debug mode)
47 * - 0 = Read
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/display/mediatek/
Dmediatek,cec.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/display/mediatek/mediatek,cec.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Mediatek HDMI CEC Controller
10 - CK Hu <ck.hu@mediatek.com>
11 - Jitao shi <jitao.shi@mediatek.com>
14 The HDMI CEC controller handles hotplug detection and CEC communication.
19 - mediatek,mt7623-cec
20 - mediatek,mt8167-cec
[all …]
/kernel/linux/linux-6.6/Documentation/driver-api/gpio/
Ddrivers-on-gpio.rst6 the right in-kernel and userspace APIs/ABIs for the job, and that these
10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO
13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger,
15 (and that LED may in turn use the leds-gpio as per above).
17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line
20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your
24 - gpio_mouse: drivers/input/mouse/gpio_mouse.c is used to provide a mouse with
29 - gpio-beeper: drivers/input/misc/gpio-beeper.c is used to provide a beep from
32 - extcon-gpio: drivers/extcon/extcon-gpio.c is used when you need to read an
36 - restart-gpio: drivers/power/reset/gpio-restart.c is used to restart/reboot
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/gpio/
Ddrivers-on-gpio.rst6 the right in-kernel and userspace APIs/ABIs for the job, and that these
10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO
13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger,
15 (and that LED may in turn use the leds-gpio as per above).
17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line
20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your
24 - gpio_mouse: drivers/input/mouse/gpio_mouse.c is used to provide a mouse with
29 - gpio-beeper: drivers/input/misc/gpio-beeper.c is used to provide a beep from
32 - extcon-gpio: drivers/extcon/extcon-gpio.c is used when you need to read an
36 - restart-gpio: drivers/power/reset/gpio-restart.c is used to restart/reboot
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/adv7511/
Dadv7511_cec.c2 * adv7511_cec.c - Analog Devices ADV7511/33 cec driver
25 #include <linux/clk.h>
27 #include <media/cec.h>
37 unsigned int offset = adv7511->type == ADV7533 ? in adv_cec_tx_raw_status()
41 if (regmap_read(adv7511->regmap_cec, in adv_cec_tx_raw_status()
49 cec_transmit_attempt_done(adv7511->cec_adap, in adv_cec_tx_raw_status()
65 if (regmap_read(adv7511->regmap_cec, in adv_cec_tx_raw_status()
77 cec_transmit_done(adv7511->cec_adap, status, in adv_cec_tx_raw_status()
82 cec_transmit_attempt_done(adv7511->cec_adap, CEC_TX_STATUS_OK); in adv_cec_tx_raw_status()
89 unsigned int offset = adv7511->type == ADV7533 ? in adv7511_cec_irq_process()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/bridge/adv7511/
Dadv7511_cec.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * adv7511_cec.c - Analog Devices ADV7511/33 cec driver
11 #include <linux/clk.h>
13 #include <media/cec.h>
36 unsigned int offset = adv7511->reg_cec_offset; in adv_cec_tx_raw_status()
39 if (regmap_read(adv7511->regmap_cec, in adv_cec_tx_raw_status()
47 cec_transmit_attempt_done(adv7511->cec_adap, in adv_cec_tx_raw_status()
63 if (regmap_read(adv7511->regmap_cec, in adv_cec_tx_raw_status()
75 cec_transmit_done(adv7511->cec_adap, status, in adv_cec_tx_raw_status()
80 cec_transmit_attempt_done(adv7511->cec_adap, CEC_TX_STATUS_OK); in adv_cec_tx_raw_status()
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dstm32f746.dtsi2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
4 * This file is dual-licensed: you can use it either under the terms
43 #include "armv7-m.dtsi"
44 #include <dt-bindings/clock/stm32fx-clock.h>
45 #include <dt-bindings/mfd/stm32f7-rcc.h>
48 #address-cells = <1>;
49 #size-cells = <1>;
52 clk_hse: clk-hse {
53 #clock-cells = <0>;
54 compatible = "fixed-clock";
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/st/
Dstm32f746.dtsi2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
4 * This file is dual-licensed: you can use it either under the terms
43 #include "../armv7-m.dtsi"
44 #include <dt-bindings/clock/stm32fx-clock.h>
45 #include <dt-bindings/mfd/stm32f7-rcc.h>
48 #address-cells = <1>;
49 #size-cells = <1>;
52 clk_hse: clk-hse {
53 #clock-cells = <0>;
54 compatible = "fixed-clock";
[all …]

123456789