/openbmc/linux/Documentation/devicetree/bindings/iio/frequency/ |
H A D | adi,adf4350.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Hennerich <michael.hennerich@analog.com> 15 - adi,adf4350 16 - adi,adf4351 21 spi-max-frequency: 28 clock-names: 35 adi,channel-spacing: 40 adi,power-up-frequency: [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | da9055.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 59 /* Input - Gain, Select and Filter Registers */ 72 /* Output - Gain, Select and Filter Registers */ 289 0x0, 0x10, TLV_DB_SCALE_ITEM(-5400, 0, 0), 290 /* -54dB to 15dB */ 291 0x11, 0x3f, TLV_DB_SCALE_ITEM(-5400, 150, 0) 296 /* -78dB to 12dB */ 297 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0) 306 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0); 307 static const DECLARE_TLV_DB_SCALE(mixin_gain_tlv, -450, 150, 0); [all …]
|
H A D | mt6358.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // mt6358.c -- mt6358 ALSA SoC audio codec driver 107 priv->mtkaif_protocol = mtkaif_protocol; in mt6358_set_mtkaif_protocol() 115 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_set() 117 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_SET, in playback_gpio_set() 119 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_set() 130 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_reset() 132 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_reset() 134 regmap_update_bits(priv->regmap, MT6358_GPIO_DIR0, in playback_gpio_reset() 141 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE3_CLR, in capture_gpio_set() [all …]
|
H A D | ak4535.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ak4535.c -- AK4535 ALSA Soc Audio driver 65 static const char *ak4535_mono_gain[] = {"+6dB", "-17dB"}; 66 static const char *ak4535_mono_out[] = {"(L + R)/2", "Hi-Z"}; 81 SOC_ENUM("Mono 1 Output", ak4535_enum[1]), 83 SOC_ENUM("Headphone Output", ak4535_enum[2]), 97 SOC_SINGLE("AUX Bypass Volume", AK4535_VOL, 0, 15, 0), 111 SOC_DAPM_SINGLE("Aux Bypass Switch", AK4535_SIG2, 5, 1, 0), 117 SOC_DAPM_SINGLE("Aux Capture Switch", AK4535_MIC, 5, 1, 0), 154 SND_SOC_DAPM_SWITCH("Mono 2 Enable", SND_SOC_NOPM, 0, 0, [all …]
|
H A D | wm8900.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8900.c -- WM8900 ALSA Soc Audio driver 10 * - Tristating. 11 * - TDM. 12 * - Jack detect. 13 * - FLL source configuration, currently only MCLK is supported. 141 u32 fll_out; /* FLL output frequency */ 224 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm8900_hp_event() 236 /* Enable the input stage */ in wm8900_hp_event() 245 /* Enable the output stage */ in wm8900_hp_event() [all …]
|
H A D | da7213.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 33 /* -54dB */ 34 0x0, 0x11, TLV_DB_SCALE_ITEM(-5400, 0, 0), 35 /* -52.5dB to 15dB */ 36 0x12, 0x3f, TLV_DB_SCALE_ITEM(-5250, 150, 0) 41 /* -78dB to 12dB */ 42 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0) 51 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0); 52 static const DECLARE_TLV_DB_SCALE(mixin_gain_tlv, -450, 150, 0); 53 static const DECLARE_TLV_DB_SCALE(eq_gain_tlv, -1050, 150, 0); [all …]
|
H A D | mt6359.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // mt6359.c -- mt6359 ALSA SoC audio codec driver 24 regmap_update_bits(priv->regmap, MT6359_SMT_CON1, 0x3ff0, 0x3ff0); in mt6359_set_gpio_smt() 30 regmap_update_bits(priv->regmap, MT6359_DRV_CON2, 0xffff, 0x8888); in mt6359_set_gpio_driving() 31 regmap_update_bits(priv->regmap, MT6359_DRV_CON3, 0xffff, 0x8888); in mt6359_set_gpio_driving() 32 regmap_update_bits(priv->regmap, MT6359_DRV_CON4, 0x00ff, 0x88); in mt6359_set_gpio_driving() 38 regmap_write(priv->regmap, MT6359_GPIO_MODE2_CLR, 0x0ffe); in mt6359_set_playback_gpio() 39 regmap_write(priv->regmap, MT6359_GPIO_MODE2_SET, 0x0249); in mt6359_set_playback_gpio() 42 regmap_write(priv->regmap, MT6359_GPIO_MODE3_CLR, 0x6); in mt6359_set_playback_gpio() 43 regmap_write(priv->regmap, MT6359_GPIO_MODE3_SET, 0x1); in mt6359_set_playback_gpio() [all …]
|
H A D | ak4641.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ak4641.c -- AK4641 ALSA Soc Audio driver 77 if (ak4641->deemph && deemph_settings[i] != 0 && in ak4641_set_deemph() 78 abs(deemph_settings[i] - ak4641->playback_fs) < in ak4641_set_deemph() 79 abs(deemph_settings[best] - ak4641->playback_fs)) in ak4641_set_deemph() 82 if (!ak4641->deemph && deemph_settings[i] == 0) in ak4641_set_deemph() 86 dev_dbg(component->dev, "Set deemphasis %d\n", best); in ak4641_set_deemph() 96 int deemph = ucontrol->value.integer.value[0]; in ak4641_put_deemph() 99 return -EINVAL; in ak4641_put_deemph() 101 ak4641->deemph = deemph; in ak4641_put_deemph() [all …]
|
/openbmc/linux/drivers/gpu/drm/tegra/ |
H A D | dpaux.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/pinctrl/pinconf-generic.h> 40 struct drm_dp_aux aux; member 48 struct tegra_output *output; member 66 static inline struct tegra_dpaux *to_dpaux(struct drm_dp_aux *aux) in to_dpaux() argument 68 return container_of(aux, struct tegra_dpaux, aux); in to_dpaux() 79 u32 value = readl(dpaux->regs + (offset << 2)); in tegra_dpaux_readl() 81 trace_dpaux_readl(dpaux->dev, offset, value); in tegra_dpaux_readl() 89 trace_dpaux_writel(dpaux->dev, offset, value); in tegra_dpaux_writel() 90 writel(value, dpaux->regs + (offset << 2)); in tegra_dpaux_writel() [all …]
|
H A D | sor.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/clk-provider.h> 406 struct tegra_output output; member 425 struct drm_dp_aux *aux; member 479 static inline struct tegra_sor *to_sor(struct tegra_output *output) in to_sor() argument 481 return container_of(output, struct tegra_sor, output); in to_sor() 486 u32 value = readl(sor->regs + (offset << 2)); in tegra_sor_readl() 488 trace_sor_readl(sor->dev, offset, value); in tegra_sor_readl() 496 trace_sor_writel(sor->dev, offset, value); in tegra_sor_writel() 497 writel(value, sor->regs + (offset << 2)); in tegra_sor_writel() [all …]
|
/openbmc/linux/tools/perf/Documentation/ |
H A D | perf-record.txt | 1 perf-record(1) 5 ---- 6 perf-record - Run a command and record its profile into perf.data 9 -------- 11 'perf record' [-e <EVENT> | --event=EVENT] [-a] <command> 12 'perf record' [-e <EVENT> | --event=EVENT] [-a] \-- <command> [<options>] 15 ----------- 17 from it, into perf.data - without displaying anything. 23 ------- 27 -e:: [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_dp_hdcp.c | 1 /* SPDX-License-Identifier: MIT */ 43 #define C (hdcp->cp_irq_count_cached != atomic_read(&hdcp->cp_irq_count)) in intel_dp_hdcp_wait_for_cp_irq() 44 ret = wait_event_interruptible_timeout(hdcp->cp_irq_queue, C, in intel_dp_hdcp_wait_for_cp_irq() 55 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in intel_dp_hdcp_write_an_aksv() 59 /* Output An first, that's easy */ in intel_dp_hdcp_write_an_aksv() 60 dpcd_ret = drm_dp_dpcd_write(&dig_port->dp.aux, DP_AUX_HDCP_AN, in intel_dp_hdcp_write_an_aksv() 63 drm_dbg_kms(&i915->drm, in intel_dp_hdcp_write_an_aksv() 64 "Failed to write An over DP/AUX (%zd)\n", in intel_dp_hdcp_write_an_aksv() 66 return dpcd_ret >= 0 ? -EIO : dpcd_ret; in intel_dp_hdcp_write_an_aksv() 70 * Since Aksv is Oh-So-Secret, we can't access it in software. So we in intel_dp_hdcp_write_an_aksv() [all …]
|
/openbmc/linux/drivers/media/platform/st/sti/delta/ |
H A D | delta-mjpeg-fw.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 45 * used for enabling main/aux outputs for both display & 49 /* enable decimated (for display) reconstruction */ 51 /* enable main (for display) reconstruction */ 53 /* enable both main & decimated (for display) reconstruction */ 55 /* enable only reference output(ex. for trick modes) */ 58 * enable reference output with decimated 63 * enable reference output with main 68 * enable reference output with main & decimated 78 /* Advanced H/2 resize using improved 8-tap filters */ [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/spi/ |
H A D | brcm,bcm2835-aux-spi.txt | 8 - compatible: Should be "brcm,bcm2835-aux-spi". 9 - reg: Should contain register location and length for the spi block 10 - interrupts: Should contain shared interrupt of the aux block 11 - clocks: The clock feeding the SPI controller - needs to 13 as this clock will enable the output gate for the specific 15 - cs-gpios: the cs-gpios (native cs is NOT supported) 16 see also spi-bus.txt 21 compatible = "brcm,bcm2835-aux-spi"; 25 #address-cells = <1>; 26 #size-cells = <0>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/display/msm/ |
H A D | dp-controller.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/msm/dp-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Kuogee Hsieh <quic_khsieh@quicinc.com> 19 - enum: 20 - qcom,sc7180-dp 21 - qcom,sc7280-dp 22 - qcom,sc7280-edp 23 - qcom,sc8180x-dp [all …]
|
/openbmc/linux/sound/pci/oxygen/ |
H A D | xonar_dg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 * ------------ 18 * SPI 0 -> CS4245 21 * I²S 1 -> CS4245 22 * I²S 2 -> CS4361 (center/LFE) 23 * I²S 3 -> CS4361 (surround) 24 * I²S 4 -> CS4361 (front) 26 * I²S ADC 1 <- CS4245 28 * GPIO 3 <- ? 29 * GPIO 4 <- headphone detect [all …]
|
/openbmc/linux/sound/mips/ |
H A D | ad1843.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2003 Vivien Chappelier <vivien.chappelier@linux-mips.org> 35 ad1843_PDNO = { 0, 14, 1 }, /* Converter Power-Down Flag */ 38 ad1843_RMGE = { 2, 4, 1 }, /* Right ADC Mic Gain Enable */ 41 ad1843_LMGE = { 2, 12, 1 }, /* Left ADC Mic Gain Enable */ 47 ad1843_RX1M = { 4, 0, 5 }, /* Right Aux 1 Mix Gain/Atten */ 48 ad1843_RX1MM = { 4, 7, 1 }, /* Right Aux 1 Mix Mute */ 49 ad1843_LX1M = { 4, 8, 5 }, /* Left Aux 1 Mix Gain/Atten */ 50 ad1843_LX1MM = { 4, 15, 1 }, /* Left Aux 1 Mix Mute */ 51 ad1843_RX2M = { 5, 0, 5 }, /* Right Aux 2 Mix Gain/Atten */ [all …]
|
/openbmc/linux/drivers/gpu/drm/bridge/ |
H A D | tc358767.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * TC358767/TC358867/TC9595 DSI/DPI-to-DPI/(e)DP bridge driver 6 * All modes are supported -- DPI->(e)DP / DSI->DPI / DSI->(e)DP . 27 #include <linux/media-bus-format.h> 61 #define DSI_STARTDSI 0x0204 /* START control bit of DSI-TX */ 65 /* Lane enable PPI and DSI register bits */ 79 #define SUB_CFG_TYPE_CONFIG3 (2 << 2) /* LSB aligned 8-bit */ 84 /* Display Parallel Output Interface */ 149 #define VID_MN_GEN BIT(6) /* Auto-generate M/N values */ 150 #define EF_EN BIT(5) /* Enable Enhanced Framing */ [all …]
|
/openbmc/linux/drivers/gpu/drm/display/ |
H A D | drm_dp_dual_mode_helper.c | 44 * I2C-over-AUX. Source devices may choose to implement either of these 51 * drm_dp_dual_mode_read - Read from the DP dual mode adaptor register(s) 69 * As sub-addressing is not supported by all adaptors, in drm_dp_dual_mode_read() 94 return -ENOMEM; in drm_dp_dual_mode_read() 108 return -EPROTO; in drm_dp_dual_mode_read() 115 * drm_dp_dual_mode_write - Write to the DP dual mode adaptor register(s) 141 return -ENOMEM; in drm_dp_dual_mode_write() 155 return -EPROTO; in drm_dp_dual_mode_write() 164 "DP-HDMI ADAPTOR\x04"; in is_hdmi_adaptor() 190 * drm_dp_dual_mode_detect - Identify the DP dual mode adaptor [all …]
|
/openbmc/linux/drivers/gpu/drm/bridge/analogix/ |
H A D | analogix-anx6345.c | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 31 #include "analogix-i2c-dptx.h" 32 #include "analogix-i2c-txcommon.h" 47 struct drm_dp_aux aux; member 88 static ssize_t anx6345_aux_transfer(struct drm_dp_aux *aux, in anx6345_aux_transfer() argument 91 struct anx6345 *anx6345 = container_of(aux, struct anx6345, aux); in anx6345_aux_transfer() 93 return anx_dp_aux_transfer(anx6345->map[I2C_IDX_DPTX], msg); in anx6345_aux_transfer() 102 err = anx6345_clear_bits(anx6345->map[I2C_IDX_TXCOM], in anx6345_dp_link_training() 108 err = drm_dp_dpcd_readb(&anx6345->aux, DP_MAX_LINK_RATE, &dp_bw); in anx6345_dp_link_training() 119 return -EINVAL; in anx6345_dp_link_training() [all …]
|
H A D | analogix-anx78xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 #include "analogix-anx78xx.h" 67 struct drm_dp_aux aux; member 108 static ssize_t anx78xx_aux_transfer(struct drm_dp_aux *aux, in anx78xx_aux_transfer() argument 111 struct anx78xx *anx78xx = container_of(aux, struct anx78xx, aux); in anx78xx_aux_transfer() 112 return anx_dp_aux_transfer(anx78xx->map[I2C_IDX_TX_P0], msg); in anx78xx_aux_transfer() 119 err = anx78xx_clear_bits(anx78xx->map[I2C_IDX_RX_P0], in anx78xx_set_hpd() 124 err = anx78xx_set_bits(anx78xx->map[I2C_IDX_TX_P2], SP_VID_CTRL3_REG, in anx78xx_set_hpd() 136 err = anx78xx_clear_bits(anx78xx->map[I2C_IDX_TX_P2], SP_VID_CTRL3_REG, in anx78xx_clear_hpd() 141 err = anx78xx_set_bits(anx78xx->map[I2C_IDX_RX_P0], in anx78xx_clear_hpd() [all …]
|
/openbmc/linux/drivers/iio/dac/ |
H A D | ad5761.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * AD5721, AD5721R, AD5761, AD5761R, Voltage Output Digital to Analog Converter 30 * struct ad5761_chip_info - chip specific information 31 * @int_vref: Value of the internal reference voltage in mV - 0 if external 54 * struct ad5761_state - driver instance specific data 59 * @range: output range mode used 119 st->data[0].d32 = cpu_to_be32(AD5761_ADDR(addr) | val); in _ad5761_spi_write() 121 return spi_write(st->spi, &st->data[0].d8[1], 3); in _ad5761_spi_write() 129 mutex_lock(&st->lock); in ad5761_spi_write() 131 mutex_unlock(&st->lock); in ad5761_spi_write() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pci/ |
H A D | qcom,pcie-ep.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/qcom,pcie-ep.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> 15 - enum: 16 - qcom,sdx55-pcie-ep 17 - qcom,sm8450-pcie-ep 18 - items: 19 - const: qcom,sdx65-pcie-ep [all …]
|
/openbmc/linux/include/linux/ |
H A D | wm97xx.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 47 #define WM97XX_COO 0x0800 /* enable coordinate mode */ 48 #define WM97XX_CTC 0x0400 /* enable continuous mode */ 61 #define WM97XX_SLEN 0x0008 /* slot read back enable */ 62 #define WM97XX_SLT(i) ((i - 5) & 0x7) /* panel slot (5-11) */ 71 #define WM9712_45W 0x1000 /* set for 5-wire touchscreen */ 87 #define WM9705_PINV 0x0800 /* inverts sense of pen down output */ 88 #define WM9705_BSEN 0x0400 /* BUSY flag enable, pin47 is 1 when busy */ 89 #define WM9705_BINV 0x0200 /* invert BUSY (pin47) output */ 102 #define WM9713_CTC 0x0100 /* enable continuous mode */ [all …]
|
/openbmc/linux/drivers/gpu/drm/mediatek/ |
H A D | mtk_dp.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2019-2022 MediaTek Inc. 18 #include <linux/arm-smccc.h> 23 #include <linux/media-bus-format.h> 24 #include <linux/nvmem-consumer.h> 33 #include <sound/hdmi-codec.h> 118 struct drm_dp_aux aux; member 317 .name = "mtk-dp-registers", 330 ret = regmap_read(mtk_dp->regs, offset, &read_val); in mtk_dp_read() 332 dev_err(mtk_dp->dev, "Failed to read register 0x%x: %d\n", in mtk_dp_read() [all …]
|