mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 15:55:40 +07:00
600ecc1936
Improve the DTS files by removing all the leading "0x" and zeros to
fix the following dtc warnings:
Warning (unit_address_format): Node /XXX unit name should not have leading "0x"
and:
Warning (unit_address_format): Node /XXX unit name should not have leading 0s
Converted using the following command:
find . -type f \( -iname *.dts -o -iname *.dtsi \) -exec sed -E -i -e "s/@0x([0-9a-fA-F\.]+)\s?\{/@\L\1 \{/g" -e "s/@0+([0-9a-fA-F\.]+)\s?\{/@\L\1 \{/g" {} +
For simplicity, two sed expressions were used to solve each warnings
separately.
To make the regex expression more robust a few other issues were
resolved, namely setting unit-address to lower case, and adding a
whitespace before the the opening curly brace:
https://elinux.org/Device_Tree_Linux#Linux_conventions
This is a follow up to commit 4c9847b737
("dt-bindings: Remove
leading 0x from bindings notation")
Reported-by: David Daney <ddaney@caviumnetworks.com>
Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
115 lines
2.4 KiB
Plaintext
115 lines
2.4 KiB
Plaintext
/*
|
|
* arch/powerpc/boot/dts/gamecube.dts
|
|
*
|
|
* Nintendo GameCube platform device tree source
|
|
* Copyright (C) 2007-2009 The GameCube Linux Team
|
|
* Copyright (C) 2007,2008,2009 Albert Herranz
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
/ {
|
|
model = "nintendo,gamecube";
|
|
compatible = "nintendo,gamecube";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
chosen {
|
|
bootargs = "root=/dev/gcnsda2 rootwait udbg-immortal";
|
|
};
|
|
|
|
memory {
|
|
device_type = "memory";
|
|
reg = <0x00000000 0x01800000>;
|
|
};
|
|
|
|
cpus {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
PowerPC,gekko@0 {
|
|
device_type = "cpu";
|
|
reg = <0>;
|
|
clock-frequency = <486000000>; /* 486MHz */
|
|
bus-frequency = <162000000>; /* 162MHz core-to-bus 3x */
|
|
timebase-frequency = <40500000>; /* 162MHz / 4 */
|
|
i-cache-line-size = <32>;
|
|
d-cache-line-size = <32>;
|
|
i-cache-size = <32768>;
|
|
d-cache-size = <32768>;
|
|
};
|
|
};
|
|
|
|
/* devices contained int the flipper chipset */
|
|
flipper {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
compatible = "nintendo,flipper";
|
|
ranges = <0x0c000000 0x0c000000 0x00010000>;
|
|
interrupt-parent = <&PIC>;
|
|
|
|
video@c002000 {
|
|
compatible = "nintendo,flipper-vi";
|
|
reg = <0x0c002000 0x100>;
|
|
interrupts = <8>;
|
|
};
|
|
|
|
processor-interface@c003000 {
|
|
compatible = "nintendo,flipper-pi";
|
|
reg = <0x0c003000 0x100>;
|
|
|
|
PIC: pic {
|
|
#interrupt-cells = <1>;
|
|
compatible = "nintendo,flipper-pic";
|
|
interrupt-controller;
|
|
};
|
|
};
|
|
|
|
dsp@c005000 {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
compatible = "nintendo,flipper-dsp";
|
|
reg = <0x0c005000 0x200>;
|
|
interrupts = <6>;
|
|
|
|
memory@0 {
|
|
compatible = "nintendo,flipper-aram";
|
|
reg = <0 0x1000000>; /* 16MB */
|
|
};
|
|
};
|
|
|
|
disk@c006000 {
|
|
compatible = "nintendo,flipper-di";
|
|
reg = <0x0c006000 0x40>;
|
|
interrupts = <2>;
|
|
};
|
|
|
|
audio@c006c00 {
|
|
compatible = "nintendo,flipper-ai";
|
|
reg = <0x0c006c00 0x20>;
|
|
interrupts = <6>;
|
|
};
|
|
|
|
gamepad-controller@c006400 {
|
|
compatible = "nintendo,flipper-si";
|
|
reg = <0x0c006400 0x100>;
|
|
interrupts = <3>;
|
|
};
|
|
|
|
/* External Interface bus */
|
|
exi@c006800 {
|
|
compatible = "nintendo,flipper-exi";
|
|
reg = <0x0c006800 0x40>;
|
|
virtual-reg = <0x0c006800>;
|
|
interrupts = <4>;
|
|
};
|
|
};
|
|
};
|
|
|