/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | tps65132-regulator.txt | 4 - compatible: "ti,tps65132" 5 - reg: I2C slave address 9 device node describe the properties of these regulators. The sub-node 11 -For regulator outp, the sub node name should be "outp". 12 -For regulator outn, the sub node name should be "outn". 14 -enable-gpios:(active high, output) Regulators are controlled by the input pins. 17 -active-discharge-gpios: (active high, output) Some configurations use delay mechanisms 18 on the enable pin, to keep the regulator enabled for some time after 19 the enable signal goes low. This GPIO is used to actively discharge 20 the delay mechanism. Requires specification of ti,active-discharge-time-us [all …]
|
H A D | maxim,max8973.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 13 - $ref: regulator.yaml# 18 - maxim,max8973 19 - maxim,max77621 21 junction-warn-millicelsius: 30 maxim,dvs-gpio: 35 maxim,dvs-default-state: [all …]
|
H A D | regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Liam Girdwood <lgirdwood@gmail.com> 11 - Mark Brown <broonie@kernel.org> 14 regulator-name: 18 regulator-min-microvolt: 21 regulator-max-microvolt: 24 regulator-microvolt-offset: 28 regulator-min-microamp: [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | tps65132-regulator.c | 65 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; in tps65132_regulator_enable() 68 if (!IS_ERR(rpdata->en_gpiod)) { in tps65132_regulator_enable() 69 gpiod_set_value_cansleep(rpdata->en_gpiod, 1); in tps65132_regulator_enable() 70 rpdata->ena_gpio_state = 1; in tps65132_regulator_enable() 73 /* Hardware automatically enable discharge bit in enable */ in tps65132_regulator_enable() 74 if (rdev->constraints->active_discharge == in tps65132_regulator_enable() 78 dev_err(tps->dev, "Failed to disable active discharge: %d\n", in tps65132_regulator_enable() 91 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; in tps65132_regulator_disable() 93 if (!IS_ERR(rpdata->en_gpiod)) { in tps65132_regulator_disable() 94 gpiod_set_value_cansleep(rpdata->en_gpiod, 0); in tps65132_regulator_disable() [all …]
|
H A D | aw37503-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0 50 struct aw37503_reg_pdata *rpdata = &chip->reg_pdata[id]; in aw37503_regulator_enable() 53 if (!IS_ERR(rpdata->en_gpiod)) { in aw37503_regulator_enable() 54 gpiod_set_value_cansleep(rpdata->en_gpiod, 1); in aw37503_regulator_enable() 55 rpdata->ena_gpio_state = 1; in aw37503_regulator_enable() 58 /* Hardware automatically enable discharge bit in enable */ in aw37503_regulator_enable() 59 if (rdev->constraints->active_discharge == in aw37503_regulator_enable() 63 dev_err(chip->dev, "Failed to disable active discharge: %d\n", in aw37503_regulator_enable() 76 struct aw37503_reg_pdata *rpdata = &chip->reg_pdata[id]; in aw37503_regulator_disable() 78 if (!IS_ERR(rpdata->en_gpiod)) { in aw37503_regulator_disable() [all …]
|
/openbmc/linux/include/linux/regulator/ |
H A D | machine.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * machine.h -- SoC Regulator support, machine/board driver API. 21 * Regulator operation constraint flags. These flags are used to enable 44 * DO_NOTHING_IN_SUSPEND - the default value 45 * DISABLE_IN_SUSPEND - turn off regulator in suspend states 46 * ENABLE_IN_SUSPEND - keep regulator on in suspend states 52 /* Regulator active discharge flags */ 60 * struct regulator_state - regulator state during low power system states 72 * - DO_NOTHING_IN_SUSPEND 73 * - DISABLE_IN_SUSPEND [all …]
|
H A D | driver.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * driver.h -- SoC Regulator driver support. 62 * struct regulator_ops - regulator operations. 64 * @enable: Configure the regulator as enabled. 75 * return -ENOTRECOVERABLE if regulator can't be read at 78 * regulator; return -ENOTRECOVERABLE if regulator can't 85 * @set_current_limit: Configure a limit for a current-limited regulator. 87 * @get_current_limit: Get the configured limit for a current-limited regulator. 94 * - REGULATOR_SEVERITY_PROT should automatically shut down the regulator(s). 96 * - REGULATOR_SEVERITY_ERR should indicate that over-current situation is [all …]
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | stm32mp15xx-dhcor-som.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 3 * Copyright (C) Linaro Ltd 2019 - All Rights Reserved 8 #include "stm32mp15-pinctrl.dtsi" 9 #include "stm32mp15xxac-pinctrl.dtsi" 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/mfd/st,stpmic1.h> 23 reserved-memory { 24 #address-cells = <1>; 25 #size-cells = <1>; 29 compatible = "shared-dma-pool"; [all …]
|
H A D | ste-ux500-samsung-golden.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /dts-v1/; 4 #include "ste-db8500.dtsi" 5 #include "ste-ab8505.dtsi" 6 #include "ste-dbx5x0-pinctrl.dtsi" 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 14 * You need an intermediate, device-tree compatible bootloader [all …]
|
/openbmc/u-boot/board/nvidia/dalmore/ |
H A D | dalmore.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved. 10 #include "pinmux-config-dalmore.h" 31 /* Initialize any non-default pad configs (APB_MISC_GP regs) */ in pinmux_init() 59 printf("%s: PMU i2c_write %02X<-%02X returned %d\n", in board_sdmmc_voltage_init() 62 /* TPS65913: LDO9_CTRL = Active */ in board_sdmmc_voltage_init() 68 printf("%s: PMU i2c_write %02X<-%02X returned %d\n", in board_sdmmc_voltage_init() 71 /* TPS65090: FET6_CTRL = enable output auto discharge, enable FET6 */ in board_sdmmc_voltage_init() 82 printf("%s: BAT i2c_write %02X<-%02X returned %d\n", in board_sdmmc_voltage_init() 93 * NOTE: We don't do mmc-specific pin muxes here. in pin_mux_mmc()
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | msm8916-huawei-g7.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 6 /dts-v1/; 8 #include "msm8916-pm8916.dtsi" 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/interrupt-controller/irq.h> 12 #include <dt-bindings/leds/common.h> 13 #include <dt-bindings/sound/apq8016-lpass.h> 16 * Note: The original firmware from Huawei can only boot 32-bit kernels. 17 * To boot this device tree using arm64 it is necessary to flash 64-bit TZ/HYP [all …]
|
H A D | msm8998-sony-xperia-yoshino.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 8 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/leds/common.h> 10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 18 qcom,msm-id = <0x124 0x20000>, <0x124 0x20001>; /* 8998v2, v2.1 */ 19 qcom,board-id = <8 0>; 23 compatible = "gpio-gate-clock"; 24 pinctrl-0 = <&div_clk1>; 25 pinctrl-names = "default"; 27 #clock-cells = <0>; [all …]
|
H A D | sdm845-sony-xperia-tama.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 6 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 15 qcom,msm-id = <321 0x20001>; /* SDM845 v2.1 */ 16 qcom,board-id = <8 0>; 24 stdout-path = "serial0:115200n8"; 27 gpio-keys { 28 compatible = "gpio-keys"; 30 pinctrl-0 = <&focus_n &snapshot_n &vol_down_n &vol_up_n>; [all …]
|
/openbmc/linux/arch/arm/boot/dts/nvidia/ |
H A D | tegra30-asus-nexus7-grouper-ti-pmic.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 #include <dt-bindings/interrupt-controller/arm-gic.h> 4 #include <dt-bindings/gpio/gpio.h> 13 #interrupt-cells = <2>; 14 interrupt-controller; 15 wakeup-source; 17 ti,en-gpio-sleep = <0 0 1 0 0 0 0 0 0>; 18 ti,system-power-controller; 19 ti,sleep-keep-ck32k; 20 ti,sleep-enable; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | st,stpmic1.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 12 - pascal Paillet <p.paillet@foss.st.com> 24 "#interrupt-cells": 27 interrupt-controller: true 36 const: st,stpmic1-onkey 40 - description: onkey-falling, happens when onkey is pressed. IT_PONKEY_F of pmic 41 - description: onkey-rising, happens when onkey is released. IT_PONKEY_R of pmic 43 interrupt-names: [all …]
|
/openbmc/linux/drivers/gpu/drm/tiny/ |
H A D | repaper.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * DRM driver for Pervasive Displays RePaper branded e-ink panels 5 * Copyright 2013-2017 Pervasive Displays, Inc. 51 enum repaper_stage { /* Image pixel -> Display pixel */ 52 REPAPER_COMPENSATE, /* B -> W, W -> B (Current Image) */ 53 REPAPER_WHITE, /* B -> N, W -> W (Current Image) */ 54 REPAPER_INVERSE, /* B -> N, W -> B (New Image) */ 55 REPAPER_NORMAL /* B -> B, W -> W (New Image) */ 73 struct gpio_desc *discharge; member 111 return -ENOMEM; in repaper_spi_transfer() [all …]
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | imx_keypad.c | 1 // SPDX-License-Identifier: GPL-2.0 32 #define KBD_STAT_KDIE (0x1 << 8) /* Key Depress Interrupt Enable Status bit */ 33 #define KBD_STAT_KRIE (0x1 << 9) /* Key Release Interrupt Enable */ 34 #define KBD_STAT_KPPEN (0x1 << 10) /* Keypad Clock Enable */ 71 * -stable: achieved after a complete debounce process. 72 * -unstable: used in the debouncing process. 86 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_scan_matrix() 89 * Discharge keypad capacitance: in imx_keypad_scan_matrix() 91 * 3. configure columns as totem-pole to discharge capacitance. in imx_keypad_scan_matrix() 92 * 4. configure columns as open-drain. in imx_keypad_scan_matrix() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/nvidia/ |
H A D | tegra210-smaug.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/mfd/max77620.h> 6 #include <dt-bindings/pinctrl/pinctrl-tegra.h> 12 compatible = "google,smaug-rev8", "google,smaug-rev7", 13 "google,smaug-rev6", "google,smaug-rev5", 14 "google,smaug-rev4", "google,smaug-rev3", 15 "google,smaug-rev2", "google,smaug-rev1", 25 stdout-path = "serial0:115200n8"; [all …]
|
H A D | tegra210-p3450-0000.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/gpio-keys.h> 5 #include <dt-bindings/input/linux-event-codes.h> 6 #include <dt-bindings/mfd/max77620.h> 12 compatible = "nvidia,p3450-0000", "nvidia,tegra210"; 22 stdout-path = "serial0:115200n8"; 33 hvddio-pex-supply = <&vdd_1v8>; 34 dvddio-pex-supply = <&vdd_pex_1v05>; 35 vddio-pex-ctl-supply = <&vdd_1v8>; [all …]
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
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 …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-power | 5 Contact: linux-pm@vger.kernel.org 14 Contact: linux-pm@vger.kernel.org 23 Contact: linux-pm@vger.kernel.org 32 Contact: linux-pm@vger.kernel.org 43 Contact: linux-pm@vger.kernel.org 66 Contact: linux-pm@vger.kernel.org 81 Contact: linux-pm@vger.kernel.org 94 read-only reporting, unless the 'online' state of the supply 106 Contact: linux-pm@vger.kernel.org 124 Contact: linux-pm@vger.kernel.org [all …]
|
/openbmc/linux/drivers/usb/typec/tcpm/ |
H A D | tcpm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2015-2017 Google, Inc 206 VDM_STATE_ERR_BUSY = -3, 207 VDM_STATE_ERR_SEND = -2, 208 VDM_STATE_ERR_TMOUT = -1, 210 /* Anything >0 represents an active state */ 236 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, 284 * @active: PPS mode is active 296 bool active; member 479 /* Auto vbus discharge status */ [all …]
|
/openbmc/u-boot/arch/m68k/include/asm/ |
H A D | m5227x.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * Copyright (C) 2004-2007 Freescale Semiconductor, Inc. 6 * TsiChung Liew (Tsi-Chung.Liew@freescale.com) 135 #define CCM_MISCCR_USBPUE (0x2000) /* USB transceiver pull-up */ 136 #define CCM_MISCCR_LIMP (0x1000) /* Limp mode enable */ 148 #define CCM_MISCCR_SSIPUE (0x0080) /* SSI RXD/TXD pull enable */ 153 #define CCM_MISCCR_USBOC (0x0002) /* USB VBUS over-current sense pol */ 162 #define CCM_UOCSR_DPPD (0x2000) /* D+ 15Kohm pull-down (rd-only) */ 163 #define CCM_UOCSR_DMPD (0x1000) /* D- 15Kohm pull-down (rd-only) */ 164 #define CCM_UOCSR_CRG_VBUS (0x0400) /* VBUS charge resistor enabled (rd-only) */ [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | wm8350.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8350.c -- WM8350 ALSA SoC audio driver 5 * Copyright (C) 2007-12 Wolfson Microelectronics PLC. 45 u16 active; member 77 struct wm8350_output *out1 = &wm8350_data->out1; in wm8350_out1_ramp_step() 78 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_out1_ramp_step() 86 if (out1->ramp == WM8350_RAMP_UP) { in wm8350_out1_ramp_step() 88 if (val < out1->left_vol) { in wm8350_out1_ramp_step() 95 } else if (out1->ramp == WM8350_RAMP_DOWN) { in wm8350_out1_ramp_step() 98 val--; in wm8350_out1_ramp_step() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/ti/ |
H A D | k3-am654-base-board.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2016-2020 Texas Instruments Incorporated - https://www.ti.com/ 6 /dts-v1/; 8 #include "k3-am654.dtsi" 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/net/ti-dp83867.h> 13 compatible = "ti,am654-evm", "ti,am654"; 31 stdout-path = "serial2:115200n8"; 41 reserved-memory { 42 #address-cells = <2>; [all …]
|