Home
last modified time | relevance | path

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

12

/linux/Documentation/devicetree/bindings/power/supply/
H A 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 …]
/linux/arch/arm64/boot/dts/rockchip/
H A 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 …]
H A Drk3566-powkiddy-rk2023.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/pinctrl/rockchip.h>
9 #include <dt-bindings/soc/rockchip,vop2.h>
13 chassis-type = "handset";
21 adc-joystick {
22 compatible = "adc-joystick";
[all …]
H A Drk3566-pinetab2.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/gpio-keys.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/pinctrl/rockchip.h>
8 #include <dt-bindings/soc/rockchip,vop2.h>
9 #include <dt-bindings/usb/pd.h>
13 chassis-type = "tablet";
21 stdout-path = "serial2:1500000n8";
[all …]
H A Drk3566-powkiddy-x55.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/pinctrl/rockchip.h>
9 #include <dt-bindings/soc/rockchip,vop2.h>
14 chassis-type = "handset";
25 stdout-path = "serial2:1500000n8";
28 adc_joystick: adc-joystick {
[all …]
H A Drk3588s-gameforce-ace.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/pinctrl/rockchip.h>
9 #include <dt-bindings/pwm/pwm.h>
10 #include <dt-bindings/thermal/thermal.h>
11 #include <dt-bindings/usb/pd.h>
16 chassis-type = "handset";
[all …]
/linux/sound/soc/codecs/
H A 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 …]
H A 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 …]
H A 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 …]
H A Dsgtl5000.c1 // 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 …]
/linux/drivers/power/supply/
H A 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 …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A 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 …]
H A 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 …]
H A 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_()
/linux/drivers/gpu/drm/nouveau/
H A 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 …]
/linux/arch/arm64/boot/dts/allwinner/
H A Dsun50i-h700-anbernic-rg35xx-2024.dts1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
6 /dts-v1/;
8 #include "sun50i-h616.dtsi"
9 #include "sun50i-h616-cpu-opp.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/linux-event-codes.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
13 #include <dt-bindings/leds/common.h>
17 chassis-type = "handset";
18 compatible = "anbernic,rg35xx-2024", "allwinner,sun50i-h700";
[all …]
/linux/drivers/gpu/drm/amd/pm/swsmu/smu12/
H A 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 …]
/linux/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/
H A 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]
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
H A 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 …]
/linux/arch/arm64/boot/dts/qcom/
H A Dsm8250-xiaomi-pipa.dts1 // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
6 /dts-v1/;
8 #include <dt-bindings/arm/qcom,ids.h>
9 #include <dt-bindings/phy/phy.h>
10 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
21 /delete-node/ &adsp_mem;
22 /delete-node/ &cdsp_secure_heap;
23 /delete-node/ &slpi_mem;
24 /delete-node/ &spss_mem;
25 /delete-node/ &xbl_aop_mem;
[all …]
H A Dsdm845-xiaomi-beryllium-common.dtsi1 // 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 …]
H A Dsm8250-xiaomi-elish-common.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2022-2024 Jianhua Lu <lujianhua000@gmail.com>
6 #include <dt-bindings/arm/qcom,ids.h>
7 #include <dt-bindings/phy/phy.h>
8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
9 #include <dt-bindings/usb/pd.h>
20 /delete-node/ &adsp_mem;
21 /delete-node/ &cdsp_secure_heap;
22 /delete-node/ &slpi_mem;
23 /delete-node/ &spss_mem;
[all …]
/linux/arch/arm64/boot/dts/sprd/
H A Dsc2731.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
12 spi-max-frequency = <26000000>;
14 interrupt-controller;
15 #interrupt-cells = <1>;
16 #address-cells = <1>;
17 #size-cells = <0>;
20 compatible = "sprd,sc2731-charger";
22 monitored-battery = <&bat>;
25 led-controller@200 {
26 compatible = "sprd,sc2731-bltc";
[all …]
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddm_pp_smu.h4 * Permission is hereby granted, free of charge, to any person obtaining a
236 * Note that when setting handshake to unsupported, the call is pre-emptive. That means
238 * request to go un-acked. Only when the call completes should such a state be applied to
255 uint32_t Vol; // Millivolts with 2 fractional bits member
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dsmu_helper.c4 * 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 …]

12