/linux/drivers/gpu/drm/msm/hdmi/ |
H A D | hdmi_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include "hdmi.h" 11 struct hdmi *hdmi; member 19 struct hdmi *hdmi = hdmi_i2c->hdmi; in init_ddc() local 21 hdmi_write(hdmi, REG_HDMI_DDC_CTRL, in init_ddc() 23 hdmi_write(hdmi, REG_HDMI_DDC_CTRL, in init_ddc() 26 hdmi_write(hdmi, REG_HDMI_DDC_SPEED, in init_ddc() 30 hdmi_write(hdmi, REG_HDMI_DDC_SETUP, in init_ddc() 34 hdmi_write(hdmi, REG_HDMI_DDC_REF, in init_ddc() 41 struct hdmi *hdmi = hdmi_i2c->hdmi; in ddc_clear_irq() local [all …]
|
H A D | hdmi.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 10 #include <linux/i2c.h> 15 #include <linux/hdmi.h> 20 #include "hdmi.xml.h" 33 struct hdmi { struct 61 struct i2c_adapter *i2c; member 67 /* the encoder we are hooked to (outside of hdmi block) */ argument 70 bool hdmi_mode; /* are we in hdmi mode? */ argument 109 struct hdmi *hdmi; member 114 void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on); [all …]
|
H A D | hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 #include <sound/hdmi-codec.h> 17 #include "hdmi.h" 19 void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on) in msm_hdmi_set_mode() argument 24 spin_lock_irqsave(&hdmi->reg_lock, flags); in msm_hdmi_set_mode() 27 if (!hdmi->hdmi_mode) { in msm_hdmi_set_mode() 29 hdmi_write(hdmi, REG_HDMI_CTRL, ctrl); in msm_hdmi_set_mode() 38 hdmi_write(hdmi, REG_HDMI_CTRL, ctrl); in msm_hdmi_set_mode() 39 spin_unlock_irqrestore(&hdmi->reg_lock, flags); in msm_hdmi_set_mode() 40 DBG("HDMI Core: %s, HDMI_CTRL=0x%08x", in msm_hdmi_set_mode() [all …]
|
/linux/drivers/gpu/drm/rockchip/ |
H A D | rk3066_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Zheng Yang <zhengyang@rock-chips.com> 37 struct mutex i2c_lock; /* For i2c operation. */ 52 struct rk3066_hdmi_i2c *i2c; member 72 static inline u8 hdmi_readb(struct rk3066_hdmi *hdmi, u16 offset) in hdmi_readb() argument 74 return readl_relaxed(hdmi->regs + offset); in hdmi_readb() 77 static inline void hdmi_writeb(struct rk3066_hdmi *hdmi, u16 offset, u32 val) in hdmi_writeb() argument 79 writel_relaxed(val, hdmi->regs + offset); in hdmi_writeb() 82 static inline void hdmi_modb(struct rk3066_hdmi *hdmi, u16 offset, in hdmi_modb() argument 85 u8 temp = hdmi_readb(hdmi, offset) & ~msk; in hdmi_modb() [all …]
|
H A D | inno_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Zheng Yang <zhengyang@rock-chips.com> 5 * Yakir Yang <ykk@rock-chips.com> 12 #include <linux/hdmi.h> 65 struct inno_hdmi_i2c *i2c; member 100 * Cb = -0.291G - 0.148R + 0.439B + 128 102 * Cr = -0.368G + 0.439R - 0.071B + 128 111 * Cb = - 0.338G - 0.101R + 0.439B + 128 113 * Cr = - 0.399G + 0.439R - 0.040B + 128 122 * R' = R x (235-16)/255 + 16; [all …]
|
/linux/drivers/gpu/drm/bridge/synopsys/ |
H A D | dw-hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * DesignWare High-Definition Multimedia Interface (HDMI) driver 5 * Copyright (C) 2013-2015 Mentor Graphics Inc. 6 * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. 12 #include <linux/hdmi.h> 13 #include <linux/i2c.h> 20 #include <linux/dma-mapping.h> 23 #include <media/cec-notifier.h> 25 #include <uapi/linux/media-bus-format.h> 39 #include "dw-hdmi-audio.h" [all …]
|
/linux/Documentation/devicetree/bindings/display/bridge/ |
H A D | synopsys,dw-hdmi.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/bridge/synopsys,dw-hdmi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Common Properties for Synopsys DesignWare HDMI TX Controller 10 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> 13 This document defines device tree properties for the Synopsys DesignWare HDMI 14 TX controller (DWC HDMI TX) IP core. It doesn't constitute a full device tree 16 bindings for the platform-specific integrations of the DWC HDMI TX. 26 reg-io-width: [all …]
|
H A D | adi,adv7533.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices ADV7533/35 HDMI Encoders 10 - Laurent Pinchart <laurent.pinchart@ideasonboard.com> 13 - $ref: /schemas/sound/dai-common.yaml# 16 The ADV7533 and ADV7535 are HDMI audio and video transmitters 17 compatible with HDMI 1.4 and DVI 1.0. They support color space 23 - adi,adv7533 24 - adi,adv7535 [all …]
|
H A D | adi,adv7511.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices ADV7511/11W/13 HDMI Encoders 10 - Laurent Pinchart <laurent.pinchart@ideasonboard.com> 13 The ADV7511, ADV7511W and ADV7513 are HDMI audio and video 14 transmitters compatible with HDMI 1.4 and DVI 1.0. They support color 21 - adi,adv7511 22 - adi,adv7511w 23 - adi,adv7513 [all …]
|
/linux/Documentation/devicetree/bindings/display/tegra/ |
H A D | nvidia,tegra20-hdmi.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/tegra/nvidia,tegra20-hdmi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NVIDIA Tegra HDMI Output Encoder 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jon Hunter <jonathanh@nvidia.com> 15 pattern: "^hdmi@[0-9a-f]+$" 19 - enum: 20 - nvidia,tegra20-hdmi [all …]
|
H A D | nvidia,tegra124-sor.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/tegra/nvidia,tegra124-sor.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jon Hunter <jonathanh@nvidia.com> 14 The Serial Output Resource (SOR) can be used to drive HDMI, LVDS, eDP 19 pattern: "^sor@[0-9a-f]+$" 23 - enum: 24 - nvidia,tegra124-sor [all …]
|
/linux/Documentation/devicetree/bindings/display/mediatek/ |
H A D | mediatek,hdmi-ddc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/mediatek/mediatek,hdmi-ddc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Mediatek HDMI DDC 10 - CK Hu <ck.hu@mediatek.com> 11 - Jitao shi <jitao.shi@mediatek.com> 14 The HDMI DDC i2c controller is used to interface with the HDMI DDC pins. 19 - mediatek,mt7623-hdmi-ddc 20 - mediatek,mt8167-hdmi-ddc [all …]
|
/linux/Documentation/devicetree/bindings/i2c/ |
H A D | i2c-demux-pinctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-demux-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Pinctrl-based I2C Bus Demultiplexer 10 - Wolfram Sang <wsa+renesas@sang-engineering.com> 13 This binding describes an I2C bus demultiplexer that uses pin multiplexing to 14 route the I2C signals, and represents the pin multiplexing configuration 15 using the pinctrl device tree bindings. This may be used to select one I2C 17 another I2C IP core on the SoC. The most simple example is to fall back to [all …]
|
H A D | brcm,brcmstb-i2c.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/i2c/brcm,brcmstb-i2c.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Kamal Dasu <kdasu.kdev@gmail.com> 13 - $ref: /schemas/i2c/i2c-controller.yaml# 18 - brcm,bcm2711-hdmi-i2c 19 - brcm,brcmstb-i2c 20 - brcm,brcmper-i2c 25 - description: BSC register range [all …]
|
/linux/Documentation/devicetree/bindings/media/i2c/ |
H A D | adv748x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/media/i2c/adv748x.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices ADV748X video decoder with HDMI receiver 10 - Kieran Bingham <kieran.bingham@ideasonboard.com> 11 - Niklas Söderlund <niklas.soderlund@ragnatech.se> 15 HDMI receiver. They can output CSI-2 on two independent outputs TXA and TXB 16 from three input sources HDMI, analog and TTL. 21 - enum: [all …]
|
H A D | adv7604.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/media/i2c/adv7604.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices ADV7604/10/11/12 video decoder with HDMI receiver 10 - Hans Verkuil <hverkuil-cisco@xs4all.nl> 14 an integrated HDMI receiver. The ADV7604 has four multiplexed HDMI inputs 15 and one analog input, and the ADV7610/11 have one HDMI input and no analog 16 input. The ADV7612 is similar to the ADV7610/11 but has 2 HDMI inputs. 23 - enum: [all …]
|
H A D | chrontel,ch7322.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/media/i2c/chrontel,ch7322.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Chrontel HDMI-CEC Controller 10 - Jeff Chase <jnchase@google.com> 13 The Chrontel CH7322 is a discrete HDMI-CEC controller. It is 14 programmable through I2C and drives a single CEC line. 17 - $ref: /schemas/media/cec/cec-common.yaml# 24 description: I2C device address [all …]
|
/linux/drivers/gpu/drm/sun4i/ |
H A D | sun4i_hdmi_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2016 Maxime Ripard <maxime.ripard@free-electrons.com> 8 #include <linux/i2c.h> 25 static int fifo_transfer(struct sun4i_hdmi *hdmi, u8 *buf, int len, bool read) in fifo_transfer() argument 41 (hdmi->variant->ddc_fifo_thres_incl ? 0 : 1); in fifo_transfer() 50 if (regmap_field_read_poll_timeout(hdmi->field_ddc_int_status, reg, in fifo_transfer() 53 return -ETIMEDOUT; in fifo_transfer() 56 return -EIO; in fifo_transfer() 59 ioread8_rep(hdmi->base + hdmi->variant->ddc_fifo_reg, buf, len); in fifo_transfer() 61 iowrite8_rep(hdmi->base + hdmi->variant->ddc_fifo_reg, buf, len); in fifo_transfer() [all …]
|
H A D | sun4i_hdmi_enc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Maxime Ripard <maxime.ripard@free-electrons.com> 10 #include <linux/i2c.h> 47 struct sun4i_hdmi *hdmi = drm_connector_to_sun4i_hdmi(connector); in sun4i_hdmi_write_infoframe() local 51 drm_err(connector->dev, in sun4i_hdmi_write_infoframe() 57 writeb(buffer[i], hdmi->base + SUN4I_HDMI_AVI_INFOFRAME_REG(i)); in sun4i_hdmi_write_infoframe() 66 struct sun4i_hdmi *hdmi = drm_encoder_to_sun4i_hdmi(encoder); in sun4i_hdmi_disable() local 69 DRM_DEBUG_DRIVER("Disabling the HDMI Output\n"); in sun4i_hdmi_disable() 71 val = readl(hdmi->base + SUN4I_HDMI_VID_CTRL_REG); in sun4i_hdmi_disable() 73 writel(val, hdmi->base + SUN4I_HDMI_VID_CTRL_REG); in sun4i_hdmi_disable() [all …]
|
/linux/sound/soc/ti/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 36 - daVinci devices 37 - Sitara line of SoCs (AM335x, AM438x, etc) 38 - OMAP4 39 - DRA7x devices 40 - Keystone devices 41 - K3 devices (am654, j721e) 70 depends on MACH_NOKIA_N810 && I2C 77 tristate "SoC Audio support for Nokia RX-51" 78 depends on ARCH_OMAP3 && I2C && GPIOLIB [all …]
|
/linux/Documentation/devicetree/bindings/display/connector/ |
H A D | hdmi-connector.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/display/connector/hdmi-connector.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: HDMI Connector 10 - Laurent Pinchart <Laurent.pinchart@ideasonboard.com> 14 const: hdmi-connector 17 description: The HDMI connector type 19 - a # Standard full size 20 - b # Never deployed? [all …]
|
/linux/drivers/media/i2c/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 8 comment "IR I2C driver auto-selected by 'Autoselect ancillary drivers'" 9 depends on MEDIA_SUBDRV_AUTOSELECT && I2C && RC_CORE 12 tristate "I2C module for IR" if !MEDIA_SUBDRV_AUTOSELECT || EXPERT 13 depends on I2C && RC_CORE 17 some video boards have the IR connected via I2C bus. 19 If your board doesn't have an I2C IR chip, you may disable this 25 # V4L2 I2C drivers that are related with Camera support 30 depends on MEDIA_CAMERA_SUPPORT && I2C 45 tristate "Allied Vision ALVIUM MIPI CSI-2 camera support" [all …]
|
/linux/arch/arm/boot/dts/renesas/ |
H A D | r8a7790-lager.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2013-2014 Renesas Solutions Corp. 7 * Copyright (C) 2015-2016 Renesas Electronics Corporation 11 * SSI-AK4643 38 /dts-v1/; 40 #include <dt-bindings/gpio/gpio.h> 41 #include <dt-bindings/input/input.h> 63 stdout-path = "serial0:115200n8"; 77 compatible = "gpio-keys"; 79 pinctrl-0 = <&keyboard_pins>; [all …]
|
/linux/sound/soc/fsl/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 14 This option is only useful for out-of-tree drivers since 15 in-tree drivers select it automatically. 26 This option is only useful for out-of-tree drivers since 27 in-tree drivers select it automatically. 36 This option is only useful for out-of-tree drivers since 37 in-tree drivers select it automatically. 54 This option is only useful for out-of-tree drivers since 55 in-tree drivers select it automatically. 67 This option is only useful for out-of-tree drivers since [all …]
|
/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 …]
|