Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: stm32: Fix User button on stm32mp135f-dk

This patch fixes the following dtbs_check warning on stm32mp135f-dk:
arch/arm/boot/dts/stm32mp135f-dk.dtb: gpio-keys: 'user-pa13' does not match any of the regexes: '^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switch))$', 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/input/gpio-keys.yaml

It renames user-pa13 node into button-user so that it matches gpio-keys
bindings.

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>

authored by

Amelie Delaunay and committed by
Alexandre Torgue
a1215405 a9060c13

+1 -1
+1 -1
arch/arm/boot/dts/stm32mp135f-dk.dts
··· 40 40 gpio-keys { 41 41 compatible = "gpio-keys"; 42 42 43 - user-pa13 { 43 + button-user { 44 44 label = "User-PA13"; 45 45 linux,code = <BTN_1>; 46 46 gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;