/linux/Documentation/devicetree/bindings/regulator/ |
H A D | maxim,max8997.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/regulator/maxim,max8997.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Maxim MAX8997 Power Management IC 10 - Krzysztof Kozlowski <krzk@kernel.org> 13 The Maxim MAX8997 is a Power Management IC which includes voltage and current 15 motor driver, flash LED driver and Micro-USB Interface Controller. 22 const: maxim,max8997-pmic 24 charger-supply: [all …]
|
/linux/drivers/regulator/ |
H A D | max8997-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // max8997.c - Regulator driver for the Maxim 8997/8966 19 #include <linux/mfd/max8997.h> 20 #include <linux/mfd/max8997-private.h> 49 static inline void max8997_set_gpio(struct max8997_data *max8997) in max8997_set_gpio() argument 51 int set3 = (max8997->buck125_gpioindex) & 0x1; in max8997_set_gpio() 52 int set2 = ((max8997->buck125_gpioindex) >> 1) & 0x1; in max8997_set_gpio() 53 int set1 = ((max8997->buck125_gpioindex) >> 2) & 0x1; in max8997_set_gpio() 55 gpiod_set_value(max8997->buck125_gpiods[0], set1); in max8997_set_gpio() 56 gpiod_set_value(max8997->buck125_gpiods[1], set2); in max8997_set_gpio() [all …]
|
H A D | max77802-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // max77802.c - Regulator driver for the Maxim 77802 5 // Copyright (C) 2013-2014 Google, Inc 12 // This driver is based on max8997.c 24 #include <linux/mfd/max77686-private.h> 25 #include <dt-bindings/regulator/maxim,max77802.h> 83 return -EINVAL; in max77802_get_opmode_shift() 87 * max77802_set_suspend_disable - Disable the regulator during system suspend 91 * Configure the regulator so the PMIC will turn it OFF during system suspend. 100 if (WARN_ON_ONCE(id >= ARRAY_SIZE(max77802->opmode))) in max77802_set_suspend_disable() [all …]
|
H A D | max77686-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // max77686.c - Regulator driver for the Maxim 77686 9 // This driver is based on max8997.c 21 #include <linux/mfd/max77686-private.h> 43 * Forcing low power mode: LDO1, 3-5, 9, 13, 17-26 48 * - LDO2, 6-8, 10-12, 14-16 49 * - buck[1234] 105 if (test_bit(id, max77686->gpio_enabled)) in max77686_map_normal_mode() 122 ret = regmap_update_bits(rdev->regmap, rdev->desc->enable_reg, in max77686_set_suspend_disable() 123 rdev->desc->enable_mask, val << shift); in max77686_set_suspend_disable() [all …]
|
/linux/drivers/mfd/ |
H A D | max8997.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // max8997.c - mfd core driver for the Maxim 8966 and 8997 20 #include <linux/mfd/max8997.h> 21 #include <linux/mfd/max8997-private.h> 30 { .name = "max8997-pmic", }, 31 { .name = "max8997-rtc", }, 32 { .name = "max8997-battery", }, 33 { .name = "max8997-haptic", }, 34 { .name = "max8997-muic", }, 35 { .name = "max8997-led", .id = 1 }, [all …]
|
H A D | max8997-irq.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // max8997-irq.c - Interrupt controller support for MAX8997 8 // This driver is based on max8998-irq.c 13 #include <linux/mfd/max8997.h> 14 #include <linux/mfd/max8997-private.h> 30 static struct i2c_client *get_i2c(struct max8997_dev *max8997, in get_i2c() argument 35 return max8997->i2c; in get_i2c() 39 return max8997->muic; in get_i2c() 41 return max8997->i2c; in get_i2c() 43 return max8997->i2c; in get_i2c() [all …]
|
H A D | max77686.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // max77686.c - mfd core driver for the Maxim 77686/802 9 //This driver is based on max8997.c 20 #include <linux/mfd/max77686-private.h> 25 { .name = "max77686-pmic", }, 26 { .name = "max77686-rtc", }, 27 { .name = "max77686-clk", }, 31 { .name = "max77802-pmic", }, 32 { .name = "max77802-clk", }, 33 { .name = "max77802-rtc", }, [all …]
|
H A D | max14577.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // max14577.c - mfd core driver for the Maxim 14577/77836 9 // This driver is based on max8997.c 18 #include <linux/mfd/max14577-private.h> 42 * maxim_charger_calc_reg_current - Calculate register value for current 54 * - is always between <limits.min, limits.max>; 55 * - is always less or equal to max_ua; 56 * - is the highest possible value; 57 * - may be lower than min_ua. 59 * On success returns 0. On error returns -EINVAL (requested min/max current [all …]
|
H A D | max77693.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // max77693.c - mfd core driver for the MAX 77693 10 // This driver is based on max8997.c 22 #include <linux/mfd/max77693-common.h> 23 #include <linux/mfd/max77693-private.h> 32 { .name = "max77693-pmic", }, 34 .name = "max77693-charger", 35 .of_compatible = "maxim,max77693-charger", 38 .name = "max77693-muic", 39 .of_compatible = "maxim,max77693-muic", [all …]
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos4210-trats.dts | 1 // SPDX-License-Identifier: GPL-2.0 12 /dts-v1/; 14 #include <dt-bindings/gpio/gpio.h> 19 chassis-type = "handset"; 37 stdout-path = "serial2:115200n8"; 40 vemmc_reg: regulator-0 { 41 compatible = "regulator-fixed"; 42 regulator-name = "VMEM_VDD_2.8V"; 43 regulator-min-microvolt = <2800000>; 44 regulator-max-microvolt = <2800000>; [all …]
|
H A D | exynos4210-origen.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. 7 * Copyright (c) 2010-2011 Linaro Ltd. 14 /dts-v1/; 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/input/input.h> 18 #include <dt-bindings/leds/common.h> 19 #include "exynos-mfc-reserved-memory.dtsi" 40 stdout-path = "serial2:115200n8"; 43 mmc_reg: voltage-regulator { [all …]
|
H A D | exynos4210-i9100.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's Exynos4210 based Galaxy S2 (GT-I9100 version) device tree 11 /dts-v1/; 13 #include "exynos4412-ppmu-common.dtsi" 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/input/linux-event-codes.h> 19 model = "Samsung Galaxy S2 (GT-I9100)"; 21 chassis-type = "handset"; 35 stdout-path = "serial2:115200n8"; 38 vemmc_reg: regulator-0 { [all …]
|
/linux/drivers/extcon/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 11 host USB ports. Many of 30-pin connectors including PDMI are 25 tristate "X-Power AXP288 EXTCON support" 30 and USB MUX switching by X-Power AXP288 PMIC. 62 tristate "Intel Cherrytrail Whiskey Cove PMIC extcon driver" 69 on the Intel Cherrytrail Whiskey Cove PMIC. 72 tristate "Intel Merrifield Basin Cove PMIC extcon driver" 76 on the Intel Merrifield Basin Cove PMIC. 105 enable a system with an integrated USB OTG dual-role transceiver to 106 function as an USB OTG dual-role device. [all …]
|
H A D | extcon-max8997.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // extcon-max8997.c - MAX8997 extcon driver to support MAX8997 MUIC 8 #include <linux/devm-helpers.h> 17 #include <linux/mfd/max8997.h> 18 #include <linux/mfd/max8997-private.h> 19 #include <linux/extcon-provider.h> 22 #define DEV_NAME "max8997-muic" 39 { MAX8997_MUICIRQ_ADCError, "muic-ADCERROR" }, 40 { MAX8997_MUICIRQ_ADCLow, "muic-ADCLOW" }, 41 { MAX8997_MUICIRQ_ADC, "muic-ADC" }, [all …]
|
/linux/include/linux/mfd/ |
H A D | max8997.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * max8997.h - Driver for the Maxim 8997/8966 5 * Copyright (C) 2009-2010 Samsung Electrnoics 10 * MAX8997 has PMIC, MUIC, HAPTIC, RTC, FLASH, and Fuel Gauge devices. 22 /* MAX8997/8966 regulator IDs */ 76 * used for initializing registers of MAX8997 MUIC device 121 * [0 - 3]: valid pattern number 124 * [0 - 15]: available cycles 126 * [0 - 255]: available period 150 * The number of LED devices for MAX8997 is two [all …]
|
H A D | max8997-private.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * max8997-private.h - Voltage regulator driver for the Maxim 8997 184 /* MAX8997-MUIC STATUS1 register */ 192 /* MAX8997-MUIC STATUS2 register */ 204 /* MAX8997-MUIC STATUS3 register */ 208 /* MAX8997-MUIC CONTROL1 register */ 371 struct i2c_client *i2c; /* 0xcc / PMIC, Battery Control, and FLASH */ 399 extern int max8997_irq_init(struct max8997_dev *max8997); 400 extern void max8997_irq_exit(struct max8997_dev *max8997); 401 extern int max8997_irq_resume(struct max8997_dev *max8997);
|
H A D | max77686.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * max77686.h - Driver for the Maxim 77686/802 8 * This driver is based on max8997.h 10 * MAX77686 has PMIC, RTC devices.
|
H A D | max77693.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * max77693.h - Driver for the Maxim 77693 10 * This driver is based on max8997.h 12 * MAX77693 has PMIC, Charger, Flash LED, Haptic, MUIC devices.
|
H A D | max14577.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * max14577.h - Driver for the Maxim 14577/77836 9 * This driver is based on max8997.h 15 * MAX77836 has additional PMIC and Fuel-Gauge on different I2C slave
|
/linux/drivers/rtc/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 44 This clock should be battery-backed, so that it reads the correct 45 time when the system boots from a power-off state. Otherwise, your 141 once-per-second update interrupts, used for synchronization. 159 will be called rtc-test. 173 will be called rtc-88pm860x. 183 will be called rtc-88pm80x. 193 will be called rtc-88pm886. 197 tristate "Abracon AB-RTCMC-32.768kHz-B5ZE-S3" 200 AB-RTCMC-32.768kHz-B5ZE-S3 I2C RTC chip. [all …]
|