/openbmc/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | sc27xx-fg.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/sc27xx-fg.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 13 - $ref: power-supply.yaml# 18 - sprd,sc2720-fgu 19 - sprd,sc2721-fgu 20 - sprd,sc2723-fgu 21 - sprd,sc2730-fgu [all …]
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3326-odroid-go3.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 9 #include "rk3326-odroid-go.dtsi" 12 model = "ODROID-GO Super"; 13 compatible = "hardkernel,rk3326-odroid-go3", "rockchip,rk3326"; 15 joystick_mux_controller: mux-controller { 16 compatible = "gpio-mux"; 18 #mux-control-cells = <0>; 20 mux-gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>, 24 joystick_mux: adc-mux { [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | cs42l73.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 15 /* I2C Address: 1001010[R/W] - 10010100 = 0x94(Write); 10010101 = 0x95(Read) */ 24 #define CS42L73_CPFCHC 0x09 /* Charge Pump Freq. Class H Ctl. */ 36 #define CS42L73_MICAPREPGAAVOL 0x15 /* MIC 1 [A] PreAmp, PGAA Vol. */ 37 #define CS42L73_MICBPREPGABVOL 0x16 /* MIC 2 [B] PreAmp, PGAB Vol. */ 41 #define CS42L73_HLADVOL 0x1A /* HP/Line A Out Digital Vol. */ 42 #define CS42L73_HLBDVOL 0x1B /* HP/Line B Out Digital Vol. */ 43 #define CS42L73_SPKDVOL 0x1C /* Spkphone Out [A] Digital Vol. */ 49 #define CS42L73_STRINV 0x22 /* Stereo Input Path Adv. Vol. */ 50 #define CS42L73_XSPINV 0x23 /* Auxiliary Port Input Advisory Vol. */ [all …]
|
H A D | rt5616.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5616.c -- RT5616 ALSA SoC audio codec driver 22 #include <sound/soc-dapm.h> 287 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 288 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0); 289 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 290 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0); 351 val = snd_soc_component_read(snd_soc_dapm_to_component(source->dapm), RT5616_GLB_CLK); in is_sys_clk_from_pll() 466 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5616_adc_event() 490 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5616_charge_pump_event() [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> 70 { CS42L52_PGAA_CTL, 0x00 }, /* r12 PGAA Vol, Misc. */ 71 { CS42L52_PGAB_CTL, 0x00 }, /* r13 PGAB Vol, Misc. */ 72 { CS42L52_PASSTHRUA_VOL, 0x00 }, /* r14 Bypass A Vol */ 73 { CS42L52_PASSTHRUB_VOL, 0x00 }, /* r15 Bypass B Vol */ 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); [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | sc27xx_fuel_gauge.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/nvmem-consumer.h> 80 * @charge_chan: IIO channel to get charge voltage 139 return DIV_S64_ROUND_CLOSEST(adc * 1000, data->cur_1000ma_adc); in sc27xx_fgu_adc_to_current() 144 return DIV_S64_ROUND_CLOSEST(adc * 1000, data->vol_1000mv_adc); in sc27xx_fgu_adc_to_voltage() 147 static int sc27xx_fgu_voltage_to_adc(struct sc27xx_fgu_data *data, int vol) in sc27xx_fgu_voltage_to_adc() argument 149 return DIV_ROUND_CLOSEST(vol * data->vol_1000mv_adc, 1000); in sc27xx_fgu_voltage_to_adc() 156 ret = regmap_read(data->regmap, in sc27xx_fgu_is_first_poweron() 157 data->base + SC27XX_FGU_USER_AREA_STATUS, &status); in sc27xx_fgu_is_first_poweron() 184 ret = regmap_update_bits(data->regmap, in sc27xx_fgu_save_boot_mode() [all …]
|
/openbmc/qemu/audio/ |
H A D | audio.h | 4 * Copyright (c) 2003-2005 Vassili Karpov (malc) 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 29 #include "qapi/qapi-types-audio.h" 30 #include "hw/qdev-properties.h" 31 #include "hw/qdev-properties-system.h" 132 uint8_t vol[AUDIO_MAX_CHANNELS]; member 135 void audio_set_volume_out(SWVoiceOut *sw, Volume *vol); 136 void audio_set_volume_in(SWVoiceIn *sw, Volume *vol);
|
H A D | dbusaudio.c | 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 26 #include "qemu/error-report.h" 27 #include "qemu/host-utils.h" 37 #include "ui/dbus-display1.h" 83 if (!vo->buf) { in dbus_get_buffer_out() 84 vo->buf_size = hw->samples * hw->info.bytes_per_frame; in dbus_get_buffer_out() 85 vo->buf = g_malloc(vo->buf_size); in dbus_get_buffer_out() 86 vo->buf_pos = 0; in dbus_get_buffer_out() 89 *size = MIN(vo->buf_size - vo->buf_pos, *size); in dbus_get_buffer_out() 90 *size = audio_rate_get_bytes(&vo->rate, &hw->info, *size); in dbus_get_buffer_out() [all …]
|
H A D | audio_int.h | 4 * Copyright (c) 2003-2005 Vassili Karpov (malc) 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 118 struct mixeng_volume vol; member 134 struct mixeng_volume vol; member 178 void (*volume_out)(HWVoiceOut *hw, Volume *vol); 187 void (*volume_in)(HWVoiceIn *hw, Volume *vol); 268 return (dst >= src) ? (dst - src) : (len - src + dst); in audio_ring_dist() 272 * audio_ring_posb() - returns new position in ringbuffer in backward 281 return pos >= dist ? pos - dist : len - dist + pos; in audio_ring_posb()
|
H A D | mixeng.c | 4 * Copyright (c) 2004-2005 Vassili Karpov (malc) 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 27 #include "qemu/error-report.h" 274 /* macros to map [-1.f, 1.f] <-> [INT32_MIN, INT32_MAX + 1] */ 291 while (samples--) { in conv_natural_float_to_mono() 292 dst->r = dst->l = CONV_NATURAL_FLOAT(*in++); in conv_natural_float_to_mono() 302 while (samples--) { in conv_natural_float_to_stereo() 303 dst->l = CONV_NATURAL_FLOAT(*in++); in conv_natural_float_to_stereo() 304 dst->r = CONV_NATURAL_FLOAT(*in++); in conv_natural_float_to_stereo() 319 while (samples--) { in clip_natural_float_from_mono() [all …]
|
H A D | mixeng.h | 4 * Copyright (c) 2004-2005 Vassili Karpov (malc) 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 41 /* indices: [stereo][signed][swap endianness][8, 16 or 32-bits] */ 58 void mixeng_volume (struct st_sample *buf, int len, struct mixeng_volume *vol);
|
H A D | audio.c | 4 * Copyright (c) 2003-2005 Vassili Karpov (malc) 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 31 #include "qapi/clone-visitor.h" 32 #include "qapi/qobject-input-visitor.h" 33 #include "qapi/qapi-visit-audio.h" 34 #include "qapi/qapi-commands-audio.h" 37 #include "qemu/error-report.h" 44 #include "ui/qemu-spice.h" 55 #define SW_NAME(sw) (sw)->name ? (sw)->name : "unknown" 88 if (strcmp(name, d->name) == 0) { in audio_driver_lookup() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | vmmgf100.c | 4 * Permission is hereby granted, free of charge, to any person obtaining a 35 u64 base = (addr >> 8) | map->type; in gf100_vmm_pgt_pte() 38 if (map->ctag && !(map->next & (1ULL << 44))) { in gf100_vmm_pgt_pte() 39 while (ptes--) { in gf100_vmm_pgt_pte() 40 data = base | ((map->ctag >> 1) << 44); in gf100_vmm_pgt_pte() 41 if (!(map->ctag++ & 1)) in gf100_vmm_pgt_pte() 45 base += map->next; in gf100_vmm_pgt_pte() 48 map->type += ptes * map->ctag; in gf100_vmm_pgt_pte() 50 while (ptes--) { in gf100_vmm_pgt_pte() 52 data += map->next; in gf100_vmm_pgt_pte() [all …]
|
H A D | vmmgm200.c | 4 * Permission is hereby granted, free of charge, to any person obtaining a 31 /* VALID_FALSE + VOL tells the MMU to treat the PTE as sparse. */ in gm200_vmm_pgt_sparse() 32 VMM_FO064(pt, vmm, ptei * 8, BIT_ULL(32) /* VOL. */, ptes); in gm200_vmm_pgt_sparse() 98 if (vmm->func->page[1].shift == 16) in gm200_vmm_join_() 153 int ret = -ENOSYS; in gm200_vmm_new_() 155 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in gm200_vmm_new_() 156 switch (args->v0.bigpage) { in gm200_vmm_new_() 160 return -EINVAL; in gm200_vmm_new_() 163 if (!(ret = nvif_unvers(ret, &argv, &argc, args->vn))) { in gm200_vmm_new_()
|
H A D | vmmgp100.c | 4 * Permission is hereby granted, free of charge, to any person obtaining a 37 struct device *dev = vmm->mmu->subdev.device->dev; in gp100_vmm_pfn_unmap() 40 nvkm_kmap(pt->memory); in gp100_vmm_pfn_unmap() 41 while (ptes--) { in gp100_vmm_pfn_unmap() 42 u32 datalo = nvkm_ro32(pt->memory, pt->base + ptei * 8 + 0); in gp100_vmm_pfn_unmap() 43 u32 datahi = nvkm_ro32(pt->memory, pt->base + ptei * 8 + 4); in gp100_vmm_pfn_unmap() 51 nvkm_done(pt->memory); in gp100_vmm_pfn_unmap() 59 nvkm_kmap(pt->memory); in gp100_vmm_pfn_clear() 60 while (ptes--) { in gp100_vmm_pfn_clear() 61 u32 datalo = nvkm_ro32(pt->memory, pt->base + ptei * 8 + 0); in gp100_vmm_pfn_clear() [all …]
|
/openbmc/qemu/hw/usb/ |
H A D | dev-audio.c | 13 * Permission is hereby granted, free of charge, to any person obtaining a copy 34 #include "hw/qdev-properties.h" 48 #define USBAUDIO_MAX_CHANNELS(s) (s->multi ? 8 : 2) 84 [STRING_NULL_STREAM] = "Audio Output - Disabled", 85 [STRING_REAL_STREAM] = "Audio Output - 48 kHz Stereo", 131 /* Headphone Class-Specific AC Interface Header Descriptor */ 200 /* Headphone Class-specific AS General Interface Descriptor */ 231 /* Stereo Headphone Class-specific 288 /* Headphone Class-Specific AC Interface Header Descriptor */ 363 /* Headphone Class-specific AS General Interface Descriptor */ [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_mem.c | 4 * Permission is hereby granted, free of charge, to any person obtaining a 46 switch (vmm->object.oclass) { in nouveau_mem_map() 53 args.nv50.kind = mem->kind; in nouveau_mem_map() 54 args.nv50.comp = mem->comp; in nouveau_mem_map() 61 if (mem->mem.type & NVIF_MEM_VRAM) in nouveau_mem_map() 62 args.gf100.vol = 0; in nouveau_mem_map() 64 args.gf100.vol = 1; in nouveau_mem_map() 67 args.gf100.kind = mem->kind; in nouveau_mem_map() 72 return -ENOSYS; in nouveau_mem_map() 75 return nvif_vmm_map(vmm, vma->addr, mem->mem.size, &args, argc, &mem->mem, 0); in nouveau_mem_map() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/ |
H A D | smu12_driver_if.h | 4 * Permission is hereby granted, free of charge, to any person obtaining a 113 uint32_t Vol; // Millivolts with 2 fractional bits member 191 uint16_t CoreTemperature[8]; //[centi-Celsius] 193 uint16_t L3Temperature[2]; //[centi-Celsius] 195 uint16_t GfxTemperature; //[centi-Celsius] 196 uint16_t SocTemperature; //[centi-Celsius]
|
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu12/ |
H A D | renoir_ppt.c | 4 * Permission is hereby granted, free of charge, to any person obtaining a 158 struct smu_table_context *smu_table = &smu->smu_table; in renoir_init_smc_tables() 159 struct smu_table *tables = smu_table->tables; in renoir_init_smc_tables() 168 smu_table->clocks_table = kzalloc(sizeof(DpmClocks_t), GFP_KERNEL); in renoir_init_smc_tables() 169 if (!smu_table->clocks_table) in renoir_init_smc_tables() 172 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in renoir_init_smc_tables() 173 if (!smu_table->metrics_table) in renoir_init_smc_tables() 175 smu_table->metrics_time = 0; in renoir_init_smc_tables() 177 smu_table->watermarks_table = kzalloc(sizeof(Watermarks_t), GFP_KERNEL); in renoir_init_smc_tables() 178 if (!smu_table->watermarks_table) in renoir_init_smc_tables() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
H A D | rn_clk_mgr.c | 4 * Permission is hereby granted, free of charge, to any person obtaining a 61 for (i = 0; i < context->stream_count; i++) { in rn_get_active_display_cnt_wa() 62 const struct dc_stream_state *stream = context->streams[i]; in rn_get_active_display_cnt_wa() 64 if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A || in rn_get_active_display_cnt_wa() 65 stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK || in rn_get_active_display_cnt_wa() 66 stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK) in rn_get_active_display_cnt_wa() 70 for (i = 0; i < dc->link_count; i++) { in rn_get_active_display_cnt_wa() 71 const struct dc_link *link = dc->links[i]; in rn_get_active_display_cnt_wa() 74 if (link->link_enc->funcs->is_dig_enabled && in rn_get_active_display_cnt_wa() 75 link->link_enc->funcs->is_dig_enabled(link->link_enc)) in rn_get_active_display_cnt_wa() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sm8250-xiaomi-elish-common.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 6 #include <dt-bindings/arm/qcom,ids.h> 7 #include <dt-bindings/phy/phy.h> 8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 19 /delete-node/ &adsp_mem; 20 /delete-node/ &cdsp_secure_heap; 21 /delete-node/ &slpi_mem; 22 /delete-node/ &spss_mem; 23 /delete-node/ &xbl_aop_mem; 26 classis-type = "tablet"; [all …]
|
H A D | sdm845-xiaomi-beryllium-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include <dt-bindings/leds/common.h> 6 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 7 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 8 #include <dt-bindings/sound/qcom,q6afe.h> 9 #include <dt-bindings/sound/qcom,q6asm.h> 11 #include "sdm845-wcd9340.dtsi" 19 /delete-node/ &tz_mem; 20 /delete-node/ &adsp_mem; [all …]
|
/openbmc/linux/arch/arm64/boot/dts/sprd/ |
H A D | sc2731.dtsi | 6 * SPDX-License-Identifier: (GPL-2.0+ OR MIT) 13 spi-max-frequency = <26000000>; 15 interrupt-controller; 16 #interrupt-cells = <1>; 17 #address-cells = <1>; 18 #size-cells = <0>; 21 compatible = "sprd,sc2731-charger"; 23 monitored-battery = <&bat>; 26 led-controller@200 { 27 compatible = "sprd,sc2731-bltc"; [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/ |
H A D | dm_pp_smu.h | 4 * Permission is hereby granted, free of charge, to any person obtaining a 235 * Note that when setting handshake to unsupported, the call is pre-emptive. That means 237 * request to go un-acked. Only when the call completes should such a state be applied to 253 uint32_t Vol; // Millivolts with 2 fractional bits member
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | smu_helper.c | 4 * Permission is hereby granted, free of charge, to any person obtaining a 38 return (uint8_t) ((6200 - (vddc * VOLTAGE_SCALE)) / 25); in convert_to_vid() 43 return (uint16_t) ((6200 - (vid * 25)) / VOLTAGE_SCALE); in convert_to_vddc() 58 return -ENOMEM; in phm_copy_clock_limits_array() 80 return -ENOMEM; in phm_copy_overdrive_settings_limits_array() 116 if (hwmgr == NULL || hwmgr->device == NULL) { in phm_wait_on_register() 118 return -EINVAL; in phm_wait_on_register() 121 for (i = 0; i < hwmgr->usec_timeout; i++) { in phm_wait_on_register() 122 cur_value = cgs_read_register(hwmgr->device, index); in phm_wait_on_register() 129 if (i == hwmgr->usec_timeout) in phm_wait_on_register() [all …]
|