/linux-4.4.14/drivers/mfd/ |
D | twl6040.c | 109 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 …]
|
D | Makefile | 82 obj-$(CONFIG_TWL6040_CORE) += twl6040.o
|
/linux-4.4.14/include/linux/mfd/ |
D | twl6040.h | 222 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/ |
D | twl6040-vibra.c | 65 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 …]
|
D | Makefile | 71 obj-$(CONFIG_INPUT_TWL6040_VIBRA) += twl6040-vibra.o
|
/linux-4.4.14/drivers/gpio/ |
D | gpio-twl6040.c | 39 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()
|
D | Makefile | 103 obj-$(CONFIG_GPIO_TWL6040) += gpio-twl6040.o
|
D | Kconfig | 872 Say yes here to access the GPO signals of twl6040
|
/linux-4.4.14/Documentation/devicetree/bindings/mfd/ |
D | twl6040.txt | 9 - 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/ |
D | clk-twl6040.c | 30 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()
|
D | Makefile | 45 obj-$(CONFIG_CLK_TWL6040) += clk-twl6040.o
|
D | Kconfig | 128 tristate "External McPDM functional clock from twl6040"
|
/linux-4.4.14/sound/soc/codecs/ |
D | twl6040.c | 112 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 …]
|
D | Makefile | 129 snd-soc-twl6040-objs := twl6040.o 321 obj-$(CONFIG_SND_SOC_TWL6040) += snd-soc-twl6040.o
|
/linux-4.4.14/Documentation/devicetree/bindings/sound/ |
D | omap-abe-twl6040.txt | 1 * 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/ |
D | Makefile | 20 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
|
D | Kconfig | 102 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/ |
D | omap4-duovero.dtsi | 21 compatible = "ti,abe-twl6040"; 28 ti,twl6040 = <&twl6040>; 178 twl6040: twl@4b { label 179 compatible = "ti,twl6040";
|
D | omap4-var-som-om44.dtsi | 21 compatible = "ti,abe-twl6040"; 26 ti,twl6040 = <&twl6040>; 190 twl6040: twl@4b { label 191 compatible = "ti,twl6040";
|
D | omap4-panda-common.dtsi | 42 compatible = "ti,abe-twl6040"; 49 ti,twl6040 = <&twl6040>; 377 twl6040: twl@4b { label 378 compatible = "ti,twl6040";
|
D | omap4-sdp.dts | 116 compatible = "ti,abe-twl6040"; 125 ti,twl6040 = <&twl6040>; 368 twl6040: twl@4b { label 369 compatible = "ti,twl6040";
|
D | omap5-board-common.dtsi | 111 compatible = "ti,abe-twl6040"; 118 ti,twl6040 = <&twl6040>; 585 twl6040: twl@4b { label 586 compatible = "ti,twl6040";
|
/linux-4.4.14/ |
D | MAINTAINERS | 7665 F: drivers/mfd/twl6040*.c
|