Dave Gerlach | bb3c167 | 2021-04-23 11:27:44 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Device Tree Source for AM642 SoC Family |
| 4 | * |
| 5 | * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/ |
| 6 | */ |
| 7 | |
| 8 | #include <dt-bindings/gpio/gpio.h> |
| 9 | #include <dt-bindings/interrupt-controller/irq.h> |
| 10 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 11 | #include <dt-bindings/pinctrl/k3.h> |
| 12 | #include <dt-bindings/soc/ti,sci_pm_domain.h> |
| 13 | |
| 14 | / { |
| 15 | model = "Texas Instruments K3 AM642 SoC"; |
| 16 | compatible = "ti,am642"; |
| 17 | interrupt-parent = <&gic500>; |
| 18 | #address-cells = <2>; |
| 19 | #size-cells = <2>; |
| 20 | |
| 21 | aliases { |
| 22 | serial0 = &mcu_uart0; |
| 23 | serial1 = &mcu_uart1; |
| 24 | serial2 = &main_uart0; |
| 25 | serial3 = &main_uart1; |
| 26 | serial4 = &main_uart2; |
| 27 | serial5 = &main_uart3; |
| 28 | serial6 = &main_uart4; |
| 29 | serial7 = &main_uart5; |
| 30 | serial8 = &main_uart6; |
Vignesh Raghavendra | 759316f | 2021-05-10 20:06:12 +0530 | [diff] [blame] | 31 | ethernet0 = &cpsw_port1; |
| 32 | ethernet1 = &cpsw_port2; |
Roger Quadros | 8bacb0f | 2023-01-24 11:43:25 +0200 | [diff] [blame] | 33 | mmc0 = &sdhci0; |
| 34 | mmc1 = &sdhci1; |
Dave Gerlach | bb3c167 | 2021-04-23 11:27:44 -0500 | [diff] [blame] | 35 | }; |
| 36 | |
| 37 | chosen { }; |
| 38 | |
| 39 | firmware { |
| 40 | optee { |
| 41 | compatible = "linaro,optee-tz"; |
| 42 | method = "smc"; |
| 43 | }; |
| 44 | |
| 45 | psci: psci { |
| 46 | compatible = "arm,psci-1.0"; |
| 47 | method = "smc"; |
| 48 | }; |
| 49 | }; |
| 50 | |
| 51 | a53_timer0: timer-cl0-cpu0 { |
| 52 | compatible = "arm,armv8-timer"; |
| 53 | interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* cntpsirq */ |
| 54 | <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* cntpnsirq */ |
| 55 | <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* cntvirq */ |
| 56 | <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* cnthpirq */ |
| 57 | }; |
| 58 | |
| 59 | pmu: pmu { |
| 60 | compatible = "arm,cortex-a53-pmu"; |
| 61 | interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; |
| 62 | }; |
| 63 | |
| 64 | cbass_main: bus@f4000 { |
| 65 | compatible = "simple-bus"; |
| 66 | #address-cells = <2>; |
| 67 | #size-cells = <2>; |
| 68 | ranges = <0x00 0x000f4000 0x00 0x000f4000 0x00 0x000002d0>, /* PINCTRL */ |
Hari Nagalla | 789225e | 2022-03-09 14:42:29 -0600 | [diff] [blame] | 69 | <0x00 0x00420000 0x00 0x00420000 0x00 0x00001000>, /* ESM0 */ |
Dave Gerlach | bb3c167 | 2021-04-23 11:27:44 -0500 | [diff] [blame] | 70 | <0x00 0x00600000 0x00 0x00600000 0x00 0x00001100>, /* GPIO */ |
| 71 | <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* Timesync router */ |
| 72 | <0x00 0x01000000 0x00 0x01000000 0x00 0x02330400>, /* First peripheral window */ |
| 73 | <0x00 0x08000000 0x00 0x08000000 0x00 0x00200000>, /* Main CPSW */ |
| 74 | <0x00 0x0d000000 0x00 0x0d000000 0x00 0x00800000>, /* PCIE_CORE */ |
Christian Gmeiner | 0ac566a | 2022-10-26 13:15:55 +0200 | [diff] [blame] | 75 | <0x00 0x0e000000 0x00 0x0e000000 0x00 0x00000100>, /* Main RTI0 */ |
| 76 | <0x00 0x0e010000 0x00 0x0e010000 0x00 0x00000100>, /* Main RTI1 */ |
Dave Gerlach | bb3c167 | 2021-04-23 11:27:44 -0500 | [diff] [blame] | 77 | <0x00 0x0f000000 0x00 0x0f000000 0x00 0x00c44200>, /* Second peripheral window */ |
| 78 | <0x00 0x20000000 0x00 0x20000000 0x00 0x0a008000>, /* Third peripheral window */ |
| 79 | <0x00 0x30000000 0x00 0x30000000 0x00 0x000bc100>, /* ICSSG0/1 */ |
| 80 | <0x00 0x37000000 0x00 0x37000000 0x00 0x00040000>, /* TIMERMGR0 TIMERS */ |
| 81 | <0x00 0x39000000 0x00 0x39000000 0x00 0x00000400>, /* CPTS0 */ |
| 82 | <0x00 0x3b000000 0x00 0x3b000000 0x00 0x00000400>, /* GPMC0_CFG */ |
| 83 | <0x00 0x3cd00000 0x00 0x3cd00000 0x00 0x00000200>, /* TIMERMGR0_CONFIG */ |
| 84 | <0x00 0x3f004000 0x00 0x3f004000 0x00 0x00000400>, /* GICSS0_REGS */ |
Roger Quadros | 8bacb0f | 2023-01-24 11:43:25 +0200 | [diff] [blame] | 85 | <0x00 0x40900000 0x00 0x40900000 0x00 0x00030000>, /* SA2_UL0 */ |
Dave Gerlach | bb3c167 | 2021-04-23 11:27:44 -0500 | [diff] [blame] | 86 | <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, /* CTRL_MMR0 */ |
| 87 | <0x00 0x44043000 0x00 0x44043000 0x00 0x00000fe0>, /* TI SCI DEBUG */ |
| 88 | <0x00 0x48000000 0x00 0x48000000 0x00 0x06400000>, /* DMASS */ |
| 89 | <0x00 0x50000000 0x00 0x50000000 0x00 0x08000000>, /* GPMC0 DATA */ |
| 90 | <0x00 0x60000000 0x00 0x60000000 0x00 0x08000000>, /* FSS0 DAT1 */ |
| 91 | <0x00 0x68000000 0x00 0x68000000 0x00 0x08000000>, /* PCIe DAT0 */ |
| 92 | <0x00 0x70000000 0x00 0x70000000 0x00 0x00200000>, /* OC SRAM */ |
| 93 | <0x00 0x78000000 0x00 0x78000000 0x00 0x00800000>, /* Main R5FSS */ |
Roger Quadros | 8bacb0f | 2023-01-24 11:43:25 +0200 | [diff] [blame] | 94 | <0x01 0x00000000 0x01 0x00000000 0x00 0x00310000>, /* A53 PERIPHBASE */ |
Dave Gerlach | bb3c167 | 2021-04-23 11:27:44 -0500 | [diff] [blame] | 95 | <0x06 0x00000000 0x06 0x00000000 0x01 0x00000000>, /* PCIe DAT1 */ |
| 96 | <0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, /* FSS0 DAT3 */ |
| 97 | |
| 98 | /* MCU Domain Range */ |
| 99 | <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>; |
| 100 | |
| 101 | cbass_mcu: bus@4000000 { |
| 102 | compatible = "simple-bus"; |
| 103 | #address-cells = <2>; |
| 104 | #size-cells = <2>; |
| 105 | ranges = <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>; /* Peripheral window */ |
| 106 | }; |
| 107 | }; |
| 108 | }; |
| 109 | |
| 110 | /* Now include the peripherals for each bus segments */ |
| 111 | #include "k3-am64-main.dtsi" |
| 112 | #include "k3-am64-mcu.dtsi" |