brintos

brintos / linux-shallow public Read only

0
0
Text · 2.2 KiB · 0c39858 Raw
98 lines · plain
1RT5640/RT5639 audio CODEC2 3This device supports I2C only.4 5Required properties:6 7- compatible : One of "realtek,rt5640" or "realtek,rt5639".8 9- reg : The I2C address of the device.10 11- interrupts : The CODEC's interrupt output.12 13Optional properties:14 15- clocks: The phandle of the master clock to the CODEC16- clock-names: Should be "mclk"17 18- realtek,in1-differential19- realtek,in2-differential20- realtek,in3-differential21  Boolean. Indicate MIC1/2/3 input are differential, rather than single-ended.22 23- realtek,lout-differential24  Boolean. Indicate LOUT output is differential, rather than stereo.25 26- realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.27 28- realtek,dmic1-data-pin29  0: dmic1 is not used30  1: using IN1P pin as dmic1 data pin31  2: using GPIO3 pin as dmic1 data pin32 33- realtek,dmic2-data-pin34  0: dmic2 is not used35  1: using IN1N pin as dmic2 data pin36  2: using GPIO4 pin as dmic2 data pin37 38- realtek,jack-detect-source39  u32. Valid values:40  0: jack-detect is not used41  1: Use GPIO1 for jack-detect42  2: Use JD1_IN4P for jack-detect43  3: Use JD2_IN4N for jack-detect44  4: Use GPIO2 for jack-detect45  5: Use GPIO3 for jack-detect46  6: Use GPIO4 for jack-detect47 48- realtek,jack-detect-not-inverted49  bool. Normal jack-detect switches give an inverted signal, set this bool50  in the rare case you've a jack-detect switch which is not inverted.51 52- realtek,over-current-threshold-microamp53  u32, micbias over-current detection threshold in µA, valid values are54  600, 1500 and 2000µA.55 56- realtek,over-current-scale-factor57  u32, micbias over-current detection scale-factor, valid values are:58  0: Scale current by 0.559  1: Scale current by 0.7560  2: Scale current by 1.061  3: Scale current by 1.562 63Pins on the device (for linking into audio routes) for RT5639/RT5640:64 65  * DMIC166  * DMIC267  * MICBIAS168  * IN1P69  * IN1N70  * IN2P71  * IN2N72  * IN3P73  * IN3N74  * HPOL75  * HPOR76  * LOUTL77  * LOUTR78  * SPOLP79  * SPOLN80  * SPORP81  * SPORN82 83Additional pins on the device for RT5640:84 85  * MONOP86  * MONON87 88Example:89 90rt5640 {91	compatible = "realtek,rt5640";92	reg = <0x1c>;93	interrupt-parent = <&gpio>;94	interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_HIGH>;95	realtek,ldo1-en-gpios =96		<&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;97};98