Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * arch/powerpc/boot/dts/wii.dts
0004  *
0005  * Nintendo Wii platform device tree source
0006  * Copyright (C) 2008-2009 The GameCube Linux Team
0007  * Copyright (C) 2008,2009 Albert Herranz
0008  */
0009 
0010 /dts-v1/;
0011 #include <dt-bindings/gpio/gpio.h>
0012 #include <dt-bindings/input/input.h>
0013 
0014 /*
0015  * This is commented-out for now.
0016  * Until a later patch is merged, the kernel can use only the first
0017  * contiguous RAM range and will BUG() if the memreserve is outside
0018  * that range.
0019  */
0020 /*/memreserve/ 0x10000000 0x0004000;*/  /* DSP RAM */
0021 
0022 / {
0023         model = "nintendo,wii";
0024         compatible = "nintendo,wii";
0025         #address-cells = <1>;
0026         #size-cells = <1>;
0027 
0028         chosen {
0029                 bootargs = "root=/dev/mmcblk0p2 rootwait udbg-immortal";
0030         };
0031 
0032         memory {
0033                 device_type = "memory";
0034                 reg = <0x00000000 0x01800000    /* MEM1 24MB 1T-SRAM */
0035                        0x10000000 0x04000000>;  /* MEM2 64MB GDDR3 */
0036         };
0037 
0038         cpus {
0039                 #address-cells = <1>;
0040                 #size-cells = <0>;
0041 
0042                 PowerPC,broadway@0 {
0043                         device_type = "cpu";
0044                         reg = <0>;
0045                         clock-frequency = <729000000>; /* 729MHz */
0046                         bus-frequency = <243000000>; /* 243MHz core-to-bus 3x */
0047                         timebase-frequency = <60750000>; /* 243MHz / 4 */
0048                         i-cache-line-size = <32>;
0049                         d-cache-line-size = <32>;
0050                         i-cache-size = <32768>;
0051                         d-cache-size = <32768>;
0052                 };
0053         };
0054 
0055         /* devices contained in the hollywood chipset */
0056         hollywood {
0057                 #address-cells = <1>;
0058                 #size-cells = <1>;
0059                 compatible = "nintendo,hollywood";
0060                 ranges = <0x0c000000 0x0c000000 0x01000000
0061                           0x0d000000 0x0d000000 0x00800000
0062                           0x0d800000 0x0d800000 0x00800000>;
0063                 interrupt-parent = <&PIC0>;
0064 
0065                 video@c002000 {
0066                         compatible = "nintendo,hollywood-vi",
0067                                         "nintendo,flipper-vi";
0068                         reg = <0x0c002000 0x100>;
0069                         interrupts = <8>;
0070                 };
0071 
0072                 processor-interface@c003000 {
0073                         compatible = "nintendo,hollywood-pi",
0074                                         "nintendo,flipper-pi";
0075                         reg = <0x0c003000 0x100>;
0076 
0077                         PIC0: pic0 {
0078                                 #interrupt-cells = <1>;
0079                                 compatible = "nintendo,flipper-pic";
0080                                 interrupt-controller;
0081                         };
0082                 };
0083 
0084                 dsp@c005000 {
0085                         #address-cells = <1>;
0086                         #size-cells = <1>;
0087                         compatible = "nintendo,hollywood-dsp",
0088                                         "nintendo,flipper-dsp";
0089                         reg = <0x0c005000 0x200>;
0090                         interrupts = <6>;
0091                 };
0092 
0093                 gamepad-controller@d006400 {
0094                         compatible = "nintendo,hollywood-si",
0095                                         "nintendo,flipper-si";
0096                         reg = <0x0d006400 0x100>;
0097                         interrupts = <3>;
0098                 };
0099 
0100                 audio@c006c00 {
0101                         compatible = "nintendo,hollywood-ai",
0102                                         "nintendo,flipper-ai";
0103                         reg = <0x0d006c00 0x20>;
0104                         interrupts = <6>;
0105                 };
0106 
0107                 /* External Interface bus */
0108                 exi@d006800 {
0109                         compatible = "nintendo,hollywood-exi",
0110                                         "nintendo,flipper-exi";
0111                         reg = <0x0d006800 0x40>;
0112                         virtual-reg = <0x0d006800>;
0113                         interrupts = <4>;
0114                 };
0115 
0116                 usb@d040000 {
0117                         compatible = "nintendo,hollywood-usb-ehci",
0118                                         "usb-ehci";
0119                         reg = <0x0d040000 0x100>;
0120                         interrupts = <4>;
0121                         interrupt-parent = <&PIC1>;
0122                 };
0123 
0124                 usb@d050000 {
0125                         compatible = "nintendo,hollywood-usb-ohci",
0126                                         "usb-ohci";
0127                         reg = <0x0d050000 0x100>;
0128                         interrupts = <5>;
0129                         interrupt-parent = <&PIC1>;
0130                 };
0131 
0132                 usb@d060000 {
0133                         compatible = "nintendo,hollywood-usb-ohci",
0134                                         "usb-ohci";
0135                         reg = <0x0d060000 0x100>;
0136                         interrupts = <6>;
0137                         interrupt-parent = <&PIC1>;
0138                 };
0139 
0140                 sd@d070000 {
0141                         compatible = "nintendo,hollywood-sdhci",
0142                                         "sdhci";
0143                         reg = <0x0d070000 0x200>;
0144                         interrupts = <7>;
0145                         interrupt-parent = <&PIC1>;
0146                 };
0147 
0148                 sdio@d080000 {
0149                         compatible = "nintendo,hollywood-sdhci",
0150                                         "sdhci";
0151                         reg = <0x0d080000 0x200>;
0152                         interrupts = <8>;
0153                         interrupt-parent = <&PIC1>;
0154                 };
0155 
0156                 ipc@d000000 {
0157                         compatible = "nintendo,hollywood-ipc";
0158                         reg = <0x0d000000 0x10>;
0159                         interrupts = <30>;
0160                         interrupt-parent = <&PIC1>;
0161                 };
0162 
0163                 PIC1: pic1@d800030 {
0164                         #interrupt-cells = <1>;
0165                         compatible = "nintendo,hollywood-pic";
0166                         reg = <0x0d800030 0x10>;
0167                         interrupt-controller;
0168                         interrupts = <14>;
0169                 };
0170 
0171                 srnprot@d800060 {
0172                         compatible = "nintendo,hollywood-srnprot";
0173                         reg = <0x0d800060 0x4>;
0174                 };
0175 
0176                 GPIO: gpio@d8000c0 {
0177                         #gpio-cells = <2>;
0178                         compatible = "nintendo,hollywood-gpio";
0179                         reg = <0x0d8000c0 0x40>;
0180                         gpio-controller;
0181                         ngpios = <24>;
0182 
0183                         gpio-line-names =
0184                                 "POWER", "SHUTDOWN", "FAN", "DC_DC",
0185                                 "DI_SPIN", "SLOT_LED", "EJECT_BTN", "SLOT_IN",
0186                                 "SENSOR_BAR", "DO_EJECT", "EEP_CS", "EEP_CLK",
0187                                 "EEP_MOSI", "EEP_MISO", "AVE_SCL", "AVE_SDA",
0188                                 "DEBUG0", "DEBUG1", "DEBUG2", "DEBUG3",
0189                                 "DEBUG4", "DEBUG5", "DEBUG6", "DEBUG7";
0190 
0191                         interrupt-controller;
0192                         #interrupt-cells = <2>;
0193                         interrupts = <10>;
0194                         interrupt-parent = <&PIC1>;
0195 
0196                         /*
0197                          * This is commented out while a standard binding
0198                          * for i2c over gpio is defined.
0199                          */
0200                         /*
0201                         i2c-video {
0202                                 #address-cells = <1>;
0203                                 #size-cells = <0>;
0204                                 compatible = "i2c-gpio";
0205 
0206                                 gpios = <&GPIO 15 0
0207                                          &GPIO 14 0>;
0208                                 clock-frequency = <250000>;
0209                                 no-clock-stretching;
0210                                 scl-is-open-drain;
0211                                 sda-is-open-drain;
0212                                 sda-enforce-dir;
0213 
0214                                 AVE: audio-video-encoder@70 {
0215                                         compatible = "nintendo,wii-audio-video-encoder";
0216                                         reg = <0x70>;
0217                                 };
0218                         };
0219                         */
0220                 };
0221 
0222                 control@d800100 {
0223                         compatible = "nintendo,hollywood-control";
0224                         /*
0225                          * Both the address and length are wrong, according to
0226                          * Wiibrew this should be <0x0d800000 0x400>, but it
0227                          * requires refactoring the PIC1, GPIO and OTP nodes
0228                          * before changing that.
0229                          */
0230                         reg = <0x0d800100 0xa0>;
0231                 };
0232 
0233                 otp@d8001ec {
0234                         compatible = "nintendo,hollywood-otp";
0235                         reg = <0x0d8001ec 0x8>;
0236                 };
0237 
0238                 disk@d806000 {
0239                         compatible = "nintendo,hollywood-di";
0240                         reg = <0x0d806000 0x40>;
0241                         interrupts = <2>;
0242                 };
0243         };
0244 
0245         gpio-leds {
0246                 compatible = "gpio-leds";
0247 
0248                 /* This is the blue LED in the disk drive slot */
0249                 drive-slot {
0250                         label = "wii:blue:drive_slot";
0251                         gpios = <&GPIO 5 GPIO_ACTIVE_HIGH>;
0252                         panic-indicator;
0253                 };
0254         };
0255 
0256         gpio-keys {
0257                 compatible = "gpio-keys";
0258 
0259                 power {
0260                         label = "Power Button";
0261                         gpios = <&GPIO 0 GPIO_ACTIVE_HIGH>;
0262                         linux,code = <KEY_POWER>;
0263                 };
0264 
0265                 eject {
0266                         label = "Eject Button";
0267                         gpios = <&GPIO 6 GPIO_ACTIVE_HIGH>;
0268                         linux,code = <KEY_EJECTCD>;
0269                 };
0270         };
0271 };
0272