1*4882a593Smuzhiyun// SPDX-License-Identifier: GPL-2.0 2*4882a593Smuzhiyun/* 3*4882a593Smuzhiyun * Device Tree Source for AM6 SoC Family 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright (C) 2016-2018 Texas Instruments Incorporated - https://www.ti.com/ 6*4882a593Smuzhiyun */ 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun#include <dt-bindings/gpio/gpio.h> 9*4882a593Smuzhiyun#include <dt-bindings/interrupt-controller/irq.h> 10*4882a593Smuzhiyun#include <dt-bindings/interrupt-controller/arm-gic.h> 11*4882a593Smuzhiyun#include <dt-bindings/pinctrl/k3.h> 12*4882a593Smuzhiyun#include <dt-bindings/soc/ti,sci_pm_domain.h> 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun/ { 15*4882a593Smuzhiyun model = "Texas Instruments K3 AM654 SoC"; 16*4882a593Smuzhiyun compatible = "ti,am654"; 17*4882a593Smuzhiyun interrupt-parent = <&gic500>; 18*4882a593Smuzhiyun #address-cells = <2>; 19*4882a593Smuzhiyun #size-cells = <2>; 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun aliases { 22*4882a593Smuzhiyun serial0 = &wkup_uart0; 23*4882a593Smuzhiyun serial1 = &mcu_uart0; 24*4882a593Smuzhiyun serial2 = &main_uart0; 25*4882a593Smuzhiyun serial3 = &main_uart1; 26*4882a593Smuzhiyun serial4 = &main_uart2; 27*4882a593Smuzhiyun i2c0 = &wkup_i2c0; 28*4882a593Smuzhiyun i2c1 = &mcu_i2c0; 29*4882a593Smuzhiyun i2c2 = &main_i2c0; 30*4882a593Smuzhiyun i2c3 = &main_i2c1; 31*4882a593Smuzhiyun i2c4 = &main_i2c2; 32*4882a593Smuzhiyun i2c5 = &main_i2c3; 33*4882a593Smuzhiyun ethernet0 = &cpsw_port1; 34*4882a593Smuzhiyun }; 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun chosen { }; 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun firmware { 39*4882a593Smuzhiyun optee { 40*4882a593Smuzhiyun compatible = "linaro,optee-tz"; 41*4882a593Smuzhiyun method = "smc"; 42*4882a593Smuzhiyun }; 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun psci: psci { 45*4882a593Smuzhiyun compatible = "arm,psci-1.0"; 46*4882a593Smuzhiyun method = "smc"; 47*4882a593Smuzhiyun }; 48*4882a593Smuzhiyun }; 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun a53_timer0: timer-cl0-cpu0 { 51*4882a593Smuzhiyun compatible = "arm,armv8-timer"; 52*4882a593Smuzhiyun interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* cntpsirq */ 53*4882a593Smuzhiyun <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* cntpnsirq */ 54*4882a593Smuzhiyun <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* cntvirq */ 55*4882a593Smuzhiyun <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* cnthpirq */ 56*4882a593Smuzhiyun }; 57*4882a593Smuzhiyun 58*4882a593Smuzhiyun pmu: pmu { 59*4882a593Smuzhiyun compatible = "arm,armv8-pmuv3"; 60*4882a593Smuzhiyun /* Recommendation from GIC500 TRM Table A.3 */ 61*4882a593Smuzhiyun interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; 62*4882a593Smuzhiyun }; 63*4882a593Smuzhiyun 64*4882a593Smuzhiyun cbass_main: bus@100000 { 65*4882a593Smuzhiyun compatible = "simple-bus"; 66*4882a593Smuzhiyun #address-cells = <2>; 67*4882a593Smuzhiyun #size-cells = <2>; 68*4882a593Smuzhiyun ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ 69*4882a593Smuzhiyun <0x00 0x00600000 0x00 0x00600000 0x00 0x00001100>, /* GPIO */ 70*4882a593Smuzhiyun <0x00 0x00900000 0x00 0x00900000 0x00 0x00012000>, /* serdes */ 71*4882a593Smuzhiyun <0x00 0x01000000 0x00 0x01000000 0x00 0x0af02400>, /* Most peripherals */ 72*4882a593Smuzhiyun <0x00 0x30800000 0x00 0x30800000 0x00 0x0bc00000>, /* MAIN NAVSS */ 73*4882a593Smuzhiyun <0x00 0x70000000 0x00 0x70000000 0x00 0x00200000>, /* MSMC SRAM */ 74*4882a593Smuzhiyun <0x00 0x10000000 0x00 0x10000000 0x00 0x10000000>, /* PCIe DAT */ 75*4882a593Smuzhiyun /* MCUSS Range */ 76*4882a593Smuzhiyun <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, 77*4882a593Smuzhiyun <0x00 0x40200000 0x00 0x40200000 0x00 0x00900100>, 78*4882a593Smuzhiyun <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */ 79*4882a593Smuzhiyun <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, 80*4882a593Smuzhiyun <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, 81*4882a593Smuzhiyun <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>, 82*4882a593Smuzhiyun <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, 83*4882a593Smuzhiyun <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, 84*4882a593Smuzhiyun <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, 85*4882a593Smuzhiyun <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, 86*4882a593Smuzhiyun <0x00 0x50000000 0x00 0x50000000 0x00 0x8000000>, 87*4882a593Smuzhiyun <0x00 0x6f000000 0x00 0x6f000000 0x00 0x00310000>, /* A53 PERIPHBASE */ 88*4882a593Smuzhiyun <0x00 0x70000000 0x00 0x70000000 0x00 0x200000>, 89*4882a593Smuzhiyun <0x05 0x00000000 0x05 0x00000000 0x01 0x0000000>, 90*4882a593Smuzhiyun <0x07 0x00000000 0x07 0x00000000 0x01 0x0000000>; 91*4882a593Smuzhiyun 92*4882a593Smuzhiyun cbass_mcu: bus@28380000 { 93*4882a593Smuzhiyun compatible = "simple-bus"; 94*4882a593Smuzhiyun #address-cells = <2>; 95*4882a593Smuzhiyun #size-cells = <2>; 96*4882a593Smuzhiyun ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/ 97*4882a593Smuzhiyun <0x00 0x40200000 0x00 0x40200000 0x00 0x00900100>, /* First peripheral window */ 98*4882a593Smuzhiyun <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */ 99*4882a593Smuzhiyun <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */ 100*4882a593Smuzhiyun <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */ 101*4882a593Smuzhiyun <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>, /* MCU SRAM */ 102*4882a593Smuzhiyun <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP */ 103*4882a593Smuzhiyun <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, /* MMRs, remaining NAVSS */ 104*4882a593Smuzhiyun <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, /* CPSW */ 105*4882a593Smuzhiyun <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, /* OSPI space 1 */ 106*4882a593Smuzhiyun <0x00 0x50000000 0x00 0x50000000 0x00 0x8000000>, /* FSS OSPI0 data region 1 */ 107*4882a593Smuzhiyun <0x05 0x00000000 0x05 0x00000000 0x01 0x0000000>, /* FSS OSPI0 data region 3*/ 108*4882a593Smuzhiyun <0x07 0x00000000 0x07 0x00000000 0x01 0x0000000>; /* FSS OSPI1 data region 3*/ 109*4882a593Smuzhiyun 110*4882a593Smuzhiyun cbass_wakeup: bus@42040000 { 111*4882a593Smuzhiyun compatible = "simple-bus"; 112*4882a593Smuzhiyun #address-cells = <1>; 113*4882a593Smuzhiyun #size-cells = <1>; 114*4882a593Smuzhiyun /* WKUP Basic peripherals */ 115*4882a593Smuzhiyun ranges = <0x42040000 0x00 0x42040000 0x03ac2400>; 116*4882a593Smuzhiyun }; 117*4882a593Smuzhiyun }; 118*4882a593Smuzhiyun }; 119*4882a593Smuzhiyun}; 120*4882a593Smuzhiyun 121*4882a593Smuzhiyun/* Now include the peripherals for each bus segments */ 122*4882a593Smuzhiyun#include "k3-am65-main.dtsi" 123*4882a593Smuzhiyun#include "k3-am65-mcu.dtsi" 124*4882a593Smuzhiyun#include "k3-am65-wakeup.dtsi" 125