1ea47eed3SNishanth Menon// SPDX-License-Identifier: GPL-2.0 2ea47eed3SNishanth Menon/* 3ea47eed3SNishanth Menon * Device Tree Source for AM6 SoC Family 4ea47eed3SNishanth Menon * 5ea47eed3SNishanth Menon * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://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> 111d79b437STero Kristo#include <dt-bindings/pinctrl/k3.h> 12ea47eed3SNishanth Menon 13ea47eed3SNishanth Menon/ { 14ea47eed3SNishanth Menon model = "Texas Instruments K3 AM654 SoC"; 15ea47eed3SNishanth Menon compatible = "ti,am654"; 16ea47eed3SNishanth Menon interrupt-parent = <&gic500>; 17ea47eed3SNishanth Menon #address-cells = <2>; 18ea47eed3SNishanth Menon #size-cells = <2>; 19ea47eed3SNishanth Menon 204201af25SNishanth Menon aliases { 214201af25SNishanth Menon serial0 = &wkup_uart0; 224201af25SNishanth Menon serial1 = &mcu_uart0; 234201af25SNishanth Menon serial2 = &main_uart0; 244201af25SNishanth Menon serial3 = &main_uart1; 254201af25SNishanth Menon serial4 = &main_uart2; 2619a1768fSVignesh R i2c0 = &wkup_i2c0; 2719a1768fSVignesh R i2c1 = &mcu_i2c0; 2819a1768fSVignesh R i2c2 = &main_i2c0; 2919a1768fSVignesh R i2c3 = &main_i2c1; 3019a1768fSVignesh R i2c4 = &main_i2c2; 3119a1768fSVignesh R i2c5 = &main_i2c3; 324201af25SNishanth Menon }; 334201af25SNishanth Menon 34ea47eed3SNishanth Menon chosen { }; 35ea47eed3SNishanth Menon 36ea47eed3SNishanth Menon firmware { 37ea47eed3SNishanth Menon optee { 38ea47eed3SNishanth Menon compatible = "linaro,optee-tz"; 39ea47eed3SNishanth Menon method = "smc"; 40ea47eed3SNishanth Menon }; 41ea47eed3SNishanth Menon 42ea47eed3SNishanth Menon psci: psci { 43ea47eed3SNishanth Menon compatible = "arm,psci-1.0"; 44ea47eed3SNishanth Menon method = "smc"; 45ea47eed3SNishanth Menon }; 46ea47eed3SNishanth Menon }; 47ea47eed3SNishanth Menon 48ea47eed3SNishanth Menon a53_timer0: timer-cl0-cpu0 { 49ea47eed3SNishanth Menon compatible = "arm,armv8-timer"; 50ea47eed3SNishanth Menon interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* cntpsirq */ 51ea47eed3SNishanth Menon <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* cntpnsirq */ 52ea47eed3SNishanth Menon <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* cntvirq */ 53ea47eed3SNishanth Menon <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* cnthpirq */ 54ea47eed3SNishanth Menon }; 55ea47eed3SNishanth Menon 56ea47eed3SNishanth Menon pmu: pmu { 57ea47eed3SNishanth Menon compatible = "arm,armv8-pmuv3"; 58ea47eed3SNishanth Menon /* Recommendation from GIC500 TRM Table A.3 */ 59ea47eed3SNishanth Menon interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; 60ea47eed3SNishanth Menon }; 61ea47eed3SNishanth Menon 62ea47eed3SNishanth Menon cbass_main: interconnect@100000 { 63ea47eed3SNishanth Menon compatible = "simple-bus"; 643bc15720SKishon Vijay Abraham I #address-cells = <2>; 653bc15720SKishon Vijay Abraham I #size-cells = <2>; 663bc15720SKishon Vijay Abraham I ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ 673bc15720SKishon Vijay Abraham I <0x00 0x00600000 0x00 0x00600000 0x00 0x00001100>, /* GPIO */ 683bc15720SKishon Vijay Abraham I <0x00 0x00900000 0x00 0x00900000 0x00 0x00012000>, /* serdes */ 693bc15720SKishon Vijay Abraham I <0x00 0x01000000 0x00 0x01000000 0x00 0x0af02400>, /* Most peripherals */ 703bc15720SKishon Vijay Abraham I <0x00 0x30800000 0x00 0x30800000 0x00 0x0bc00000>, /* MAIN NAVSS */ 71cc2d13e7SRoger Quadros <0x00 0x70000000 0x00 0x70000000 0x00 0x00200000>, /* MSMC SRAM */ 72ea47eed3SNishanth Menon /* MCUSS Range */ 733bc15720SKishon Vijay Abraham I <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, 743bc15720SKishon Vijay Abraham I <0x00 0x40200000 0x00 0x40200000 0x00 0x00900100>, 7583312338SSuman Anna <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, 7683312338SSuman Anna <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, 770ded5412SSuman Anna <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>, 783bc15720SKishon Vijay Abraham I <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, 793bc15720SKishon Vijay Abraham I <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, 803bc15720SKishon Vijay Abraham I <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, 813bc15720SKishon Vijay Abraham I <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>; 82ea47eed3SNishanth Menon 83ea47eed3SNishanth Menon cbass_mcu: interconnect@28380000 { 84ea47eed3SNishanth Menon compatible = "simple-bus"; 853bc15720SKishon Vijay Abraham I #address-cells = <2>; 863bc15720SKishon Vijay Abraham I #size-cells = <2>; 873bc15720SKishon Vijay Abraham I ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/ 883bc15720SKishon Vijay Abraham I <0x00 0x40200000 0x00 0x40200000 0x00 0x00900100>, /* First peripheral window */ 8983312338SSuman Anna <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */ 9083312338SSuman Anna <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */ 910ded5412SSuman Anna <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>, /* MCU SRAM */ 923bc15720SKishon Vijay Abraham I <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP */ 933bc15720SKishon Vijay Abraham I <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, /* MMRs, remaining NAVSS */ 943bc15720SKishon Vijay Abraham I <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, /* CPSW */ 953bc15720SKishon Vijay Abraham I <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>; /* OSPI space 1 */ 96ea47eed3SNishanth Menon 97ea47eed3SNishanth Menon cbass_wakeup: interconnect@42040000 { 98ea47eed3SNishanth Menon compatible = "simple-bus"; 99ea47eed3SNishanth Menon #address-cells = <1>; 100ea47eed3SNishanth Menon #size-cells = <1>; 101ea47eed3SNishanth Menon /* WKUP Basic peripherals */ 1023bc15720SKishon Vijay Abraham I ranges = <0x42040000 0x00 0x42040000 0x03ac2400>; 103ea47eed3SNishanth Menon }; 104ea47eed3SNishanth Menon }; 105ea47eed3SNishanth Menon }; 106ea47eed3SNishanth Menon}; 107ea47eed3SNishanth Menon 108ea47eed3SNishanth Menon/* Now include the peripherals for each bus segments */ 109ea47eed3SNishanth Menon#include "k3-am65-main.dtsi" 1104201af25SNishanth Menon#include "k3-am65-mcu.dtsi" 1114201af25SNishanth Menon#include "k3-am65-wakeup.dtsi" 112