2015-07-27 22:42:21 +00:00
|
|
|
/*
|
|
|
|
* BSD LICENSE
|
|
|
|
*
|
|
|
|
* Copyright(c) 2015 Broadcom Corporation. All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
*
|
|
|
|
* * Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* * Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in
|
|
|
|
* the documentation and/or other materials provided with the
|
|
|
|
* distribution.
|
|
|
|
* * Neither the name of Broadcom Corporation nor the names of its
|
|
|
|
* contributors may be used to endorse or promote products derived
|
|
|
|
* from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
|
|
|
|
|
|
/memreserve/ 0x84b00000 0x00000008;
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "brcm,ns2";
|
|
|
|
interrupt-parent = <&gic>;
|
|
|
|
#address-cells = <2>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
|
|
|
|
cpus {
|
|
|
|
#address-cells = <2>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
cpu@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a57", "arm,armv8";
|
|
|
|
reg = <0 0>;
|
|
|
|
enable-method = "spin-table";
|
|
|
|
cpu-release-addr = <0 0x84b00000>;
|
2015-10-02 17:54:18 +00:00
|
|
|
next-level-cache = <&CLUSTER0_L2>;
|
2015-07-27 22:42:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cpu@1 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a57", "arm,armv8";
|
|
|
|
reg = <0 1>;
|
|
|
|
enable-method = "spin-table";
|
|
|
|
cpu-release-addr = <0 0x84b00000>;
|
2015-10-02 17:54:18 +00:00
|
|
|
next-level-cache = <&CLUSTER0_L2>;
|
2015-07-27 22:42:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cpu@2 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a57", "arm,armv8";
|
|
|
|
reg = <0 2>;
|
|
|
|
enable-method = "spin-table";
|
|
|
|
cpu-release-addr = <0 0x84b00000>;
|
2015-10-02 17:54:18 +00:00
|
|
|
next-level-cache = <&CLUSTER0_L2>;
|
2015-07-27 22:42:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cpu@3 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a57", "arm,armv8";
|
|
|
|
reg = <0 3>;
|
|
|
|
enable-method = "spin-table";
|
|
|
|
cpu-release-addr = <0 0x84b00000>;
|
2015-10-02 17:54:18 +00:00
|
|
|
next-level-cache = <&CLUSTER0_L2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
CLUSTER0_L2: l2-cache@000 {
|
|
|
|
compatible = "cache";
|
2015-07-27 22:42:21 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
timer {
|
|
|
|
compatible = "arm,armv8-timer";
|
|
|
|
interrupts = <GIC_PPI 13 (GIC_CPU_MASK_RAW(0xff) |
|
|
|
|
IRQ_TYPE_EDGE_RISING)>,
|
|
|
|
<GIC_PPI 14 (GIC_CPU_MASK_RAW(0xff) |
|
|
|
|
IRQ_TYPE_EDGE_RISING)>,
|
|
|
|
<GIC_PPI 11 (GIC_CPU_MASK_RAW(0xff) |
|
|
|
|
IRQ_TYPE_EDGE_RISING)>,
|
|
|
|
<GIC_PPI 10 (GIC_CPU_MASK_RAW(0xff) |
|
|
|
|
IRQ_TYPE_EDGE_RISING)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
soc: soc {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges = <0 0 0 0xffffffff>;
|
|
|
|
|
2015-10-02 17:54:19 +00:00
|
|
|
smmu: mmu@64000000 {
|
|
|
|
compatible = "arm,mmu-500";
|
|
|
|
reg = <0x64000000 0x40000>;
|
|
|
|
#global-interrupts = <2>;
|
|
|
|
interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 230 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 232 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 234 IRQ_TYPE_LEVEL_HI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C_SPI 259 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 260 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
mmu-masters;
|
|
|
|
};
|
|
|
|
|
2015-10-02 17:54:20 +00:00
|
|
|
crmu: crmu@65024000 {
|
|
|
|
compatible = "syscon";
|
|
|
|
reg = <0x65024000 0x100>;
|
|
|
|
};
|
|
|
|
|
|
|
|
reboot@65024000 {
|
|
|
|
compatible ="syscon-reboot";
|
|
|
|
regmap = <&crmu>;
|
|
|
|
offset = <0x90>;
|
|
|
|
mask = <0xfffffffd>;
|
|
|
|
};
|
|
|
|
|
2015-07-27 22:42:21 +00:00
|
|
|
gic: interrupt-controller@65210000 {
|
|
|
|
compatible = "arm,gic-400";
|
|
|
|
#interrupt-cells = <3>;
|
|
|
|
interrupt-controller;
|
|
|
|
reg = <0x65210000 0x1000>,
|
|
|
|
<0x65220000 0x1000>,
|
|
|
|
<0x65240000 0x2000>,
|
|
|
|
<0x65260000 0x1000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
uart3: serial@66130000 {
|
|
|
|
compatible = "snps,dw-apb-uart";
|
|
|
|
reg = <0x66130000 0x100>;
|
|
|
|
interrupts = <GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
reg-shift = <2>;
|
|
|
|
reg-io-width = <4>;
|
|
|
|
clock-frequency = <23961600>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|