blob: 27c0406b10ba6f736736921c89c7793d791ab139 [file] [log] [blame]
Nishanth Menonea47eed2018-06-26 11:26:13 -05001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for AM6 SoC Family
4 *
Alexander A. Klimov303d6f62020-07-13 12:14:09 +02005 * Copyright (C) 2016-2018 Texas Instruments Incorporated - https://www.ti.com/
Nishanth Menonea47eed2018-06-26 11:26:13 -05006 */
7
8#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/interrupt-controller/irq.h>
10#include <dt-bindings/interrupt-controller/arm-gic.h>
Tero Kristo1d79b432018-11-13 11:31:09 +053011#include <dt-bindings/pinctrl/k3.h>
Lokesh Vutlac68272c2019-07-29 18:00:22 +053012#include <dt-bindings/soc/ti,sci_pm_domain.h>
Nishanth Menonea47eed2018-06-26 11:26:13 -050013
14/ {
15 model = "Texas Instruments K3 AM654 SoC";
16 compatible = "ti,am654";
17 interrupt-parent = <&gic500>;
18 #address-cells = <2>;
19 #size-cells = <2>;
20
Nishanth Menon4201af22018-09-05 11:20:22 -050021 aliases {
22 serial0 = &wkup_uart0;
23 serial1 = &mcu_uart0;
24 serial2 = &main_uart0;
25 serial3 = &main_uart1;
26 serial4 = &main_uart2;
Vignesh R19a17682018-11-13 11:31:11 +053027 i2c0 = &wkup_i2c0;
28 i2c1 = &mcu_i2c0;
29 i2c2 = &main_i2c0;
30 i2c3 = &main_i2c1;
31 i2c4 = &main_i2c2;
32 i2c5 = &main_i2c3;
Grygorii Strashkoba86a6e2020-03-24 00:52:50 +020033 ethernet0 = &cpsw_port1;
Nishanth Menon4201af22018-09-05 11:20:22 -050034 };
35
Nishanth Menonea47eed2018-06-26 11:26:13 -050036 chosen { };
37
38 firmware {
39 optee {
40 compatible = "linaro,optee-tz";
41 method = "smc";
42 };
43
44 psci: psci {
45 compatible = "arm,psci-1.0";
46 method = "smc";
47 };
48 };
49
50 a53_timer0: timer-cl0-cpu0 {
51 compatible = "arm,armv8-timer";
52 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* cntpsirq */
53 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* cntpnsirq */
54 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* cntvirq */
55 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* cnthpirq */
56 };
57
58 pmu: pmu {
59 compatible = "arm,armv8-pmuv3";
60 /* Recommendation from GIC500 TRM Table A.3 */
61 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
62 };
63
64 cbass_main: interconnect@100000 {
65 compatible = "simple-bus";
Kishon Vijay Abraham I3bc15722018-09-05 16:47:38 +053066 #address-cells = <2>;
67 #size-cells = <2>;
68 ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */
69 <0x00 0x00600000 0x00 0x00600000 0x00 0x00001100>, /* GPIO */
70 <0x00 0x00900000 0x00 0x00900000 0x00 0x00012000>, /* serdes */
71 <0x00 0x01000000 0x00 0x01000000 0x00 0x0af02400>, /* Most peripherals */
72 <0x00 0x30800000 0x00 0x30800000 0x00 0x0bc00000>, /* MAIN NAVSS */
Roger Quadroscc2d13e2019-05-29 16:13:44 -050073 <0x00 0x70000000 0x00 0x70000000 0x00 0x00200000>, /* MSMC SRAM */
Kishon Vijay Abraham Icfa64372019-05-29 14:48:10 +053074 <0x00 0x10000000 0x00 0x10000000 0x00 0x10000000>, /* PCIe DAT */
Nishanth Menonea47eed2018-06-26 11:26:13 -050075 /* MCUSS Range */
Kishon Vijay Abraham I3bc15722018-09-05 16:47:38 +053076 <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>,
77 <0x00 0x40200000 0x00 0x40200000 0x00 0x00900100>,
Grygorii Strashkof2965b92019-12-16 21:39:33 +020078 <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */
Suman Anna83312332019-06-05 11:34:34 -050079 <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>,
80 <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>,
Suman Anna0ded5412019-06-05 11:34:31 -050081 <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>,
Kishon Vijay Abraham I3bc15722018-09-05 16:47:38 +053082 <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>,
83 <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>,
84 <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>,
Vignesh Raghavendra07481772019-12-11 22:34:13 +053085 <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>,
86 <0x00 0x50000000 0x00 0x50000000 0x00 0x8000000>,
87 <0x00 0x70000000 0x00 0x70000000 0x00 0x200000>,
88 <0x05 0x00000000 0x05 0x00000000 0x01 0x0000000>,
89 <0x07 0x00000000 0x07 0x00000000 0x01 0x0000000>;
Nishanth Menonea47eed2018-06-26 11:26:13 -050090
91 cbass_mcu: interconnect@28380000 {
92 compatible = "simple-bus";
Kishon Vijay Abraham I3bc15722018-09-05 16:47:38 +053093 #address-cells = <2>;
94 #size-cells = <2>;
95 ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/
96 <0x00 0x40200000 0x00 0x40200000 0x00 0x00900100>, /* First peripheral window */
Grygorii Strashkof2965b92019-12-16 21:39:33 +020097 <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */
Suman Anna83312332019-06-05 11:34:34 -050098 <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */
99 <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */
Suman Anna0ded5412019-06-05 11:34:31 -0500100 <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>, /* MCU SRAM */
Kishon Vijay Abraham I3bc15722018-09-05 16:47:38 +0530101 <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP */
102 <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, /* MMRs, remaining NAVSS */
103 <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, /* CPSW */
Vignesh Raghavendra07481772019-12-11 22:34:13 +0530104 <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, /* OSPI space 1 */
105 <0x00 0x50000000 0x00 0x50000000 0x00 0x8000000>, /* FSS OSPI0 data region 1 */
106 <0x05 0x00000000 0x05 0x00000000 0x01 0x0000000>, /* FSS OSPI0 data region 3*/
107 <0x07 0x00000000 0x07 0x00000000 0x01 0x0000000>; /* FSS OSPI1 data region 3*/
Nishanth Menonea47eed2018-06-26 11:26:13 -0500108
109 cbass_wakeup: interconnect@42040000 {
110 compatible = "simple-bus";
111 #address-cells = <1>;
112 #size-cells = <1>;
113 /* WKUP Basic peripherals */
Kishon Vijay Abraham I3bc15722018-09-05 16:47:38 +0530114 ranges = <0x42040000 0x00 0x42040000 0x03ac2400>;
Nishanth Menonea47eed2018-06-26 11:26:13 -0500115 };
116 };
117 };
118};
119
120/* Now include the peripherals for each bus segments */
121#include "k3-am65-main.dtsi"
Nishanth Menon4201af22018-09-05 11:20:22 -0500122#include "k3-am65-mcu.dtsi"
123#include "k3-am65-wakeup.dtsi"