/Linux-v5.15/drivers/regulator/ |
D | helpers.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 // helpers.c -- Voltage/Current Regulator framework helper functions. 19 * regulator_is_enabled_regmap - standard is_enabled() for regmap users 32 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in regulator_is_enabled_regmap() 36 val &= rdev->desc->enable_mask; in regulator_is_enabled_regmap() 38 if (rdev->desc->enable_is_inverted) { in regulator_is_enabled_regmap() 39 if (rdev->desc->enable_val) in regulator_is_enabled_regmap() 40 return val != rdev->desc->enable_val; in regulator_is_enabled_regmap() 43 if (rdev->desc->enable_val) in regulator_is_enabled_regmap() 44 return val == rdev->desc->enable_val; in regulator_is_enabled_regmap() [all …]
|
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 …]
|
D | rohm-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <linux/mfd/rohm-generic.h> 21 if (ret != -EINVAL) in set_dvs_level() 25 /* If voltage is set to 0 => disable */ in set_dvs_level() 30 /* Some setups don't allow setting own voltage but do allow enabling */ in set_dvs_level() 35 return -EINVAL; in set_dvs_level() 37 for (i = 0; i < desc->n_voltages; i++) { in set_dvs_level() 38 /* NOTE to next hacker - Does not support pickable ranges */ in set_dvs_level() 39 if (desc->linear_range_selectors) in set_dvs_level() 40 return -EINVAL; in set_dvs_level() [all …]
|
D | bd718x7-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // bd71837-regulator.c ROHM BD71837MWV/BD71847MWV regulator driver 9 #include <linux/mfd/rohm-bd718x7.h> 50 * controlled by software - or by PMIC internal HW state machine. Whether 51 * regulator should be under SW or HW control can be defined from device-tree. 102 * Note for next hacker - these PMICs have a register where the HW state can be 103 * read. If assuming RUN appears to be false in your use-case - you can 122 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in bd71837_get_buck34_enable_hwctrl() 130 * Bucks 1 to 4 support DVS. PWM mode is used when voltage is changed. 131 * Bucks 5 to 8 and LDOs can use PFM and must be disabled when voltage [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/mmc/ |
D | mmc-spi-slot.txt | 7 - spi-max-frequency : maximum frequency for this device (Hz). 10 - voltage-ranges : two cells are required, first cell specifies minimum 11 slot voltage (mV), second cell specifies maximum slot voltage (mV). 12 Several ranges could be specified. If not provided, 3.2v..3.4v is assumed. 13 - gpios : may specify GPIOs in this order: Card-Detect GPIO, 14 Write-Protect GPIO. Note that this does not follow the 19 mmc-slot@0 { 20 compatible = "fsl,mpc8323rdb-mmc-slot", 21 "mmc-spi-slot"; 25 voltage-ranges = <3300 3300>; [all …]
|
D | fsl-esdhc.txt | 7 by mmc.txt and the properties used by the sdhci-esdhc driver. 10 - compatible : should be "fsl,esdhc", or "fsl,<chip>-esdhc". 12 "fsl,mpc8536-esdhc" 13 "fsl,mpc8378-esdhc" 14 "fsl,p2020-esdhc" 15 "fsl,p4080-esdhc" 16 "fsl,t1040-esdhc" 17 "fsl,t4240-esdhc" 19 "fsl,ls1012a-esdhc" 20 "fsl,ls1028a-esdhc" [all …]
|
/Linux-v5.15/drivers/power/supply/ |
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-v5.15/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
D | rn_clk_mgr.c | 66 for (i = 0; i < context->stream_count; i++) { in rn_get_active_display_cnt_wa() 67 const struct dc_stream_state *stream = context->streams[i]; in rn_get_active_display_cnt_wa() 70 if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A || in rn_get_active_display_cnt_wa() 71 stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK || in rn_get_active_display_cnt_wa() 72 stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK || in rn_get_active_display_cnt_wa() 73 stream->signal == SIGNAL_TYPE_DISPLAY_PORT) in rn_get_active_display_cnt_wa() 77 for (i = 0; i < dc->link_count; i++) { in rn_get_active_display_cnt_wa() 78 const struct dc_link *link = dc->links[i]; in rn_get_active_display_cnt_wa() 81 if (link->link_enc->funcs->is_dig_enabled(link->link_enc)) in rn_get_active_display_cnt_wa() 98 clk_mgr_base->clks.pwr_state = DCN_PWR_STATE_LOW_POWER; in rn_set_low_power_state() [all …]
|
/Linux-v5.15/include/linux/ |
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). 31 int ranges); 36 int linear_range_get_value_array(const struct linear_range *r, int ranges, 47 int ranges, unsigned int val,
|
/Linux-v5.15/Documentation/hwmon/ |
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-v5.15/Documentation/devicetree/bindings/mfd/ |
D | stericsson,db8500-prcmu.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mfd/stericsson,db8500-prcmu.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ST-Ericsson DB8500 PRCMU - Power Reset and Control Management Unit 10 - Linus Walleij <linus.walleij@linaro.org> 13 The DB8500 Power Reset and Control Management Unit is an XP70 8-bit 14 microprocessor that is embedded in the always-on power domain of the 20 pattern: '^prcmu@[0-9a-f]+$' 23 description: The device is compatible both to the device-specific [all …]
|
/Linux-v5.15/arch/arm/boot/dts/ |
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 …]
|
D | imx6sx.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <dt-bindings/clock/imx6sx-clock.h> 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/interrupt-controller/arm-gic.h> 9 #include "imx6sx-pinfunc.h" 12 #address-cells = <1>; 13 #size-cells = <1>; 16 * pre-existing /chosen node to be available to insert the 60 #address-cells = <1>; [all …]
|
D | imx6sl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <dt-bindings/interrupt-controller/irq.h> 6 #include "imx6sl-pinfunc.h" 7 #include <dt-bindings/clock/imx6sl-clock.h> 10 #address-cells = <1>; 11 #size-cells = <1>; 14 * pre-existing /chosen node to be available to insert the 50 #address-cells = <1>; 51 #size-cells = <0>; 54 compatible = "arm,cortex-a9"; [all …]
|
D | qcom-msm8660.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/interrupt-controller/irq.h> 5 #include <dt-bindings/interrupt-controller/arm-gic.h> 6 #include <dt-bindings/clock/qcom,gcc-msm8660.h> 7 #include <dt-bindings/soc/qcom,gsbi.h> 10 #address-cells = <1>; 11 #size-cells = <1>; 14 interrupt-parent = <&intc>; 17 #address-cells = <1>; [all …]
|
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 …]
|
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-v5.15/Documentation/devicetree/bindings/pci/ |
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-v5.15/Documentation/devicetree/bindings/regulator/ |
D | ltc3676.txt | 1 Linear Technology LTC3676 8-output regulators 4 - compatible: "lltc,ltc3676" 5 - reg: I2C slave address 8 - regulators: Contains eight regulator child nodes sw1, sw2, sw3, sw4, 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 412.5mV to 800mV in 12.5 mV steps. The output voltage thus ranges between 26 regulator can not be disabled and thus should have the regulator-always-on 37 regulator-min-microvolt = <674400>; [all …]
|
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-v5.15/Documentation/devicetree/bindings/phy/ |
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 Device Tree Bindings 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-v5.15/drivers/gpu/drm/amd/display/dc/calcs/ |
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-v5.15/Documentation/devicetree/bindings/display/ |
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-v5.15/drivers/iio/adc/ |
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-v5.15/include/linux/regulator/ |
D | driver.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * driver.h -- SoC Regulator driver support. 44 /* Hardware shut down voltage outputs if condition is detected */ 62 * struct regulator_ops - regulator operations. 69 * @set_voltage: Set the voltage for the regulator within the range specified. 70 * The driver should select the voltage closest to min_uV. 71 * @set_voltage_sel: Set the voltage for the regulator using the specified 73 * @map_voltage: Convert a voltage into a selector 74 * @get_voltage: Return the currently configured voltage for the regulator; 75 * return -ENOTRECOVERABLE if regulator can't be read at [all …]
|