diff options
author | Krzysztof Kozlowski <[email protected]> | 2023-01-02 12:41:48 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-01-16 11:16:38 +0000 |
commit | 738455858a2d21b769f673892546cf8300c9fd78 (patch) | |
tree | c847716888b0b922141d413ce81de47637b7b836 /scripts/gdb/linux/proc.py | |
parent | 31a90367443b21f76b972c00aad3430447c999d6 (diff) |
ASoC: codecs: wsa881x: Use proper shutdown GPIO polarity
The shutdown GPIO is active low (SD_N), but this depends on actual board
layout. Linux drivers should only care about logical state, where high
(1) means shutdown and low (0) means do not shutdown.
Invert the GPIO to match logical value while preserving backwards DTB
compatibility. It is not possible to detect whether ACTIVE_HIGH flag in
DTB is because it is an old DTB (using incorrect flag) or it is a new
DTB with a correct hardware pin polarity description. Therefore the
solution prioritizes backwards compatibility while relying on relevant
DTS being upstreamed.
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions