162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Device Tree Source for AM642 SoC Family
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#include <dt-bindings/gpio/gpio.h>
962306a36Sopenharmony_ci#include <dt-bindings/interrupt-controller/irq.h>
1062306a36Sopenharmony_ci#include <dt-bindings/interrupt-controller/arm-gic.h>
1162306a36Sopenharmony_ci#include <dt-bindings/soc/ti,sci_pm_domain.h>
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#include "k3-pinctrl.h"
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci/ {
1662306a36Sopenharmony_ci	model = "Texas Instruments K3 AM642 SoC";
1762306a36Sopenharmony_ci	compatible = "ti,am642";
1862306a36Sopenharmony_ci	interrupt-parent = <&gic500>;
1962306a36Sopenharmony_ci	#address-cells = <2>;
2062306a36Sopenharmony_ci	#size-cells = <2>;
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci	chosen { };
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci	firmware {
2562306a36Sopenharmony_ci		optee {
2662306a36Sopenharmony_ci			compatible = "linaro,optee-tz";
2762306a36Sopenharmony_ci			method = "smc";
2862306a36Sopenharmony_ci		};
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci		psci: psci {
3162306a36Sopenharmony_ci			compatible = "arm,psci-1.0";
3262306a36Sopenharmony_ci			method = "smc";
3362306a36Sopenharmony_ci		};
3462306a36Sopenharmony_ci	};
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci	a53_timer0: timer-cl0-cpu0 {
3762306a36Sopenharmony_ci		compatible = "arm,armv8-timer";
3862306a36Sopenharmony_ci		interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* cntpsirq */
3962306a36Sopenharmony_ci			     <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* cntpnsirq */
4062306a36Sopenharmony_ci			     <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* cntvirq */
4162306a36Sopenharmony_ci			     <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* cnthpirq */
4262306a36Sopenharmony_ci	};
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ci	pmu: pmu {
4562306a36Sopenharmony_ci		compatible = "arm,cortex-a53-pmu";
4662306a36Sopenharmony_ci		interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
4762306a36Sopenharmony_ci	};
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ci	cbass_main: bus@f4000 {
5062306a36Sopenharmony_ci		compatible = "simple-bus";
5162306a36Sopenharmony_ci		#address-cells = <2>;
5262306a36Sopenharmony_ci		#size-cells = <2>;
5362306a36Sopenharmony_ci		ranges = <0x00 0x000f4000 0x00 0x000f4000 0x00 0x000002d0>, /* PINCTRL */
5462306a36Sopenharmony_ci			 <0x00 0x00420000 0x00 0x00420000 0x00 0x00001000>, /* ESM0 */
5562306a36Sopenharmony_ci			 <0x00 0x00600000 0x00 0x00600000 0x00 0x00001100>, /* GPIO */
5662306a36Sopenharmony_ci			 <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* Timesync router */
5762306a36Sopenharmony_ci			 <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, /* VTM */
5862306a36Sopenharmony_ci			 <0x00 0x01000000 0x00 0x01000000 0x00 0x02330400>, /* First peripheral window */
5962306a36Sopenharmony_ci			 <0x00 0x08000000 0x00 0x08000000 0x00 0x00200000>, /* Main CPSW */
6062306a36Sopenharmony_ci			 <0x00 0x0d000000 0x00 0x0d000000 0x00 0x00800000>, /* PCIE_CORE */
6162306a36Sopenharmony_ci			 <0x00 0x0e000000 0x00 0x0e000000 0x00 0x00000100>, /* Main RTI0 */
6262306a36Sopenharmony_ci			 <0x00 0x0e010000 0x00 0x0e010000 0x00 0x00000100>, /* Main RTI1 */
6362306a36Sopenharmony_ci			 <0x00 0x0f000000 0x00 0x0f000000 0x00 0x00c44200>, /* Second peripheral window */
6462306a36Sopenharmony_ci			 <0x00 0x20000000 0x00 0x20000000 0x00 0x0a008000>, /* Third peripheral window */
6562306a36Sopenharmony_ci			 <0x00 0x30000000 0x00 0x30000000 0x00 0x000bc100>, /* ICSSG0/1 */
6662306a36Sopenharmony_ci			 <0x00 0x37000000 0x00 0x37000000 0x00 0x00040000>, /* TIMERMGR0 TIMERS */
6762306a36Sopenharmony_ci			 <0x00 0x39000000 0x00 0x39000000 0x00 0x00000400>, /* CPTS0 */
6862306a36Sopenharmony_ci			 <0x00 0x3b000000 0x00 0x3b000000 0x00 0x00000400>, /* GPMC0_CFG */
6962306a36Sopenharmony_ci			 <0x00 0x3cd00000 0x00 0x3cd00000 0x00 0x00000200>, /* TIMERMGR0_CONFIG */
7062306a36Sopenharmony_ci			 <0x00 0x3f004000 0x00 0x3f004000 0x00 0x00000400>, /* GICSS0_REGS */
7162306a36Sopenharmony_ci			 <0x00 0x40900000 0x00 0x40900000 0x00 0x00030000>, /* SA2_UL0 */
7262306a36Sopenharmony_ci			 <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, /* CTRL_MMR0 */
7362306a36Sopenharmony_ci			 <0x00 0x44043000 0x00 0x44043000 0x00 0x00000fe0>, /* TI SCI DEBUG */
7462306a36Sopenharmony_ci			 <0x00 0x48000000 0x00 0x48000000 0x00 0x06400000>, /* DMASS */
7562306a36Sopenharmony_ci			 <0x00 0x50000000 0x00 0x50000000 0x00 0x08000000>, /* GPMC0 DATA */
7662306a36Sopenharmony_ci			 <0x00 0x60000000 0x00 0x60000000 0x00 0x08000000>, /* FSS0 DAT1 */
7762306a36Sopenharmony_ci			 <0x00 0x68000000 0x00 0x68000000 0x00 0x08000000>, /* PCIe DAT0 */
7862306a36Sopenharmony_ci			 <0x00 0x70000000 0x00 0x70000000 0x00 0x00200000>, /* OC SRAM */
7962306a36Sopenharmony_ci			 <0x00 0x78000000 0x00 0x78000000 0x00 0x00800000>, /* Main R5FSS */
8062306a36Sopenharmony_ci			 <0x01 0x00000000 0x01 0x00000000 0x00 0x00310000>, /* A53 PERIPHBASE */
8162306a36Sopenharmony_ci			 <0x06 0x00000000 0x06 0x00000000 0x01 0x00000000>, /* PCIe DAT1 */
8262306a36Sopenharmony_ci			 <0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, /* FSS0 DAT3 */
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_ci			 /* MCU Domain Range */
8562306a36Sopenharmony_ci			 <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>;
8662306a36Sopenharmony_ci
8762306a36Sopenharmony_ci		cbass_mcu: bus@4000000 {
8862306a36Sopenharmony_ci			compatible = "simple-bus";
8962306a36Sopenharmony_ci			#address-cells = <2>;
9062306a36Sopenharmony_ci			#size-cells = <2>;
9162306a36Sopenharmony_ci			ranges = <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>; /* Peripheral window */
9262306a36Sopenharmony_ci		};
9362306a36Sopenharmony_ci	};
9462306a36Sopenharmony_ci
9562306a36Sopenharmony_ci	#include "k3-am64-thermal.dtsi"
9662306a36Sopenharmony_ci};
9762306a36Sopenharmony_ci
9862306a36Sopenharmony_ci/* Now include the peripherals for each bus segments */
9962306a36Sopenharmony_ci#include "k3-am64-main.dtsi"
10062306a36Sopenharmony_ci#include "k3-am64-mcu.dtsi"
101