| /OK3568_Linux_fs/kernel/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. 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 …]
|
| 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 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. 95 dev_dbg(&rdev->dev, "Buck[%d] Set Ramp = %d\n", id + 1, in bd718xx_buck1234_set_ramp_delay() 112 dev_err(&rdev->dev, in bd718xx_buck1234_set_ramp_delay() 114 rdev->desc->name, ramp_delay); in bd718xx_buck1234_set_ramp_delay() 117 return regmap_update_bits(rdev->regmap, BD718XX_REG_BUCK1_CTRL + id, in bd718xx_buck1234_set_ramp_delay() 127 * Note for next hacker - these PMICs have a register where the HW state can be [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mmc/ |
| H A 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 …]
|
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/dac/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/ |
| H A D | rockchip-cpu-avs.txt | 2 ------------------------------------- 4 Under the same frequency, the operating voltage tends to decrease with 5 increasing leakage. so it is necessary to adjust opp's voltage according 10 - cluster-id: At runtime, the platform can find a cpu's cluster_id 11 according to it's cpu_id and match cluster-id property. 12 - min-volt: The minimum voltage in uV. Even though opp's voltage will be 14 - min-freq: The minimum frequency in KHz. If an opp's frequency is bigger 16 - leakage-adjust-volt: The property is an array of 3-tuples items, and 17 each item consists of leakage and voltage like 18 <min-leakage-mA max-leakage-mA volt-uV>. [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/cpufreq/ |
| H A D | cpufreq-rockchip.txt | 6 with 'prop' information which is used to determine opp-microvolt-<name> 8 on operating-points-v2, but the driver can also create the "cpufreq-dt" 9 platform_device to compatibility with operating-points. 14 In 'operating-points-v2' table: 15 - rockchip,leakage-voltage-sel: The property is an array of 3-tuples items, and 16 each item consists of leakage and voltage selector like 17 <min-leakage max-leakage volt-selector>. 18 min-leakage: minimum leakage in mA, ranges from 1 to 254. 19 max-leakage: maximum leakage in mA, ranges from 1 to 254. 20 voltage-selector: a sequence number which is used to math [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
| H A 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() 87 if (link->connector_signal == SIGNAL_TYPE_VIRTUAL || in rn_get_active_display_cnt_wa() 88 link->link_enc->funcs->is_dig_enabled(link->link_enc)) in rn_get_active_display_cnt_wa() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| 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 | 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 …]
|
| H A 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 …]
|
| 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 …]
|
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/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). 31 int ranges); 36 int linear_range_get_value_array(const struct linear_range *r, int ranges, 45 int ranges, unsigned int val,
|
| /OK3568_Linux_fs/u-boot/arch/arm/dts/ |
| H A D | imx6sx.dtsi | 9 #include <dt-bindings/clock/imx6sx-clock.h> 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include "imx6sx-pinfunc.h" 53 #address-cells = <1>; 54 #size-cells = <0>; 57 compatible = "arm,cortex-a9"; 60 next-level-cache = <&L2>; 61 operating-points = < [all …]
|
| H A D | imx6sl.dtsi | 10 #include <dt-bindings/interrupt-controller/irq.h> 11 #include "imx6sl-pinfunc.h" 12 #include <dt-bindings/clock/imx6sl-clock.h> 15 #address-cells = <1>; 16 #size-cells = <1>; 19 * pre-existing /chosen node to be available to insert the 21 * Also for U-Boot there must be a pre-existing /memory node. 47 #address-cells = <1>; 48 #size-cells = <0>; 51 compatible = "arm,cortex-a9"; [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/include/linux/regulator/ |
| H A D | driver.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * driver.h -- SoC Regulator driver support. 54 * struct regulator_ops - regulator operations. 61 * @set_voltage: Set the voltage for the regulator within the range specified. 62 * The driver should select the voltage closest to min_uV. 63 * @set_voltage_sel: Set the voltage for the regulator using the specified 65 * @map_voltage: Convert a voltage into a selector 66 * @get_voltage: Return the currently configured voltage for the regulator; 67 * return -ENOTRECOVERABLE if regulator can't be read at 69 * @get_voltage_sel: Return the currently configured voltage selector for the [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/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 */ 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/mmc/core/ |
| H A 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> 30 #include "slot-gpio.h" 47 if (!host->bus_ops) in mmc_host_class_prepare() 51 if (host->bus_ops->pre_suspend) in mmc_host_class_prepare() 52 return host->bus_ops->pre_suspend(host); in mmc_host_class_prepare() 77 wakeup_source_unregister(host->ws); in mmc_host_classdev_release() 78 if (of_alias_get_id(host->parent->of_node, "mmc") < 0) in mmc_host_classdev_release() 79 ida_simple_remove(&mmc_host_ida, host->index); in mmc_host_classdev_release() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/ |
| H A 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 …]
|
| 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 …]
|