Home
last modified time | relevance | path

Searched +full:axp209 +full:- +full:adc (Results 1 – 18 of 18) sorted by relevance

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/adc/
Dx-powers,axp209-adc.yaml1 # 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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/gpio/
Dgpio-axp209.txt1 AXP209 GPIO & pinctrl controller
7 Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
9 This driver employs the per-pin muxing pattern.
12 - compatible: Should be one of:
13 - "x-powers,axp209-gpio"
14 - "x-powers,axp813-gpio"
15 - #gpio-cells: Should be two. The first cell is the pin number and the
17 - gpio-controller: Marks the device node as a GPIO controller.
24 axp209: pmic@34 {
25 compatible = "x-powers,axp209";
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/mfd/
Dx-powers,axp152.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/
Daxp20x_adc.txt1 * X-Powers AXP ADC bindings
4 - compatible: should be one of:
5 - "x-powers,axp209-adc",
6 - "x-powers,axp221-adc",
7 - "x-powers,axp813-adc",
8 - #io-channel-cells: should be 1,
13 adc {
14 compatible = "x-powers,axp221-adc";
15 #io-channel-cells = <1>;
19 ADC channels and their indexes per variant:
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Daxp20x_battery.txt4 - compatible, one of:
5 "x-powers,axp209-battery-power-supply"
6 "x-powers,axp221-battery-power-supply"
7 "x-powers,axp813-battery-power-supply"
12 currents of the battery by reading ADC channels from the ADC.
16 &axp209 {
17 battery_power_supply: battery-power-supply {
18 compatible = "x-powers,axp209-battery-power-supply";
Daxp20x_ac_power.txt4 - compatible: One of:
5 "x-powers,axp202-ac-power-supply"
6 "x-powers,axp221-ac-power-supply"
7 "x-powers,axp813-ac-power-supply"
12 reading ADC channels from the AXP20X ADC.
21 &axp209 {
22 ac_power_supply: ac-power-supply {
23 compatible = "x-powers,axp202-ac-power-supply";
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Daxp209.dtsi2 * Copyright 2015 Chen-Yu Tsai
4 * 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
51 &axp209 {
52 compatible = "x-powers,axp209";
53 interrupt-controller;
54 #interrupt-cells = <1>;
56 ac_power_supply: ac-power-supply {
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/allwinner/
Daxp209.dtsi2 * Copyright 2015 Chen-Yu Tsai
4 * 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 …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/gpio/
Dx-powers,axp209-gpio.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
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 …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/
Dx-powers,axp20x-battery-power-supply.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
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>
18 - $ref: power-supply.yaml#
23 - const: x-powers,axp202-battery-power-supply
[all …]
/kernel/linux/linux-6.6/drivers/pinctrl/
Dpinctrl-axp209.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * 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()
129 return pinctrl_gpio_direction_input(chip->base + offset); in axp20x_gpio_input()
138 /* AXP209 has GPIO3 status sharing the settings register */ in axp20x_gpio_get()
140 ret = regmap_read(pctl->regmap, AXP20X_GPIO3_CTRL, &val); in axp20x_gpio_get()
146 ret = regmap_read(pctl->regmap, AXP20X_GPIO20_SS, &val); in axp20x_gpio_get()
[all …]
/kernel/linux/linux-5.10/drivers/mfd/
Daxp20x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * MFD core driver for the X-Powers' Power Management ICs
5 * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC
6 * converters, LDOs, multiple 12-bit ADCs of voltage, current and temperature
38 "AXP209",
593 .name = "axp20x-gpio",
594 .of_compatible = "x-powers,axp209-gpio",
596 .name = "axp20x-pek",
600 .name = "axp20x-regulator",
602 .name = "axp20x-adc",
[all …]
/kernel/linux/linux-6.6/drivers/mfd/
Daxp20x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * MFD core driver for the X-Powers' Power Management ICs
5 * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC
6 * converters, LDOs, multiple 12-bit ADCs of voltage, current and temperature
39 "AXP209",
824 .name = "axp192-adc",
825 .of_compatible = "x-powers,axp192-adc",
827 .name = "axp20x-battery-power-supply",
828 .of_compatible = "x-powers,axp192-battery-power-supply",
830 .name = "axp20x-ac-power-supply",
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/
Dpinctrl-axp209.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2016 Maxime Ripard <maxime.ripard@free-electrons.com>
6 * Copyright (C) 2017 Quentin Schulz <quentin.schulz@free-electrons.com>
19 #include <linux/pinctrl/pinconf-generic.h>
48 /* Stores the pins supporting ADC function. Bit offset is pin number. */
110 return -EINVAL; in axp20x_gpio_get_reg()
115 return pinctrl_gpio_direction_input(chip->base + offset); in axp20x_gpio_input()
124 ret = regmap_read(pctl->regmap, AXP20X_GPIO20_SS, &val); in axp20x_gpio_get()
128 return !!(val & BIT(offset + pctl->desc->gpio_status_offset)); in axp20x_gpio_get()
142 ret = regmap_read(pctl->regmap, reg, &val); in axp20x_gpio_get_direction()
[all …]
/kernel/linux/linux-6.6/drivers/iio/adc/
Daxp20x_adc.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* ADC driver for AXP20X and AXP22X PMICs
5 * Quentin Schulz <quentin.schulz@free-electrons.com>
109 .consumer_dev_name = "axp20x-usb-power-supply",
113 .consumer_dev_name = "axp20x-usb-power-supply",
117 .consumer_dev_name = "axp20x-ac-power-supply",
121 .consumer_dev_name = "axp20x-ac-power-supply",
125 .consumer_dev_name = "axp20x-battery-power-supply",
129 .consumer_dev_name = "axp20x-battery-power-supply",
133 .consumer_dev_name = "axp20x-battery-power-supply",
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Daxp20x_adc.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* ADC driver for AXP20X and AXP22X PMICs
5 * Quentin Schulz <quentin.schulz@free-electrons.com>
108 .consumer_dev_name = "axp20x-usb-power-supply",
112 .consumer_dev_name = "axp20x-usb-power-supply",
116 .consumer_dev_name = "axp20x-ac-power-supply",
120 .consumer_dev_name = "axp20x-ac-power-supply",
124 .consumer_dev_name = "axp20x-battery-power-supply",
128 .consumer_dev_name = "axp20x-battery-power-supply",
132 .consumer_dev_name = "axp20x-battery-power-supply",
[all …]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dsun4i-ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * 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 …]
/kernel/linux/linux-6.6/drivers/input/touchscreen/
Dsun4i-ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * 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 …]