Home
last modified time | relevance | path

Searched +full:charge +full:- +full:vol (Results 1 – 25 of 66) sorted by relevance

123

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dsc27xx-fg.txt4 - compatible: Should be one of the following:
5 "sprd,sc2720-fgu",
6 "sprd,sc2721-fgu",
7 "sprd,sc2723-fgu",
8 "sprd,sc2730-fgu",
9 "sprd,sc2731-fgu".
10 - reg: The address offset of fuel gauge unit.
11 - battery-detect-gpios: GPIO for battery detection.
12 - io-channels: Specify the IIO ADC channels to get temperature and charge voltage.
13 - io-channel-names: Should be "bat-temp" or "charge-vol".
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/
Dsc27xx-fg.yaml1 # 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 …]
/kernel/linux/linux-6.6/arch/arm64/boot/dts/rockchip/
Drk3326-odroid-go3.dts1 // 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 …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dcs42l73.h1 /* 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 …]
Drt5616.c1 // 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 …]
Dcs42l52.c1 // 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 …]
/kernel/linux/linux-6.6/sound/soc/codecs/
Dcs42l73.h1 /* 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 …]
Drt5616.c1 // 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 …]
Dcs42l52.c1 // 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 …]
/kernel/linux/linux-6.6/drivers/power/supply/
Dsc27xx_fuel_gauge.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/power/supply/
Dsc27xx_fuel_gauge.c1 // 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 …]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dvmmgf100.c4 * 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 …]
Dvmmgm200.c4 * 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_()
Dvmmgp100.c4 * 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dvmmgf100.c4 * 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 …]
Dvmmgm200.c4 * 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_()
Dvmmgp100.c4 * 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
Dnouveau_mem.c4 * Permission is hereby granted, free of charge, to any person obtaining a
47 switch (vmm->object.oclass) { in nouveau_mem_map()
54 args.nv50.kind = mem->kind; in nouveau_mem_map()
55 args.nv50.comp = mem->comp; in nouveau_mem_map()
62 if (mem->mem.type & NVIF_MEM_VRAM) in nouveau_mem_map()
63 args.gf100.vol = 0; in nouveau_mem_map()
65 args.gf100.vol = 1; in nouveau_mem_map()
68 args.gf100.kind = mem->kind; in nouveau_mem_map()
73 return -ENOSYS; in nouveau_mem_map()
76 super = vmm->object.client->super; in nouveau_mem_map()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/
Dnouveau_mem.c4 * 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 …]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/
Dsmu12_driver_if.h4 * 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]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/inc/
Dsmu12_driver_if.h4 * 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]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/swsmu/smu12/
Drenoir_ppt.c4 * Permission is hereby granted, free of charge, to any person obtaining a
133 struct smu_table_context *smu_table = &smu->smu_table; in renoir_init_smc_tables()
134 struct smu_table *tables = smu_table->tables; in renoir_init_smc_tables()
143 smu_table->clocks_table = kzalloc(sizeof(DpmClocks_t), GFP_KERNEL); in renoir_init_smc_tables()
144 if (!smu_table->clocks_table) in renoir_init_smc_tables()
147 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in renoir_init_smc_tables()
148 if (!smu_table->metrics_table) in renoir_init_smc_tables()
150 smu_table->metrics_time = 0; in renoir_init_smc_tables()
152 smu_table->watermarks_table = kzalloc(sizeof(Watermarks_t), GFP_KERNEL); in renoir_init_smc_tables()
153 if (!smu_table->watermarks_table) in renoir_init_smc_tables()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/pm/swsmu/smu12/
Drenoir_ppt.c4 * 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn21/
Ddcn21_resource.c5 * Permission is hereby granted, free of charge, to any person obtaining a
722 return &ipp->base; in dcn21_ipp_create()
737 return &dpp->base; in dcn21_dpp_create()
759 ctx->dc->caps.extended_aux_timeout_support); in dcn21_aux_engine_create()
761 return &aux_engine->base; in dcn21_aux_engine_create()
804 .num_pll = 5, // maybe 3 because the last two used for USB-c
914 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn21_resource_destruct()
915 if (pool->base.stream_enc[i] != NULL) { in dcn21_resource_destruct()
916 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn21_resource_destruct()
917 pool->base.stream_enc[i] = NULL; in dcn21_resource_destruct()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
Drn_clk_mgr.c4 * 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 …]

123