mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 13:20:52 +07:00
ASoC: rt5640: Add devicetree-bindings for dmic, jack-detect
Add devicetree-bindings for the dmic, jack-detect source and overcurrent- detect threshold settings. The dmic bindings mirror the existing bindings for the rt5645. The jd-src and ovcd bindings mirror the existing bindings for the rt5651. Cc devicetree@vger.kernel.org Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
8e7a1f1f17
commit
e9e7a3bdcd
@ -22,6 +22,41 @@ Optional properties:
|
||||
|
||||
- realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.
|
||||
|
||||
- realtek,dmic1-data-pin
|
||||
0: dmic1 is not used
|
||||
1: using IN1P pin as dmic1 data pin
|
||||
2: using GPIO3 pin as dmic1 data pin
|
||||
|
||||
- realtek,dmic2-data-pin
|
||||
0: dmic2 is not used
|
||||
1: using IN1N pin as dmic2 data pin
|
||||
2: using GPIO4 pin as dmic2 data pin
|
||||
|
||||
- realtek,jack-detect-source
|
||||
u32. Valid values:
|
||||
0: jack-detect is not used
|
||||
1: Use GPIO1 for jack-detect
|
||||
2: Use JD1_IN4P for jack-detect
|
||||
3: Use JD2_IN4N for jack-detect
|
||||
4: Use GPIO2 for jack-detect
|
||||
5: Use GPIO3 for jack-detect
|
||||
6: Use GPIO4 for jack-detect
|
||||
|
||||
- realtek,jack-detect-not-inverted
|
||||
bool. Normal jack-detect switches give an inverted signal, set this bool
|
||||
in the rare case you've a jack-detect switch which is not inverted.
|
||||
|
||||
- realtek,over-current-threshold-microamp
|
||||
u32, micbias over-current detection threshold in µA, valid values are
|
||||
600, 1500 and 2000µA.
|
||||
|
||||
- realtek,over-current-scale-factor
|
||||
u32, micbias over-current detection scale-factor, valid values are:
|
||||
0: Scale current by 0.5
|
||||
1: Scale current by 0.75
|
||||
2: Scale current by 1.0
|
||||
3: Scale current by 1.5
|
||||
|
||||
Pins on the device (for linking into audio routes) for RT5639/RT5640:
|
||||
|
||||
* DMIC1
|
||||
|
25
include/dt-bindings/sound/rt5640.h
Normal file
25
include/dt-bindings/sound/rt5640.h
Normal file
@ -0,0 +1,25 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#ifndef __DT_RT5640_H
|
||||
#define __DT_RT5640_H
|
||||
|
||||
#define RT5640_DMIC1_DATA_PIN_NONE 0
|
||||
#define RT5640_DMIC1_DATA_PIN_IN1P 1
|
||||
#define RT5640_DMIC1_DATA_PIN_GPIO3 2
|
||||
|
||||
#define RT5640_DMIC2_DATA_PIN_NONE 0
|
||||
#define RT5640_DMIC2_DATA_PIN_IN1N 1
|
||||
#define RT5640_DMIC2_DATA_PIN_GPIO4 2
|
||||
|
||||
#define RT5640_JD_SRC_GPIO1 1
|
||||
#define RT5640_JD_SRC_JD1_IN4P 2
|
||||
#define RT5640_JD_SRC_JD2_IN4N 3
|
||||
#define RT5640_JD_SRC_GPIO2 4
|
||||
#define RT5640_JD_SRC_GPIO3 5
|
||||
#define RT5640_JD_SRC_GPIO4 6
|
||||
|
||||
#define RT5640_OVCD_SF_0P5 0
|
||||
#define RT5640_OVCD_SF_0P75 1
|
||||
#define RT5640_OVCD_SF_1P0 2
|
||||
#define RT5640_OVCD_SF_1P5 3
|
||||
|
||||
#endif /* __DT_RT5640_H */
|
Loading…
Reference in New Issue
Block a user