brintos

brintos / linux-shallow public Read only

0
0
Text · 2.1 KiB · dfd8683 Raw
68 lines · plain
1Texas Instruments TWL6040 family2 3The TWL6040s are 8-channel high quality low-power audio codecs providing audio,4vibra and GPO functionality on OMAP4+ platforms.5They are connected to the host processor via i2c for commands, McPDM for audio6data and commands.7 8Required properties:9- compatible : "ti,twl6040" for twl6040, "ti,twl6041" for twl604110- reg: must be 0x4b for i2c address11- interrupts: twl6040 has one interrupt line connecteded to the main SoC12- gpio-controller:13- #gpio-cells = <1>: twl6040 provides GPO lines.14- #clock-cells = <0>; twl6040 is a provider of pdmclk which is used by McPDM15- twl6040,audpwron-gpio: Power on GPIO line for the twl604016 17- vio-supply: Regulator for the twl6040 VIO supply18- v2v1-supply: Regulator for the twl6040 V2V1 supply19 20Optional properties, nodes:21- enable-active-high: To power on the twl6040 during boot.22- clocks: phandle to the clk32k and/or to mclk clock provider23- clock-names: Must be "clk32k" for the 32K clock and "mclk" for the MCLK.24 25Vibra functionality26Required properties:27- vddvibl-supply: Regulator for the left vibra motor28- vddvibr-supply: Regulator for the right vibra motor29- vibra { }: Configuration section for vibra parameters containing the following30	     properties:31- ti,vibldrv-res: Resistance parameter for left driver32- ti,vibrdrv-res: Resistance parameter for right driver33- ti,viblmotor-res: Resistance parameter for left motor34- ti,viblmotor-res: Resistance parameter for right motor35 36Optional properties within vibra { } section:37- vddvibl_uV: If the vddvibl default voltage need to be changed38- vddvibr_uV: If the vddvibr default voltage need to be changed39 40Example:41&i2c1 {42	twl6040: twl@4b {43		compatible = "ti,twl6040";44 45		interrupts = <0 119 4>;46		interrupt-parent = <&gic>;47		twl6040,audpwron-gpio = <&gpio4 31 0>;48 49		vio-supply = <&v1v8>;50		v2v1-supply = <&v2v1>;51		enable-active-high;52 53		/* regulators for vibra motor */54		vddvibl-supply = <&vbat>;55		vddvibr-supply = <&vbat>;56 57		vibra {58			/* Vibra driver, motor resistance parameters */59			ti,vibldrv-res = <8>;60			ti,vibrdrv-res = <3>;61			ti,viblmotor-res = <10>;62			ti,vibrmotor-res = <10>;63		};64	};65};66 67/include/ "twl6040.dtsi"68