Commit 75b0adbb authored by Dan Murphy's avatar Dan Murphy Committed by Mark Brown

ASoC: tlv320adcx140: Add device tree property for PDM edges

Add a device tree property to configure the PDM sampling edge for each
digital microphone.
Signed-off-by: default avatarDan Murphy <dmurphy@ti.com>
CC: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20200514123338.20392-2-dmurphy@ti.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7cfa6102
...@@ -63,6 +63,29 @@ properties: ...@@ -63,6 +63,29 @@ properties:
- $ref: /schemas/types.yaml#/definitions/uint32 - $ref: /schemas/types.yaml#/definitions/uint32
- enum: [0, 1, 2] - enum: [0, 1, 2]
ti,pdm-edge-select:
description: |
Defines the PDMCLK sampling edge configuration for the PDM inputs. This
array is defined as <PDMIN1 PDMIN2 PDMIN3 PDMIN4>.
0 - (default) Odd channel is latched on the negative edge and even
channel is latched on the the positive edge.
1 - Odd channel is latched on the positive edge and even channel is
latched on the the negative edge.
PDMIN1 - PDMCLK latching edge used for channel 1 and 2 data
PDMIN2 - PDMCLK latching edge used for channel 3 and 4 data
PDMIN3 - PDMCLK latching edge used for channel 5 and 6 data
PDMIN4 - PDMCLK latching edge used for channel 7 and 8 data
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32-array
- minItems: 1
maxItems: 4
items:
maximum: 1
default: [0, 0, 0, 0]
required: required:
- compatible - compatible
- reg - reg
...@@ -77,6 +100,7 @@ examples: ...@@ -77,6 +100,7 @@ examples:
compatible = "ti,tlv320adc5140"; compatible = "ti,tlv320adc5140";
reg = <0x4c>; reg = <0x4c>;
ti,mic-bias-source = <6>; ti,mic-bias-source = <6>;
ti,pdm-edge-select = <0 1 0 1>;
reset-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; reset-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment