/linux-5.10/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 …]
|
/linux-5.10/Documentation/devicetree/bindings/mmc/ |
D | mmc-spi-slot.txt | 7 - spi-max-frequency : maximum frequency for this device (Hz). 8 - voltage-ranges : two cells are required, first cell specifies minimum 9 slot voltage (mV), second cell specifies maximum slot voltage (mV). 10 Several ranges could be specified. 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 …]
|
D | fsl-imx-esdhc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mmc/fsl-imx-esdhc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Shawn Guo <shawnguo@kernel.org> 13 - $ref: "mmc-controller.yaml" 20 by mmc.txt and the properties used by the sdhci-esdhc-imx driver. 25 - enum: 26 - fsl,imx25-esdhc 27 - fsl,imx35-esdhc [all …]
|
/linux-5.10/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-5.10/Documentation/devicetree/bindings/iio/dac/ |
D | ad5758.txt | 4 - compatible: Must be "adi,ad5758" 5 - reg: SPI chip select number for the device 6 - spi-max-frequency: Max SPI frequency to use (< 50000000) 7 - spi-cpha: is the only mode that is supported 11 - adi,dc-dc-mode: Mode of operation of the dc-to-dc converter 14 voltage and dynamically regulates the supply voltage, 16 headroom voltage for the output buffer. 19 In this mode, the VDPC+ voltage is user-programmable to 24 current or voltage output at the VIOUT pin. Only one mode 29 * 2: DPC voltage mode [all …]
|
/linux-5.10/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, 45 int ranges, unsigned int val,
|
/linux-5.10/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-5.10/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() 69 if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A || in rn_get_active_display_cnt_wa() 70 stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK || in rn_get_active_display_cnt_wa() 71 stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK) in rn_get_active_display_cnt_wa() 75 for (i = 0; i < dc->link_count; i++) { in rn_get_active_display_cnt_wa() 76 const struct dc_link *link = dc->links[i]; in rn_get_active_display_cnt_wa() 85 if (link->connector_signal == SIGNAL_TYPE_VIRTUAL || in rn_get_active_display_cnt_wa() 86 link->link_enc->funcs->is_dig_enabled(link->link_enc)) in rn_get_active_display_cnt_wa() 103 clk_mgr_base->clks.pwr_state = DCN_PWR_STATE_LOW_POWER; in rn_set_low_power_state() [all …]
|
/linux-5.10/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 57 #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 | 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 47 #address-cells = <1>; 48 #size-cells = <0>; 51 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 …]
|
/linux-5.10/include/linux/regulator/ |
D | driver.h | 1 /* 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-5.10/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-5.10/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-5.10/drivers/mmc/core/ |
D | host.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2007-2008 Pierre Ossman 25 #include <linux/mmc/slot-gpio.h> 29 #include "slot-gpio.h" 40 wakeup_source_unregister(host->ws); in mmc_host_classdev_release() 41 ida_simple_remove(&mmc_host_ida, host->index); in mmc_host_classdev_release() 62 host->can_retune = 1; in mmc_retune_enable() 63 if (host->retune_period) in mmc_retune_enable() 64 mod_timer(&host->retune_timer, in mmc_retune_enable() 65 jiffies + host->retune_period * HZ); in mmc_retune_enable() [all …]
|
/linux-5.10/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 */ 304 input->src.is_hsplit = false; in pipe_ctx_to_e2e_pipe_params() 307 if (pipe->plane_state->stereo_format == PLANE_STEREO_FORMAT_SIDE_BY_SIDE || in pipe_ctx_to_e2e_pipe_params() 308 pipe->plane_state->stereo_format == PLANE_STEREO_FORMAT_TOP_AND_BOTTOM) { in pipe_ctx_to_e2e_pipe_params() [all …]
|
/linux-5.10/Documentation/devicetree/bindings/iio/adc/ |
D | brcm,iproc-static-adc.txt | 4 Allows user to convert analog input voltage values to digital. 8 - compatible: Must be "brcm,iproc-static-adc" 10 - adc-syscon: Handler of syscon node defining physical base address of the 13 - #io-channel-cells = <1>; As ADC has multiple outputs 14 refer to Documentation/devicetree/bindings/iio/iio-bindings.txt for details. 16 - io-channel-ranges: 17 refer to Documentation/devicetree/bindings/iio/iio-bindings.txt for details. 19 - clocks: Clock used for this block. 21 - clock-names: Clock name should be given as tsc_clk. 23 - interrupts: interrupt line number. [all …]
|
/linux-5.10/Documentation/devicetree/bindings/phy/ |
D | phy-mtk-xsphy.txt | 1 MediaTek XS-PHY binding 2 -------------------------- 4 The XS-PHY controller supports physical layer functionality for USB3.1 8 - compatible : should be "mediatek,<soc-model>-xsphy", "mediatek,xsphy", 9 soc-model is the name of SoC, such as mt3611 etc; 12 - "mediatek,mt3611-xsphy" 14 - #address-cells, #size-cells : should use the same values as the root node 15 - ranges: must be present 18 - reg : offset and length of register shared by multiple U3 ports, 21 - mediatek,src-ref-clk-mhz : u32, frequency of reference clock for slew rate [all …]
|
/linux-5.10/Documentation/devicetree/bindings/display/ |
D | ste,mcde.txt | 1 ST-Ericsson Multi Channel Display Engine MCDE 3 The ST-Ericsson MCDE is a display controller with support for compositing 5 LCD displays or bridges. It is used in the ST-Ericsson U8500 platform. 9 - compatible: must be: 11 - reg: register base for the main MCDE control registers, should be 13 - interrupts: the interrupt line for the MCDE 14 - epod-supply: a phandle to the EPOD regulator 15 - vana-supply: a phandle to the analog voltage regulator 16 - clocks: an array of the MCDE clocks in this strict order: 21 - clock-names: must be the following array: [all …]
|
/linux-5.10/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 …]
|