/Linux-v6.1/Documentation/devicetree/bindings/power/supply/ |
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 …]
|
/Linux-v6.1/sound/soc/codecs/ |
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 …]
|
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 …]
|
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 …]
|
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 …]
|
D | rt5659.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5659.c -- RT5659/RT5658 ALSA SoC audio codec driver 26 #include <sound/soc-dapm.h> 1137 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -2325, 75, 0); 1138 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 1139 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0); 1140 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 1141 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0); 1143 static const DECLARE_TLV_DB_SCALE(in_bst_tlv, -1200, 75, 0); 1250 * rt5659_headset_detect - Detect headset. [all …]
|
D | rt5665.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5665.c -- RT5665/RT5658 ALSA SoC audio codec driver 27 #include <sound/soc-dapm.h> 888 static const DECLARE_TLV_DB_SCALE(hp_vol_tlv, -2250, 150, 0); 889 static const DECLARE_TLV_DB_SCALE(mono_vol_tlv, -1400, 150, 0); 890 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 891 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -65625, 375, 0); 892 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 893 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -17625, 375, 0); 895 static const DECLARE_TLV_DB_SCALE(in_bst_tlv, -1200, 75, 0); [all …]
|
D | nau8825.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Co-author: Meng-Huang Kuo <mhkuo@nuvoton.com> 34 #define NUVOTON_CODEC_DAI "nau8825-hifi" 239 * nau8825_sema_acquire - acquire the semaphore of nau88l25 249 * this function returns -ETIME. If the sleep is interrupted by a signal, 250 * this function will return -EINTR. It returns 0 if the semaphore was 262 ret = down_timeout(&nau8825->xtalk_sem, timeout); in nau8825_sema_acquire() 264 dev_warn(nau8825->dev, "Acquire semaphore timeout\n"); in nau8825_sema_acquire() 266 ret = down_trylock(&nau8825->xtalk_sem); in nau8825_sema_acquire() 268 dev_warn(nau8825->dev, "Acquire semaphore fail\n"); in nau8825_sema_acquire() [all …]
|
D | rt5663.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5663.c -- RT5663 ALSA SoC audio codec driver 24 #include <sound/soc-dapm.h> 45 unsigned int vol; member 1373 static const DECLARE_TLV_DB_SCALE(rt5663_hp_vol_tlv, -2400, 150, 0); 1374 static const DECLARE_TLV_DB_SCALE(rt5663_v2_hp_vol_tlv, -2250, 150, 0); 1375 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6525, 75, 0); 1376 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -1725, 75, 0); 1405 /* reset in-line command */ in rt5663_enable_push_button_irq() 1412 switch (rt5663->codec_ver) { in rt5663_enable_push_button_irq() [all …]
|
/Linux-v6.1/drivers/power/supply/ |
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 …]
|
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
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 …]
|
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_()
|
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 …]
|
/Linux-v6.1/drivers/gpu/drm/nouveau/ |
D | nouveau_mem.c | 4 * Permission is hereby granted, free of charge, to any person obtaining a 45 switch (vmm->object.oclass) { in nouveau_mem_map() 52 args.nv50.kind = mem->kind; in nouveau_mem_map() 53 args.nv50.comp = mem->comp; in nouveau_mem_map() 60 if (mem->mem.type & NVIF_MEM_VRAM) in nouveau_mem_map() 61 args.gf100.vol = 0; in nouveau_mem_map() 63 args.gf100.vol = 1; in nouveau_mem_map() 66 args.gf100.kind = mem->kind; in nouveau_mem_map() 71 return -ENOSYS; in nouveau_mem_map() 74 return nvif_vmm_map(vmm, vma->addr, mem->mem.size, &args, argc, &mem->mem, 0); in nouveau_mem_map() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/smu12/ |
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 …]
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/ |
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]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
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 …]
|
/Linux-v6.1/arch/arm64/boot/dts/sprd/ |
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 …]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/ |
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
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
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 …]
|
D | smu10_hwmgr.c | 4 * Permission is hereby granted, free of charge, to any person obtaining a 27 #include "atom-types.h" 54 struct smu10_hwmgr *smu10_data = (struct smu10_hwmgr *)(hwmgr->backend); in smu10_display_clock_voltage_request() 55 enum amd_pp_clock_type clk_type = clock_req->clock_type; in smu10_display_clock_voltage_request() 56 uint32_t clk_freq = clock_req->clock_freq_in_khz / 1000; in smu10_display_clock_voltage_request() 61 if (clk_freq == smu10_data->dcf_actual_hard_min_freq) in smu10_display_clock_voltage_request() 64 smu10_data->dcf_actual_hard_min_freq = clk_freq; in smu10_display_clock_voltage_request() 70 if (clk_freq == smu10_data->f_actual_hard_min_freq) in smu10_display_clock_voltage_request() 72 smu10_data->f_actual_hard_min_freq = clk_freq; in smu10_display_clock_voltage_request() 77 return -EINVAL; in smu10_display_clock_voltage_request() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/ |
D | nvd.h | 4 * Permission is hereby granted, free of charge, to any person obtaining a 90 /* 0 - register 91 * 1 - memory (sync - via GRBM) 92 * 2 - gl2 93 * 3 - gds 94 * 4 - reserved 95 * 5 - memory (async - direct) 100 /* 0 - LRU 101 * 1 - Stream 104 /* 0 - me [all …]
|
/Linux-v6.1/arch/arm64/boot/dts/qcom/ |
D | sdm845-shift-axolotl.dts | 1 // SPDX-License-Identifier: GPL-2.0 8 /dts-v1/; 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 20 qcom,msm-id = <321 0x20001>; 21 qcom,board-id = <11 0>; 29 #address-cells = <2>; 30 #size-cells = <2>; 33 stdout-path = "serial0"; [all …]
|
D | sdm845-xiaomi-polaris.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 7 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 12 #include <dt-bindings/input/linux-event-codes.h> 13 #include <dt-bindings/sound/qcom,q6afe.h> 14 #include <dt-bindings/sound/qcom,q6asm.h> 24 /delete-node/ &rmtfs_mem; 25 /delete-node/ &adsp_mem; [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
D | vangogh_ppt.c | 4 * Permission is hereby granted, free of charge, to any person obtaining a 224 struct smu_table_context *smu_table = &smu->smu_table; in vangogh_tables_init() 225 struct smu_table *tables = smu_table->tables; in vangogh_tables_init() 247 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_legacy_t), GFP_KERNEL); in vangogh_tables_init() 251 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in vangogh_tables_init() 253 if (!smu_table->metrics_table) in vangogh_tables_init() 255 smu_table->metrics_time = 0; in vangogh_tables_init() 258 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v2_3); in vangogh_tables_init() 260 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v2_2); in vangogh_tables_init() 261 smu_table->gpu_metrics_table = kzalloc(smu_table->gpu_metrics_table_size, GFP_KERNEL); in vangogh_tables_init() [all …]
|