2022-03-25 19:23:09

by Gireesh.Hiremath

[permalink] [raw]
Subject: [PATCH 02/15] ARM: dts: am335x: Guardian: Rename power button label

From: Gireesh Hiremath <[email protected]>

* Rename label button to power button

Signed-off-by: Gireesh Hiremath <[email protected]>
---
arch/arm/boot/dts/am335x-guardian.dts | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index 41b7adf78656..645de77bdb56 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -29,21 +29,22 @@
reg = <0x80000000 0x10000000>; /* 256 MB */
};

- gpio_keys {
+ guardian_buttons: gpio-keys {
+ pinctrl-names = "default";
+ pinctrl-0 = <&guardian_button_pins>;
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
- pinctrl-names = "default";
- pinctrl-0 = <&gpio_keys_pins>;

- button21 {
+ power-button {
label = "guardian-power-button";
linux,code = <KEY_POWER>;
- gpios = <&gpio2 21 0>;
+ gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
wakeup-source;
};
};

+
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
@@ -365,9 +366,9 @@
>;
};

- gpio_keys_pins: pinmux_gpio_keys_pins {
+ guardian_button_pins: pinmux_guardian_button_pins {
pinctrl-single,pins = <
- AM33XX_IOPAD(0x940, PIN_INPUT | MUX_MODE7)
+ AM33XX_IOPAD(0x940, PIN_INPUT | MUX_MODE7) /* (M16) gmii1_rxd0.gpio2[21] */
>;
};

--
2.20.1