Home
last modified time | relevance | path

Searched +full:mt6397 +full:- +full:regulator (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.12.1/Documentation/devicetree/bindings/mfd/
Dmt6397.txt1 MediaTek MT6397/MT6323 Multifunction Device Driver
3 MT6397/MT6323 is a multifunction device with the following sub modules:
4 - Regulator
5 - RTC
6 - Audio codec
7 - GPIO
8 - Clock
9 - LED
10 - Keys
11 - Power controller
[all …]
/linux-6.12.1/drivers/mfd/
Dmt6397-core.c1 // SPDX-License-Identifier: GPL-2.0-only
20 #include <linux/mfd/mt6397/core.h>
26 #include <linux/mfd/mt6397/registers.h>
113 .name = "mt6323-rtc",
116 .of_compatible = "mediatek,mt6323-rtc",
118 .name = "mt6323-regulator",
119 .of_compatible = "mediatek,mt6323-regulator"
121 .name = "mt6323-led",
122 .of_compatible = "mediatek,mt6323-led"
124 .name = "mtk-pmic-keys",
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
57 tristate "Active-semi ACT8945A"
62 Support for the ACT8945A PMIC from Active-semi. This device
63 features three step-down DC/DC converters and four low-dropout
79 sun4i-gpadc-iio and the hwmon driver iio_hwmon.
82 called sun4i-gpadc.
113 tablets etc. It has 4 DC/DC step-down regulators, 3 DC/DC step-down
144 over at91-usart-serial driver and usart-spi-driver. Only one function
160 tristate "Atmel HLCDC (High-end LCD Controller)"
190 voltage regulator, voltage sampling units, GPIO block and
[all …]
/linux-6.12.1/drivers/regulator/
Dmt6397-regulator.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/mfd/mt6397/core.h>
11 #include <linux/mfd/mt6397/registers.h>
12 #include <linux/regulator/driver.h>
13 #include <linux/regulator/machine.h>
14 #include <linux/regulator/mt6397-regulator.h>
15 #include <linux/regulator/of_regulator.h>
16 #include <dt-bindings/regulator/mediatek,mt6397-regulator.h>
19 * MT6397 regulators' information
21 * @desc: standard fields of regulator description.
[all …]
Dmt6358-regulator.c1 // SPDX-License-Identifier: GPL-2.0
6 #include <linux/mfd/mt6397/core.h>
11 #include <linux/regulator/driver.h>
12 #include <linux/regulator/machine.h>
13 #include <linux/regulator/mt6358-regulator.h>
14 #include <linux/regulator/of_regulator.h>
16 #include <dt-bindings/regulator/mediatek,mt6397-regulator.h>
21 * @desc: standard fields of regulator description.
48 .n_voltages = ((max) - (min)) / (step) + 1, \
101 .n_voltages = ((max) - (min)) / (step) + 1, \
[all …]
Dmt6359-regulator.c1 // SPDX-License-Identifier: GPL-2.0
8 #include <linux/mfd/mt6397/core.h>
12 #include <linux/regulator/driver.h>
13 #include <linux/regulator/machine.h>
14 #include <linux/regulator/mt6359-regulator.h>
15 #include <linux/regulator/of_regulator.h>
25 * @desc: standard fields of regulator description.
56 .n_voltages = ((max) - (min)) / (step) + 1, \
84 .n_voltages = ((max) - (min)) / (step) + 1, \
256 ret = regmap_read(rdev->regmap, info->status_reg, &regval); in mt6359_get_status()
[all …]
Dmt6357-regulator.c1 // SPDX-License-Identifier: GPL-2.0
9 // Based on mt6397-regulator.c
16 #include <linux/mfd/mt6397/core.h>
18 #include <linux/regulator/driver.h>
19 #include <linux/regulator/machine.h>
20 #include <linux/regulator/mt6357-regulator.h>
21 #include <linux/regulator/of_regulator.h>
26 * @desc: standard fields of regulator description.
47 .n_voltages = ((max) - (min)) / (step) + 1, \
90 .n_voltages = ((max) - (min)) / (step) + 1, \
[all …]
DMakefile1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for regulator drivers.
7 obj-$(CONFIG_REGULATOR) += core.o dummy.o fixed-helper.o helpers.o devres.o irq_helpers.o
8 obj-$(CONFIG_REGULATOR_NETLINK_EVENTS) += event.o
9 obj-$(CONFIG_OF) += of_regulator.o
10 obj-$(CONFIG_REGULATOR_FIXED_VOLTAGE) += fixed.o
11 obj-$(CONFIG_REGULATOR_VIRTUAL_CONSUMER) += virtual.o
12 obj-$(CONFIG_REGULATOR_USERSPACE_CONSUMER) += userspace-consumer.o
14 obj-$(CONFIG_REGULATOR_88PG86X) += 88pg86x.o
15 obj-$(CONFIG_REGULATOR_88PM800) += 88pm800-regulator.o
[all …]
Dmt6323-regulator.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/mfd/mt6397/core.h>
12 #include <linux/regulator/driver.h>
13 #include <linux/regulator/machine.h>
14 #include <linux/regulator/mt6323-regulator.h>
15 #include <linux/regulator/of_regulator.h>
23 * @desc: standard fields of regulator description.
49 .n_voltages = (max - min)/step + 1, \
163 ret = regmap_read(rdev->regmap, info->desc.enable_reg, &regval); in mt6323_get_status()
165 dev_err(&rdev->dev, "Failed to get enable reg: %d\n", ret); in mt6323_get_status()
[all …]
Dmt6332-regulator.c1 // SPDX-License-Identifier: GPL-2.0
6 // Based on mt6323-regulator.c,
14 #include <linux/mfd/mt6397/core.h>
16 #include <linux/regulator/driver.h>
17 #include <linux/regulator/machine.h>
18 #include <linux/regulator/mt6332-regulator.h>
19 #include <linux/regulator/of_regulator.h>
27 * @desc: standard fields of regulator description.
32 * @status_reg: Register for regulator enable status where qi unavailable
33 * @status_mask: Mask for querying regulator enable status
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
2 menuconfig REGULATOR config
3 bool "Voltage and Current Regulator Support"
6 Generic Voltage and Current Regulator support.
14 The intention is to allow systems to dynamically control regulator
26 if REGULATOR
29 bool "Regulator debug support"
34 tristate "Fixed voltage regulator support"
38 managed regulators and simple non-configurable regulators.
41 tristate "Virtual regulator consumer support"
[all …]
Dmt6331-regulator.c1 // SPDX-License-Identifier: GPL-2.0
6 // Based on mt6323-regulator.c,
14 #include <linux/mfd/mt6397/core.h>
16 #include <linux/regulator/driver.h>
17 #include <linux/regulator/machine.h>
18 #include <linux/regulator/mt6331-regulator.h>
19 #include <linux/regulator/of_regulator.h>
27 * @desc: standard fields of regulator description.
32 * @status_reg: Register for regulator enable status where qi unavailable
33 * @status_mask: Mask for querying regulator enable status
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/regulator/
Dmediatek,mt6397-regulator.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/regulator/mediatek,mt6397-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek MT6397 Regulator
10 - Sen Chu <sen.chu@mediatek.com>
11 - Macpaul Lin <macpaul.lin@mediatek.com>
14 Regulator node of the PMIC. This node should under the PMIC's device node.
15 All voltage regulators provided by the PMIC are described as sub-nodes of
21 - const: mediatek,mt6397-regulator
[all …]
Dmediatek,mt6358-regulator.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/regulator/mediatek,mt6358-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek MT6358 Regulator
10 - Zhiyong Tao <zhiyong.tao@mediatek.com>
13 Regulator node of the PMIC. This node should under the PMIC's device node.
14 All voltage regulators provided by the PMIC are described as sub-nodes of
20 - const: mediatek,mt6358-regulator
21 - items:
[all …]
Dmediatek,mt6332-regulator.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/regulator/mediatek,mt6332-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MT6332 Regulator from MediaTek Integrated
10 - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
14 regulators and nodes are named according to the regulator type:
15 buck-<name> and ldo-<name>.
16 MT6332 regulators node should be sub node of the MT6397 MFD node.
19 "^buck-v(dram|dvfs2|pa|rf18a|rf18b|sbst)$":
[all …]
Dmediatek,mt6331-regulator.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/regulator/mediatek,mt6331-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MT6331 Regulator from MediaTek Integrated
10 - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
14 and nodes are named according to the regulator type:
15 buck-<name> and ldo-<name>.
16 MT6331 regulators node should be sub node of the MT6397 MFD node.
19 "^buck-v(core2|io18|dvfs11|dvfs12|dvfs13|dvfs14)$":
[all …]
Dmediatek,mt6357-regulator.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/regulator/mediatek,mt6357-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chen Zhong <chen.zhong@mediatek.com>
11 - Fabien Parent <fabien.parent@linaro.org>
12 - Alexandre Mergnat <amergnat@baylibre.com>
16 Regulators and nodes are named according to the regulator type:
17 - buck-<name>
18 - ldo-<name>.
[all …]
Dmt6359-regulator.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/regulator/mt6359-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MT6359 Regulator from MediaTek Integrated
10 - Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>
14 according to its regulator type, buck_<name> and ldo_<name>.
15 MT6359 regulators node should be sub node of the MT6397 MFD node.
20 $ref: regulator.yaml#
23 regulator-name:
[all …]
/linux-6.12.1/arch/arm/boot/dts/mediatek/
Dmt8135-evbp1.dts1 // SPDX-License-Identifier: GPL-2.0
8 /dts-v1/;
13 compatible = "mediatek,mt8135-evbp1", "mediatek,mt8135";
22 pmic: mt6397 {
23 compatible = "mediatek,mt6397";
26 compatible = "mediatek,mt6397-regulator";
29 regulator-name = "vpca15";
30 regulator-min-microvolt = < 850000>;
31 regulator-max-microvolt = <1350000>;
32 regulator-ramp-delay = <12500>;
[all …]
Dmt6323.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2017-2018 MediaTek Inc.
12 interrupt-parent = <&pio>;
14 interrupt-controller;
15 #interrupt-cells = <2>;
18 compatible = "mediatek,mt6323-led";
19 #address-cells = <1>;
20 #size-cells = <0>;
25 compatible = "mediatek,mt6323-regulator";
28 regulator-name = "vproc";
[all …]
/linux-6.12.1/arch/arm64/boot/dts/mediatek/
Dmt8173-elm.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/regulator/dlg,da9211-regulator.h>
9 #include <dt-bindings/gpio/gpio.h>
25 compatible = "pwm-backlight";
27 power-supply = <&bl_fixed_reg>;
28 enable-gpios = <&pio 95 GPIO_ACTIVE_HIGH>;
30 pinctrl-names = "default";
31 pinctrl-0 = <&panel_backlight_en_pins>;
[all …]
Dmt8173-evb.dts1 // SPDX-License-Identifier: GPL-2.0-only
7 /dts-v1/;
8 #include <dt-bindings/gpio/gpio.h>
13 chassis-type = "embedded";
14 compatible = "mediatek,mt8173-evb", "mediatek,mt8173";
31 compatible = "hdmi-connector";
37 remote-endpoint = <&hdmi0_out>;
43 compatible = "linux,extcon-usb-gpio";
44 id-gpios = <&pio 16 GPIO_ACTIVE_HIGH>;
47 usb_p1_vbus: regulator-usb-p1 {
[all …]
Dmt8186-corsola.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
5 /dts-v1/;
7 #include <dt-bindings/pinctrl/mt8186-pinfunc.h>
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/input/gpio-keys.h>
11 #include <dt-bindings/regulator/mediatek,mt6397-regulator.h>
26 stdout-path = "serial0:115200n8";
35 backlight_lcd0: backlight-lcd0 {
36 compatible = "pwm-backlight";
[all …]
/linux-6.12.1/sound/soc/codecs/
Dmt6357.c1 // SPDX-License-Identifier: GPL-2.0
9 #include <linux/dma-mapping.h>
12 #include <linux/mfd/mt6397/core.h>
13 #include <linux/regulator/consumer.h>
19 regmap_write(priv->regmap, MT6357_GPIO_MODE2_CLR, MT6357_GPIO_MODE2_CLEAR_ALL); in set_playback_gpio()
22 regmap_write(priv->regmap, MT6357_GPIO_MODE2_SET, in set_playback_gpio()
32 regmap_update_bits(priv->regmap, MT6357_GPIO_DIR0, in set_playback_gpio()
46 regmap_write(priv->regmap, MT6357_GPIO_MODE3_CLR, MT6357_GPIO_MODE3_CLEAR_ALL); in set_capture_gpio()
49 regmap_write(priv->regmap, MT6357_GPIO_MODE3_SET, in set_capture_gpio()
61 regmap_update_bits(priv->regmap, MT6357_GPIO_DIR0, in set_capture_gpio()
[all …]
Dmt6358.c1 // SPDX-License-Identifier: GPL-2.0
3 // mt6358.c -- mt6358 ALSA SoC audio codec driver
14 #include <linux/mfd/mt6397/core.h>
15 #include <linux/regulator/consumer.h>
95 struct regulator *avdd_reg;
107 priv->mtkaif_protocol = mtkaif_protocol; in mt6358_set_mtkaif_protocol()
115 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_set()
117 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_SET, in playback_gpio_set()
119 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_set()
130 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_reset()
[all …]

12