mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-04 18:32:02 +01:00
ARM: dts: at91: sam9x60-curiosity: Sync gpio button from Linux
Copied as is from Linux Kernel release v6.4. (dts file is still the same in Linux v6.5-rc7 but was moved to vendor sub-directories with v6.5-rc1.) Button works out of the box now if the following config options are enabled: CONFIG_BUTTON, CONFIG_BUTTON_GPIO, CONFIG_CMD_BUTTON, CONFIG_DM_GPIO. Signed-off-by: Alexander Dahl <ada@thorsis.com>
This commit is contained in:
parent
1818b44b7b
commit
6e8c9d29e3
@ -7,6 +7,7 @@
|
|||||||
* Author: Durai Manickam KR <durai.manickamkr@microchip.com>
|
* Author: Durai Manickam KR <durai.manickamkr@microchip.com>
|
||||||
*/
|
*/
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
#include <dt-bindings/input/input.h>
|
||||||
#include <dt-bindings/mfd/atmel-flexcom.h>
|
#include <dt-bindings/mfd/atmel-flexcom.h>
|
||||||
#include "sam9x60.dtsi"
|
#include "sam9x60.dtsi"
|
||||||
|
|
||||||
@ -33,6 +34,19 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gpio-keys {
|
||||||
|
compatible = "gpio-keys";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&pinctrl_key_gpio_default>;
|
||||||
|
|
||||||
|
button-user {
|
||||||
|
label = "PB_USER";
|
||||||
|
gpios = <&pioA 29 GPIO_ACTIVE_LOW>;
|
||||||
|
linux,code = <KEY_PROG1>;
|
||||||
|
wakeup-source;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
@ -189,6 +203,12 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gpio-keys {
|
||||||
|
pinctrl_key_gpio_default: pinctrl-key-gpio {
|
||||||
|
atmel,pins = <AT91_PIOA 29 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
pinctrl_gpio_leds: gpio-leds {
|
pinctrl_gpio_leds: gpio-leds {
|
||||||
atmel,pins = <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
|
atmel,pins = <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user