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

ARM: dts: lager: Configure pull-up for SOFT_SW GPIO keys

The GPIO pins connected to the 4 Software Switches (SW2) do not have
external pull-up resistors, but rely on internal pull-ups being enabled.
Fortunately this is satisfied by the initial state of these pins.

Make this explicit by enabling bias-pull-up, to remove the dependency on
initial state and/or boot loader configuration.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/9fae3c0c2c0000f6b43c9ce87fe64a594b30a7da.1619785905.git.geert+renesas@glider.be

+8
+8
arch/arm/boot/dts/r8a7790-lager.dts
··· 81 81 keyboard { 82 82 compatible = "gpio-keys"; 83 83 84 + pinctrl-0 = <&keyboard_pins>; 85 + pinctrl-names = "default"; 86 + 84 87 one { 85 88 linux,code = <KEY_1>; 86 89 label = "SW2-1"; ··· 661 658 sound_clk_pins: sound_clk { 662 659 groups = "audio_clk_a"; 663 660 function = "audio_clk"; 661 + }; 662 + 663 + keyboard_pins: keyboard { 664 + pins = "GP_1_14", "GP_1_24", "GP_1_26", "GP_1_28"; 665 + bias-pull-up; 664 666 }; 665 667 }; 666 668