forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/powerpc/boot/dts/wii.dts
....@@ -1,19 +1,15 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * arch/powerpc/boot/dts/wii.dts
34 *
45 * Nintendo Wii platform device tree source
56 * Copyright (C) 2008-2009 The GameCube Linux Team
67 * Copyright (C) 2008,2009 Albert Herranz
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * as published by the Free Software Foundation; either version 2
11
- * of the License, or (at your option) any later version.
12
- *
138 */
149
1510 /dts-v1/;
1611 #include <dt-bindings/gpio/gpio.h>
12
+#include <dt-bindings/input/input.h>
1713
1814 /*
1915 * This is commented-out for now.
....@@ -187,6 +183,11 @@
187183 "DEBUG0", "DEBUG1", "DEBUG2", "DEBUG3",
188184 "DEBUG4", "DEBUG5", "DEBUG6", "DEBUG7";
189185
186
+ interrupt-controller;
187
+ #interrupt-cells = <2>;
188
+ interrupts = <10>;
189
+ interrupt-parent = <&PIC1>;
190
+
190191 /*
191192 * This is commented out while a standard binding
192193 * for i2c over gpio is defined.
....@@ -235,5 +236,21 @@
235236 panic-indicator;
236237 };
237238 };
239
+
240
+ gpio-keys {
241
+ compatible = "gpio-keys";
242
+
243
+ power {
244
+ label = "Power Button";
245
+ gpios = <&GPIO 0 GPIO_ACTIVE_HIGH>;
246
+ linux,code = <KEY_POWER>;
247
+ };
248
+
249
+ eject {
250
+ label = "Eject Button";
251
+ gpios = <&GPIO 6 GPIO_ACTIVE_HIGH>;
252
+ linux,code = <KEY_EJECTCD>;
253
+ };
254
+ };
238255 };
239256