Skip to content

Commit 63b0383

Browse files
Dan Murphybroonie
authored andcommitted
dt-bindings: tlv320adcx140: Add GPO config and drive config
Add properties for configuring the General Purpose Outputs (GPO). The GPOs. There are 2 settings for each GPO, configuration and the output drive type. Signed-off-by: Dan Murphy <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent e5448d7 commit 63b0383

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Documentation/devicetree/bindings/sound/tlv320adcx140.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,32 @@ properties:
108108
maximum: 7
109109
default: [0, 0, 0, 0]
110110

111+
patternProperties:
112+
'^ti,gpo-config-[1-4]$':
113+
$ref: /schemas/types.yaml#/definitions/uint32-array
114+
description: |
115+
Defines the configuration and output driver for the general purpose
116+
output pins (GPO). These values are pairs, the first value is for the
117+
configuration type and the second value is for the output drive type.
118+
The array is defined as <GPO_CFG GPO_DRV>
119+
120+
GPO output configuration can be one of the following:
121+
122+
0 - (default) disabled
123+
1 - GPOX is configured as a general-purpose output (GPO)
124+
2 - GPOX is configured as a device interrupt output (IRQ)
125+
3 - GPOX is configured as a secondary ASI output (SDOUT2)
126+
4 - GPOX is configured as a PDM clock output (PDMCLK)
127+
128+
GPO output drive configuration for the GPO pins can be one of the following:
129+
130+
0d - (default) Hi-Z output
131+
1d - Drive active low and active high
132+
2d - Drive active low and weak high
133+
3d - Drive active low and Hi-Z
134+
4d - Drive weak low and active high
135+
5d - Drive Hi-Z and active high
136+
111137
required:
112138
- compatible
113139
- reg
@@ -124,6 +150,8 @@ examples:
124150
ti,mic-bias-source = <6>;
125151
ti,pdm-edge-select = <0 1 0 1>;
126152
ti,gpi-config = <4 5 6 7>;
153+
ti,gpo-config-1 = <0 0>;
154+
ti,gpo-config-2 = <0 0>;
127155
reset-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
128156
};
129157
};

0 commit comments

Comments
 (0)