Home
last modified time | relevance | path

Searched refs:twl6040 (Results 1 – 23 of 23) sorted by relevance

/linux-4.4.14/drivers/mfd/
Dtwl6040.c109 int twl6040_reg_read(struct twl6040 *twl6040, unsigned int reg) in twl6040_reg_read() argument
114 ret = regmap_read(twl6040->regmap, reg, &val); in twl6040_reg_read()
122 int twl6040_reg_write(struct twl6040 *twl6040, unsigned int reg, u8 val) in twl6040_reg_write() argument
126 ret = regmap_write(twl6040->regmap, reg, val); in twl6040_reg_write()
132 int twl6040_set_bits(struct twl6040 *twl6040, unsigned int reg, u8 mask) in twl6040_set_bits() argument
134 return regmap_update_bits(twl6040->regmap, reg, mask, mask); in twl6040_set_bits()
138 int twl6040_clear_bits(struct twl6040 *twl6040, unsigned int reg, u8 mask) in twl6040_clear_bits() argument
140 return regmap_update_bits(twl6040->regmap, reg, mask, 0); in twl6040_clear_bits()
145 static int twl6040_power_up_manual(struct twl6040 *twl6040) in twl6040_power_up_manual() argument
152 ret = twl6040_reg_write(twl6040, TWL6040_REG_LDOCTL, ldoctl); in twl6040_power_up_manual()
[all …]
DMakefile82 obj-$(CONFIG_TWL6040_CORE) += twl6040.o
/linux-4.4.14/include/linux/mfd/
Dtwl6040.h222 struct twl6040 { struct
247 int twl6040_reg_read(struct twl6040 *twl6040, unsigned int reg); argument
248 int twl6040_reg_write(struct twl6040 *twl6040, unsigned int reg,
250 int twl6040_set_bits(struct twl6040 *twl6040, unsigned int reg,
252 int twl6040_clear_bits(struct twl6040 *twl6040, unsigned int reg,
254 int twl6040_power(struct twl6040 *twl6040, int on);
255 int twl6040_set_pll(struct twl6040 *twl6040, int pll_id,
257 int twl6040_get_pll(struct twl6040 *twl6040);
258 unsigned int twl6040_get_sysclk(struct twl6040 *twl6040);
261 int twl6040_get_vibralr_status(struct twl6040 *twl6040);
[all …]
/linux-4.4.14/drivers/input/misc/
Dtwl6040-vibra.c65 struct twl6040 *twl6040; member
71 struct twl6040 *twl6040 = info->twl6040; in twl6040_vib_irq_handler() local
74 status = twl6040_reg_read(twl6040, TWL6040_REG_STATUS); in twl6040_vib_irq_handler()
77 twl6040_clear_bits(twl6040, TWL6040_REG_VIBCTLL, in twl6040_vib_irq_handler()
82 twl6040_clear_bits(twl6040, TWL6040_REG_VIBCTLR, in twl6040_vib_irq_handler()
91 struct twl6040 *twl6040 = info->twl6040; in twl6040_vibra_enable() local
100 twl6040_power(info->twl6040, 1); in twl6040_vibra_enable()
101 if (twl6040_get_revid(twl6040) <= TWL6040_REV_ES1_1) { in twl6040_vibra_enable()
107 twl6040_reg_write(twl6040, TWL6040_REG_VIBCTLL, in twl6040_vibra_enable()
109 twl6040_reg_write(twl6040, TWL6040_REG_VIBCTLR, in twl6040_vibra_enable()
[all …]
DMakefile71 obj-$(CONFIG_INPUT_TWL6040_VIBRA) += twl6040-vibra.o
/linux-4.4.14/drivers/gpio/
Dgpio-twl6040.c39 struct twl6040 *twl6040 = dev_get_drvdata(chip->dev->parent); in twl6040gpo_get() local
42 ret = twl6040_reg_read(twl6040, TWL6040_REG_GPOCTL); in twl6040gpo_get()
58 struct twl6040 *twl6040 = dev_get_drvdata(chip->dev->parent); in twl6040gpo_set() local
62 ret = twl6040_reg_read(twl6040, TWL6040_REG_GPOCTL); in twl6040gpo_set()
71 twl6040_reg_write(twl6040, TWL6040_REG_GPOCTL, gpoctl); in twl6040gpo_set()
88 struct twl6040 *twl6040 = dev_get_drvdata(twl6040_core_dev); in gpo_twl6040_probe() local
93 if (twl6040_get_revid(twl6040) < TWL6041_REV_ES2_0) in gpo_twl6040_probe()
DMakefile103 obj-$(CONFIG_GPIO_TWL6040) += gpio-twl6040.o
DKconfig872 Say yes here to access the GPO signals of twl6040
/linux-4.4.14/Documentation/devicetree/bindings/mfd/
Dtwl6040.txt9 - compatible : "ti,twl6040" for twl6040, "ti,twl6041" for twl6041
11 - interrupts: twl6040 has one interrupt line connecteded to the main SoC
14 - #gpio-cells = <1>: twl6040 provides GPO lines.
15 - twl6040,audpwron-gpio: Power on GPIO line for the twl6040
17 - vio-supply: Regulator for the twl6040 VIO supply
18 - v2v1-supply: Regulator for the twl6040 V2V1 supply
21 - enable-active-high: To power on the twl6040 during boot.
42 twl6040: twl@4b {
43 compatible = "ti,twl6040";
47 twl6040,audpwron-gpio = <&gpio4 31 0>;
[all …]
/linux-4.4.14/drivers/clk/
Dclk-twl6040.c30 struct twl6040 *twl6040; member
50 ret = twl6040_power(twl6040_clk->twl6040, 1); in twl6040_bitclk_prepare()
63 ret = twl6040_power(twl6040_clk->twl6040, 0); in twl6040_bitclk_unprepare()
82 struct twl6040 *twl6040 = dev_get_drvdata(pdev->dev.parent); in twl6040_clk_probe() local
90 clkdata->twl6040 = twl6040; in twl6040_clk_probe()
DMakefile45 obj-$(CONFIG_CLK_TWL6040) += clk-twl6040.o
DKconfig128 tristate "External McPDM functional clock from twl6040"
/linux-4.4.14/sound/soc/codecs/
Dtwl6040.c112 struct twl6040 *twl6040 = codec->control_data; in twl6040_read() local
127 value = twl6040_reg_read(twl6040, reg); in twl6040_read()
174 struct twl6040 *twl6040 = codec->control_data; in twl6040_write() local
181 return twl6040_reg_write(twl6040, reg, value); in twl6040_write()
575 struct twl6040 *twl6040 = codec->control_data; in twl6040_get_hs_step_size() local
577 if (twl6040_get_revid(twl6040) < TWL6040_REV_ES1_3) in twl6040_get_hs_step_size()
825 struct twl6040 *twl6040 = codec->control_data; in twl6040_set_bias_level() local
838 ret = twl6040_power(twl6040, 1); in twl6040_set_bias_level()
851 twl6040_power(twl6040, 0); in twl6040_set_bias_level()
913 struct twl6040 *twl6040 = codec->control_data; in twl6040_prepare() local
[all …]
DMakefile129 snd-soc-twl6040-objs := twl6040.o
321 obj-$(CONFIG_SND_SOC_TWL6040) += snd-soc-twl6040.o
/linux-4.4.14/Documentation/devicetree/bindings/sound/
Domap-abe-twl6040.txt1 * Texas Instruments OMAP4+ and twl6040 based audio setups
4 - compatible: "ti,abe-twl6040"
8 - ti,twl6040: phandle for the twl6040 core node
32 twl6040 pins:
59 compatible = "ti,abe-twl6040";
68 ti,twl6040 = <&twl6040>;
/linux-4.4.14/sound/soc/omap/
DMakefile20 snd-soc-omap-abe-twl6040-objs := omap-abe-twl6040.o
29 obj-$(CONFIG_SND_OMAP_SOC_OMAP_ABE_TWL6040) += snd-soc-omap-abe-twl6040.o
DKconfig102 tristate "SoC Audio support for OMAP boards using ABE and twl6040 codec"
112 ABE and twl6040 codec. This driver currently supports:
/linux-4.4.14/arch/arm/boot/dts/
Domap4-duovero.dtsi21 compatible = "ti,abe-twl6040";
28 ti,twl6040 = <&twl6040>;
178 twl6040: twl@4b { label
179 compatible = "ti,twl6040";
Domap4-var-som-om44.dtsi21 compatible = "ti,abe-twl6040";
26 ti,twl6040 = <&twl6040>;
190 twl6040: twl@4b { label
191 compatible = "ti,twl6040";
Domap4-panda-common.dtsi42 compatible = "ti,abe-twl6040";
49 ti,twl6040 = <&twl6040>;
377 twl6040: twl@4b { label
378 compatible = "ti,twl6040";
Domap4-sdp.dts116 compatible = "ti,abe-twl6040";
125 ti,twl6040 = <&twl6040>;
368 twl6040: twl@4b { label
369 compatible = "ti,twl6040";
Domap5-board-common.dtsi111 compatible = "ti,abe-twl6040";
118 ti,twl6040 = <&twl6040>;
585 twl6040: twl@4b { label
586 compatible = "ti,twl6040";
/linux-4.4.14/
DMAINTAINERS7665 F: drivers/mfd/twl6040*.c