2016-02-06 01:37:17 +07:00
|
|
|
/*
|
|
|
|
* Device Tree Source for K2G SOC
|
|
|
|
*
|
|
|
|
* Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
|
|
|
|
* kind, whether express or implied; without even the implied warranty
|
|
|
|
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
2016-06-09 23:40:21 +07:00
|
|
|
#include <dt-bindings/pinctrl/keystone.h>
|
2017-08-07 20:22:29 +07:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2016-02-06 01:37:17 +07:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "ti,k2g","ti,keystone";
|
|
|
|
model = "Texas Instruments K2G SoC";
|
|
|
|
#address-cells = <2>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
interrupt-parent = <&gic>;
|
|
|
|
|
2017-05-22 12:46:56 +07:00
|
|
|
chosen { };
|
|
|
|
|
2016-02-06 01:37:17 +07:00
|
|
|
aliases {
|
|
|
|
serial0 = &uart0;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
cpu@0 {
|
|
|
|
compatible = "arm,cortex-a15";
|
|
|
|
device_type = "cpu";
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gic: interrupt-controller@02561000 {
|
2017-01-18 16:27:28 +07:00
|
|
|
compatible = "arm,gic-400", "arm,cortex-a15-gic";
|
2016-02-06 01:37:17 +07:00
|
|
|
#interrupt-cells = <3>;
|
|
|
|
interrupt-controller;
|
|
|
|
reg = <0x0 0x02561000 0x0 0x1000>,
|
|
|
|
<0x0 0x02562000 0x0 0x2000>,
|
2017-01-18 16:27:28 +07:00
|
|
|
<0x0 0x02564000 0x0 0x2000>,
|
2016-02-06 01:37:17 +07:00
|
|
|
<0x0 0x02566000 0x0 0x2000>;
|
|
|
|
interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
|
|
|
|
IRQ_TYPE_LEVEL_HIGH)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
timer {
|
|
|
|
compatible = "arm,armv7-timer";
|
|
|
|
interrupts =
|
|
|
|
<GIC_PPI 13
|
|
|
|
(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
|
|
|
|
<GIC_PPI 14
|
|
|
|
(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
|
|
|
|
<GIC_PPI 11
|
|
|
|
(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
|
|
|
|
<GIC_PPI 10
|
|
|
|
(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
pmu {
|
|
|
|
compatible = "arm,cortex-a15-pmu";
|
|
|
|
interrupts = <GIC_SPI 4 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2016-11-07 22:27:49 +07:00
|
|
|
#pinctrl-cells = <1>;
|
2016-02-06 01:37:17 +07:00
|
|
|
compatible = "ti,keystone","simple-bus";
|
|
|
|
ranges = <0x0 0x0 0x0 0xc0000000>;
|
|
|
|
dma-ranges = <0x80000000 0x8 0x00000000 0x80000000>;
|
|
|
|
|
2017-01-08 03:33:08 +07:00
|
|
|
msm_ram: msmram@0c000000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x0c000000 0x100000>;
|
|
|
|
ranges = <0x0 0x0c000000 0x100000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2017-01-08 03:33:08 +07:00
|
|
|
|
|
|
|
sram-bm@f7000 {
|
|
|
|
reg = <0x000f7000 0x8000>;
|
|
|
|
};
|
2017-01-08 03:33:08 +07:00
|
|
|
};
|
|
|
|
|
2016-06-09 23:40:21 +07:00
|
|
|
k2g_pinctrl: pinmux@02621000 {
|
|
|
|
compatible = "pinctrl-single";
|
|
|
|
reg = <0x02621000 0x410>;
|
|
|
|
pinctrl-single,register-width = <32>;
|
|
|
|
pinctrl-single,function-mask = <0x001b0007>;
|
|
|
|
};
|
|
|
|
|
2016-09-01 03:29:59 +07:00
|
|
|
devctrl: device-state-control@02620000 {
|
|
|
|
compatible = "ti,keystone-devctrl", "syscon";
|
|
|
|
reg = <0x02620000 0x1000>;
|
|
|
|
};
|
|
|
|
|
2016-02-06 01:37:17 +07:00
|
|
|
uart0: serial@02530c00 {
|
2017-01-07 02:07:01 +07:00
|
|
|
compatible = "ti,da830-uart", "ns16550a";
|
2016-02-06 01:37:17 +07:00
|
|
|
current-speed = <115200>;
|
|
|
|
reg-shift = <2>;
|
|
|
|
reg-io-width = <4>;
|
|
|
|
reg = <0x02530c00 0x100>;
|
|
|
|
interrupts = <GIC_SPI 164 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
clock-frequency = <200000000>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2016-09-01 03:29:59 +07:00
|
|
|
|
|
|
|
kirq0: keystone_irq@026202a0 {
|
|
|
|
compatible = "ti,keystone-irq";
|
|
|
|
interrupts = <GIC_SPI 1 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <1>;
|
|
|
|
ti,syscon-dev = <&devctrl 0x2a0>;
|
|
|
|
};
|
2016-09-01 03:29:59 +07:00
|
|
|
|
|
|
|
dspgpio0: keystone_dsp_gpio@02620240 {
|
|
|
|
compatible = "ti,keystone-dsp-gpio";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio,syscon-dev = <&devctrl 0x240>;
|
|
|
|
};
|
2016-09-01 03:32:04 +07:00
|
|
|
|
|
|
|
msgmgr: msgmgr@02a00000 {
|
|
|
|
compatible = "ti,k2g-message-manager";
|
|
|
|
#mbox-cells = <2>;
|
|
|
|
reg-names = "queue_proxy_region",
|
|
|
|
"queue_state_debug_region";
|
|
|
|
reg = <0x02a00000 0x400000>, <0x028c3400 0x400>;
|
|
|
|
interrupt-names = "rx_005",
|
|
|
|
"rx_057";
|
|
|
|
interrupts = <GIC_SPI 324 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 327 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
};
|
2017-07-21 23:38:36 +07:00
|
|
|
|
|
|
|
pmmc: pmmc@02921c00 {
|
|
|
|
compatible = "ti,k2g-sci";
|
|
|
|
/*
|
|
|
|
* In case of rare platforms that does not use k2g as
|
|
|
|
* system master, use /delete-property/
|
|
|
|
*/
|
|
|
|
ti,system-reboot-controller;
|
|
|
|
mbox-names = "rx", "tx";
|
|
|
|
mboxes= <&msgmgr 5 2>,
|
|
|
|
<&msgmgr 0 0>;
|
|
|
|
reg-names = "debug_messages";
|
|
|
|
reg = <0x02921c00 0x400>;
|
2017-07-21 23:38:37 +07:00
|
|
|
|
|
|
|
k2g_pds: power-controller {
|
|
|
|
compatible = "ti,sci-pm-domain";
|
|
|
|
#power-domain-cells = <1>;
|
|
|
|
};
|
2017-07-21 23:38:37 +07:00
|
|
|
|
|
|
|
k2g_clks: clocks {
|
|
|
|
compatible = "ti,k2g-sci-clk";
|
|
|
|
#clock-cells = <2>;
|
|
|
|
};
|
2017-07-21 23:38:37 +07:00
|
|
|
|
|
|
|
k2g_reset: reset-controller {
|
|
|
|
compatible = "ti,sci-reset";
|
|
|
|
#reset-cells = <2>;
|
|
|
|
};
|
2017-07-21 23:38:36 +07:00
|
|
|
};
|
2017-08-07 20:22:29 +07:00
|
|
|
|
|
|
|
gpio0: gpio@2603000 {
|
|
|
|
compatible = "ti,k2g-gpio", "ti,keystone-gpio";
|
|
|
|
reg = <0x02603000 0x100>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
|
|
|
|
interrupts = <GIC_SPI 432 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 433 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 434 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 435 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 436 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 437 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 438 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 439 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 440 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
ti,ngpio = <144>;
|
|
|
|
ti,davinci-gpio-unbanked = <0>;
|
|
|
|
clocks = <&k2g_clks 0x001b 0x0>;
|
|
|
|
clock-names = "gpio";
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio1: gpio@260a000 {
|
|
|
|
compatible = "ti,k2g-gpio", "ti,keystone-gpio";
|
|
|
|
reg = <0x0260a000 0x100>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupts = <GIC_SPI 442 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 443 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 444 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 445 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 446 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
ti,ngpio = <68>;
|
|
|
|
ti,davinci-gpio-unbanked = <0>;
|
|
|
|
clocks = <&k2g_clks 0x001c 0x0>;
|
|
|
|
clock-names = "gpio";
|
|
|
|
};
|
2017-08-07 20:33:53 +07:00
|
|
|
|
|
|
|
edma0: edma@02700000 {
|
|
|
|
compatible = "ti,k2g-edma3-tpcc", "ti,edma3-tpcc";
|
|
|
|
reg = <0x02700000 0x8000>;
|
|
|
|
reg-names = "edma3_cc";
|
|
|
|
interrupts = <GIC_SPI 200 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 216 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
interrupt-names = "edma3_ccint", "emda3_mperr",
|
|
|
|
"edma3_ccerrint";
|
|
|
|
dma-requests = <64>;
|
|
|
|
#dma-cells = <2>;
|
|
|
|
|
|
|
|
ti,tptcs = <&edma0_tptc0 7>, <&edma0_tptc1 0>;
|
|
|
|
|
|
|
|
ti,edma-memcpy-channels = <32 33 34 35>;
|
|
|
|
|
|
|
|
power-domains = <&k2g_pds 0x3f>;
|
|
|
|
};
|
|
|
|
|
|
|
|
edma0_tptc0: tptc@02760000 {
|
|
|
|
compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
|
|
|
|
reg = <0x02760000 0x400>;
|
|
|
|
power-domains = <&k2g_pds 0x3f>;
|
|
|
|
};
|
|
|
|
|
|
|
|
edma0_tptc1: tptc@02768000 {
|
|
|
|
compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
|
|
|
|
reg = <0x02768000 0x400>;
|
|
|
|
power-domains = <&k2g_pds 0x3f>;
|
|
|
|
};
|
|
|
|
|
|
|
|
edma1: edma@02728000 {
|
|
|
|
compatible = "ti,k2g-edma3-tpcc", "ti,edma3-tpcc";
|
|
|
|
reg = <0x02728000 0x8000>;
|
|
|
|
reg-names = "edma3_cc";
|
|
|
|
interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 219 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<GIC_SPI 220 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
interrupt-names = "edma3_ccint", "emda3_mperr",
|
|
|
|
"edma3_ccerrint";
|
|
|
|
dma-requests = <64>;
|
|
|
|
#dma-cells = <2>;
|
|
|
|
|
|
|
|
ti,tptcs = <&edma1_tptc0 7>, <&edma1_tptc1 0>;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* memcpy is disabled, can be enabled with:
|
|
|
|
* ti,edma-memcpy-channels = <12 13 14 15>;
|
|
|
|
* for example.
|
|
|
|
*/
|
|
|
|
|
|
|
|
power-domains = <&k2g_pds 0x4f>;
|
|
|
|
};
|
|
|
|
|
|
|
|
edma1_tptc0: tptc@027b0000 {
|
|
|
|
compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
|
|
|
|
reg = <0x027b0000 0x400>;
|
|
|
|
power-domains = <&k2g_pds 0x4f>;
|
|
|
|
};
|
|
|
|
|
|
|
|
edma1_tptc1: tptc@027b8000 {
|
|
|
|
compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
|
|
|
|
reg = <0x027b8000 0x400>;
|
|
|
|
power-domains = <&k2g_pds 0x4f>;
|
|
|
|
};
|
2016-02-06 01:37:17 +07:00
|
|
|
};
|
|
|
|
};
|