]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
MIPS/input: Move RB532 button to GPIO descriptors
authorLinus Walleij <linusw@kernel.org>
Sat, 28 Mar 2026 15:55:47 +0000 (16:55 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 13 Apr 2026 13:41:56 +0000 (15:41 +0200)
commit42671e9c1e40032f982d2163ba4867dc85e23832
tree5683e253f2455d2d203f6af6f2a8161478d81ad1
parentf992846d0b45691a02d0a9775c5c2a50956e62a5
MIPS/input: Move RB532 button to GPIO descriptors

Convert the Mikrotik RouterBoard RB532 to use GPIO descriptors
by defining a software node for the GPIO chip, then register
the button platform device with full info passing the GPIO
as a device property.

This can be used as a base to move more of the RB532 devices
over to passing GPIOs using device properties.

Use the GPIO_ACTIVE_LOW flag and drop the inversion in the
rb532_button_pressed() function.

Signed-off-by: Linus Walleij <linusw@kernel.org>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/rb532/devices.c
drivers/input/misc/rb532_button.c