1ea47eed3SNishanth Menon// SPDX-License-Identifier: GPL-2.0
2ea47eed3SNishanth Menon/*
3ea47eed3SNishanth Menon * Device Tree Source for AM6 SoC Family
4ea47eed3SNishanth Menon *
5303d6f62SAlexander A. Klimov * Copyright (C) 2016-2018 Texas Instruments Incorporated - https://www.ti.com/
6ea47eed3SNishanth Menon */
7ea47eed3SNishanth Menon
8ea47eed3SNishanth Menon#include <dt-bindings/gpio/gpio.h>
9ea47eed3SNishanth Menon#include <dt-bindings/interrupt-controller/irq.h>
10ea47eed3SNishanth Menon#include <dt-bindings/interrupt-controller/arm-gic.h>
11c68272cbSLokesh Vutla#include <dt-bindings/soc/ti,sci_pm_domain.h>
12ea47eed3SNishanth Menon
13*fe49f2d7SNishanth Menon#include "k3-pinctrl.h"
14*fe49f2d7SNishanth Menon
15ea47eed3SNishanth Menon/ {
16ea47eed3SNishanth Menon	model = "Texas Instruments K3 AM654 SoC";
17ea47eed3SNishanth Menon	compatible = "ti,am654";
18ea47eed3SNishanth Menon	interrupt-parent = <&gic500>;
19ea47eed3SNishanth Menon	#address-cells = <2>;
20ea47eed3SNishanth Menon	#size-cells = <2>;
21ea47eed3SNishanth Menon
22ea47eed3SNishanth Menon	chosen { };
23ea47eed3SNishanth Menon
24ea47eed3SNishanth Menon	firmware {
25ea47eed3SNishanth Menon		optee {
26ea47eed3SNishanth Menon			compatible = "linaro,optee-tz";
27ea47eed3SNishanth Menon			method = "smc";
28ea47eed3SNishanth Menon		};
29ea47eed3SNishanth Menon
30ea47eed3SNishanth Menon		psci: psci {
31ea47eed3SNishanth Menon			compatible = "arm,psci-1.0";
32ea47eed3SNishanth Menon			method = "smc";
33ea47eed3SNishanth Menon		};
34ea47eed3SNishanth Menon	};
35ea47eed3SNishanth Menon
36ea47eed3SNishanth Menon	a53_timer0: timer-cl0-cpu0 {
37ea47eed3SNishanth Menon		compatible = "arm,armv8-timer";
38ea47eed3SNishanth Menon		interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* cntpsirq */
39ea47eed3SNishanth Menon			     <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* cntpnsirq */
40ea47eed3SNishanth Menon			     <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* cntvirq */
41ea47eed3SNishanth Menon			     <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* cnthpirq */
42ea47eed3SNishanth Menon	};
43ea47eed3SNishanth Menon
44ea47eed3SNishanth Menon	pmu: pmu {
45ae10ce93SNishanth Menon		compatible = "arm,cortex-a53-pmu";
46ea47eed3SNishanth Menon		/* Recommendation from GIC500 TRM Table A.3 */
47ea47eed3SNishanth Menon		interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
48ea47eed3SNishanth Menon	};
49ea47eed3SNishanth Menon
5093b72bfaSSuman Anna	cbass_main: bus@100000 {
51ea47eed3SNishanth Menon		compatible = "simple-bus";
523bc15720SKishon Vijay Abraham I		#address-cells = <2>;
533bc15720SKishon Vijay Abraham I		#size-cells = <2>;
543bc15720SKishon Vijay Abraham I		ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */
553bc15720SKishon Vijay Abraham I			 <0x00 0x00600000 0x00 0x00600000 0x00 0x00001100>, /* GPIO */
563bc15720SKishon Vijay Abraham I			 <0x00 0x00900000 0x00 0x00900000 0x00 0x00012000>, /* serdes */
573bc15720SKishon Vijay Abraham I			 <0x00 0x01000000 0x00 0x01000000 0x00 0x0af02400>, /* Most peripherals */
583bc15720SKishon Vijay Abraham I			 <0x00 0x30800000 0x00 0x30800000 0x00 0x0bc00000>, /* MAIN NAVSS */
59cc2d13e7SRoger Quadros			 <0x00 0x70000000 0x00 0x70000000 0x00 0x00200000>, /* MSMC SRAM */
60cfa6437aSKishon Vijay Abraham I			 <0x00 0x10000000 0x00 0x10000000 0x00 0x10000000>, /* PCIe DAT */
61ea47eed3SNishanth Menon			 /* MCUSS Range */
623bc15720SKishon Vijay Abraham I			 <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>,
633bc15720SKishon Vijay Abraham I			 <0x00 0x40200000 0x00 0x40200000 0x00 0x00900100>,
64f2965b99SGrygorii Strashko			 <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */
6583312338SSuman Anna			 <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>,
6683312338SSuman Anna			 <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>,
670ded5412SSuman Anna			 <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>,
683bc15720SKishon Vijay Abraham I			 <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>,
693bc15720SKishon Vijay Abraham I			 <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>,
703bc15720SKishon Vijay Abraham I			 <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>,
7107481770SVignesh Raghavendra			 <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>,
7207481770SVignesh Raghavendra			 <0x00 0x50000000 0x00 0x50000000 0x00 0x8000000>,
738cae268bSNishanth Menon			 <0x00 0x6f000000 0x00 0x6f000000 0x00 0x00310000>, /* A53 PERIPHBASE */
7407481770SVignesh Raghavendra			 <0x00 0x70000000 0x00 0x70000000 0x00 0x200000>,
7507481770SVignesh Raghavendra			 <0x05 0x00000000 0x05 0x00000000 0x01 0x0000000>,
7607481770SVignesh Raghavendra			 <0x07 0x00000000 0x07 0x00000000 0x01 0x0000000>;
77ea47eed3SNishanth Menon
7893b72bfaSSuman Anna		cbass_mcu: bus@28380000 {
79ea47eed3SNishanth Menon			compatible = "simple-bus";
803bc15720SKishon Vijay Abraham I			#address-cells = <2>;
813bc15720SKishon Vijay Abraham I			#size-cells = <2>;
823bc15720SKishon Vijay Abraham I			ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/
833bc15720SKishon Vijay Abraham I				 <0x00 0x40200000 0x00 0x40200000 0x00 0x00900100>, /* First peripheral window */
84f2965b99SGrygorii Strashko				 <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */
8583312338SSuman Anna				 <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */
8683312338SSuman Anna				 <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */
870ded5412SSuman Anna				 <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>, /* MCU SRAM */
883bc15720SKishon Vijay Abraham I				 <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP */
893bc15720SKishon Vijay Abraham I				 <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, /* MMRs, remaining NAVSS */
903bc15720SKishon Vijay Abraham I				 <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, /* CPSW */
9107481770SVignesh Raghavendra				 <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, /* OSPI space 1 */
9207481770SVignesh Raghavendra				 <0x00 0x50000000 0x00 0x50000000 0x00 0x8000000>, /*  FSS OSPI0 data region 1 */
9307481770SVignesh Raghavendra				 <0x05 0x00000000 0x05 0x00000000 0x01 0x0000000>, /* FSS OSPI0 data region 3*/
9407481770SVignesh Raghavendra				 <0x07 0x00000000 0x07 0x00000000 0x01 0x0000000>; /* FSS OSPI1 data region 3*/
95ea47eed3SNishanth Menon
9693b72bfaSSuman Anna			cbass_wakeup: bus@42040000 {
97ea47eed3SNishanth Menon				compatible = "simple-bus";
98ea47eed3SNishanth Menon				#address-cells = <1>;
99ea47eed3SNishanth Menon				#size-cells = <1>;
100ea47eed3SNishanth Menon				/* WKUP  Basic peripherals */
1013bc15720SKishon Vijay Abraham I				ranges = <0x42040000 0x00 0x42040000 0x03ac2400>;
102ea47eed3SNishanth Menon			};
103ea47eed3SNishanth Menon		};
104ea47eed3SNishanth Menon	};
105ea47eed3SNishanth Menon};
106ea47eed3SNishanth Menon
107ea47eed3SNishanth Menon/* Now include the peripherals for each bus segments */
108ea47eed3SNishanth Menon#include "k3-am65-main.dtsi"
1094201af25SNishanth Menon#include "k3-am65-mcu.dtsi"
1104201af25SNishanth Menon#include "k3-am65-wakeup.dtsi"
111