Searched +full:axp209 +full:- +full:adc (Results  1 – 8 of 8) sorted by relevance
| /linux/Documentation/devicetree/bindings/iio/adc/ | 
| H A D | x-powers,axp209-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/iio/adc/x-powers,axp209-adc.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: X-Powers AXP ADC
 10   - Chen-Yu Tsai <wens@csie.org>
 13   ADC is frequently used as a provider to consumers of the ADC channels.
 14   Device is a child of an axp209 multifunction device
 15   ADC channels and their indexes per variant:
 17   AXP209
 [all …]
 
 | 
| /linux/Documentation/devicetree/bindings/mfd/ | 
| H A D | x-powers,axp152.yaml | 1 # SPDX-License-Identifier: GPL-2.03 ---
 4 $id: http://devicetree.org/schemas/mfd/x-powers,axp152.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: X-Powers AXP PMIC
 10   - Chen-Yu Tsai <wens@csie.org>
 13   - if:
 18               - x-powers,axp152
 19               - x-powers,axp202
 20               - x-powers,axp209
 [all …]
 
 | 
| /linux/arch/arm/boot/dts/allwinner/ | 
| H A D | axp209.dtsi | 2  * Copyright 2015 Chen-Yu Tsai4  * Chen-Yu Tsai <wens@csie.org>
 6  * This file is dual-licensed: you can use it either under the terms
 47  * http://www.x-powers.com/product/AXP20X.php
 48  * http://dl.linux-sunxi.org/AXP/AXP209%20Datasheet%20v1.0_cn.pdf
 52 	pmic-temp {
 53 		compatible = "iio-hwmon";
 54 		io-channels = <&axp_adc 4>; /* Internal temperature */
 58 &axp209 {
 59 	compatible = "x-powers,axp209";
 [all …]
 
 | 
| /linux/Documentation/devicetree/bindings/gpio/ | 
| H A D | x-powers,axp209-gpio.yaml | 1 # SPDX-License-Identifier: GPL-2.03 ---
 4 $id: http://devicetree.org/schemas/gpio/x-powers,axp209-gpio.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: X-Powers AXP209 GPIO
 10   - Chen-Yu Tsai <wens@csie.org>
 13   "#gpio-cells":
 20       - enum:
 21           - x-powers,axp209-gpio
 22           - x-powers,axp221-gpio
 [all …]
 
 | 
| /linux/Documentation/devicetree/bindings/power/supply/ | 
| H A D | x-powers,axp20x-battery-power-supply.yaml | 1 # SPDX-License-Identifier: GPL-2.03 ---
 4 $id: http://devicetree.org/schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: AXP20x Battery power-supply
 11   currents of the battery by reading ADC channels from the ADC.
 14   - Chen-Yu Tsai <wens@csie.org>
 15   - Sebastian Reichel <sre@kernel.org>
 20       - const: x-powers,axp202-battery-power-supply
 21       - const: x-powers,axp209-battery-power-supply
 [all …]
 
 | 
| /linux/drivers/pinctrl/ | 
| H A D | pinctrl-axp209.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later5  * Copyright (C) 2016 Maxime Ripard <maxime.ripard@free-electrons.com>
 6  * Copyright (C) 2017 Quentin Schulz <quentin.schulz@free-electrons.com>
 23 #include <linux/pinctrl/pinconf-generic.h>
 54 	/* Stores the pins supporting ADC function. Bit offset is pin number. */
 124 	return -EINVAL;  in axp20x_gpio_get_reg()
 133 	/* AXP209 has GPIO3 status sharing the settings register */  in axp20x_gpio_get()
 135 		ret = regmap_read(pctl->regmap, AXP20X_GPIO3_CTRL, &val);  in axp20x_gpio_get()
 141 	ret = regmap_read(pctl->regmap, AXP20X_GPIO20_SS, &val);  in axp20x_gpio_get()
 145 	return !!(val & BIT(offset + pctl->desc->gpio_status_offset));  in axp20x_gpio_get()
 [all …]
 
 | 
| /linux/drivers/iio/adc/ | 
| H A D | axp20x_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only2 /* ADC driver for AXP20X and AXP22X PMICs
 5  *	Quentin Schulz <quentin.schulz@free-electrons.com>
 159 	IIO_MAP("vbus_v", "axp20x-usb-power-supply", "vbus_v"),
 160 	IIO_MAP("vbus_i", "axp20x-usb-power-supply", "vbus_i"),
 161 	IIO_MAP("acin_v", "axp20x-ac-power-supply", "acin_v"),
 162 	IIO_MAP("acin_i", "axp20x-ac-power-supply", "acin_i"),
 163 	IIO_MAP("batt_v", "axp20x-battery-power-supply", "batt_v"),
 164 	IIO_MAP("batt_chrg_i", "axp20x-battery-power-supply", "batt_chrg_i"),
 165 	IIO_MAP("batt_dischrg_i", "axp20x-battery-power-supply", "batt_dischrg_i"),
 [all …]
 
 | 
| /linux/drivers/input/touchscreen/ | 
| H A D | sun4i-ts.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later5  * Copyright (C) 2013 - 2014 Hans de Goede <hdegoede@redhat.com>
 12  * The sun4i-ts controller is capable of detecting a second touch, but when a
 18  * open / close movement, and then reports emulated multi-touch events around
 19  * the last touch coordinate (as the dual-touch coordinates are worthless).
 122 		x = readl(ts->base + TP_DATA);  in sun4i_ts_irq_handle_input()
 123 		y = readl(ts->base + TP_DATA);  in sun4i_ts_irq_handle_input()
 125 		if (!ts->ignore_fifo_data) {  in sun4i_ts_irq_handle_input()
 126 			input_report_abs(ts->input, ABS_X, x);  in sun4i_ts_irq_handle_input()
 127 			input_report_abs(ts->input, ABS_Y, y);  in sun4i_ts_irq_handle_input()
 [all …]
 
 |