1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * arch/powerpc/boot/dts/wii.dts
5 * Nintendo Wii platform device tree source
6 * Copyright (C) 2008-2009 The GameCube Linux Team
7 * Copyright (C) 2008,2009 Albert Herranz
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
15 * This is commented-out for now.
16 * Until a later patch is merged, the kernel can use only the first
17 * contiguous RAM range and will BUG() if the memreserve is outside
20 /*/memreserve/ 0x10000000 0x0004000;*/ /* DSP RAM */
23 model = "nintendo,wii";
24 compatible = "nintendo,wii";
29 bootargs = "root=/dev/mmcblk0p2 rootwait udbg-immortal";
33 device_type = "memory";
34 reg = <0x00000000 0x01800000 /* MEM1 24MB 1T-SRAM */
35 0x10000000 0x04000000>; /* MEM2 64MB GDDR3 */
45 clock-frequency = <729000000>; /* 729MHz */
46 bus-frequency = <243000000>; /* 243MHz core-to-bus 3x */
47 timebase-frequency = <60750000>; /* 243MHz / 4 */
48 i-cache-line-size = <32>;
49 d-cache-line-size = <32>;
50 i-cache-size = <32768>;
51 d-cache-size = <32768>;
55 /* devices contained in the hollywood chipset */
59 compatible = "nintendo,hollywood";
60 ranges = <0x0c000000 0x0c000000 0x01000000
61 0x0d000000 0x0d000000 0x00800000
62 0x0d800000 0x0d800000 0x00800000>;
63 interrupt-parent = <&PIC0>;
66 compatible = "nintendo,hollywood-vi",
67 "nintendo,flipper-vi";
68 reg = <0x0c002000 0x100>;
72 processor-interface@c003000 {
73 compatible = "nintendo,hollywood-pi",
74 "nintendo,flipper-pi";
75 reg = <0x0c003000 0x100>;
78 #interrupt-cells = <1>;
79 compatible = "nintendo,flipper-pic";
87 compatible = "nintendo,hollywood-dsp",
88 "nintendo,flipper-dsp";
89 reg = <0x0c005000 0x200>;
93 gamepad-controller@d006400 {
94 compatible = "nintendo,hollywood-si",
95 "nintendo,flipper-si";
96 reg = <0x0d006400 0x100>;
101 compatible = "nintendo,hollywood-ai",
102 "nintendo,flipper-ai";
103 reg = <0x0d006c00 0x20>;
107 /* External Interface bus */
109 compatible = "nintendo,hollywood-exi",
110 "nintendo,flipper-exi";
111 reg = <0x0d006800 0x40>;
112 virtual-reg = <0x0d006800>;
117 compatible = "nintendo,hollywood-usb-ehci",
119 reg = <0x0d040000 0x100>;
121 interrupt-parent = <&PIC1>;
125 compatible = "nintendo,hollywood-usb-ohci",
127 reg = <0x0d050000 0x100>;
129 interrupt-parent = <&PIC1>;
133 compatible = "nintendo,hollywood-usb-ohci",
135 reg = <0x0d060000 0x100>;
137 interrupt-parent = <&PIC1>;
141 compatible = "nintendo,hollywood-sdhci",
143 reg = <0x0d070000 0x200>;
145 interrupt-parent = <&PIC1>;
149 compatible = "nintendo,hollywood-sdhci",
151 reg = <0x0d080000 0x200>;
153 interrupt-parent = <&PIC1>;
157 compatible = "nintendo,hollywood-ipc";
158 reg = <0x0d000000 0x10>;
160 interrupt-parent = <&PIC1>;
164 #interrupt-cells = <1>;
165 compatible = "nintendo,hollywood-pic";
166 reg = <0x0d800030 0x10>;
167 interrupt-controller;
172 compatible = "nintendo,hollywood-srnprot";
173 reg = <0x0d800060 0x4>;
178 compatible = "nintendo,hollywood-gpio";
179 reg = <0x0d8000c0 0x40>;
184 "POWER", "SHUTDOWN", "FAN", "DC_DC",
185 "DI_SPIN", "SLOT_LED", "EJECT_BTN", "SLOT_IN",
186 "SENSOR_BAR", "DO_EJECT", "EEP_CS", "EEP_CLK",
187 "EEP_MOSI", "EEP_MISO", "AVE_SCL", "AVE_SDA",
188 "DEBUG0", "DEBUG1", "DEBUG2", "DEBUG3",
189 "DEBUG4", "DEBUG5", "DEBUG6", "DEBUG7";
191 interrupt-controller;
192 #interrupt-cells = <2>;
194 interrupt-parent = <&PIC1>;
197 * This is commented out while a standard binding
198 * for i2c over gpio is defined.
202 #address-cells = <1>;
204 compatible = "i2c-gpio";
208 clock-frequency = <250000>;
214 AVE: audio-video-encoder@70 {
215 compatible = "nintendo,wii-audio-video-encoder";
223 compatible = "nintendo,hollywood-control";
225 * Both the address and length are wrong, according to
226 * Wiibrew this should be <0x0d800000 0x400>, but it
227 * requires refactoring the PIC1, GPIO and OTP nodes
228 * before changing that.
230 reg = <0x0d800100 0xa0>;
234 compatible = "nintendo,hollywood-otp";
235 reg = <0x0d8001ec 0x8>;
239 compatible = "nintendo,hollywood-di";
240 reg = <0x0d806000 0x40>;
246 compatible = "gpio-leds";
248 /* This is the blue LED in the disk drive slot */
250 label = "wii:blue:drive_slot";
251 gpios = <&GPIO 5 GPIO_ACTIVE_HIGH>;
257 compatible = "gpio-keys";
260 label = "Power Button";
261 gpios = <&GPIO 0 GPIO_ACTIVE_HIGH>;
262 linux,code = <KEY_POWER>;
266 label = "Eject Button";
267 gpios = <&GPIO 6 GPIO_ACTIVE_HIGH>;
268 linux,code = <KEY_EJECTCD>;