boards: arm: BT510: Add active low flags to GPIO

This specifies the flags for active low GPIO inputs

Signed-off-by: Jamie McCrae <jamie.mccrae@lairdconnect.com>
This commit is contained in:
Jamie McCrae 2022-03-14 08:42:54 +00:00 committed by Carles Cufí
commit a7ca58b184

View file

@ -37,7 +37,7 @@
buttons {
compatible = "gpio-keys";
button1: button_1 {
gpios = <&gpio1 10 GPIO_PULL_UP>;
gpios = <&gpio1 10 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 1 (SW1)";
};
};
@ -45,15 +45,15 @@
ids {
compatible = "gpio-keys";
id0: id_0 {
gpios = <&gpio1 2 GPIO_PULL_UP>;
gpios = <&gpio1 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "ID 0";
};
id1: id_1 {
gpios = <&gpio1 1 GPIO_PULL_UP>;
gpios = <&gpio1 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "ID 1";
};
id2: id_2 {
gpios = <&gpio0 25 GPIO_PULL_UP>;
gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "ID 2";
};
};
@ -61,7 +61,7 @@
tm {
compatible = "gpio-keys";
tm0: tm_0 {
gpios = <&gpio0 3 GPIO_PULL_UP>;
gpios = <&gpio0 3 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Test mode (TM)";
};
};