| 1 |
// SPDX-License-Identifier: GPL-2.0-only OR MIT |
| 2 |
/* |
| 3 |
* Device Tree Source for AM62A SoC Family |
| 4 |
* |
| 5 |
* Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/ |
| 6 |
*/ |
| 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> |
| 11 |
#include <dt-bindings/soc/ti,sci_pm_domain.h> |
| 12 |
|
| 13 |
#include "k3-pinctrl.h" |
| 14 |
|
| 15 |
/ { |
| 16 |
model = "Texas Instruments K3 AM62A SoC"; |
| 17 |
compatible = "ti,am62a7"; |
| 18 |
interrupt-parent = <&gic500>; |
| 19 |
#address-cells = <2>; |
| 20 |
#size-cells = <2>; |
| 21 |
|
| 22 |
chosen { }; |
| 23 |
|
| 24 |
firmware { |
| 25 |
optee { |
| 26 |
compatible = "linaro,optee-tz"; |
| 27 |
method = "smc"; |
| 28 |
}; |
| 29 |
|
| 30 |
psci: psci { |
| 31 |
compatible = "arm,psci-1.0"; |
| 32 |
method = "smc"; |
| 33 |
}; |
| 34 |
}; |
| 35 |
|
| 36 |
a53_timer0: timer-cl0-cpu0 { |
| 37 |
compatible = "arm,armv8-timer"; |
| 38 |
interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* cntpsirq */ |
| 39 |
<GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* cntpnsirq */ |
| 40 |
<GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* cntvirq */ |
| 41 |
<GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* cnthpirq */ |
| 42 |
}; |
| 43 |
|
| 44 |
pmu: pmu { |
| 45 |
compatible = "arm,cortex-a53-pmu"; |
| 46 |
interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; |
| 47 |
}; |
| 48 |
|
| 49 |
system-idle-states { |
| 50 |
system_partial_io: system-partial-io { |
| 51 |
compatible = "system-idle-state"; |
| 52 |
idle-state-name = "off-wake"; |
| 53 |
}; |
| 54 |
|
| 55 |
system_io_ddr: system-io-ddr { |
| 56 |
compatible = "system-idle-state"; |
| 57 |
idle-state-name = "mem-deep"; |
| 58 |
}; |
| 59 |
|
| 60 |
system_deep_sleep: system-deep-sleep { |
| 61 |
compatible = "system-idle-state"; |
| 62 |
idle-state-name = "mem"; |
| 63 |
}; |
| 64 |
|
| 65 |
system_mcu_only: system-mcu-only { |
| 66 |
compatible = "system-idle-state"; |
| 67 |
idle-state-name = "mem-mcu-active"; |
| 68 |
}; |
| 69 |
|
| 70 |
system_standby: system-standby { |
| 71 |
compatible = "system-idle-state"; |
| 72 |
idle-state-name = "standby"; |
| 73 |
}; |
| 74 |
}; |
| 75 |
|
| 76 |
cbass_main: bus@f0000 { |
| 77 |
compatible = "simple-bus"; |
| 78 |
#address-cells = <2>; |
| 79 |
#size-cells = <2>; |
| 80 |
|
| 81 |
ranges = <0x00 0x000f0000 0x00 0x000f0000 0x00 0x00030000>, /* Main MMRs */ |
| 82 |
<0x00 0x00420000 0x00 0x00420000 0x00 0x00001000>, /* ESM0 */ |
| 83 |
<0x00 0x00600000 0x00 0x00600000 0x00 0x00001100>, /* GPIO */ |
| 84 |
<0x00 0x00703000 0x00 0x00703000 0x00 0x00000200>, /* USB0 debug trace */ |
| 85 |
<0x00 0x0070c000 0x00 0x0070c000 0x00 0x00000200>, /* USB1 debug trace */ |
| 86 |
<0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* Timesync router */ |
| 87 |
<0x00 0x01000000 0x00 0x01000000 0x00 0x01b28400>, /* First peripheral window */ |
| 88 |
<0x00 0x08000000 0x00 0x08000000 0x00 0x00200000>, /* Main CPSW */ |
| 89 |
<0x00 0x0e000000 0x00 0x0e000000 0x00 0x01d20000>, /* Second peripheral window */ |
| 90 |
<0x00 0x0fd00000 0x00 0x0fd00000 0x00 0x00020000>, /* GPU */ |
| 91 |
<0x00 0x0fd20000 0x00 0x0fd20000 0x00 0x00000100>, /* JPEGENC0_CORE */ |
| 92 |
<0x00 0x0fd20200 0x00 0x0fd20200 0x00 0x00000200>, /* JPEGENC0_CORE_MMU */ |
| 93 |
<0x00 0x20000000 0x00 0x20000000 0x00 0x0a008000>, /* Third peripheral window */ |
| 94 |
<0x00 0x30040000 0x00 0x30040000 0x00 0x00080000>, /* PRUSS-M */ |
| 95 |
<0x00 0x30101000 0x00 0x30101000 0x00 0x00010100>, /* CSI window */ |
| 96 |
<0x00 0x30200000 0x00 0x30200000 0x00 0x00010000>, /* DSS */ |
| 97 |
<0x00 0x30210000 0x00 0x30210000 0x00 0x00010000>, /* VPU */ |
| 98 |
<0x00 0x31000000 0x00 0x31000000 0x00 0x00050000>, /* USB0 DWC3 Core window */ |
| 99 |
<0x00 0x31100000 0x00 0x31100000 0x00 0x00050000>, /* USB1 DWC3 Core window */ |
| 100 |
<0x00 0x40900000 0x00 0x40900000 0x00 0x00030000>, /* SA3UL */ |
| 101 |
<0x00 0x43600000 0x00 0x43600000 0x00 0x00010000>, /* SA3 sproxy data */ |
| 102 |
<0x00 0x44043000 0x00 0x44043000 0x00 0x00000fe0>, /* TI SCI DEBUG */ |
| 103 |
<0x00 0x44860000 0x00 0x44860000 0x00 0x00040000>, /* SA3 sproxy config */ |
| 104 |
<0x00 0x48000000 0x00 0x48000000 0x00 0x06400000>, /* DMSS */ |
| 105 |
<0x00 0x60000000 0x00 0x60000000 0x00 0x08000000>, /* FSS0 DAT1 */ |
| 106 |
<0x00 0x70000000 0x00 0x70000000 0x00 0x00010000>, /* OCSRAM */ |
| 107 |
<0x00 0x7e000000 0x00 0x7e000000 0x00 0x00100000>, /* C7x_0 */ |
| 108 |
<0x01 0x00000000 0x01 0x00000000 0x00 0x00310000>, /* A53 PERIPHBASE */ |
| 109 |
<0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, /* FSS0 DAT3 */ |
| 110 |
|
| 111 |
/* MCU Domain Range */ |
| 112 |
<0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>, |
| 113 |
<0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, /* MCU R5 ATCM */ |
| 114 |
<0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, /* MCU R5 BTCM */ |
| 115 |
<0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, /* MCU R5 IRAM0 */ |
| 116 |
<0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>, /* MCU R5 IRAM1 */ |
| 117 |
|
| 118 |
/* Wakeup Domain Range */ |
| 119 |
<0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, |
| 120 |
<0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, |
| 121 |
<0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, |
| 122 |
<0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, /* DM R5 ATCM */ |
| 123 |
<0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; /* DM R5 BTCM */ |
| 124 |
|
| 125 |
cbass_mcu: bus@4000000 { |
| 126 |
compatible = "simple-bus"; |
| 127 |
#address-cells = <2>; |
| 128 |
#size-cells = <2>; |
| 129 |
ranges = <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>, /* Peripheral window */ |
| 130 |
<0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, /* MCU R5 ATCM */ |
| 131 |
<0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, /* MCU R5 BTCM */ |
| 132 |
<0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, /* MCU IRAM0 */ |
| 133 |
<0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>; /* MCU IRAM1 */ |
| 134 |
}; |
| 135 |
|
| 136 |
cbass_wakeup: bus@b00000 { |
| 137 |
compatible = "simple-bus"; |
| 138 |
#address-cells = <2>; |
| 139 |
#size-cells = <2>; |
| 140 |
ranges = <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, /* VTM */ |
| 141 |
<0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, /* Peripheral Window */ |
| 142 |
<0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, /* WKUP CTRL MMR */ |
| 143 |
<0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, /* DM R5 ATCM*/ |
| 144 |
<0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; /* DM R5 BTCM*/ |
| 145 |
}; |
| 146 |
}; |
| 147 |
|
| 148 |
#include "k3-am62a-thermal.dtsi" |
| 149 |
}; |
| 150 |
|
| 151 |
/* Now include the peripherals for each bus segments */ |
| 152 |
#include "k3-am62a-main.dtsi" |
| 153 |
#include "k3-am62a-mcu.dtsi" |
| 154 |
#include "k3-am62a-wakeup.dtsi" |