| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * arch/powerpc/boot/dts/wii.dts |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Nintendo Wii platform device tree source |
|---|
| 5 | 6 | * Copyright (C) 2008-2009 The GameCube Linux Team |
|---|
| 6 | 7 | * 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 | | - * |
|---|
| 13 | 8 | */ |
|---|
| 14 | 9 | |
|---|
| 15 | 10 | /dts-v1/; |
|---|
| 16 | 11 | #include <dt-bindings/gpio/gpio.h> |
|---|
| 12 | +#include <dt-bindings/input/input.h> |
|---|
| 17 | 13 | |
|---|
| 18 | 14 | /* |
|---|
| 19 | 15 | * This is commented-out for now. |
|---|
| .. | .. |
|---|
| 187 | 183 | "DEBUG0", "DEBUG1", "DEBUG2", "DEBUG3", |
|---|
| 188 | 184 | "DEBUG4", "DEBUG5", "DEBUG6", "DEBUG7"; |
|---|
| 189 | 185 | |
|---|
| 186 | + interrupt-controller; |
|---|
| 187 | + #interrupt-cells = <2>; |
|---|
| 188 | + interrupts = <10>; |
|---|
| 189 | + interrupt-parent = <&PIC1>; |
|---|
| 190 | + |
|---|
| 190 | 191 | /* |
|---|
| 191 | 192 | * This is commented out while a standard binding |
|---|
| 192 | 193 | * for i2c over gpio is defined. |
|---|
| .. | .. |
|---|
| 235 | 236 | panic-indicator; |
|---|
| 236 | 237 | }; |
|---|
| 237 | 238 | }; |
|---|
| 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 | + }; |
|---|
| 238 | 255 | }; |
|---|
| 239 | 256 | |
|---|