/linux/drivers/regulator/ |
H A D | helpers.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 // helpers.c -- Voltage/Current Regulator framework helper functions. 20 * regulator_is_enabled_regmap - standard is_enabled() for regmap users 33 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in regulator_is_enabled_regmap() 37 val &= rdev->desc->enable_mask; in regulator_is_enabled_regmap() 39 if (rdev->desc->enable_is_inverted) { in regulator_is_enabled_regmap() 40 if (rdev->desc->enable_val) in regulator_is_enabled_regmap() 41 return val != rdev->desc->enable_val; in regulator_is_enabled_regmap() 44 if (rdev->desc->enable_val) in regulator_is_enabled_regmap() 45 return val == rdev->desc->enable_val; in regulator_is_enabled_regmap() [all …]
|
H A D | 88pm800-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 78 * vreg - the buck regs string. 79 * ereg - the string for the enable register. 80 * ebit - the bit number in the enable register. 81 * amax - the current 82 * Buck has 2 kinds of voltage steps. It is easy to find voltage by ranges, 83 * not the constant voltage table. 84 * n_volt - Number of available selectors 108 * vreg - the LDO regs string 109 * ereg - the string for the enable register. [all …]
|
H A D | bd718x7-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // bd71837-regulator.c ROHM BD71837MWV/BD71847MWV regulator driver 10 #include <linux/mfd/rohm-bd718x7.h> 51 * controlled by software - or by PMIC internal HW state machine. Whether 52 * regulator should be under SW or HW control can be defined from device-tree. 103 * Note for next hacker - these PMICs have a register where the HW state can be 104 * read. If assuming RUN appears to be false in your use-case - you can 123 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in bd71837_get_buck34_enable_hwctrl() 138 * guarantee minimum of 1ms sleep - it shouldn't matter if we in voltage_change_done() 143 ret = regmap_clear_bits(rdev->regmap, BD718XX_REG_MVRFLTMASK2, in voltage_change_done() [all …]
|
/linux/drivers/power/supply/ |
H A D | bd99954-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 * Curve (2) represents battery voltage. 20 * a) Trickle-charge with constant current (8). 21 * b) pre-charge with constant current (6) 22 * c) fast-charge, first with constant current (5) phase. After 23 * the battery voltage has reached target level (4) we have constant 24 * voltage phase until charging current has dropped to termination 30 *(4)` `.` ` ` ` ` ` ` ` ` ` ` ` ` ` ----------------------------. 32 * . o----+/:/ ` ` ` ` ` ` ` ` ` ` ` ` `.` ` (5) 34 * . + /- -- . [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
H A D | rn_clk_mgr.c | 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() 90 struct dc *dc = clk_mgr_base->ctx->dc; in rn_set_low_power_state() [all …]
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | xlnx,zynqmp-ams.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/xlnx,zynqmp-ams.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Anand Ashok Dumbre <anand.ashok.dumbre@xilinx.com> 13 The AMS (Analog Monitoring System) includes an ADC as well as on-chip sensors 14 that can be used to sample external voltages and monitor on-die operating 15 conditions, such as temperature and supply voltage levels. 27 …--------------------------------------------------------------------------------------------------… 28 AMS CTRL |0 |System PLLs voltage measurement, VCC_PSPLL. |Voltage [all …]
|
/linux/Documentation/devicetree/bindings/mmc/ |
H A D | mmc-spi-slot.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-spi-slot.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 13 - $ref: mmc-controller.yaml 14 - $ref: /schemas/spi/spi-peripheral-props.yaml 21 const: mmc-spi-slot 29 voltage-ranges: 30 $ref: /schemas/types.yaml#/definitions/uint32-matrix [all …]
|
H A D | fsl,esdhc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 - Frank Li <Frank.Li@nxp.com> 19 - enum: 20 - fsl,mpc8536-esdhc 21 - fsl,mpc8378-esdhc 22 - fsl,p2020-esdhc 23 - fsl,p4080-esdhc 24 - fsl,t1040-esdhc [all …]
|
/linux/Documentation/devicetree/bindings/iio/dac/ |
H A D | adi,ltc2672.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Hennerich <michael.hennerich@analog.com> 11 - Kim Seer Paller <kimseer.paller@analog.com> 14 Analog Devices LTC2672 5 channel, 12-/16-Bit, 300mA DAC 15 https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2672.pdf 20 - adi,ltc2672 25 spi-max-frequency: 28 vcc-supply: [all …]
|
/linux/Documentation/hwmon/ |
H A D | bt1-pvt.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 3 Kernel driver bt1-pvt 8 * Baikal-T1 PVT sensor (in SoC) 10 Prefix: 'bt1-pvt' 12 Addresses scanned: - 21 ----------- 24 embedded into Baikal-T1 process, voltage and temperature sensors. PVT IP-core 25 consists of one temperature and four voltage sensors, which can be used to 26 monitor the chip internal environment like heating, supply voltage and 29 compile-time configurable due to the hardware interface implementation [all …]
|
/linux/include/linux/ |
H A D | linear_range.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 * struct linear_range - table of selector - value pairs 12 * Define a lookup-table for range of values. Intended to help when looking 13 * for a register value matching certaing physical measure (like voltage). 15 * of the physical measure (like voltage). 42 int ranges); 47 int linear_range_get_value_array(const struct linear_range *r, int ranges, 58 int ranges, unsigned int val,
|
/linux/arch/arm/boot/dts/nxp/mxs/ |
H A D | imx23.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 5 #include "imx23-pinfunc.h" 8 #address-cells = <1>; 9 #size-cells = <1>; 11 interrupt-parent = <&icoll>; 14 * pre-existing /chosen node to be available to insert the 31 #address-cells = <1>; 32 #size-cells = <0>; 35 compatible = "arm,arm926ej-s"; 42 compatible = "simple-bus"; [all …]
|
H A D | imx28.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 5 #include <dt-bindings/gpio/gpio.h> 6 #include "imx28-pinfunc.h" 9 #address-cells = <1>; 10 #size-cells = <1>; 12 interrupt-parent = <&icoll>; 15 * pre-existing /chosen node to be available to insert the 42 #address-cells = <1>; 43 #size-cells = <0>; 46 compatible = "arm,arm926ej-s"; [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | richtek,rt5033.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jakob Hauser <jahau@rocketmail.com> 30 The regulators of RT5033 have to be instantiated under a sub-node named 31 "regulators". For SAFE_LDO voltage there is only one value of 4.9 V. LDO 32 voltage ranges from 1.2 V to 3.0 V in 0.1 V steps. BUCK voltage ranges 44 $ref: /schemas/power/supply/richtek,rt5033-charger.yaml# 47 - compatible 48 - reg [all …]
|
/linux/arch/arm/boot/dts/qcom/ |
H A D | pm8058.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 6 #interrupt-cells = <2>; 7 interrupt-controller; 8 #address-cells = <1>; 9 #size-cells = <0>; 12 compatible = "qcom,pm8058-pwrkey"; 14 interrupts-extended = <&pm8058 50 IRQ_TYPE_EDGE_RISING>, 17 pull-up; 21 compatible = "qcom,pm8058-keypad-led"; 27 compatible = "qcom,pm8058-vib"; [all …]
|
H A D | pm8921.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 6 #interrupt-cells = <2>; 7 interrupt-controller; 8 #address-cells = <1>; 9 #size-cells = <0>; 12 compatible = "qcom,pm8921-pwrkey"; 14 interrupts-extended = <&pm8921 50 IRQ_TYPE_EDGE_RISING>, 17 pull-up; 21 compatible = "qcom,pm8921-mpp", 22 "qcom,ssbi-mpp"; [all …]
|
/linux/Documentation/devicetree/bindings/pci/ |
H A D | nvidia,tegra20-pcie.txt | 4 - compatible: Must be: 5 - "nvidia,tegra20-pcie": for Tegra20 6 - "nvidia,tegra30-pcie": for Tegra30 7 - "nvidia,tegra124-pcie": for Tegra124 and Tegra132 8 - "nvidia,tegra210-pcie": for Tegra210 9 - "nvidia,tegra186-pcie": for Tegra186 10 - power-domains: To ungate power partition by BPMP powergate driver. Must 13 - device_type: Must be "pci" 14 - reg: A list of physical base address and length for each set of controller 15 registers. Must contain an entry for each entry in the reg-names property. [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | richtek,rt5033-charger.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/supply/richtek,rt5033-charger.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jakob Hauser <jahau@rocketmail.com> 14 under sub-node named "charger" using the following format. 18 const: richtek,rt5033-charger 20 monitored-battery: 26 precharge-current-microamp: 27 Current of pre-charge mode. The pre-charge current levels are 350 mA [all …]
|
/linux/Documentation/devicetree/bindings/regulator/ |
H A D | ltc3589.txt | 1 Linear Technology LTC3589, LTC3589-1, and LTC3589-2 8-output regulators 4 - compatible: "lltc,ltc3589", "lltc,ltc3589-1" or "lltc,ltc3589-2" 5 - reg: I2C slave address 8 - regulators: Contains eight regulator child nodes sw1, sw2, sw3, bb-out, 13 nodes for sw1, sw2, sw3, bb-out, ldo1, and ldo2 additionally need to specify 14 the resistor values of their external feedback voltage dividers: 17 - lltc,fb-voltage-divider: An array of two integers containing the resistor 18 values R1 and R2 of the feedback voltage divider in ohms. 21 0.3625 V to 0.75 V in 12.5 mV steps. The output voltage thus ranges between 22 0.3625 * (1 + R1/R2) V and 0.75 * (1 + R1/R2) V. Regulators bb-out and ldo1 [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
H A D | dcn_calcs.c | 40 dc->ctx->logger 50 * This file is gcc-parseable HW gospel, coming straight from HW engineers. 54 * remain as-is as it provides us with a guarantee from HW that it is correct. 70 * slow-slow corner + 10% margin with voltages aligned to FCLK. 80 /* default DISP CLK voltage state on RV */ 86 /* default DPP CLK voltage state on RV */ 92 /* default PHY CLK voltage state on RV */ 305 input->src.is_hsplit = false; in pipe_ctx_to_e2e_pipe_params() 308 if (pipe->plane_state->stereo_format == PLANE_STEREO_FORMAT_SIDE_BY_SIDE || in pipe_ctx_to_e2e_pipe_params() 309 pipe->plane_state->stereo_format == PLANE_STEREO_FORMAT_TOP_AND_BOTTOM) { in pipe_ctx_to_e2e_pipe_params() [all …]
|
/linux/Documentation/devicetree/bindings/phy/ |
H A D | mediatek,xsphy.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: MediaTek XS-PHY Controller 11 - Chunfeng Yun <chunfeng.yun@mediatek.com> 14 The XS-PHY controller supports physical layer functionality for USB3.1 18 ---------------------------------- 45 pattern: "^xs-phy@[0-9a-f]+$" 49 - enum: 50 - mediatek,mt3611-xsphy [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6q-tbs2910.dts | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 5 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 13 compatible = "tbs,imx6q-tbs2910", "fsl,imx6q"; 16 stdout-path = &uart1; 23 /delete-property/ mmc3; 32 compatible = "gpio-fan"; 33 pinctrl-names = "default"; 34 pinctrl-0 = <&pinctrl_gpio_fan>; [all …]
|
/linux/Documentation/devicetree/bindings/display/ |
H A D | ste,mcde.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ST-Ericsson Multi Channel Display Engine MCDE 10 - Linus Walleij <linus.walleij@linaro.org> 25 - description: MCDECLK (main MCDE clock) 26 - description: LCDCLK (LCD clock) 27 - description: PLLDSI (HDMI clock) 29 clock-names: 31 - const: mcde [all …]
|
/linux/drivers/iio/adc/ |
H A D | ltc2471.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for Linear Technology LTC2471 and LTC2473 voltage monitors 26 /* Reference voltage is 1.25V */ 39 return -EIO; in ltc2471_get_value() 54 ret = ltc2471_get_value(data->client); in ltc2471_read_raw() 61 if (chan->differential) in ltc2471_read_raw() 62 /* Output ranges from -VREF to +VREF */ in ltc2471_read_raw() 65 /* Output ranges from 0 to VREF */ in ltc2471_read_raw() 72 *val = -LTC2471_VREF; in ltc2471_read_raw() 76 return -EINVAL; in ltc2471_read_raw() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/ |
H A D | dm_pp_smu.h | 114 struct pp_smu_wm_range_sets *ranges); 154 // voltage managed SMU, freq set by driver 161 // freq/voltage managed by SMU 219 struct pp_smu_wm_range_sets *ranges); 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 283 struct pp_smu_wm_range_sets *ranges); 302 struct pp_smu_wm_range_sets *ranges);
|