2012-09-06 02:08:24 -06:00
|
|
|
/*
|
|
|
|
* Device Tree for the ARM Integrator/AP platform
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
/include/ "integrator.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "ARM Integrator/AP";
|
|
|
|
compatible = "arm,integrator-ap";
|
2014-02-14 02:26:15 -07:00
|
|
|
dma-ranges = <0x80000000 0x0 0x80000000>;
|
2012-09-06 02:08:24 -06:00
|
|
|
|
2016-08-04 08:21:57 -06:00
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
cpu@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
/*
|
|
|
|
* Since the board has pluggable CPU modules, we
|
|
|
|
* cannot define a proper compatible here. Let the
|
|
|
|
* boot loader fill in the apropriate compatible
|
|
|
|
* string if necessary.
|
|
|
|
*/
|
|
|
|
/* compatible = "arm,arm926ej-s"; */
|
|
|
|
reg = <0>;
|
|
|
|
/*
|
|
|
|
* The documentation in ARM DUI 0138E page 3-12 states
|
|
|
|
* that the maximum frequency for this clock is 200 MHz
|
|
|
|
* but painful trial-and-error has proved to me that it
|
|
|
|
* is actually just hanging the system above 71 MHz.
|
|
|
|
* Sad but true.
|
|
|
|
*/
|
|
|
|
/* kHz uV */
|
|
|
|
operating-points = <71000 0
|
|
|
|
66000 0
|
|
|
|
60000 0
|
|
|
|
48000 0
|
|
|
|
36000 0
|
|
|
|
24000 0
|
|
|
|
12000 0>;
|
|
|
|
clocks = <&cmosc>;
|
|
|
|
clock-names = "cpu";
|
|
|
|
clock-latency = <1000000>; /* 1 ms */
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2012-09-06 02:08:24 -06:00
|
|
|
aliases {
|
|
|
|
arm,timer-primary = &timer2;
|
|
|
|
arm,timer-secondary = &timer1;
|
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
bootargs = "root=/dev/ram0 console=ttyAM0,38400n8 earlyprintk";
|
|
|
|
};
|
|
|
|
|
2016-08-04 08:17:08 -06:00
|
|
|
/* 24 MHz chrystal on the Integrator/AP development board */
|
2014-01-10 07:56:05 -07:00
|
|
|
xtal24mhz: xtal24mhz@24M {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <24000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
pclk: pclk@0 {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-factor-clock";
|
|
|
|
clock-div = <1>;
|
|
|
|
clock-mult = <1>;
|
|
|
|
clocks = <&xtal24mhz>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* The UART clock is 14.74 MHz divided by an ICS525 */
|
|
|
|
uartclk: uartclk@14.74M {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <14745600>;
|
2016-08-22 03:16:02 -06:00
|
|
|
clocks = <&xtal24mhz>;
|
2014-01-10 07:56:05 -07:00
|
|
|
};
|
|
|
|
|
2016-08-04 08:17:08 -06:00
|
|
|
core-module@10000000 {
|
|
|
|
/* 24 MHz chrystal on the core module */
|
|
|
|
cm24mhz: cm24mhz@24M {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <24000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Oscillator on the core module, clocks the CPU core */
|
|
|
|
cmosc: cmosc@24M {
|
|
|
|
compatible = "arm,syscon-icst525-integratorap-cm";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
lock-offset = <0x14>;
|
|
|
|
vco-offset = <0x08>;
|
|
|
|
clocks = <&cm24mhz>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Auxilary oscillator on the core module, 32.369MHz at boot */
|
|
|
|
auxosc: auxosc@24M {
|
|
|
|
compatible = "arm,syscon-icst525";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
lock-offset = <0x14>;
|
|
|
|
vco-offset = <0x1c>;
|
|
|
|
clocks = <&cm24mhz>;
|
|
|
|
};
|
2014-01-10 07:56:05 -07:00
|
|
|
};
|
|
|
|
|
2012-11-01 18:31:10 -06:00
|
|
|
syscon {
|
2016-08-10 03:38:12 -06:00
|
|
|
compatible = "arm,integrator-ap-syscon", "syscon";
|
2012-11-01 18:31:10 -06:00
|
|
|
reg = <0x11000000 0x100>;
|
2013-06-15 15:56:32 -06:00
|
|
|
interrupt-parent = <&pic>;
|
|
|
|
/* These are the logical module IRQs */
|
|
|
|
interrupts = <9>, <10>, <11>, <12>;
|
2016-08-22 03:16:57 -06:00
|
|
|
|
|
|
|
/*
|
|
|
|
* SYSCLK clocks PCIv3 bridge, system controller and the
|
|
|
|
* logic modules.
|
|
|
|
*/
|
|
|
|
sysclk: apsys@24M {
|
|
|
|
compatible = "arm,syscon-icst525-integratorap-sys";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
lock-offset = <0x1c>;
|
|
|
|
vco-offset = <0x04>;
|
|
|
|
clocks = <&xtal24mhz>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* One-bit control for the PCI bus clock (33 or 25 MHz) */
|
|
|
|
pciclk: pciclk@24M {
|
|
|
|
compatible = "arm,syscon-icst525-integratorap-pci";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
lock-offset = <0x1c>;
|
|
|
|
vco-offset = <0x04>;
|
|
|
|
clocks = <&xtal24mhz>;
|
|
|
|
};
|
2012-11-01 18:31:10 -06:00
|
|
|
};
|
|
|
|
|
2012-09-06 02:08:24 -06:00
|
|
|
timer0: timer@13000000 {
|
|
|
|
compatible = "arm,integrator-timer";
|
2014-01-10 07:56:05 -07:00
|
|
|
clocks = <&xtal24mhz>;
|
2012-09-06 02:08:24 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
timer1: timer@13000100 {
|
|
|
|
compatible = "arm,integrator-timer";
|
2014-01-10 07:56:05 -07:00
|
|
|
clocks = <&xtal24mhz>;
|
2012-09-06 02:08:24 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
timer2: timer@13000200 {
|
|
|
|
compatible = "arm,integrator-timer";
|
2014-01-10 07:56:05 -07:00
|
|
|
clocks = <&xtal24mhz>;
|
2012-09-06 02:08:24 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
pic: pic@14000000 {
|
|
|
|
valid-mask = <0x003fffff>;
|
|
|
|
};
|
2012-09-06 02:08:47 -06:00
|
|
|
|
2013-02-28 18:20:55 -07:00
|
|
|
pci: pciv3@62000000 {
|
|
|
|
compatible = "v3,v360epc-pci";
|
|
|
|
#interrupt-cells = <1>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
#address-cells = <3>;
|
|
|
|
reg = <0x62000000 0x10000>;
|
|
|
|
interrupt-parent = <&pic>;
|
|
|
|
interrupts = <17>; /* Bus error IRQ */
|
|
|
|
ranges = <0x00000000 0 0x61000000 /* config space */
|
|
|
|
0x61000000 0 0x00100000 /* 16 MiB @ 61000000 */
|
2013-06-25 17:05:38 -06:00
|
|
|
0x01000000 0 0x0 /* I/O space */
|
2013-02-28 18:20:55 -07:00
|
|
|
0x60000000 0 0x00100000 /* 16 MiB @ 60000000 */
|
2013-06-25 17:05:38 -06:00
|
|
|
0x02000000 0 0x00000000 /* non-prefectable memory */
|
2013-02-28 18:20:55 -07:00
|
|
|
0x40000000 0 0x10000000 /* 256 MiB @ 40000000 */
|
2013-06-25 17:05:38 -06:00
|
|
|
0x42000000 0 0x10000000 /* prefetchable memory */
|
2013-02-28 18:20:55 -07:00
|
|
|
0x50000000 0 0x10000000>; /* 256 MiB @ 50000000 */
|
|
|
|
interrupt-map-mask = <0xf800 0 0 0x7>;
|
|
|
|
interrupt-map = <
|
|
|
|
/* IDSEL 9 */
|
|
|
|
0x4800 0 0 1 &pic 13 /* INT A on slot 9 is irq 13 */
|
|
|
|
0x4800 0 0 2 &pic 14 /* INT B on slot 9 is irq 14 */
|
|
|
|
0x4800 0 0 3 &pic 15 /* INT C on slot 9 is irq 15 */
|
|
|
|
0x4800 0 0 4 &pic 16 /* INT D on slot 9 is irq 16 */
|
|
|
|
/* IDSEL 10 */
|
|
|
|
0x5000 0 0 1 &pic 14 /* INT A on slot 10 is irq 14 */
|
|
|
|
0x5000 0 0 2 &pic 15 /* INT B on slot 10 is irq 15 */
|
|
|
|
0x5000 0 0 3 &pic 16 /* INT C on slot 10 is irq 16 */
|
|
|
|
0x5000 0 0 4 &pic 13 /* INT D on slot 10 is irq 13 */
|
|
|
|
/* IDSEL 11 */
|
|
|
|
0x5800 0 0 1 &pic 15 /* INT A on slot 11 is irq 15 */
|
|
|
|
0x5800 0 0 2 &pic 16 /* INT B on slot 11 is irq 16 */
|
|
|
|
0x5800 0 0 3 &pic 13 /* INT C on slot 11 is irq 13 */
|
|
|
|
0x5800 0 0 4 &pic 14 /* INT D on slot 11 is irq 14 */
|
|
|
|
/* IDSEL 12 */
|
|
|
|
0x6000 0 0 1 &pic 16 /* INT A on slot 12 is irq 16 */
|
|
|
|
0x6000 0 0 2 &pic 13 /* INT B on slot 12 is irq 13 */
|
|
|
|
0x6000 0 0 3 &pic 14 /* INT C on slot 12 is irq 14 */
|
|
|
|
0x6000 0 0 4 &pic 15 /* INT D on slot 12 is irq 15 */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
|
2012-09-06 02:08:47 -06:00
|
|
|
fpga {
|
|
|
|
/*
|
|
|
|
* The Integator/AP predates the idea to have magic numbers
|
|
|
|
* identifying the PrimeCell in hardware, thus we have to
|
|
|
|
* supply these from the device tree.
|
|
|
|
*/
|
|
|
|
rtc: rtc@15000000 {
|
|
|
|
compatible = "arm,pl030", "arm,primecell";
|
|
|
|
arm,primecell-periphid = <0x00041030>;
|
2014-01-10 07:56:05 -07:00
|
|
|
clocks = <&pclk>;
|
|
|
|
clock-names = "apb_pclk";
|
2012-09-06 02:08:47 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
uart0: uart@16000000 {
|
|
|
|
compatible = "arm,pl010", "arm,primecell";
|
|
|
|
arm,primecell-periphid = <0x00041010>;
|
2014-01-10 07:56:05 -07:00
|
|
|
clocks = <&uartclk>, <&pclk>;
|
|
|
|
clock-names = "uartclk", "apb_pclk";
|
2012-09-06 02:08:47 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
uart1: uart@17000000 {
|
|
|
|
compatible = "arm,pl010", "arm,primecell";
|
|
|
|
arm,primecell-periphid = <0x00041010>;
|
2014-01-10 07:56:05 -07:00
|
|
|
clocks = <&uartclk>, <&pclk>;
|
|
|
|
clock-names = "uartclk", "apb_pclk";
|
2012-09-06 02:08:47 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
kmi0: kmi@18000000 {
|
|
|
|
compatible = "arm,pl050", "arm,primecell";
|
|
|
|
arm,primecell-periphid = <0x00041050>;
|
2014-01-10 07:56:05 -07:00
|
|
|
clocks = <&xtal24mhz>, <&pclk>;
|
|
|
|
clock-names = "KMIREFCLK", "apb_pclk";
|
2012-09-06 02:08:47 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
kmi1: kmi@19000000 {
|
|
|
|
compatible = "arm,pl050", "arm,primecell";
|
|
|
|
arm,primecell-periphid = <0x00041050>;
|
2014-01-10 07:56:05 -07:00
|
|
|
clocks = <&xtal24mhz>, <&pclk>;
|
|
|
|
clock-names = "KMIREFCLK", "apb_pclk";
|
2012-09-06 02:08:47 -06:00
|
|
|
};
|
|
|
|
};
|
2012-09-06 02:08:24 -06:00
|
|
|
};
|