xref: /openbmc/linux/arch/arm64/boot/dts/ti/k3-am62a.dtsi (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
15fc6b1b6SVignesh Raghavendra// SPDX-License-Identifier: GPL-2.0
25fc6b1b6SVignesh Raghavendra/*
35fc6b1b6SVignesh Raghavendra * Device Tree Source for AM62A SoC Family
45fc6b1b6SVignesh Raghavendra *
55fc6b1b6SVignesh Raghavendra * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
65fc6b1b6SVignesh Raghavendra */
75fc6b1b6SVignesh Raghavendra
85fc6b1b6SVignesh Raghavendra#include <dt-bindings/gpio/gpio.h>
95fc6b1b6SVignesh Raghavendra#include <dt-bindings/interrupt-controller/irq.h>
105fc6b1b6SVignesh Raghavendra#include <dt-bindings/interrupt-controller/arm-gic.h>
115fc6b1b6SVignesh Raghavendra#include <dt-bindings/soc/ti,sci_pm_domain.h>
125fc6b1b6SVignesh Raghavendra
13*fe49f2d7SNishanth Menon#include "k3-pinctrl.h"
14*fe49f2d7SNishanth Menon
155fc6b1b6SVignesh Raghavendra/ {
165fc6b1b6SVignesh Raghavendra	model = "Texas Instruments K3 AM62A SoC";
175fc6b1b6SVignesh Raghavendra	compatible = "ti,am62a7";
185fc6b1b6SVignesh Raghavendra	interrupt-parent = <&gic500>;
195fc6b1b6SVignesh Raghavendra	#address-cells = <2>;
205fc6b1b6SVignesh Raghavendra	#size-cells = <2>;
215fc6b1b6SVignesh Raghavendra
225fc6b1b6SVignesh Raghavendra	chosen { };
235fc6b1b6SVignesh Raghavendra
245fc6b1b6SVignesh Raghavendra	firmware {
255fc6b1b6SVignesh Raghavendra		optee {
265fc6b1b6SVignesh Raghavendra			compatible = "linaro,optee-tz";
275fc6b1b6SVignesh Raghavendra			method = "smc";
285fc6b1b6SVignesh Raghavendra		};
295fc6b1b6SVignesh Raghavendra
305fc6b1b6SVignesh Raghavendra		psci: psci {
315fc6b1b6SVignesh Raghavendra			compatible = "arm,psci-1.0";
325fc6b1b6SVignesh Raghavendra			method = "smc";
335fc6b1b6SVignesh Raghavendra		};
345fc6b1b6SVignesh Raghavendra	};
355fc6b1b6SVignesh Raghavendra
365fc6b1b6SVignesh Raghavendra	a53_timer0: timer-cl0-cpu0 {
375fc6b1b6SVignesh Raghavendra		compatible = "arm,armv8-timer";
385fc6b1b6SVignesh Raghavendra		interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* cntpsirq */
395fc6b1b6SVignesh Raghavendra			     <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* cntpnsirq */
405fc6b1b6SVignesh Raghavendra			     <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* cntvirq */
415fc6b1b6SVignesh Raghavendra			     <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* cnthpirq */
425fc6b1b6SVignesh Raghavendra	};
435fc6b1b6SVignesh Raghavendra
445fc6b1b6SVignesh Raghavendra	pmu: pmu {
455fc6b1b6SVignesh Raghavendra		compatible = "arm,cortex-a53-pmu";
465fc6b1b6SVignesh Raghavendra		interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
475fc6b1b6SVignesh Raghavendra	};
485fc6b1b6SVignesh Raghavendra
495fc6b1b6SVignesh Raghavendra	cbass_main: bus@f0000 {
505fc6b1b6SVignesh Raghavendra		compatible = "simple-bus";
515fc6b1b6SVignesh Raghavendra		#address-cells = <2>;
525fc6b1b6SVignesh Raghavendra		#size-cells = <2>;
535fc6b1b6SVignesh Raghavendra
545fc6b1b6SVignesh Raghavendra		ranges = <0x00 0x000f0000 0x00 0x000f0000 0x00 0x00030000>, /* Main MMRs */
555fc6b1b6SVignesh Raghavendra			 <0x00 0x00420000 0x00 0x00420000 0x00 0x00001000>, /* ESM0 */
565fc6b1b6SVignesh Raghavendra			 <0x00 0x00600000 0x00 0x00600000 0x00 0x00001100>, /* GPIO */
575fc6b1b6SVignesh Raghavendra			 <0x00 0x00703000 0x00 0x00703000 0x00 0x00000200>, /* USB0 debug trace */
585fc6b1b6SVignesh Raghavendra			 <0x00 0x0070c000 0x00 0x0070c000 0x00 0x00000200>, /* USB1 debug trace */
595fc6b1b6SVignesh Raghavendra			 <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* Timesync router */
605fc6b1b6SVignesh Raghavendra			 <0x00 0x01000000 0x00 0x01000000 0x00 0x01b28400>, /* First peripheral window */
615fc6b1b6SVignesh Raghavendra			 <0x00 0x08000000 0x00 0x08000000 0x00 0x00200000>, /* Main CPSW */
625fc6b1b6SVignesh Raghavendra			 <0x00 0x0e000000 0x00 0x0e000000 0x00 0x01d20000>, /* Second peripheral window */
635fc6b1b6SVignesh Raghavendra			 <0x00 0x0fd00000 0x00 0x0fd00000 0x00 0x00020000>, /* GPU */
645fc6b1b6SVignesh Raghavendra			 <0x00 0x20000000 0x00 0x20000000 0x00 0x0a008000>, /* Third peripheral window */
655fc6b1b6SVignesh Raghavendra			 <0x00 0x30040000 0x00 0x30040000 0x00 0x00080000>, /* PRUSS-M */
665fc6b1b6SVignesh Raghavendra			 <0x00 0x30101000 0x00 0x30101000 0x00 0x00010100>, /* CSI window */
675fc6b1b6SVignesh Raghavendra			 <0x00 0x30200000 0x00 0x30200000 0x00 0x00010000>, /* DSS */
685fc6b1b6SVignesh Raghavendra			 <0x00 0x30210000 0x00 0x30210000 0x00 0x00010000>, /* VPU */
695fc6b1b6SVignesh Raghavendra			 <0x00 0x31000000 0x00 0x31000000 0x00 0x00050000>, /* USB0 DWC3 Core window */
705fc6b1b6SVignesh Raghavendra			 <0x00 0x31100000 0x00 0x31100000 0x00 0x00050000>, /* USB1 DWC3 Core window */
715fc6b1b6SVignesh Raghavendra			 <0x00 0x40900000 0x00 0x40900000 0x00 0x00030000>, /* SA3UL */
725fc6b1b6SVignesh Raghavendra			 <0x00 0x43600000 0x00 0x43600000 0x00 0x00010000>, /* SA3 sproxy data */
735fc6b1b6SVignesh Raghavendra			 <0x00 0x44043000 0x00 0x44043000 0x00 0x00000fe0>, /* TI SCI DEBUG */
745fc6b1b6SVignesh Raghavendra			 <0x00 0x44860000 0x00 0x44860000 0x00 0x00040000>, /* SA3 sproxy config */
755fc6b1b6SVignesh Raghavendra			 <0x00 0x48000000 0x00 0x48000000 0x00 0x06400000>, /* DMSS */
765fc6b1b6SVignesh Raghavendra			 <0x00 0x60000000 0x00 0x60000000 0x00 0x08000000>, /* FSS0 DAT1 */
775fc6b1b6SVignesh Raghavendra			 <0x00 0x70000000 0x00 0x70000000 0x00 0x00010000>, /* OCSRAM */
785fc6b1b6SVignesh Raghavendra			 <0x00 0x7e000000 0x00 0x7e000000 0x00 0x00100000>, /* C7x_0 */
795fc6b1b6SVignesh Raghavendra			 <0x01 0x00000000 0x01 0x00000000 0x00 0x00310000>, /* A53 PERIPHBASE */
805fc6b1b6SVignesh Raghavendra			 <0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, /* FSS0 DAT3 */
815fc6b1b6SVignesh Raghavendra
825fc6b1b6SVignesh Raghavendra			 /* MCU Domain Range */
835fc6b1b6SVignesh Raghavendra			 <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>,
845fc6b1b6SVignesh Raghavendra			 <0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, /* MCU R5 ATCM */
855fc6b1b6SVignesh Raghavendra			 <0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, /* MCU R5 BTCM */
865fc6b1b6SVignesh Raghavendra			 <0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, /* MCU R5 IRAM0 */
875fc6b1b6SVignesh Raghavendra			 <0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>, /* MCU R5 IRAM1 */
885fc6b1b6SVignesh Raghavendra
895fc6b1b6SVignesh Raghavendra			 /* Wakeup Domain Range */
905fc6b1b6SVignesh Raghavendra			 <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>,
915fc6b1b6SVignesh Raghavendra			 <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>,
925fc6b1b6SVignesh Raghavendra			 <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>,
935fc6b1b6SVignesh Raghavendra			 <0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, /* DM R5 ATCM */
945fc6b1b6SVignesh Raghavendra			 <0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; /* DM R5 BTCM */
955fc6b1b6SVignesh Raghavendra
965fc6b1b6SVignesh Raghavendra		cbass_mcu: bus@4000000 {
975fc6b1b6SVignesh Raghavendra			compatible = "simple-bus";
985fc6b1b6SVignesh Raghavendra			#address-cells = <2>;
995fc6b1b6SVignesh Raghavendra			#size-cells = <2>;
1005fc6b1b6SVignesh Raghavendra			ranges = <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>, /* Peripheral window */
1015fc6b1b6SVignesh Raghavendra				 <0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, /* MCU R5 ATCM */
1025fc6b1b6SVignesh Raghavendra				 <0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, /* MCU R5 BTCM */
1035fc6b1b6SVignesh Raghavendra				 <0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, /* MCU IRAM0 */
1045fc6b1b6SVignesh Raghavendra				 <0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>; /* MCU IRAM1 */
1055fc6b1b6SVignesh Raghavendra		};
1065fc6b1b6SVignesh Raghavendra
1075fc6b1b6SVignesh Raghavendra		cbass_wakeup: bus@b00000 {
1085fc6b1b6SVignesh Raghavendra			compatible = "simple-bus";
1095fc6b1b6SVignesh Raghavendra			#address-cells = <2>;
1105fc6b1b6SVignesh Raghavendra			#size-cells = <2>;
1115fc6b1b6SVignesh Raghavendra			ranges = <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, /* VTM */
1125fc6b1b6SVignesh Raghavendra				 <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, /* Peripheral Window */
1135fc6b1b6SVignesh Raghavendra				 <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, /* WKUP CTRL MMR */
1145fc6b1b6SVignesh Raghavendra				 <0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, /* DM R5 ATCM*/
1155fc6b1b6SVignesh Raghavendra				 <0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; /* DM R5 BTCM*/
1165fc6b1b6SVignesh Raghavendra		};
1175fc6b1b6SVignesh Raghavendra	};
1185fc6b1b6SVignesh Raghavendra
1195fc6b1b6SVignesh Raghavendra	#include "k3-am62a-thermal.dtsi"
1205fc6b1b6SVignesh Raghavendra};
1215fc6b1b6SVignesh Raghavendra
1225fc6b1b6SVignesh Raghavendra/* Now include the peripherals for each bus segments */
1235fc6b1b6SVignesh Raghavendra#include "k3-am62a-main.dtsi"
124#include "k3-am62a-mcu.dtsi"
125#include "k3-am62a-wakeup.dtsi"
126