pinctrl: samsung: accept GPIO bank nodes with a suffix
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Tue, 11 Jan 2022 20:14:00 +0000 (21:14 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Sun, 23 Jan 2022 11:21:56 +0000 (12:21 +0100)
commita29681b0cc3778c9ff6abdbcad579cba776dbb81
treed6c7a8547fa345e57201997018ede0758817db26
parent96f79935015cf3d7ca6fabf63cd13b8af45a7713
pinctrl: samsung: accept GPIO bank nodes with a suffix

Existing dt-bindings expected that each GPIO/pin bank within pin
controller has its own node with name matching the bank (e.g. gpa0,
gpx2) and "gpio-controller" property.  The node name is then used for
matching between driver data and DTS.

Newly introduced dtschema expects to have nodes ending with "-gpio-bank"
suffix, so rewrite bank-devicetree matching to look for old and new
style of naming.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/20220111201426.326777-3-krzysztof.kozlowski@canonical.com
drivers/pinctrl/samsung/pinctrl-samsung.c