/linux-6.12.1/Documentation/devicetree/bindings/pinctrl/ |
D | cirrus,lochnagar.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - patches@opensource.cirrus.com 15 Logic devices on mini-cards, as well as allowing connection of various 26 [2] Pinctrl: ../pinctrl/pinctrl-bindings.txt 29 [3] include/dt-bindings/pinctrl/lochnagar.h 37 - cirrus,lochnagar-pinctrl 39 gpio-controller: true 41 '#gpio-cells': [all …]
|
D | cirrus,madera.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - patches@opensource.cirrus.com 15 Certain groups of GPIO pins also have an alternate function, normally as an 30 Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt 33 pin-settings: 40 '-pins$': 43 - $ref: pincfg-node.yaml# 44 - $ref: pinmux-node.yaml# [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/mfd/ |
D | cirrus,madera.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Cirrus Logic Madera class audio CODECs Multi-Functional Device 10 - patches@opensource.cirrus.com 23 - $ref: /schemas/pinctrl/cirrus,madera.yaml# 24 - $ref: /schemas/regulator/wlf,arizona.yaml# 25 - $ref: /schemas/sound/cirrus,madera.yaml# 26 - if: 31 - cirrus,cs47l85 [all …]
|
/linux-6.12.1/drivers/pinctrl/cirrus/ |
D | pinctrl-cs47l92.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2018-2019 Cirrus Logic, Inc. and 12 #include "pinctrl-madera.h" 20 * the group names for that function's pins 22 * Note - all 1 less than in datasheet because these are zero-indexed 31 { "aif2", cs47l92_aif2_pins, ARRAY_SIZE(cs47l92_aif2_pins) },
|
D | pinctrl-cs47l15.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2018-2019 Cirrus Logic, Inc. and 12 #include "pinctrl-madera.h" 20 * the group names for that function's pins 22 * Note - all 1 less than in datasheet because these are zero-indexed 31 { "aif2", cs47l15_aif2_pins, ARRAY_SIZE(cs47l15_aif2_pins) },
|
D | pinctrl-cs47l35.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2016-2017 Cirrus Logic 11 #include "pinctrl-madera.h" 19 * the group names for that function's pins 21 * Note - all 1 less than in datasheet because these are zero-indexed 31 { "aif2", cs47l35_aif2_pins, ARRAY_SIZE(cs47l35_aif2_pins) },
|
D | pinctrl-cs47l90.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2016-2017 Cirrus Logic 11 #include "pinctrl-madera.h" 19 * the group names for that function's pins 21 * Note - all 1 less than in datasheet because these are zero-indexed 37 { "aif2", cs47l90_aif2_pins, ARRAY_SIZE(cs47l90_aif2_pins) },
|
D | pinctrl-cs47l85.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2016-2017 Cirrus Logic 11 #include "pinctrl-madera.h" 19 * the group names for that function's pins 21 * Note - all 1 less than in datasheet because these are zero-indexed 38 { "aif2", cs47l85_aif2_pins, ARRAY_SIZE(cs47l85_aif2_pins) },
|
D | pinctrl-lochnagar.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2017-2018 Cirrus Logic, Inc. and 20 #include <linux/pinctrl/pinconf-generic.h> 29 #include <dt-bindings/pinctrl/lochnagar.h> 31 #include "../pinctrl-utils.h" 35 #define LN_CDC_AIF1_STR "codec-aif1" 36 #define LN_CDC_AIF2_STR "codec-aif2" 37 #define LN_CDC_AIF3_STR "codec-aif3" 38 #define LN_DSP_AIF1_STR "dsp-aif1" 39 #define LN_DSP_AIF2_STR "dsp-aif2" [all …]
|
D | pinctrl-madera-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2016-2018 Cirrus Logic 17 #include <linux/pinctrl/pinconf-generic.h> 25 #include "../pinctrl-utils.h" 27 #include "pinctrl-madera.h" 31 * NOTE: IDs are zero-indexed for coding convenience 77 * All single-pin functions can be mapped to any GPIO, however pinmux applies 80 * that the functions can be described as applying to all pins. 81 * Since these do not correspond to anything in the actual hardware - they are 82 * merely an adaptation to pinctrl's view of the world - we use the same name [all …]
|
/linux-6.12.1/sound/soc/samsung/ |
D | lowland.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 #include <sound/soc-dapm.h> 21 /* Headset jack detection DAPM pins */ 39 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; in lowland_wm5100_init() 58 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset", in lowland_wm5100_init() 73 struct snd_soc_component *component = snd_soc_rtd_to_codec(rtd, 0)->component; in lowland_wm9081_init() 75 snd_soc_dapm_nc_pin(&rtd->card->dapm, "LINEOUT"); in lowland_wm9081_init() 91 DAILINK_COMP_ARRAY(COMP_CPU("samsung-i2s.0")), 92 DAILINK_COMP_ARRAY(COMP_CODEC("wm5100.1-001a", "wm5100-aif1")), 93 DAILINK_COMP_ARRAY(COMP_PLATFORM("samsung-i2s.0"))); [all …]
|
D | speyside.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 #include <sound/soc-dapm.h> 27 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[1]); in speyside_set_bias_level() 30 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level() 63 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[1]); in speyside_set_bias_level_post() 66 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level_post() 71 if (card->dapm.bias_level == SND_SOC_BIAS_STANDBY) { in speyside_set_bias_level_post() 93 card->dapm.bias_level = level; in speyside_set_bias_level_post() 100 /* Headset jack detection DAPM pins */ 128 /* Re-run DAPM to make sure we're using the correct mic bias */ in speyside_set_polarity() [all …]
|
D | midas_wm1811.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <linux/input-event-codes.h> 17 #include <sound/soc-dapm.h> 77 struct midas_priv *priv = snd_soc_card_get_drvdata(codec->card); in headset_jack_check() 81 if (!gpiod_get_value_cansleep(priv->gpio_headset_detect)) in headset_jack_check() 85 ret = snd_soc_dapm_force_enable_pin(dapm, "headset-mic-bias"); in headset_jack_check() 96 ret = iio_read_channel_processed(priv->adc_headset_detect, &adc); in headset_jack_check() 105 jack_type = snd_soc_jack_get_type(&priv->headset_jack, adc); in headset_jack_check() 108 ret = snd_soc_dapm_disable_pin(dapm, "headset-mic-bias"); in headset_jack_check() 120 struct midas_priv *priv = snd_soc_card_get_drvdata(codec->card); in headset_key_check() [all …]
|
/linux-6.12.1/drivers/pinctrl/sunxi/ |
D | pinctrl-sun8i-a33.c | 6 * Based on pinctrl-sun8i-a23.c, which is: 7 * Copyright (C) 2014 Chen-Yu Tsai <wens@csie.org> 8 * Copyright (C) 2014 Maxime Ripard <maxime.ripard@free-electrons.com> 20 #include "pinctrl-sunxi.h" 50 SUNXI_FUNCTION(0x3, "aif2"), /* SYNC */ 56 SUNXI_FUNCTION(0x3, "aif2"), /* BCLK */ 62 SUNXI_FUNCTION(0x3, "aif2"), /* DOUT */ 68 SUNXI_FUNCTION(0x3, "aif2"), /* DIN */ 486 .pins = sun8i_a33_pins, 500 { .compatible = "allwinner,sun8i-a33-pinctrl", }, [all …]
|
D | pinctrl-sun50i-a64.c | 4 * Copyright (C) 2016 - ARM Ltd. 7 * Based on pinctrl-sun7i-a20.c, which is: 8 * Copyright (C) 2014 Maxime Ripard <maxime.ripard@free-electrons.com> 20 #include "pinctrl-sunxi.h" 54 SUNXI_FUNCTION(0x2, "aif2"), /* SYNC */ 61 SUNXI_FUNCTION(0x2, "aif2"), /* BCLK */ 68 SUNXI_FUNCTION(0x2, "aif2"), /* DOUT */ 75 SUNXI_FUNCTION(0x2, "aif2"), /* DIN */ 577 .pins = a64_pins, 589 { .compatible = "allwinner,sun50i-a64-pinctrl", }, [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/allwinner/ |
D | sun50i-a64.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/clock/sun50i-a64-ccu.h> 7 #include <dt-bindings/clock/sun6i-rtc.h> 8 #include <dt-bindings/clock/sun8i-de2.h> 9 #include <dt-bindings/clock/sun8i-r-ccu.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 #include <dt-bindings/reset/sun50i-a64-ccu.h> 12 #include <dt-bindings/reset/sun8i-de2.h> 13 #include <dt-bindings/reset/sun8i-r-ccu.h> 14 #include <dt-bindings/thermal/thermal.h> [all …]
|
/linux-6.12.1/sound/soc/codecs/ |
D | wm8996.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8996.c - WM8996 audio codec interface 5 * Copyright 2011-2 Wolfson Microelectronics PLC. 108 regcache_mark_dirty(wm8996->regmap); \ 299 static const DECLARE_TLV_DB_SCALE(sidetone_tlv, -3600, 150, 0); 300 static const DECLARE_TLV_DB_SCALE(digital_tlv, -7200, 75, 1); 301 static const DECLARE_TLV_DB_SCALE(out_digital_tlv, -1200, 150, 0); 302 static const DECLARE_TLV_DB_SCALE(out_tlv, -900, 75, 0); 303 static const DECLARE_TLV_DB_SCALE(spk_tlv, -900, 150, 0); 304 static const DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); [all …]
|
D | rt5651.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5651.c -- RT5651 ALSA SoC audio codec driver 23 #include <sound/soc-dapm.h> 287 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 288 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0); 289 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 290 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000); 369 * set_dmic_clk - Set parameter of dmic. 379 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk() 383 rate = rt5651->sysclk / rl6231_get_pre_div(rt5651->regmap, in set_dmic_clk() [all …]
|
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 …]
|
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 …]
|
/linux-6.12.1/sound/soc/mediatek/mt8192/ |
D | mt8192-mt6359-rt1015-rt5682.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // mt8192-mt6359-rt1015-rt5682.c -- 4 // MT8192-MT6359-RT1015-RT6358 ALSA SoC machine driver 22 #include "../common/mtk-afe-platform-driver.h" 23 #include "../common/mtk-soc-card.h" 24 #include "../common/mtk-soundcard-driver.h" 25 #include "mt8192-afe-common.h" 26 #include "mt8192-afe-clk.h" 27 #include "mt8192-afe-gpio.h" 31 #define RT1015_CODEC_DAI "rt1015-aif" [all …]
|
/linux-6.12.1/sound/soc/mediatek/mt8195/ |
D | mt8195-mt6359.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mt8195-mt6359.c -- 4 * MT8195-MT6359 ALSA SoC machine driver code 22 #include "../common/mtk-afe-platform-driver.h" 23 #include "../common/mtk-dsp-sof-common.h" 24 #include "../common/mtk-soc-card.h" 25 #include "../common/mtk-soundcard-driver.h" 26 #include "mt8195-afe-clk.h" 27 #include "mt8195-afe-common.h" 40 #define RT1011_CODEC_DAI "rt1011-aif" [all …]
|