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

ARM: dts: blanche: Configure pull-up for SOFT_SW and SW25 GPIO keys

The GPIO pins connected to the 4 Software Switches (SW2) and the second
Tact Switch (SW25) 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.

Note that the GPIO pin connected to the first Tact Switch (SW24) does
have an external pull-up resistor.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/011e4c461767f2dd690b655b3dd501eb554184c1.1619785905.git.geert+renesas@glider.be

+8
+8
arch/arm/boot/dts/r8a7792-blanche.dts
··· 112 112 keyboard { 113 113 compatible = "gpio-keys"; 114 114 115 + pinctrl-0 = <&keyboard_pins>; 116 + pinctrl-names = "default"; 117 + 115 118 key-1 { 116 119 linux,code = <KEY_1>; 117 120 label = "SW2-1"; ··· 236 233 du1_pins: du1 { 237 234 groups = "du1_rgb666", "du1_sync", "du1_disp"; 238 235 function = "du1"; 236 + }; 237 + 238 + keyboard_pins: keyboard { 239 + pins = "GP_3_10", "GP_3_11", "GP_3_12", "GP_3_15", "GP_11_02"; 240 + bias-pull-up; 239 241 }; 240 242 241 243 pmic_irq_pins: pmicirq {