/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | brcm,nsp-gpio.txt | 4 - compatible: 5 Must be "brcm,nsp-gpio-a" 7 - reg: 11 - #gpio-cells: 16 - gpio-controller: 19 - ngpios: 23 - interrupts: 26 - interrupt-controller: 29 - gpio-ranges: 30 Specifies the mapping between gpio controller and pin-controllers pins. [all …]
|
H A D | brcm,iproc-gpio.txt | 5 - compatible: 6 "brcm,iproc-gpio" for the generic iProc based GPIO controller IP that 7 supports full-featured pinctrl and GPIO functions used in various iProc 10 May contain an SoC-specific compatibility string to accommodate any 11 SoC-specific features 13 "brcm,cygnus-ccm-gpio", "brcm,cygnus-asiu-gpio", or 14 "brcm,cygnus-crmu-gpio" for Cygnus SoCs 16 "brcm,iproc-nsp-gpio" for the iProc NSP SoC that has drive strength support 19 "brcm,iproc-stingray-gpio" for the iProc Stingray SoC that has the general 23 - reg: [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | allwinner,sun50i-a64-codec-analog.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/sound/allwinner,sun50i-a64-codec-analog.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 15 const: allwinner,sun50i-a64-codec-analog 20 cpvdd-supply: 24 allwinner,internal-bias-resistor: 26 Enable the internal 2.2K bias resistor between HBIAS and MICDET pins [all …]
|
/linux/arch/arm64/boot/dts/xilinx/ |
H A D | zynqmp-zcu106-revA.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (C) Copyright 2016 - 2022, Xilinx, Inc. 6 * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc. 11 /dts-v1/; 14 #include "zynqmp-clk-ccf.dtsi" 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/pinctrl/pinctrl-zynqmp.h> 18 #include <dt-bindings/phy/phy.h> 22 compatible = "xlnx,zynqmp-zcu106-revA", "xlnx,zynqmp-zcu106", "xlnx,zynqmp"; [all …]
|
H A D | zynqmp-zcu102-revA.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (C) Copyright 2015 - 2022, Xilinx, Inc. 6 * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc. 11 /dts-v1/; 14 #include "zynqmp-clk-ccf.dtsi" 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/pinctrl/pinctrl-zynqmp.h> 18 #include <dt-bindings/phy/phy.h> 22 compatible = "xlnx,zynqmp-zcu102-revA", "xlnx,zynqmp-zcu102", "xlnx,zynqmp"; [all …]
|
H A D | zynqmp-zcu111-revA.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (C) Copyright 2017 - 2022, Xilinx, Inc. 6 * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc. 11 /dts-v1/; 14 #include "zynqmp-clk-ccf.dtsi" 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/pinctrl/pinctrl-zynqmp.h> 18 #include <dt-bindings/phy/phy.h> 22 compatible = "xlnx,zynqmp-zcu111-revA", "xlnx,zynqmp-zcu111", "xlnx,zynqmp"; [all …]
|
/linux/arch/arm64/boot/dts/allwinner/ |
H A D | sun50i-a64-pinephone-1.0.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 4 /dts-v1/; 6 #include "sun50i-a64-pinephone.dtsi" 10 compatible = "pine64,pinephone-1.0", "pine64,pinephone", "allwinner,sun50i-a64"; 14 allwinner,internal-bias-resistor; 18 enable-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */ 19 flash-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
|
H A D | sun50i-a64-pinephone-1.1.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 4 /dts-v1/; 6 #include "sun50i-a64-pinephone.dtsi" 10 compatible = "pine64,pinephone-1.1", "pine64,pinephone", "allwinner,sun50i-a64"; 14 power-supply = <®_ldo_io0>; 22 brightness-levels = < 28 num-interpolated-steps = <50>; 29 default-brightness-level = <400>; 33 allwinner,internal-bias-resistor; 37 enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ [all …]
|
/linux/drivers/phy/mediatek/ |
H A D | phy-mtk-pcie.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/nvmem-consumer.h> 15 #include "phy-mtk-io.h" 18 /* Internal Resistor Selection of TX Bias Current */ 36 * struct mtk_pcie_lane_efuse - eFuse data for each lane 50 * struct mtk_pcie_phy_data - phy data for each SoC 60 * struct mtk_pcie_phy - PCIe phy driver main structure 66 * @efuse_glb_intr: internal resistor selection of TX bias current data 83 struct mtk_pcie_lane_efuse *data = &pcie_phy->efuse[lane]; in mtk_pcie_efuse_set_lane() 86 if (!data->lane_efuse_supported) in mtk_pcie_efuse_set_lane() [all …]
|
/linux/drivers/power/supply/ |
H A D | 88pm860x_battery.c | 1 // SPDX-License-Identifier: GPL-2.0-only 37 /* bit definitions of GPADC Bias Current 2 Register */ 39 /* GPADC1 Bias Current value in uA unit */ 68 /* OCV -- Open Circuit Voltage */ 82 * Battery temperature based on NTC resistor, defined 83 * corresponding resistor value -- Ohm / C degeree. 85 #define TBAT_NEG_25D 127773 /* -25 */ 86 #define TBAT_NEG_10D 54564 /* -10 */ 104 int resistor; /* Battery Internal Resistor */ member 151 * register 1 bit[7:0] -- bit[11:4] of measured value of voltage [all …]
|
/linux/sound/soc/sunxi/ |
H A D | sun50i-codec-analog.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * This driver supports the analog controls for the internal codec 6 * Copyright (C) 2016 Chen-Yu Tsai <wens@csie.org> 10 * Based on sun8i-codec-analog.c 22 #include <sound/soc-dapm.h> 25 #include "sun8i-adda-pr-regmap.h" 178 -450, 150, 0); 184 static const DECLARE_TLV_DB_SCALE(sun50i_codec_hp_vol_scale, -6300, 100, 1); 188 2, 31, TLV_DB_SCALE_ITEM(-4350, 150, 0), 193 2, 31, TLV_DB_SCALE_ITEM(-4350, 150, 0), [all …]
|
H A D | sun8i-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * This driver supports the digital controls for the internal codec 6 * (C) Copyright 2010-2016 9 * Mylène Josserand <mylene.josserand@free-electrons.com> 27 #include <sound/soc-dapm.h> 251 if (scodec->clk_bus) { in sun8i_codec_runtime_resume() 252 ret = clk_prepare_enable(scodec->clk_bus); in sun8i_codec_runtime_resume() 259 regcache_cache_only(scodec->regmap, false); in sun8i_codec_runtime_resume() 261 ret = regcache_sync(scodec->regmap); in sun8i_codec_runtime_resume() 274 regcache_cache_only(scodec->regmap, true); in sun8i_codec_runtime_suspend() [all …]
|
/linux/sound/soc/codecs/ |
H A D | msm8916-wcd-analog.c | 1 // SPDX-License-Identifier: GPL-2.0 109 #define MICB_VOLTAGE_REGVAL(v) (((v - MICB_MIN_VAL)/MICB_STEP_SIZE) << 3) 283 "vdd-cdc-io", 284 "vdd-cdc-tx-rx-cx", 302 /* Voltage threshold when internal current source of 100uA is used */ 304 /* Voltage threshold when microphone bias is ON */ 358 if (wcd->micbias_mv) { in pm8916_wcd_analog_micbias_enable() 361 MICB_VOLTAGE_REGVAL(wcd->micbias_mv)); in pm8916_wcd_analog_micbias_enable() 366 if (wcd->micbias_mv >= 2700) in pm8916_wcd_analog_micbias_enable() 394 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pm8916_wcd_analog_enable_micbias_int() [all …]
|
H A D | sgtl5000.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // sgtl5000.c -- SGTL5000 ALSA SoC Audio driver 5 // Copyright 2010-2011 Freescale Semiconductor, Inc. All Rights Reserved. 26 #include <sound/soc-dapm.h> 80 /* AVC: Threshold dB -> register: pre-calculated values */ 110 #define LINREG_VDDD ((1600 - LDO_VOLTAGE / 1000) / 50) 190 /* When VAG powering on to get local loop from Line-In, the sleep in vag_power_on() 210 * If the event comes from HP and Line-In is selected, in vag_power_consumers() 212 * As HP_POWERUP is not set when HP muxed to line-in, in vag_power_consumers() 240 * - LINE_IN (for HP events) / HP (for DAC/ADC events) in vag_power_off() [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 | mt6359-accdet.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // mt6359-accdet.c -- ALSA SoC mt6359 accdet driver 27 #include "mt6359-accdet.h" 31 #define REGISTER_VAL(x) ((x) - 1) 73 if (priv->data->eint_detect_mode == 0x3 || in adjust_eint_analog_setting() 74 priv->data->eint_detect_mode == 0x4) { in adjust_eint_analog_setting() 76 regmap_update_bits(priv->regmap, in adjust_eint_analog_setting() 79 if (priv->data->eint_detect_mode == 0x4) { in adjust_eint_analog_setting() 80 if (priv->caps & ACCDET_PMIC_EINT0) { in adjust_eint_analog_setting() 82 regmap_update_bits(priv->regmap, in adjust_eint_analog_setting() [all …]
|
H A D | nau8825.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Co-author: Meng-Huang Kuo <mhkuo@nuvoton.com> 35 #define NUVOTON_CODEC_DAI "nau8825-hifi" 223 * nau8825_sema_acquire - acquire the semaphore of nau88l25 233 * this function returns -ETIME. If the sleep is interrupted by a signal, 234 * this function will return -EINTR. It returns 0 if the semaphore was 246 ret = down_timeout(&nau8825->xtalk_sem, timeout); in nau8825_sema_acquire() 248 dev_warn(nau8825->dev, "Acquire semaphore timeout\n"); in nau8825_sema_acquire() 250 ret = down_trylock(&nau8825->xtalk_sem); in nau8825_sema_acquire() 252 dev_warn(nau8825->dev, "Acquire semaphore fail\n"); in nau8825_sema_acquire() [all …]
|
H A D | max98090.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max98090.c -- MAX98090 ALSA SoC Audio driver 5 * Copyright 2011-2012 Maxim Integrated Products 44 { 0x12, 0x00 }, /* 12 Mic Bias Voltage */ 95 { 0x42, 0x00 }, /* 42 Bias Control */ 279 /* Reset the codec by writing to this write-only reset register */ in max98090_reset() 280 ret = regmap_write(max98090->regmap, M98090_REG_SOFTWARE_RESET, in max98090_reset() 283 dev_err(max98090->component->dev, in max98090_reset() 300 -600, 600, 0); 303 0, 3, TLV_DB_SCALE_ITEM(-600, 300, 0), [all …]
|
/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-apq8060-dragonboard.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 #include <dt-bindings/input/input.h> 3 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/leds/common.h> 5 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 6 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h> 7 #include "qcom-msm8660.dtsi" 12 compatible = "qcom,apq8060-dragonboard", "qcom,msm8660"; 19 stdout-path = "serial0:115200n8"; 23 vph: regulator-fixed { [all …]
|