/openbmc/linux/drivers/media/cec/platform/tegra/ |
H A D | tegra_cec.c | 1 // 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 …]
|
/openbmc/linux/drivers/gpu/drm/mediatek/ |
H A D | mtk_cec.c | 1 // 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 …]
|
/openbmc/linux/drivers/media/cec/platform/sti/ |
H A D | stih-cec.c | 1 // 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 …]
|
/openbmc/linux/drivers/media/cec/platform/s5p/ |
H A D | s5p_cec.c | 1 // 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 …]
|
H A D | s5p_cec.h | 1 /* 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
|
/openbmc/linux/Documentation/devicetree/bindings/media/cec/ |
H A D | st,stih-cec.yaml | 1 # 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 …]
|
/openbmc/linux/drivers/media/cec/platform/stm32/ |
H A D | stm32-cec.c | 1 // 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 …]
|
/openbmc/linux/drivers/media/cec/platform/meson/ |
H A D | ao-cec-g12a.c | 1 // 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 …]
|
H A D | ao-cec.c | 2 * 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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/display/mediatek/ |
H A D | mediatek,cec.yaml | 1 # 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 …]
|
/openbmc/linux/Documentation/driver-api/gpio/ |
H A D | drivers-on-gpio.rst | 6 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 …]
|
/openbmc/linux/drivers/gpu/drm/bridge/adv7511/ |
H A D | adv7511_cec.c | 1 // 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 …]
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | stm32f746.dtsi | 2 * 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 …]
|
H A D | stih410.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include "stih410-clock.dtsi" 7 #include "stih407-family.dtsi" 8 #include "stih410-pinctrl.dtsi" 9 #include <dt-bindings/gpio/gpio.h> 16 compatible = "st,stih407-usb2-phy"; 17 #phy-cells = <0>; 21 reset-names = "global", "port"; 27 compatible = "st,stih407-usb2-phy"; 28 #phy-cells = <0>; [all …]
|
/openbmc/linux/drivers/gpu/drm/sti/ |
H A D | sti_hdmi.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #include <media/cec-notifier.h> 60 * @audio_pdev: ASoC hdmi-codec platform device 71 struct clk *clk_pix; 72 struct clk *clk_tmds; 73 struct clk *clk_phy; 74 struct clk *clk_audio;
|
/openbmc/linux/drivers/clk/meson/ |
H A D | clk-dualdiv.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * 32,768KHz clock for low-power suspend mode and CEC. 13 * | Div1 |-| Cnt1 | 15 * -| ______ ______ X--> Out 17 * | Div2 |-| Cnt2 | 24 #include <linux/clk-provider.h> 27 #include "clk-regmap.h" 28 #include "clk-dualdiv.h" 31 meson_clk_dualdiv_data(struct clk_regmap *clk) in meson_clk_dualdiv_data() argument 33 return (struct meson_clk_dualdiv_data *)clk->data; in meson_clk_dualdiv_data() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mn-beacon-kit.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 9 #include "imx8mn-beacon-som.dtsi" 10 #include "imx8mn-beacon-baseboard.dtsi" 14 compatible = "beacon,imx8mn-beacon-kit", "fsl,imx8mn"; 17 stdout-path = &uart2; 21 compatible = "hdmi-connector"; 26 remote-endpoint = <&adv7535_out>; 31 reg_hdmi: regulator-hdmi-dvdd { 32 compatible = "regulator-fixed"; [all …]
|
H A D | imx8mm-beacon-kit.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 9 #include "imx8mm-beacon-som.dtsi" 10 #include "imx8mm-beacon-baseboard.dtsi" 14 compatible = "beacon,imx8mm-beacon-kit", "fsl,imx8mm"; 17 stdout-path = &uart2; 21 compatible = "hdmi-connector"; 26 remote-endpoint = <&adv7535_out>; 31 reg_hdmi: regulator-hdmi-dvdd { 32 compatible = "regulator-fixed"; [all …]
|
/openbmc/linux/arch/arm/boot/dts/ti/omap/ |
H A D | am335x-boneblack.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ 5 /dts-v1/; 8 #include "am335x-bone-common.dtsi" 9 #include "am335x-boneblack-common.dtsi" 10 #include "am335x-boneblack-hdmi.dtsi" 14 compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx"; 23 opp-1000000000 { 25 opp-supported-hw = <0x06 0x0100>; 30 gpio-line-names = [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | meson-gxl-s905x-khadas-vim.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/input/input.h> 10 #include "meson-gxl-s905x-p212.dtsi" 13 compatible = "khadas,vim", "amlogic,s905x", "amlogic,meson-gxl"; 16 adc-keys { 17 compatible = "adc-keys"; 18 io-channels = <&saradc 0>; 19 io-channel-names = "buttons"; 20 keyup-threshold-microvolt = <1710000>; [all …]
|
H A D | stm32mp157c.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved 6 #include <dt-bindings/interrupt-controller/arm-gic.h> 7 #include <dt-bindings/clock/stm32mp1-clks.h> 8 #include <dt-bindings/reset/stm32mp1-resets.h> 11 #address-cells = <1>; 12 #size-cells = <1>; 15 #address-cells = <1>; 16 #size-cells = <0>; 19 compatible = "arm,cortex-a7"; [all …]
|
H A D | meson-gxl-s905x-libretech-cc.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 12 #include "meson-gxl-s905x.dtsi" 15 compatible = "libretech,cc", "amlogic,s905x", "amlogic,meson-gxl"; 16 model = "Libre Computer Board AML-S905X-CC"; 24 stdout-path = "serial0:115200n8"; 27 cvbs-connector { 28 compatible = "composite-video-connector"; 32 remote-endpoint = <&cvbs_vdac_out>; [all …]
|
/openbmc/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm2711.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <dt-bindings/interrupt-controller/arm-gic.h> 5 #include <dt-bindings/soc/bcm2835-pm.h> 10 #address-cells = <2>; 11 #size-cells = <1>; 13 interrupt-parent = <&gicv2>; 16 compatible = "brcm,bcm2711-vc5"; 20 clk_27MHz: clk-27M { 21 #clock-cells = <0>; 22 compatible = "fixed-clock"; [all …]
|
/openbmc/linux/arch/arm64/boot/dts/amlogic/ |
H A D | meson-gxl-s905x-khadas-vim.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "meson-gxl-s905x-p212.dtsi" 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/sound/meson-aiu.h> 13 compatible = "khadas,vim", "amlogic,s905x", "amlogic,meson-gxl"; 16 adc-keys { 17 compatible = "adc-keys"; 18 io-channels = <&saradc 0>; 19 io-channel-names = "buttons"; [all …]
|
/openbmc/linux/drivers/gpu/drm/sun4i/ |
H A D | sun4i_hdmi.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Maxime Ripard <maxime.ripard@free-electrons.com> 15 #include <media/cec-pin.h> 37 #define SUN4I_HDMI_VID_TIMING_X(x) ((((x) - 1) & GENMASK(11, 0))) 38 #define SUN4I_HDMI_VID_TIMING_Y(y) ((((y) - 1) & GENMASK(11, 0)) << 16) 135 #define SUN4I_HDMI_DDC_FIFO_CTRL_RX_THRES_MAX (BIT(4) - 1) 138 #define SUN4I_HDMI_DDC_FIFO_CTRL_TX_THRES_MAX (BIT(4) - 1) 143 #define SUN4I_HDMI_DDC_BYTE_COUNT_MAX (BIT(10) - 1) 187 /* DDC CLK bit fields are the same, but the formula is not */ 257 struct clk *bus_clk; [all …]
|