/linux/include/linux/platform_data/ |
H A D | adp8860.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * Copyright 2009-2010 Analog Devices Inc. 86 * Blacklight current 0..30mA 91 * L2 comparator current 0..1106uA 96 * L3 comparator current 0..138uA 103 u8 bl_fade_in; /* Backlight Fade-In Timer */ 104 u8 bl_fade_out; /* Backlight Fade-Out Timer */ 105 u8 bl_fade_law; /* fade-on/fade-off transfer characteristic */ 123 * Independent Current Sinks / LEDS 130 u8 led_fade_in; /* LED Fade-In Timer */ [all …]
|
/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: 31 '#clock-cells': 34 clock-output-names: [all …]
|
/linux/Documentation/devicetree/bindings/leds/ |
H A D | silergy,sy7802.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: Silergy SY7802 1800mA Boost Charge Pump LED Driver 10 - André Apitzsch <git@apitzsch.eu> 13 The SY7802 is a current-regulated charge pump which can regulate two current 16 The SY7802 is a high-current synchronous boost converter with 2-channel 17 high side current sources. Each channel is able to deliver 900mA current. 22 - silergy,sy7802 27 enable-gpios: [all …]
|
H A D | leds-sgm3140.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/leds-sgm3140.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: SGMICRO SGM3140 500mA Buck/Boost Charge Pump LED Driver 10 - Luca Weiss <luca@z3ntu.xyz> 13 The SGM3140 is a current-regulated charge pump which can regulate two current 17 http://www.sg-micro.com/uploads/soft/20190626/1561535688.pdf 22 - ocs,ocp8110 23 - richtek,rt5033-led [all …]
|
H A D | leds-lp55xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/leds-lp55xx.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jacek Anaszewski <jacek.anaszewski@gmail.com> 11 - Pavel Machek <pavel@ucw.cz> 27 - national,lp5521 28 - national,lp5523 29 - ti,lp55231 30 - ti,lp5562 [all …]
|
/linux/sound/soc/codecs/ |
H A D | es8316.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * es8316.c -- es8316 ALSA SoC audio driver 6 * Authors: David Yang <yangxiaohua@everest-semi.com>, 21 #include <sound/soc-dapm.h> 50 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1); 51 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9600, 50, 1); 52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_max_gain_tlv, -650, 150, 0); 53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_min_gain_tlv, -1200, 150, 0); 56 0, 10, TLV_DB_SCALE_ITEM(-1650, 150, 0), 57 11, 11, TLV_DB_SCALE_ITEM(-150, 0, 0), [all …]
|
H A D | rk817_codec.c | 1 // SPDX-License-Identifier: GPL-2.0 32 * I don't have another implementation to compare from the Rockchip sources. Hard-coding for now. 45 if (rk817->mic_in_differential) { in rk817_init() 57 /* Set resistor value and charge pump current for PLL. */ in rk817_set_component_pll() 61 /* Set the PLL pre-divide value (values not documented). */ in rk817_set_component_pll() 73 * 0db~-95db, 0.375db/step, for example: 75 * 0xff: -95dB 78 static const DECLARE_TLV_DB_MINMAX(rk817_vol_tlv, -9500, 0); 82 * 27db~-18db, 3db/step, for example: 83 * 0x0: -18dB [all …]
|
H A D | wm8903.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8903.c -- WM8903 ALSA SoC Audio driver 5 * Copyright 2008-12 Wolfson Microelectronics 6 * Copyright 2011-2012 NVIDIA, Inc. 11 * - TDM mode configuration. 41 { 4, 0x0018 }, /* R4 - Bias Control 0 */ 42 { 5, 0x0000 }, /* R5 - VMID Control 0 */ 43 { 6, 0x0000 }, /* R6 - Mic Bias Control 0 */ 44 { 8, 0x0001 }, /* R8 - Analogue DAC 0 */ 45 { 10, 0x0001 }, /* R10 - Analogue ADC 0 */ [all …]
|
H A D | cs42l52.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs42l52.c -- CS42L52 ALSA SoC audio driver 28 #include <sound/soc-dapm.h> 130 static DECLARE_TLV_DB_SCALE(hl_tlv, -10200, 50, 0); 132 static DECLARE_TLV_DB_SCALE(hpd_tlv, -9600, 50, 1); 134 static DECLARE_TLV_DB_SCALE(ipd_tlv, -9600, 100, 0); 138 static DECLARE_TLV_DB_SCALE(pga_tlv, -600, 50, 0); 140 static DECLARE_TLV_DB_SCALE(pass_tlv, -6000, 50, 0); 142 static DECLARE_TLV_DB_SCALE(mix_tlv, -5150, 50, 0); 144 static DECLARE_TLV_DB_SCALE(beep_tlv, -56, 200, 0); [all …]
|
H A D | da7218.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * da7218.c - DA7218 ALSA SoC Codec Driver 22 #include <sound/soc-dapm.h> 37 static const DECLARE_TLV_DB_SCALE(da7218_mic_gain_tlv, -600, 600, 0); 38 static const DECLARE_TLV_DB_SCALE(da7218_mixin_gain_tlv, -450, 150, 0); 39 static const DECLARE_TLV_DB_SCALE(da7218_in_dig_gain_tlv, -8325, 75, 0); 40 static const DECLARE_TLV_DB_SCALE(da7218_ags_trigger_tlv, -9000, 600, 0); 42 static const DECLARE_TLV_DB_SCALE(da7218_alc_threshold_tlv, -9450, 150, 0); 47 static const DECLARE_TLV_DB_SCALE(da7218_dmix_gain_tlv, -4200, 150, 0); 50 static const DECLARE_TLV_DB_SCALE(da7218_dgs_trigger_tlv, -9450, 150, 0); [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 …]
|
/linux/include/linux/iio/frequency/ |
H A D | ad9523.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 38 * struct ad9523_channel_spec - Output channel configuration 42 * @sync_ignore_en: Ignore chip-level SYNC signal. 49 * @channel_divider: 10-bit channel divider. 106 * struct ad9523_platform_data - platform specific information 109 * @refa_diff_rcv_en: REFA differential/single-ended input selection. 110 * @refb_diff_rcv_en: REFB differential/single-ended input selection. 111 * @zd_in_diff_en: Zero Delay differential/single-ended input selection. 112 * @osc_in_diff_en: OSC differential/ single-ended input selection. 113 * @refa_cmos_neg_inp_en: REFA single-ended neg./pos. input enable. [all …]
|
/linux/drivers/phy/socionext/ |
H A D | phy-uniphier-usb3ss.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * phy-uniphier-usb3ss.c - SS-PHY driver for Socionext UniPhier USB3 controller 4 * Copyright 2015-2018 Socionext Inc. 34 #define CDR_CPD_TRIM PHY_F(7, 3, 0) /* RxPLL charge pump current */ 35 #define CDR_CPF_TRIM PHY_F(8, 3, 0) /* RxPLL charge pump current 2 */ 36 #define TX_PLL_TRIM PHY_F(9, 3, 0) /* TxPLL charge pump current */ 73 writel(data, priv->base + SSPHY_TESTI); in uniphier_u3ssphy_testio_write() 74 readl(priv->base + SSPHY_TESTO); in uniphier_u3ssphy_testio_write() 75 readl(priv->base + SSPHY_TESTO); in uniphier_u3ssphy_testio_write() 82 u8 field_mask = GENMASK(p->field.msb, p->field.lsb); in uniphier_u3ssphy_set_param() [all …]
|
/linux/Documentation/devicetree/bindings/iio/addac/ |
H A D | adi,ad74115.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Cosmin Tanislav <cosmin.tanislav@analog.com> 13 The AD74115H is a single-channel software configurable input/output 17 chip solution with an SPI interface. The device features a 16-bit ADC and a 18 14-bit DAC. 25 - adi,ad74115h 30 spi-max-frequency: 33 spi-cpol: true [all …]
|
/linux/drivers/leds/flash/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 62 Independent current sources supply for each flash LED support torch 76 will be called "leds-mt6370-flash". 88 scale current. It also supports connecting two channels' output together 89 to supply one LED component to achieve current up to 2 A. In such case, 90 the total LED current will be split symmetrically on each channel and 93 This driver can be built as a module, it will be called "leds-qcom-flash". 102 RT4505 includes torch and flash functions with programmable current. 115 will be called leds-rt8515. 121 This option enables support for the SGM3140 500mA Buck/Boost Charge [all …]
|
H A D | leds-sgm3140.c | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <linux/led-class-flash.h> 10 #include <media/v4l2-flash-led-class.h> 27 /* current timeout in us */ 43 if (priv->enabled == state) in sgm3140_strobe_set() 47 ret = regulator_enable(priv->vin_regulator); in sgm3140_strobe_set() 49 dev_err(fled_cdev->led_cdev.dev, in sgm3140_strobe_set() 53 gpiod_set_value_cansleep(priv->flash_gpio, 1); in sgm3140_strobe_set() 54 gpiod_set_value_cansleep(priv->enable_gpio, 1); in sgm3140_strobe_set() 55 mod_timer(&priv->powerdown_timer, in sgm3140_strobe_set() [all …]
|
/linux/include/media/ |
H A D | tuner-types.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 * enum param_type - type of the tuner pameters 27 * struct tuner_range - define the frequencies supported by the tuner 54 * struct tuner_params - Parameters to be used to setup the tuner. Those 55 * are used by drivers/media/tuners/tuner-types.c in 57 * the parameters are for tuners based on tda9887 IF-PLL 58 * multi-standard analog TV/Radio demodulator, with is 65 * @cb_first_if_lower_freq: Many Philips-based tuners have a comment in 70 * charge pump action, it is recommended to 72 * frequency and the current channel frequency. [all …]
|
/linux/drivers/gpu/drm/panel/ |
H A D | panel-raydium-rm68200.c | 1 // SPDX-License-Identifier: GPL-2.0 30 #define MCS_STBCTR 0x12 /* TE1 Output Setting Zig-Zag Connection */ 31 #define MCS_SGOPCTR 0x16 /* Source Bias Current */ 37 #define MCS_BT2CTR 0x2B /* DDVDL Charge Pump Control */ 38 #define MCS_BT3CTR 0x2F /* VGH Charge Pump Control */ 39 #define MCS_BT4CTR 0x34 /* VGL Charge Pump Control */ 45 /* CMD2 P2 commands (GOA Timing Control) - no description in datasheet */ 105 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in rm68200_dcs_write_buf() 110 dev_err_ratelimited(ctx->dev, "MIPI DSI DCS write buffer failed: %d\n", err); in rm68200_dcs_write_buf() 115 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); in rm68200_dcs_write_cmd() [all …]
|
/linux/drivers/media/dvb-frontends/ |
H A D | cx24123.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Conexant cx24123/cx24109 - DVB QPSK Satellite demod/tuner driver 7 * Support for KWorld DVB-S 100 by Vadim Catana <skystar@moldova.cc> 9 * Support for CX24123/CX24113-NIM by Patrick Boettcher <pb@linuxtv.org> 26 "(1-9, default:off)."); 197 {0x0d, 0x7f}, /* Force driver to shift until the maximum (+-10 MHz) */ 198 {0x0e, 0x03}, /* Default non-inverted, FEC 3/4 (default) */ 210 {0x2c, 0x00}, /* DiSEqC Message (0x2c - 0x31) */ 217 {0x33, 0x00}, /* Interrupts off (0x33 - 0x34) */ 229 {0x67, 0x83}, /* Non-DCII symbol clock */ [all …]
|
/linux/drivers/leds/ |
H A D | leds-lp5569.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 #include <linux/platform_data/leds-lp55xx.h> 18 #include <dt-bindings/leds/leds-lp55xx.h> 20 #include "leds-lp55xx-common.h" 142 chip->engine_idx = i; in lp5569_init_program_engine() 147 pattern[i - 1][j]); in lp5569_init_program_engine() 161 dev_err(&chip->cl->dev, in lp5569_init_program_engine() 164 ret = -EINVAL; in lp5569_init_program_engine() 178 val |= FIELD_PREP(LP5569_CP_MODE_MASK, chip->pdata->charge_pump_mode); in lp5569_post_init_device() 183 if (chip->pdata->clock_mode == LP55XX_CLOCK_INT) { in lp5569_post_init_device() [all …]
|
H A D | leds-lp5521.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <linux/platform_data/leds-lp55xx.h> 23 #include "leds-lp55xx-common.h" 44 /* Base register to set LED current */ 61 #define LP5521_CP_MODE_MASK 0x18 /* Charge pump mode */ 70 /* default R channel current register value */ 112 * current reg. This is dummy read is required on some platforms - in lp5521_post_init_device() 114 * LP5521_REG_ENABLE register will not have any effect - strange! in lp5521_post_init_device() 118 dev_err(&chip->cl->dev, "error in resetting chip\n"); in lp5521_post_init_device() 122 dev_err(&chip->cl->dev, in lp5521_post_init_device() [all …]
|
/linux/drivers/media/pci/mantis/ |
H A D | mantis_vp2040.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 Mantis VP-2040 driver 25 #define MANTIS_MODEL_NAME "VP-2040" 26 #define MANTIS_DEV_TYPE "DVB-C" 40 struct dtv_frontend_properties *p = &fe->dtv_property_cache; in tda1002x_cu1216_tuner_set() 41 struct mantis_pci *mantis = fe->dvb->priv; in tda1002x_cu1216_tuner_set() 42 struct i2c_adapter *adapter = &mantis->adapter; in tda1002x_cu1216_tuner_set() 51 u32 div = (p->frequency + CU1216_IF + TUNER_MUL / 2) / TUNER_MUL; in tda1002x_cu1216_tuner_set() 56 buf[3] = (p->frequency < 150000000 ? 0x01 : in tda1002x_cu1216_tuner_set() 57 p->frequency < 445000000 ? 0x02 : 0x04); in tda1002x_cu1216_tuner_set() [all …]
|
H A D | mantis_vp2033.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 Mantis VP-2033 driver 25 #define MANTIS_MODEL_NAME "VP-2033" 26 #define MANTIS_DEV_TYPE "DVB-C" 40 struct i2c_adapter *adapter = &mantis->adapter; in read_pwm() 58 struct dtv_frontend_properties *p = &fe->dtv_property_cache; in tda1002x_cu1216_tuner_set() 59 struct mantis_pci *mantis = fe->dvb->priv; in tda1002x_cu1216_tuner_set() 60 struct i2c_adapter *adapter = &mantis->adapter; in tda1002x_cu1216_tuner_set() 69 u32 div = (p->frequency + CU1216_IF + TUNER_MUL / 2) / TUNER_MUL; in tda1002x_cu1216_tuner_set() 74 buf[3] = (p->frequency < 150000000 ? 0x01 : in tda1002x_cu1216_tuner_set() [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | cirrus,cs42l42.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 13 The CS42L42 is a low-power audio codec designed for portable applications. 14 It provides a high-dynamic range, stereo DAC for audio playback and a mono 15 high-dynamic-range ADC for audio capture. There is an integrated headset 21 - cirrus,cs42l42 22 - cirrus,cs42l83 29 VP-supply: [all …]
|
H A D | cirrus,cs42l43.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 21 - $ref: dai-common.yaml# 26 - cirrus,cs42l43 31 vdd-p-supply: 35 vdd-a-supply: 39 vdd-d-supply: 43 vdd-io-supply: [all …]
|