arm64: dts: mediatek: mt8183-pico6: Fix wake-on-X event node names
authorChen-Yu Tsai <wenst@chromium.org>
Wed, 31 Jan 2024 08:40:41 +0000 (16:40 +0800)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 27 Jun 2024 08:10:26 +0000 (10:10 +0200)
The wake-on-bt and wake-on-wlan nodes don't have a button- or event-
prefix that the gpio-keys binding requires.

Fix up the node names to satisfy the binding. While at it, also fix up
the GPIO overriding structure for the wake-on-wlan node. Instead of
referencing the gpio-keys node and then open coding the node, add a
label for the event node, and use that to reference and override the
GPIO settings.

Fixes: 055ef10ccdd4 ("arm64: dts: mt8183: Add jacuzzi pico/pico6 board")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20240131084043.3970576-1-wenst@chromium.org
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-pico6.dts
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi

index 6a7ae61..0d5a11c 100644 (file)
@@ -17,7 +17,7 @@
                pinctrl-names = "default";
                pinctrl-0 = <&bt_pins_wakeup>;
 
-               wobt {
+               event-wobt {
                        label = "Wake on BT";
                        gpios = <&pio 42 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_WAKEUP>;
        };
 };
 
-&wifi_wakeup {
-       wowlan {
-               gpios = <&pio 113 GPIO_ACTIVE_LOW>;
-       };
+&wifi_wakeup_event {
+       gpios = <&pio 113 GPIO_ACTIVE_LOW>;
 };
 
 &wifi_pwrseq {
index 5472cd0..a9e40c2 100644 (file)
                pinctrl-names = "default";
                pinctrl-0 = <&wifi_pins_wakeup>;
 
-               button-wowlan {
+               wifi_wakeup_event: event-wowlan {
                        label = "Wake on WiFi";
                        gpios = <&pio 113 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_WAKEUP>;