/openbmc/u-boot/doc/device-tree-bindings/regulator/ |
H A D | fan53555.txt | 4 - compatible: "fcs,fan53555" 5 - reg: I2C address 8 - fcs,suspend-voltage-selector: declare which of the two available 9 voltage selector registers should be used for the suspend 10 voltage. The other one is used for the runtime voltage setting 12 - vin-supply: regulator supplying the vin pin 18 regulator-name = "fan53555"; 19 regulator-min-microvolt = <1000000>; 20 regulator-max-microvolt = <1800000>; 21 vin-supply = <&parent_reg>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | fcs,fan53555.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Heiko Stuebner <heiko@sntech.de> 13 - $ref: regulator.yaml# 18 - enum: 19 - fcs,fan53555 20 - fcs,fan53526 21 - rockchip,rk8600 22 - rockchip,rk8602 [all …]
|
/openbmc/linux/include/linux/regulator/ |
H A 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 72 * selector. 73 * @map_voltage: Convert a voltage into a selector 74 * @get_voltage: Return the currently configured voltage for the regulator; [all …]
|
H A D | consumer.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * consumer.h -- SoC Regulator consumer support. 12 * Features:- 13 * o Voltage and current level control. 19 * Dynamic Regulator operating Mode Switching (DRMS) - allows regulators 20 * to use most efficient operating mode depending upon voltage and load and 35 #include <linux/suspend.h> 57 * e.g. useful in CPU voltage & frequency scaling where 90 * UNDER_VOLTAGE Regulator output is under voltage. 96 * VOLTAGE_CHANGE Regulator voltage changed. [all …]
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3368-evb-act8846.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Copyright (c) 2015 Caesar Wang <wxt@rock-chips.com> 6 /dts-v1/; 7 #include "rk3368-evb.dtsi" 11 compatible = "rockchip,rk3368-evb-act8846", "rockchip,rk3368"; 15 clock-frequency = <400000>; 20 fcs,suspend-voltage-selector = <1>; 21 regulator-name = "vdd_cpu"; 22 regulator-min-microvolt = <850000>; 23 regulator-max-microvolt = <1350000>; [all …]
|
H A D | rk3588s-indiedroid-nova.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/pinctrl/rockchip.h> 7 #include <dt-bindings/usb/pd.h> 22 stdout-path = "serial2:1500000n8"; 25 sdio_pwrseq: sdio-pwrseq { 26 compatible = "mmc-pwrseq-simple"; 27 clock-names = "ext_clock"; 29 pinctrl-0 = <&wifi_enable_h>; [all …]
|
H A D | rk3588s-rock-5a.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/pinctrl/rockchip.h> 12 compatible = "radxa,rock-5a", "rockchip,rk3588s"; 20 analog-sound { 21 compatible = "audio-graph-card"; 22 label = "rk3588-es8316"; 35 stdout-path = "serial2:1500000n8"; [all …]
|
H A D | rk3399-evb.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 7 #include <dt-bindings/pwm/pwm.h> 12 compatible = "rockchip,rk3399-evb", "rockchip,rk3399"; 19 compatible = "pwm-backlight"; 20 brightness-levels = < 53 default-brightness-level = <200>; 57 edp_panel: edp-panel { 58 compatible = "lg,lp079qx1-sp0v"; 60 enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>; [all …]
|
H A D | rk3588-nanopc-t6.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/pinctrl/rockchip.h> 12 #include <dt-bindings/usb/pd.h> 16 model = "FriendlyElec NanoPC-T6"; 17 compatible = "friendlyarm,nanopc-t6", "rockchip,rk3588"; 26 stdout-path = "serial2:1500000n8"; 30 compatible = "gpio-leds"; 32 sys_led: led-0 { [all …]
|
H A D | rk3399-puma.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/pwm/pwm.h> 8 #include "rk3399-opp.dtsi" 16 compatible = "gpio-leds"; 17 pinctrl-names = "default"; 18 pinctrl-0 = <&module_led_pin>; 20 module_led: led-0 { 23 linux,default-trigger = "heartbeat"; 24 panic-indicator; 28 extcon_usb3: extcon-usb3 { [all …]
|
H A D | rk3588-rock-5b.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 10 compatible = "radxa,rock-5b", "rockchip,rk3588"; 19 stdout-path = "serial2:1500000n8"; 22 analog-sound { 23 compatible = "audio-graph-card"; 24 label = "rk3588-es8316"; 34 hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>; 35 pinctrl-names = "default"; [all …]
|
H A D | rk3399-sapphire.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include "dt-bindings/pwm/pwm.h" 7 #include "dt-bindings/input/input.h" 9 #include "rk3399-opp.dtsi" 12 compatible = "rockchip,rk3399-sapphire", "rockchip,rk3399"; 20 stdout-path = "serial2:1500000n8"; 23 clkin_gmac: external-gmac-clock { 24 compatible = "fixed-clock"; 25 clock-frequency = <125000000>; 26 clock-output-names = "clkin_gmac"; [all …]
|
H A D | rk3399-rock960.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 9 #include "rk3399-opp.dtsi" 10 #include <dt-bindings/interrupt-controller/irq.h> 19 sdio_pwrseq: sdio-pwrseq { 20 compatible = "mmc-pwrseq-simple"; 22 clock-names = "ext_clock"; 23 pinctrl-names = "default"; 24 pinctrl-0 = <&wifi_enable_h>; 25 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; 28 vcc12v_dcin: vcc12v-dcin { [all …]
|
H A D | rk3399-pinephone-pro.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 9 * https://files.pine64.org/doc/PinePhonePro/PinephonePro-Schematic-V1.0-20211127.pdf 12 /dts-v1/; 13 #include <dt-bindings/input/gpio-keys.h> 14 #include <dt-bindings/input/linux-event-codes.h> 16 #include "rk3399-opp.dtsi" 20 compatible = "pine64,pinephone-pro", "rockchip,rk3399"; 21 chassis-type = "handset"; 30 stdout-path = "serial2:115200n8"; 33 adc-keys { [all …]
|
H A D | rk3399-leez-p710.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 7 #include <dt-bindings/input/linux-event-codes.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/pwm/pwm.h> 11 #include "rk3399-opp.dtsi" 24 stdout-path = "serial2:1500000n8"; 27 clkin_gmac: external-gmac-clock { 28 compatible = "fixed-clock"; 29 clock-frequency = <125000000>; [all …]
|
/openbmc/linux/arch/arm/boot/dts/rockchip/ |
H A D | rk3288-evb-act8846.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 4 #include "rk3288-evb.dtsi" 8 compatible = "rockchip,rk3288-evb-act8846", "rockchip,rk3288"; 10 vcc_lcd: vcc-lcd { 11 compatible = "regulator-fixed"; 12 enable-active-high; 14 pinctrl-names = "default"; 15 pinctrl-0 = <&lcd_en>; 16 regulator-name = "vcc_lcd"; [all …]
|
H A D | rk3288-rock2-som.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 #include <dt-bindings/pwm/pwm.h> 12 emmc_pwrseq: emmc-pwrseq { 13 compatible = "mmc-pwrseq-emmc"; 14 pinctrl-0 = <&emmc_reset>; 15 pinctrl-names = "default"; 16 reset-gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_LOW>; 19 ext_gmac: external-gmac-clock { 20 compatible = "fixed-clock"; 21 #clock-cells = <0>; [all …]
|
H A D | rk3288-firefly-reload-core.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 #include <dt-bindings/input/input.h> 16 ext_gmac: external-gmac-clock { 17 compatible = "fixed-clock"; 18 #clock-cells = <0>; 19 clock-frequency = <125000000>; 20 clock-output-names = "ext_gmac"; 24 vcc_flash: flash-regulator { 25 compatible = "regulator-fixed"; 26 regulator-name = "vcc_flash"; [all …]
|
/openbmc/u-boot/drivers/power/regulator/ |
H A D | fan53555.c | 1 // SPDX-License-Identifier: GPL-2.0+ 17 * struct ic_types - definition of fan53555-family devices 21 * @vsel_min: starting voltage (step 0) in uV 22 * @vsel_step: increment of the voltage in uV 24 * The voltage ramp (i.e. minimum voltage and step) is selected from the 27 * See http://www.onsemi.com/pub/Collateral/FAN53555-D.pdf for details. 47 /* I2C-accessible byte-sized registers */ 49 /* Voltage setting */ 63 /* Voltage setting register */ 75 /* Voltage range and step(linear) */ [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | rk3399-rock960.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 6 #include <dt-bindings/pwm/pwm.h> 7 #include <dt-bindings/pinctrl/rockchip.h> 11 vcc1v8_s0: vcc1v8-s0 { 12 compatible = "regulator-fixed"; 13 regulator-name = "vcc1v8_s0"; 14 regulator-min-microvolt = <1800000>; 15 regulator-max-microvolt = <1800000>; 16 regulator-always-on; 19 vcc_sys: vcc-sys { [all …]
|
H A D | rk3288-rock2-som.dtsi | 2 * This file is dual-licensed: you can use it either under the terms 41 #include <dt-bindings/pwm/pwm.h> 50 emmc_pwrseq: emmc-pwrseq { 51 compatible = "mmc-pwrseq-emmc"; 52 pinctrl-0 = <&emmc_reset>; 53 pinctrl-names = "default"; 54 reset-gpios = <&gpio3 9 GPIO_ACTIVE_LOW>; 57 ext_gmac: external-gmac-clock { 58 compatible = "fixed-clock"; 59 #clock-cells = <0>; [all …]
|
H A D | rk3288-miqi.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR X11 14 ext_gmac: external-gmac-clock { 15 compatible = "fixed-clock"; 16 #clock-cells = <0>; 17 clock-frequency = <125000000>; 18 clock-output-names = "ext_gmac"; 21 io_domains: io-domains { 22 compatible = "rockchip,rk3288-io-voltage-domain"; 25 audio-supply = <&vcca_33>; 26 flash0-supply = <&vcc_flash>; [all …]
|
H A D | rk3399-firefly.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 6 /dts-v1/; 7 #include <dt-bindings/pwm/pwm.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 10 #include "rk3399-sdram-ddr3-1600.dtsi" 13 model = "Firefly-RK3399 Board"; 14 compatible = "firefly,firefly-rk3399", "rockchip,rk3399"; 17 stdout-path = &uart2; 18 u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc; 22 compatible = "pwm-backlight"; [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 // core.c -- Voltage/Current Regulator framework. 18 #include <linux/suspend.h> 103 if (rdev->constraints && rdev->constraints->name) in rdev_get_name() 104 return rdev->constraints->name; in rdev_get_name() 105 else if (rdev->desc->name) in rdev_get_name() 106 return rdev->desc->name; in rdev_get_name() 119 if (!rdev->constraints) { in regulator_ops_is_valid() 124 if (rdev->constraints->valid_ops_mask & ops) in regulator_ops_is_valid() 131 * regulator_lock_nested - lock a single regulator [all …]
|
H A D | da9055-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 85 struct da9055_regulator_info *info = regulator->info; in da9055_buck_get_mode() 88 ret = da9055_reg_read(regulator->da9055, info->mode.reg); in da9055_buck_get_mode() 92 switch ((ret & info->mode.mask) >> info->mode.shift) { in da9055_buck_get_mode() 111 struct da9055_regulator_info *info = regulator->info; in da9055_buck_set_mode() 116 val = DA9055_BUCK_MODE_SYNC << info->mode.shift; in da9055_buck_set_mode() 119 val = DA9055_BUCK_MODE_AUTO << info->mode.shift; in da9055_buck_set_mode() 122 val = DA9055_BUCK_MODE_SLEEP << info->mode.shift; in da9055_buck_set_mode() 126 return da9055_reg_update(regulator->da9055, info->mode.reg, in da9055_buck_set_mode() 127 info->mode.mask, val); in da9055_buck_set_mode() [all …]
|