1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (c) 2014 MediaTek Inc. 4*f126890aSEmmanuel Vadot * Author: Joe.C <yingjoe.chen@mediatek.com> 5*f126890aSEmmanuel Vadot * 6*f126890aSEmmanuel Vadot */ 7*f126890aSEmmanuel Vadot 8*f126890aSEmmanuel Vadot#include <dt-bindings/clock/mt8135-clk.h> 9*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h> 10*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h> 11*f126890aSEmmanuel Vadot#include <dt-bindings/reset/mt8135-resets.h> 12*f126890aSEmmanuel Vadot#include <dt-bindings/pinctrl/mt8135-pinfunc.h> 13*f126890aSEmmanuel Vadot 14*f126890aSEmmanuel Vadot/ { 15*f126890aSEmmanuel Vadot #address-cells = <2>; 16*f126890aSEmmanuel Vadot #size-cells = <2>; 17*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135"; 18*f126890aSEmmanuel Vadot interrupt-parent = <&sysirq>; 19*f126890aSEmmanuel Vadot 20*f126890aSEmmanuel Vadot cpu-map { 21*f126890aSEmmanuel Vadot cluster0 { 22*f126890aSEmmanuel Vadot core0 { 23*f126890aSEmmanuel Vadot cpu = <&cpu0>; 24*f126890aSEmmanuel Vadot }; 25*f126890aSEmmanuel Vadot core1 { 26*f126890aSEmmanuel Vadot cpu = <&cpu1>; 27*f126890aSEmmanuel Vadot }; 28*f126890aSEmmanuel Vadot }; 29*f126890aSEmmanuel Vadot 30*f126890aSEmmanuel Vadot cluster1 { 31*f126890aSEmmanuel Vadot core0 { 32*f126890aSEmmanuel Vadot cpu = <&cpu2>; 33*f126890aSEmmanuel Vadot }; 34*f126890aSEmmanuel Vadot core1 { 35*f126890aSEmmanuel Vadot cpu = <&cpu3>; 36*f126890aSEmmanuel Vadot }; 37*f126890aSEmmanuel Vadot }; 38*f126890aSEmmanuel Vadot }; 39*f126890aSEmmanuel Vadot 40*f126890aSEmmanuel Vadot cpus { 41*f126890aSEmmanuel Vadot #address-cells = <1>; 42*f126890aSEmmanuel Vadot #size-cells = <0>; 43*f126890aSEmmanuel Vadot enable-method = "mediatek,mt81xx-tz-smp"; 44*f126890aSEmmanuel Vadot 45*f126890aSEmmanuel Vadot cpu0: cpu@0 { 46*f126890aSEmmanuel Vadot device_type = "cpu"; 47*f126890aSEmmanuel Vadot compatible = "arm,cortex-a7"; 48*f126890aSEmmanuel Vadot reg = <0x000>; 49*f126890aSEmmanuel Vadot }; 50*f126890aSEmmanuel Vadot 51*f126890aSEmmanuel Vadot cpu1: cpu@1 { 52*f126890aSEmmanuel Vadot device_type = "cpu"; 53*f126890aSEmmanuel Vadot compatible = "arm,cortex-a7"; 54*f126890aSEmmanuel Vadot reg = <0x001>; 55*f126890aSEmmanuel Vadot }; 56*f126890aSEmmanuel Vadot 57*f126890aSEmmanuel Vadot cpu2: cpu@100 { 58*f126890aSEmmanuel Vadot device_type = "cpu"; 59*f126890aSEmmanuel Vadot compatible = "arm,cortex-a15"; 60*f126890aSEmmanuel Vadot reg = <0x100>; 61*f126890aSEmmanuel Vadot }; 62*f126890aSEmmanuel Vadot 63*f126890aSEmmanuel Vadot cpu3: cpu@101 { 64*f126890aSEmmanuel Vadot device_type = "cpu"; 65*f126890aSEmmanuel Vadot compatible = "arm,cortex-a15"; 66*f126890aSEmmanuel Vadot reg = <0x101>; 67*f126890aSEmmanuel Vadot }; 68*f126890aSEmmanuel Vadot }; 69*f126890aSEmmanuel Vadot 70*f126890aSEmmanuel Vadot reserved-memory { 71*f126890aSEmmanuel Vadot #address-cells = <2>; 72*f126890aSEmmanuel Vadot #size-cells = <2>; 73*f126890aSEmmanuel Vadot ranges; 74*f126890aSEmmanuel Vadot 75*f126890aSEmmanuel Vadot trustzone-bootinfo@80002000 { 76*f126890aSEmmanuel Vadot compatible = "mediatek,trustzone-bootinfo"; 77*f126890aSEmmanuel Vadot reg = <0 0x80002000 0 0x1000>; 78*f126890aSEmmanuel Vadot }; 79*f126890aSEmmanuel Vadot }; 80*f126890aSEmmanuel Vadot 81*f126890aSEmmanuel Vadot clocks { 82*f126890aSEmmanuel Vadot #address-cells = <2>; 83*f126890aSEmmanuel Vadot #size-cells = <2>; 84*f126890aSEmmanuel Vadot compatible = "simple-bus"; 85*f126890aSEmmanuel Vadot ranges; 86*f126890aSEmmanuel Vadot 87*f126890aSEmmanuel Vadot system_clk: dummy13m { 88*f126890aSEmmanuel Vadot compatible = "fixed-clock"; 89*f126890aSEmmanuel Vadot clock-frequency = <13000000>; 90*f126890aSEmmanuel Vadot #clock-cells = <0>; 91*f126890aSEmmanuel Vadot }; 92*f126890aSEmmanuel Vadot 93*f126890aSEmmanuel Vadot rtc_clk: dummy32k { 94*f126890aSEmmanuel Vadot compatible = "fixed-clock"; 95*f126890aSEmmanuel Vadot clock-frequency = <32000>; 96*f126890aSEmmanuel Vadot #clock-cells = <0>; 97*f126890aSEmmanuel Vadot }; 98*f126890aSEmmanuel Vadot 99*f126890aSEmmanuel Vadot clk26m: clk26m { 100*f126890aSEmmanuel Vadot compatible = "fixed-clock"; 101*f126890aSEmmanuel Vadot #clock-cells = <0>; 102*f126890aSEmmanuel Vadot clock-frequency = <26000000>; 103*f126890aSEmmanuel Vadot }; 104*f126890aSEmmanuel Vadot }; 105*f126890aSEmmanuel Vadot 106*f126890aSEmmanuel Vadot timer { 107*f126890aSEmmanuel Vadot compatible = "arm,armv7-timer"; 108*f126890aSEmmanuel Vadot interrupt-parent = <&gic>; 109*f126890aSEmmanuel Vadot interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | 110*f126890aSEmmanuel Vadot IRQ_TYPE_LEVEL_LOW)>, 111*f126890aSEmmanuel Vadot <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | 112*f126890aSEmmanuel Vadot IRQ_TYPE_LEVEL_LOW)>, 113*f126890aSEmmanuel Vadot <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | 114*f126890aSEmmanuel Vadot IRQ_TYPE_LEVEL_LOW)>, 115*f126890aSEmmanuel Vadot <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | 116*f126890aSEmmanuel Vadot IRQ_TYPE_LEVEL_LOW)>; 117*f126890aSEmmanuel Vadot clock-frequency = <13000000>; 118*f126890aSEmmanuel Vadot arm,cpu-registers-not-fw-configured; 119*f126890aSEmmanuel Vadot }; 120*f126890aSEmmanuel Vadot 121*f126890aSEmmanuel Vadot soc { 122*f126890aSEmmanuel Vadot #address-cells = <2>; 123*f126890aSEmmanuel Vadot #size-cells = <2>; 124*f126890aSEmmanuel Vadot compatible = "simple-bus"; 125*f126890aSEmmanuel Vadot ranges; 126*f126890aSEmmanuel Vadot 127*f126890aSEmmanuel Vadot topckgen: topckgen@10000000 { 128*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135-topckgen"; 129*f126890aSEmmanuel Vadot reg = <0 0x10000000 0 0x1000>; 130*f126890aSEmmanuel Vadot #clock-cells = <1>; 131*f126890aSEmmanuel Vadot }; 132*f126890aSEmmanuel Vadot 133*f126890aSEmmanuel Vadot infracfg: infracfg@10001000 { 134*f126890aSEmmanuel Vadot #reset-cells = <1>; 135*f126890aSEmmanuel Vadot #clock-cells = <1>; 136*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135-infracfg", "syscon"; 137*f126890aSEmmanuel Vadot reg = <0 0x10001000 0 0x1000>; 138*f126890aSEmmanuel Vadot }; 139*f126890aSEmmanuel Vadot 140*f126890aSEmmanuel Vadot pericfg: pericfg@10003000 { 141*f126890aSEmmanuel Vadot #reset-cells = <1>; 142*f126890aSEmmanuel Vadot #clock-cells = <1>; 143*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135-pericfg", "syscon"; 144*f126890aSEmmanuel Vadot reg = <0 0x10003000 0 0x1000>; 145*f126890aSEmmanuel Vadot }; 146*f126890aSEmmanuel Vadot 147*f126890aSEmmanuel Vadot /* 148*f126890aSEmmanuel Vadot * Pinctrl access register at 0x10005000 and 0x1020c000 through 149*f126890aSEmmanuel Vadot * regmap. Register 0x1000b000 is used by EINT. 150*f126890aSEmmanuel Vadot */ 151*f126890aSEmmanuel Vadot pio: pinctrl@10005000 { 152*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135-pinctrl"; 153*f126890aSEmmanuel Vadot reg = <0 0x1000b000 0 0x1000>; 154*f126890aSEmmanuel Vadot mediatek,pctl-regmap = <&syscfg_pctl_a &syscfg_pctl_b>; 155*f126890aSEmmanuel Vadot gpio-controller; 156*f126890aSEmmanuel Vadot #gpio-cells = <2>; 157*f126890aSEmmanuel Vadot interrupt-controller; 158*f126890aSEmmanuel Vadot #interrupt-cells = <2>; 159*f126890aSEmmanuel Vadot interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, 160*f126890aSEmmanuel Vadot <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, 161*f126890aSEmmanuel Vadot <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; 162*f126890aSEmmanuel Vadot }; 163*f126890aSEmmanuel Vadot 164*f126890aSEmmanuel Vadot syscfg_pctl_a: syscfg_pctl_a@10005000 { 165*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135-pctl-a-syscfg", "syscon"; 166*f126890aSEmmanuel Vadot reg = <0 0x10005000 0 0x1000>; 167*f126890aSEmmanuel Vadot }; 168*f126890aSEmmanuel Vadot 169*f126890aSEmmanuel Vadot timer: timer@10008000 { 170*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135-timer", 171*f126890aSEmmanuel Vadot "mediatek,mt6577-timer"; 172*f126890aSEmmanuel Vadot reg = <0 0x10008000 0 0x80>; 173*f126890aSEmmanuel Vadot interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>; 174*f126890aSEmmanuel Vadot clocks = <&system_clk>, <&rtc_clk>; 175*f126890aSEmmanuel Vadot clock-names = "system-clk", "rtc-clk"; 176*f126890aSEmmanuel Vadot }; 177*f126890aSEmmanuel Vadot 178*f126890aSEmmanuel Vadot pwrap: pwrap@1000f000 { 179*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135-pwrap"; 180*f126890aSEmmanuel Vadot reg = <0 0x1000f000 0 0x1000>, 181*f126890aSEmmanuel Vadot <0 0x11017000 0 0x1000>; 182*f126890aSEmmanuel Vadot reg-names = "pwrap", "pwrap-bridge"; 183*f126890aSEmmanuel Vadot interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>; 184*f126890aSEmmanuel Vadot resets = <&infracfg MT8135_INFRA_PMIC_WRAP_RST>, 185*f126890aSEmmanuel Vadot <&pericfg MT8135_PERI_PWRAP_BRIDGE_SW_RST>; 186*f126890aSEmmanuel Vadot reset-names = "pwrap", "pwrap-bridge"; 187*f126890aSEmmanuel Vadot clocks = <&clk26m>, <&clk26m>; 188*f126890aSEmmanuel Vadot clock-names = "spi", "wrap"; 189*f126890aSEmmanuel Vadot }; 190*f126890aSEmmanuel Vadot 191*f126890aSEmmanuel Vadot sysirq: interrupt-controller@10200030 { 192*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135-sysirq", 193*f126890aSEmmanuel Vadot "mediatek,mt6577-sysirq"; 194*f126890aSEmmanuel Vadot interrupt-controller; 195*f126890aSEmmanuel Vadot #interrupt-cells = <3>; 196*f126890aSEmmanuel Vadot interrupt-parent = <&gic>; 197*f126890aSEmmanuel Vadot reg = <0 0x10200030 0 0x1c>; 198*f126890aSEmmanuel Vadot }; 199*f126890aSEmmanuel Vadot 200*f126890aSEmmanuel Vadot apmixedsys: apmixedsys@10209000 { 201*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135-apmixedsys"; 202*f126890aSEmmanuel Vadot reg = <0 0x10209000 0 0x1000>; 203*f126890aSEmmanuel Vadot #clock-cells = <1>; 204*f126890aSEmmanuel Vadot }; 205*f126890aSEmmanuel Vadot 206*f126890aSEmmanuel Vadot syscfg_pctl_b: syscfg_pctl_b@1020c000 { 207*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135-pctl-b-syscfg", "syscon"; 208*f126890aSEmmanuel Vadot reg = <0 0x1020c000 0 0x1000>; 209*f126890aSEmmanuel Vadot }; 210*f126890aSEmmanuel Vadot 211*f126890aSEmmanuel Vadot gic: interrupt-controller@10211000 { 212*f126890aSEmmanuel Vadot compatible = "arm,cortex-a15-gic"; 213*f126890aSEmmanuel Vadot interrupt-controller; 214*f126890aSEmmanuel Vadot #interrupt-cells = <3>; 215*f126890aSEmmanuel Vadot interrupt-parent = <&gic>; 216*f126890aSEmmanuel Vadot reg = <0 0x10211000 0 0x1000>, 217*f126890aSEmmanuel Vadot <0 0x10212000 0 0x2000>, 218*f126890aSEmmanuel Vadot <0 0x10214000 0 0x2000>, 219*f126890aSEmmanuel Vadot <0 0x10216000 0 0x2000>; 220*f126890aSEmmanuel Vadot }; 221*f126890aSEmmanuel Vadot 222*f126890aSEmmanuel Vadot uart0: serial@11006000 { 223*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart"; 224*f126890aSEmmanuel Vadot reg = <0 0x11006000 0 0x400>; 225*f126890aSEmmanuel Vadot interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>; 226*f126890aSEmmanuel Vadot clocks = <&pericfg CLK_PERI_UART0_SEL>, <&pericfg CLK_PERI_UART0>; 227*f126890aSEmmanuel Vadot clock-names = "baud", "bus"; 228*f126890aSEmmanuel Vadot status = "disabled"; 229*f126890aSEmmanuel Vadot }; 230*f126890aSEmmanuel Vadot 231*f126890aSEmmanuel Vadot uart1: serial@11007000 { 232*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart"; 233*f126890aSEmmanuel Vadot reg = <0 0x11007000 0 0x400>; 234*f126890aSEmmanuel Vadot interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>; 235*f126890aSEmmanuel Vadot clocks = <&pericfg CLK_PERI_UART1_SEL>, <&pericfg CLK_PERI_UART1>; 236*f126890aSEmmanuel Vadot clock-names = "baud", "bus"; 237*f126890aSEmmanuel Vadot status = "disabled"; 238*f126890aSEmmanuel Vadot }; 239*f126890aSEmmanuel Vadot 240*f126890aSEmmanuel Vadot uart2: serial@11008000 { 241*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart"; 242*f126890aSEmmanuel Vadot reg = <0 0x11008000 0 0x400>; 243*f126890aSEmmanuel Vadot interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>; 244*f126890aSEmmanuel Vadot clocks = <&pericfg CLK_PERI_UART2_SEL>, <&pericfg CLK_PERI_UART2>; 245*f126890aSEmmanuel Vadot clock-names = "baud", "bus"; 246*f126890aSEmmanuel Vadot status = "disabled"; 247*f126890aSEmmanuel Vadot }; 248*f126890aSEmmanuel Vadot 249*f126890aSEmmanuel Vadot uart3: serial@11009000 { 250*f126890aSEmmanuel Vadot compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart"; 251*f126890aSEmmanuel Vadot reg = <0 0x11009000 0 0x400>; 252*f126890aSEmmanuel Vadot interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>; 253*f126890aSEmmanuel Vadot clocks = <&pericfg CLK_PERI_UART3_SEL>, <&pericfg CLK_PERI_UART3>; 254*f126890aSEmmanuel Vadot clock-names = "baud", "bus"; 255*f126890aSEmmanuel Vadot status = "disabled"; 256*f126890aSEmmanuel Vadot }; 257*f126890aSEmmanuel Vadot 258*f126890aSEmmanuel Vadot }; 259*f126890aSEmmanuel Vadot}; 260