Home
last modified time | relevance | path

Searched +full:voltage +full:- +full:table (Results 1 – 25 of 395) sorted by relevance

12345678910>>...16

/Linux-v5.10/Documentation/devicetree/bindings/regulator/
Dpwm-regulator.txt6 Voltage Table: When in this mode, a voltage table (See below) of
7 predefined voltage <=> duty-cycle values must be
9 only operate at the voltages supplied in the table.
10 Intermediary duty-cycle values which would normally
11 allow finer grained voltage selection are ignored and
13 the user if the assumptions made in continuous-voltage
16 Continuous Voltage: This mode uses the regulator's maximum and minimum
18 regulator-{min,max}-microvolt properties to calculate
19 appropriate duty-cycle values. This allows for a much
21 voltage-table mode above. This solution does make an
[all …]
Drohm,bd71828-regulator.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/regulator/rohm,bd71828-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
14 see Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml.
16 The regulator controller is represented as a sub-node of the PMIC node
25 "^LDO[1-7]$":
32 regulator-name:
33 pattern: "^ldo[1-7]$"
[all …]
Drohm,bd71847-regulator.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/regulator/rohm,bd71847-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
15 Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml
21 regulator-boot-on at least for BUCK5. LDO6 is supplied by it and it must
23 voltage monitoring for LDO5/LDO6 can cause PMIC to reset.
30 "^LDO[1-6]$":
37 regulator-name:
[all …]
Drohm,bd71837-regulator.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/regulator/rohm,bd71837-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
15 Documentation/devicetree/bindings/mfd/rohm,bd71837-pmic.yaml
21 regulator-boot-on at least for BUCK6 and BUCK7 so that those are not
23 if they are disabled at startup the voltage monitoring for LDO5/LDO6 will
31 "^LDO[1-7]$":
38 regulator-name:
[all …]
/Linux-v5.10/arch/arm/mach-omap2/
Dvoltage.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * OMAP3/OMAP4 Voltage Management Routines
29 #include "prm-regbits-34xx.h"
30 #include "prm-regbits-44xx.h"
36 #include "voltage.h"
46 * voltdm_get_voltage() - Gets the current non-auto-compensated voltage
47 * @voltdm: pointer to the voltdm for which current voltage info is needed
49 * API to get the current non-auto-compensated voltage for a voltage domain.
50 * Returns 0 in case of error else returns the current voltage.
59 return voltdm->nominal_volt; in voltdm_get_voltage()
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/power/supply/
Dbattery.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
14 In smart batteries, these are typically stored in non-volatile memory
16 no appropriate non-volatile memory, or it is unprogrammed/incorrect.
27 Batteries must be referenced by chargers and/or fuel-gauges using a phandle.
28 The phandle's property should be named "monitored-battery".
32 const: simple-battery
34 over-voltage-threshold-microvolt:
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dsmu_helper.c38 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()
53 uint32_t *table; in phm_copy_clock_limits_array() local
56 table = kzalloc(array_size, GFP_KERNEL); in phm_copy_clock_limits_array()
57 if (NULL == table) in phm_copy_clock_limits_array()
58 return -ENOMEM; in phm_copy_clock_limits_array()
61 table[i] = le32_to_cpu(pptable_array[i]); in phm_copy_clock_limits_array()
63 *pptable_info_array = table; in phm_copy_clock_limits_array()
75 uint32_t *table; in phm_copy_overdrive_settings_limits_array() local
78 table = kzalloc(array_size, GFP_KERNEL); in phm_copy_overdrive_settings_limits_array()
[all …]
Dppatomctrl.c50 pp_atomctrl_mc_reg_table *table) in atomctrl_retrieve_ac_timing() argument
55 ((uint8_t *)reg_block + (2 * sizeof(uint16_t)) + le16_to_cpu(reg_block->usRegIndexTblSize)); in atomctrl_retrieve_ac_timing()
64 table->mc_reg_table_entry[num_ranges].mclk_max = in atomctrl_retrieve_ac_timing()
68 for (i = 0, j = 1; i < table->last; i++) { in atomctrl_retrieve_ac_timing()
69 if ((table->mc_reg_address[i].uc_pre_reg_data & in atomctrl_retrieve_ac_timing()
71 table->mc_reg_table_entry[num_ranges].mc_data[i] = in atomctrl_retrieve_ac_timing()
74 } else if ((table->mc_reg_address[i].uc_pre_reg_data & in atomctrl_retrieve_ac_timing()
76 table->mc_reg_table_entry[num_ranges].mc_data[i] = in atomctrl_retrieve_ac_timing()
77 table->mc_reg_table_entry[num_ranges].mc_data[i-1]; in atomctrl_retrieve_ac_timing()
84 ((uint8_t *)reg_data + le16_to_cpu(reg_block->usRegDataBlkSize)) ; in atomctrl_retrieve_ac_timing()
[all …]
/Linux-v5.10/drivers/opp/
Dti-opp-supply.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2016-2017 Texas Instruments Incorporated - https://www.ti.com/
5 * Dave Gerlach <d-gerlach@ti.com>
25 * struct ti_opp_supply_optimum_voltage_table - optimized voltage table
26 * @reference_uv: reference voltage (usually Nominal voltage)
27 * @optimized_uv: Optimized voltage from efuse
35 * struct ti_opp_supply_data - OMAP specific opp supply data
36 * @vdd_table: Optimized voltage mapping table
38 * @vdd_absolute_max_voltage_uv: absolute maximum voltage in UV for the supply
49 * struct ti_opp_supply_of_data - device tree match data
[all …]
/Linux-v5.10/drivers/iio/adc/
Dqcom-vadc-common.c1 // SPDX-License-Identifier: GPL-2.0
11 #include "qcom-vadc-common.h"
13 /* Voltage to temperature */
15 {1758, -40},
16 {1742, -35},
17 {1719, -30},
18 {1691, -25},
19 {1654, -20},
20 {1608, -15},
21 {1551, -10},
[all …]
Dqcom-vadc-common.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Code shared between the different Qualcomm PMIC voltage ADCs
14 /* Max ADC code represents full-scale range of 1.8V */
32 /* Default decimation - 1024 for rev2, 840 for pmic5 */
45 #define PMI_CHG_SCALE_1 -138890
55 #define DIE_TEMP_ADC7_SCALE_1 -60000
61 * struct vadc_map_pt - Map the graph representation for ADC channel
63 * @y: Represent the physical data which can be temperature, voltage,
73 * VADC_CALIB_RATIOMETRIC: uses the reference voltage (1.8V) and GND for
82 * struct vadc_linear_graph - Represent ADC characteristics.
[all …]
/Linux-v5.10/drivers/regulator/
Dpwm-regulator.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2014 - STMicroelectronics Inc.
31 /* Voltage table */
52 * Voltage table call-backs
61 pwm_get_state(drvdata->pwm, &pwm_state); in pwm_regulator_init_state()
64 for (i = 0; i < rdev->desc->n_voltages; i++) { in pwm_regulator_init_state()
65 if (dutycycle == drvdata->duty_cycle_table[i].dutycycle) { in pwm_regulator_init_state()
66 drvdata->state = i; in pwm_regulator_init_state()
76 if (drvdata->state < 0) in pwm_regulator_get_voltage_sel()
79 return drvdata->state; in pwm_regulator_get_voltage_sel()
[all …]
/Linux-v5.10/include/linux/regulator/
Ddriver.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * driver.h -- SoC Regulator driver support.
53 * struct regulator_ops - regulator operations.
60 * @set_voltage: Set the voltage for the regulator within the range specified.
61 * The driver should select the voltage closest to min_uV.
62 * @set_voltage_sel: Set the voltage for the regulator using the specified
64 * @map_voltage: Convert a voltage into a selector
65 * @get_voltage: Return the currently configured voltage for the regulator;
66 * return -ENOTRECOVERABLE if regulator can't be read at
68 * @get_voltage_sel: Return the currently configured voltage selector for the
[all …]
/Linux-v5.10/drivers/thermal/
Ddevfreq_cooling.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright (C) 2014-2015 ARM Limited
9 * - If OPPs are added or removed after devfreq cooling has
30 * struct devfreq_cooling_device - Devfreq cooling device
36 * @power_table: Pointer to table with maximum power draw for each
37 * cooling state. State is the index into the table, and
39 * @freq_table: Pointer to a table with the frequencies sorted in descending
40 * order. You can index the table by cooling device state
71 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_max_state()
73 *state = dfc->freq_table_size - 1; in devfreq_cooling_get_max_state()
[all …]
/Linux-v5.10/Documentation/userspace-api/media/cec/
Dcec-ioc-dqevent.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
13 CEC_DQEVENT - Dequeue a CEC event
35 non-blocking mode and no event is pending, then it will return -1 and
38 The internal event queues are per-filehandle and per-event type. If
43 two :ref:`CEC_EVENT_STATE_CHANGE <CEC-EVENT-STATE-CHANGE>` events with
51 .. flat-table:: struct cec_event_state_change
52 :header-rows: 0
53 :stub-columns: 0
56 * - __u16
57 - ``phys_addr``
[all …]
/Linux-v5.10/drivers/staging/hikey9xx/
Dhisilicon,hi6421-spmi-pmic.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/mfd/hisilicon,hi6421-spmi-pmic.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
16 The GPIO and interrupt settings are represented as part of the top-level PMIC
20 drivers/staging/hikey9xx/hisilicon,hisi-spmi-controller.yaml.
24 pattern: "pmic@[0-9a-f]"
27 const: hisilicon,hi6421v600-spmi
32 '#interrupt-cells':
[all …]
/Linux-v5.10/drivers/clk/tegra/
Dcvb.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Utility functions for parsing Tegra CVB voltage tables
5 * Copyright (C) 2012-2019 NVIDIA Corporation. All rights reserved.
20 mv = DIV_ROUND_CLOSEST(cvb->c2 * speedo, s_scale); in get_cvb_voltage()
21 mv = DIV_ROUND_CLOSEST((mv + cvb->c1) * speedo, s_scale) + cvb->c0; in get_cvb_voltage()
28 /* combined: apply voltage scale and round to cvb alignment step */ in round_cvb_voltage()
30 int step = (align->step_uv ? : 1000) * v_scale; in round_cvb_voltage()
31 int offset = align->offset_uv * v_scale; in round_cvb_voltage()
33 uv = max(mv * 1000, offset) - offset; in round_cvb_voltage()
34 uv = DIV_ROUND_UP(uv, step) * align->step_uv + align->offset_uv; in round_cvb_voltage()
[all …]
/Linux-v5.10/include/linux/mfd/
Dabx500.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2007-2009 ST-Ericsson AB
45 * struct abx500_res_to_temp - defines one point in a temp to res curve. To
57 * struct abx500_v_to_cap - Table for translating voltage to capacity
58 * @voltage: Voltage in mV
62 int voltage; member
70 * struct abx500_fg_parameters - Fuel gauge algorithm parameters, in seconds
75 * @init_discard_time: Time we discard voltage measurement at startup
122 * struct abx500_charger_maximization - struct used by the board config.
136 * struct abx500_battery_type - different batteries supported
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Diceland_smumgr.c83 /* 35W - XT, XTL */
96 /* 25W - PRO, LE */
111 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in iceland_start_smc()
119 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in iceland_reset_smc()
127 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in iceland_stop_smc_clock()
134 PHM_WRITE_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in iceland_start_smc_clock()
147 /* de-assert reset */ in iceland_smu_start_smc()
164 …PP_ASSERT_WITH_CODE((limit >= byte_count), "SMC address is beyond the SMC RAM area.", return -EINV… in iceland_upload_smc_firmware_data()
166 cgs_write_register(hwmgr->device, mmSMC_IND_INDEX_0, start_addr); in iceland_upload_smc_firmware_data()
167 PHM_WRITE_FIELD(hwmgr->device, SMC_IND_ACCESS_CNTL, AUTO_INCREMENT_IND_0, 1); in iceland_upload_smc_firmware_data()
[all …]
Dvegam_smumgr.c88 return -ENOMEM; in vegam_smu_init()
90 hwmgr->smu_backend = smu_data; in vegam_smu_init()
94 return -EINVAL; in vegam_smu_init()
108 PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in vegam_start_smu_in_protection_mode()
116 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, ixSMU_STATUS, 0); in vegam_start_smu_in_protection_mode()
118 PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in vegam_start_smu_in_protection_mode()
121 /* De-assert reset */ in vegam_start_smu_in_protection_mode()
122 PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in vegam_start_smu_in_protection_mode()
137 if (1 != PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in vegam_start_smu_in_protection_mode()
139 PP_ASSERT_WITH_CODE(false, "SMU Firmware start failed!", return -1); in vegam_start_smu_in_protection_mode()
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/clock/
Dnvidia,tegra124-dfll.txt4 Documentation/devicetree/bindings/clock/clock-bindings.txt
7 the fast CPU cluster. It consists of a free-running voltage controlled
8 oscillator connected to the CPU voltage rail (VDD_CPU), and a closed loop
9 control module that will automatically adjust the VDD_CPU voltage by
10 communicating with an off-chip PMIC either via an I2C bus or via PWM signals.
13 - compatible : should be one of:
14 - "nvidia,tegra124-dfll": for Tegra124
15 - "nvidia,tegra210-dfll": for Tegra210
16 - reg : Defines the following set of registers, in the order listed:
17 - registers for the DFLL control logic.
[all …]
/Linux-v5.10/drivers/staging/comedi/drivers/
Ddt2815.c1 // SPDX-License-Identifier: GPL-2.0+
6 * COMEDI - Linux Control and Measurement Device Interface
20 * [0] - I/O port base base address
21 * [1] - IRQ (unused)
22 * [2] - Voltage unipolar/bipolar configuration
23 * 0 == unipolar 5V (0V -- +5V)
24 * 1 == bipolar 5V (-5V -- +5V)
25 * [3] - Current offset configuration
26 * 0 == disabled (0mA -- +32mAV)
27 * 1 == enabled (+4mA -- +20mAV)
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/include/
Datombios.h2 * Copyright 2006-2007 Advanced Micro Devices, Inc.
107 #define ATOM_SCALER_DISABLE 0 //For Fudo, it's bypass and auto-cengter & no replication
108 #define ATOM_SCALER_CENTER 1 //For Fudo, it's bypass and auto-center & auto replication
110 #define ATOM_SCALER_MULTI_EX 3 //For Fudo only, it's multi-tap mode only used to drive TV or CV,…
203 // Common header for all tables (Data table, Command table).
204 // Every table pointed _ATOM_MASTER_DATA_TABLE has this common header.
212 UCHAR ucTableContentRevision; //Change it only when the table needs to change but the firmware
213 … //Image can't be updated, while Driver needs to carry the new table!
222 UCHAR uaFirmWareSignature[4]; //Signature to distinguish between Atombios and non-atombios,
235 …USHORT usMasterCommandTableOffset;//Offest for SW to get all command table offsets, Don't change t…
[all …]
/Linux-v5.10/arch/x86/platform/intel-mid/device_libs/
Dplatform_bcm43xx.c1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <asm/intel-mid.h>
17 #define WLAN_SFI_GPIO_IRQ_NAME "WLAN-interrupt"
18 #define WLAN_SFI_GPIO_ENABLE_NAME "WLAN-enable"
36 .supply_name = "bcm43xx-vmmc-regulator",
39 * real voltage and signaling are still 1.8V.
48 .name = "reg-fixed-voltage",
56 .dev_id = "reg-fixed-voltage.0",
57 .table = {
58 GPIO_LOOKUP("0000:00:0c.0", -1, NULL, GPIO_ACTIVE_LOW),
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/thermal/
Dthermal-generic-adc.txt4 one of ADC channel and sensor resistance is read via voltage across the
5 sensor resistor. The voltage read across the sensor is mapped to
6 temperature using voltage-temperature lookup table.
10 - compatible: Must be "generic-adc-thermal".
11 - #thermal-sensor-cells: Should be 1. See Documentation/devicetree/bindings/thermal/thermal-sen…
15 - temperature-lookup-table: Two dimensional array of Integer; lookup table
18 looked up on the table to get the equivalent
29 #include <dt-bindings/thermal/thermal.h>
35 sampling-frequency = <3300>;
36 #io-channel-cells = <1>;
[all …]

12345678910>>...16