/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | realtek,rt5682s.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Derek Fang <derek.fang@realtek.com> 13 Rt5682s(ALC5682I-VS) is a rt5682i variant which supports I2C only. 16 - $ref: dai-common.yaml# 30 realtek,dmic1-data-pin: 33 - 0 # dmic1 data is not used 34 - 1 # using GPIO2 pin as dmic1 data pin 35 - 2 # using GPIO5 pin as dmic1 data pin [all …]
|
H A D | rt5682.txt | 7 - compatible : "realtek,rt5682" or "realtek,rt5682i" 9 - reg : The I2C address of the device. 11 - AVDD-supply: phandle to the regulator supplying analog power through the 12 AVDD pin 14 - MICVDD-supply: phandle to the regulator supplying power for the microphone 15 bias through the MICVDD pin. Either MICVDD or VBAT should be present. 17 - VBAT-supply: phandle to the regulator supplying battery power through the 18 VBAT pin. Either MICVDD or VBAT should be present. 20 - DBVDD-supply: phandle to the regulator supplying I/O power through the DBVDD 21 pin. [all …]
|
H A D | rt5668.txt | 7 - compatible : "realtek,rt5668b" 9 - reg : The I2C address of the device. 13 - interrupts : The CODEC's interrupt output. 15 - realtek,dmic1-data-pin 16 0: dmic1 is not used 17 1: using GPIO2 pin as dmic1 data pin 18 2: using GPIO5 pin as dmic1 data pin 20 - realtek,dmic1-clk-pin 21 0: using GPIO1 pin as dmic1 clock pin 22 1: using GPIO3 pin as dmic1 clock pin [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | lpass-va-macro.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. 4 #include <linux/clk.h> 5 #include <linux/clk-provider.h> 16 #include <sound/soc-dapm.h> 19 #include "lpass-macro-common.h" 165 static const DECLARE_TLV_DB_SCALE(digital_gain, -8400, 100, -8400); 207 struct clk *mclk; 208 struct clk *macro; 209 struct clk *dcodec; [all …]
|
H A D | rt5514.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5514.c -- RT5514 ALSA SoC audio codec driver 24 #include <sound/soc-dapm.h> 31 #include "rt5514-spi.h" 120 regmap_write(rt5514->i2c_regmap, 0x18002000, 0x000010ec); in rt5514_enable_dsp_prepare() 122 regmap_write(rt5514->i2c_regmap, 0x18002200, 0x00028604); in rt5514_enable_dsp_prepare() 124 regmap_write(rt5514->i2c_regmap, 0xfafafafa, 0x00000001); in rt5514_enable_dsp_prepare() 125 /* mini-core reset */ in rt5514_enable_dsp_prepare() 126 regmap_write(rt5514->i2c_regmap, 0x18002f00, 0x0005514b); in rt5514_enable_dsp_prepare() 127 regmap_write(rt5514->i2c_regmap, 0x18002f00, 0x00055149); in rt5514_enable_dsp_prepare() [all …]
|
H A D | rt5670.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5670.c -- RT5670 ALSA SoC audio codec driver 25 #include <sound/soc-dapm.h> 31 #include "rt5670-dsp.h" 50 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 422 * rt5670_headset_detect - Detect headset. 457 rt5670->jack_type = SND_JACK_HEADSET; in rt5670_headset_detect() 464 rt5670->jack_type = SND_JACK_HEADPHONE; in rt5670_headset_detect() 471 rt5670->jack_type = 0; in rt5670_headset_detect() 476 return rt5670->jack_type; in rt5670_headset_detect() [all …]
|
H A D | cs53l30.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs53l30.c -- CS53l30 ALSA Soc Audio driver 11 #include <linux/clk.h> 36 struct clk *mclk; 167 static DECLARE_TLV_DB_SCALE(pga_tlv, -600, 50, 0); 168 static DECLARE_TLV_DB_SCALE(dig_tlv, -9600, 100, 1); 172 "DMIC1 On AB In", 173 "DMIC1 On A In", 174 "DMIC1 On B In", 178 "DMIC1 Off ADC1 Off", [all …]
|
H A D | rt5640.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5640.c -- RT5640/RT5639 ALSA SoC audio codec driver 27 #include <sound/soc-dapm.h> 340 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 341 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0); 342 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 343 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000); 451 * set_dmic_clk - Set parameter of dmic. 461 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk() 465 rate = rt5640->sysclk / rl6231_get_pre_div(rt5640->regmap, in set_dmic_clk() [all …]
|
H A D | rt5677.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5677.c -- RT5677 ALSA SoC audio codec driver 29 #include <sound/soc-dapm.h> 35 #include "rt5677-spi.h" 552 * rt5677_dsp_mode_i2c_write_addr - Write value to address on DSP mode. 563 struct snd_soc_component *component = rt5677->component; in rt5677_dsp_mode_i2c_write_addr() 566 mutex_lock(&rt5677->dsp_cmd_lock); in rt5677_dsp_mode_i2c_write_addr() 568 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_MSB, in rt5677_dsp_mode_i2c_write_addr() 571 dev_err(component->dev, "Failed to set addr msb value: %d\n", ret); in rt5677_dsp_mode_i2c_write_addr() 575 ret = regmap_write(rt5677->regmap_physical, RT5677_DSP_I2C_ADDR_LSB, in rt5677_dsp_mode_i2c_write_addr() [all …]
|
H A D | rt5659.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5659.c -- RT5659/RT5658 ALSA SoC audio codec driver 9 #include <linux/clk.h> 25 #include <sound/soc-dapm.h> 1136 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -2325, 75, 0); 1137 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 1138 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0); 1139 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 1140 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0); 1142 static const DECLARE_TLV_DB_SCALE(in_bst_tlv, -1200, 75, 0); [all …]
|
H A D | rt5665.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5665.c -- RT5665/RT5658 ALSA SoC audio codec driver 26 #include <sound/soc-dapm.h> 887 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -2250, 150, 0); 888 static const DECLARE_TLV_DB_SCALE(mono_vol_tlv, -1400, 150, 0); 889 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 890 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0); 891 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 892 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0); 894 static const DECLARE_TLV_DB_SCALE(in_bst_tlv, -1200, 75, 0); [all …]
|
H A D | rt5682s.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt5682s.c -- RT5682I-VS ALSA SoC audio component driver 25 #include <sound/soc-dapm.h> 38 .dai_clk_names[RT5682S_DAI_WCLK_IDX] = "rt5682-dai-wclk", 39 .dai_clk_names[RT5682S_DAI_BCLK_IDX] = "rt5682-dai-bclk", 46 [RT5682S_SUPPLY_LDO1_IN] = "LDO1-IN", 69 ret = regmap_multi_reg_write(rt5682s->regmap, patch_list, ARRAY_SIZE(patch_list)); in rt5682s_apply_patch_list() 624 regmap_write(rt5682s->regmap, RT5682S_RESET, 0); in rt5682s_reset() 634 dev_dbg(component->dev, "%s btn_type=%x\n", __func__, btn_type); in rt5682s_button_detect() 651 mutex_lock(&rt5682s->sar_mutex); in rt5682s_sar_power_mode() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sc7280-herobrine-audio-rt5682-3mic.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 11 /* BOARD-SPECIFIC TOP LEVEL NODES */ 13 compatible = "google,sc7280-herobrine"; 14 model = "sc7280-rt5682-max98360a-3mic"; 16 audio-routing = "VA DMIC0", "vdd-micb", 17 "VA DMIC1", "vdd-micb", 18 "VA DMIC2", "vdd-micb", 19 "VA DMIC3", "vdd-micb", 24 #address-cells = <1>; 25 #size-cells = <0>; [all …]
|
H A D | sc7280-herobrine-audio-rt5682.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 11 /* BOARD-SPECIFIC TOP LEVEL NODES */ 13 compatible = "google,sc7280-herobrine"; 14 model = "sc7280-rt5682-max98360a-1mic"; 16 audio-routing = "Headphone Jack", "HPOL", 19 #address-cells = <1>; 20 #size-cells = <0>; 22 dai-link@0 { 23 link-name = "MAX98360"; 27 sound-dai = <&lpass_cpu MI2S_SECONDARY>; [all …]
|
H A D | sc7180-trogdor-wormdingler-rev1-boe-rt5682s.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 * - bits 11..8: Panel ID: 0x4 (BOE) 11 /dts-v1/; 13 #include "sc7180-trogdor-wormdingler-rev1-boe.dts" 17 compatible = "google,wormdingler-sku1025", "qcom,sc7180"; 22 /delete-property/ VBAT-supply; 23 realtek,dmic1-clk-pin = <2>; 24 realtek,dmic-clk-rate-hz = <2048000>; 28 compatible = "google,sc7180-trogdor"; 29 model = "sc7180-rt5682s-max98357a-1mic";
|
H A D | sc7180-trogdor-wormdingler-rev1-inx-rt5682s.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 * - bits 11..8: Panel ID: 0x0 (INX) 11 /dts-v1/; 13 #include "sc7180-trogdor-wormdingler-rev1-inx.dts" 17 compatible = "google,wormdingler-sku1", "qcom,sc7180"; 22 /delete-property/ VBAT-supply; 23 realtek,dmic1-clk-pin = <2>; 24 realtek,dmic-clk-rate-hz = <2048000>; 28 compatible = "google,sc7180-trogdor"; 29 model = "sc7180-rt5682s-max98357a-1mic";
|
H A D | sc7180-trogdor-pazquel360.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /* This file must be included after sc7180-trogdor.dtsi */ 9 #include "sc7180-trogdor-pazquel.dtsi" 13 realtek,dmic1-clk-pin = <2>; 14 realtek,dmic-clk-rate-hz = <2048000>; 15 /delete-property/ VBAT-supply; 19 clock-frequency = <400000>; 25 pinctrl-names = "default"; 26 pinctrl-0 = <&ts_int_l>, <&ts_reset_l>; 28 interrupt-parent = <&tlmm>; [all …]
|
H A D | sc7180-trogdor-kingoftown.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include "sc7180-trogdor.dtsi" 11 #include "sc7180-trogdor-parade-ps8640.dtsi" 12 #include <arm/cros-ec-keyboard.dtsi> 13 #include "sc7180-trogdor-lte-sku.dtsi" 22 /delete-property/ VBAT-supply; 23 realtek,dmic1-clk-pin = <2>; 24 realtek,dmic-clk-rate-hz = <2048000>; 33 clock-frequency = <400000>; [all …]
|
H A D | sc7180-acer-aspire1.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 13 /delete-node/ &tz_mem; 14 /delete-node/ &ipa_fw_mem; 19 chassis-type = "laptop"; 29 stdout-path = "serial0:115200n8"; 32 reserved-memory { 33 zap_mem: zap-shader@80840000 { [all …]
|
H A D | sc7180-trogdor.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/gpio-keys.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 13 #include <dt-bindings/sound/sc7180-lpass.h> 16 #include "sc7180-firmware-tfa.dtsi" 22 thermal-zones { 23 charger_thermal: charger-thermal { [all …]
|
/openbmc/linux/sound/soc/amd/ |
H A D | acp-da7219-max98357a.c | 1 // SPDX-License-Identifier: MIT 5 //Copyright 2017-2021 Advanced Micro Devices, Inc. 11 #include <sound/soc-dapm.h> 13 #include <linux/clk.h> 33 .pin = "Headphone Jack", 37 .pin = "Headset Mic", 41 .pin = "Line Out", 46 static struct clk *da7219_dai_wclk; 47 static struct clk *da7219_dai_bclk; 48 static struct clk *rt5682_dai_wclk; [all …]
|
/openbmc/u-boot/arch/arm/mach-tegra/tegra210/ |
H A D | pinmux.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 #define PIN(pin, f0, f1, f2, f3) \ macro 23 /* pin, f0, f1, f2, f3 */ 25 PIN(SDMMC1_CLK_PM0, SDMMC1, RSVD1, RSVD2, RSVD3), 26 PIN(SDMMC1_CMD_PM1, SDMMC1, SPI3, RSVD2, RSVD3), 27 PIN(SDMMC1_DAT3_PM2, SDMMC1, SPI3, RSVD2, RSVD3), 28 PIN(SDMMC1_DAT2_PM3, SDMMC1, SPI3, RSVD2, RSVD3), 29 PIN(SDMMC1_DAT1_PM4, SDMMC1, SPI3, RSVD2, RSVD3), 30 PIN(SDMMC1_DAT0_PM5, SDMMC1, RSVD1, RSVD2, RSVD3), 33 PIN(SDMMC3_CLK_PP0, SDMMC3, RSVD1, RSVD2, RSVD3), [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | nvidia,tegra210-pinmux.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/nvidia,tegra210-pinmux.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jon Hunter <jonathanh@nvidia.com> 15 const: nvidia,tegra210-pinmux 19 - description: APB_MISC_GP_*_PADCTRL register (pad control) 20 - description: PINMUX_AUX_* registers (pinmux) 23 "^pinmux(-[a-z0-9-_]+)?$": [all …]
|
/openbmc/u-boot/board/nvidia/p2371-0000/ |
H A D | pinmux-config-p2371-0000.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 7 * THIS FILE IS AUTO-GENERATED - DO NOT EDIT! 9 * To generate this file, use the tegra-pinmux-scripts tool available from 10 * https://github.com/NVIDIA/tegra-pinmux-scripts 11 * Run "board-to-uboot.py p2371-0000". 24 /* port, pin, init_val */ 117 PINCFG(DMIC1_CLK_PE0, DMIC1, NORMAL, NORMAL, OUTPUT, DISABLE, DEFAULT), 118 PINCFG(DMIC1_DAT_PE1, DMIC1, DOWN, NORMAL, INPUT, DISABLE, DEFAULT), 246 PINCFG(CLK_32K_IN, CLK, NORMAL, NORMAL, INPUT, DISABLE, DEFAULT),
|
/openbmc/u-boot/board/nvidia/e2220-1170/ |
H A D | pinmux-config-e2220-1170.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 7 * THIS FILE IS AUTO-GENERATED - DO NOT EDIT! 9 * To generate this file, use the tegra-pinmux-scripts tool available from 10 * https://github.com/NVIDIA/tegra-pinmux-scripts 11 * Run "board-to-uboot.py e2220-1170". 24 /* port, pin, init_val */ 126 PINCFG(DMIC1_CLK_PE0, DMIC1, NORMAL, NORMAL, OUTPUT, DISABLE, DEFAULT), 127 PINCFG(DMIC1_DAT_PE1, DMIC1, NORMAL, NORMAL, INPUT, DISABLE, DEFAULT), 255 PINCFG(CLK_32K_IN, CLK, NORMAL, NORMAL, INPUT, DISABLE, DEFAULT),
|