1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*724ba675SRob Herring 3*724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h> 4*724ba675SRob Herring#include <dt-bindings/interrupt-controller/arm-gic.h> 5*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 6*724ba675SRob Herring#include <dt-bindings/clock/en7523-clk.h> 7*724ba675SRob Herring 8*724ba675SRob Herring/ { 9*724ba675SRob Herring interrupt-parent = <&gic>; 10*724ba675SRob Herring #address-cells = <1>; 11*724ba675SRob Herring #size-cells = <1>; 12*724ba675SRob Herring 13*724ba675SRob Herring reserved-memory { 14*724ba675SRob Herring #address-cells = <1>; 15*724ba675SRob Herring #size-cells = <1>; 16*724ba675SRob Herring ranges; 17*724ba675SRob Herring 18*724ba675SRob Herring npu_binary@84000000 { 19*724ba675SRob Herring no-map; 20*724ba675SRob Herring reg = <0x84000000 0xA00000>; 21*724ba675SRob Herring }; 22*724ba675SRob Herring 23*724ba675SRob Herring npu_flag@84B0000 { 24*724ba675SRob Herring no-map; 25*724ba675SRob Herring reg = <0x84B00000 0x100000>; 26*724ba675SRob Herring }; 27*724ba675SRob Herring 28*724ba675SRob Herring npu_pkt@85000000 { 29*724ba675SRob Herring no-map; 30*724ba675SRob Herring reg = <0x85000000 0x1A00000>; 31*724ba675SRob Herring }; 32*724ba675SRob Herring 33*724ba675SRob Herring npu_phyaddr@86B00000 { 34*724ba675SRob Herring no-map; 35*724ba675SRob Herring reg = <0x86B00000 0x100000>; 36*724ba675SRob Herring }; 37*724ba675SRob Herring 38*724ba675SRob Herring npu_rxdesc@86D00000 { 39*724ba675SRob Herring no-map; 40*724ba675SRob Herring reg = <0x86D00000 0x100000>; 41*724ba675SRob Herring }; 42*724ba675SRob Herring }; 43*724ba675SRob Herring 44*724ba675SRob Herring psci { 45*724ba675SRob Herring compatible = "arm,psci-0.2"; 46*724ba675SRob Herring method = "smc"; 47*724ba675SRob Herring }; 48*724ba675SRob Herring 49*724ba675SRob Herring cpus { 50*724ba675SRob Herring #address-cells = <1>; 51*724ba675SRob Herring #size-cells = <0>; 52*724ba675SRob Herring 53*724ba675SRob Herring cpu-map { 54*724ba675SRob Herring cluster0 { 55*724ba675SRob Herring core0 { 56*724ba675SRob Herring cpu = <&cpu0>; 57*724ba675SRob Herring }; 58*724ba675SRob Herring core1 { 59*724ba675SRob Herring cpu = <&cpu1>; 60*724ba675SRob Herring }; 61*724ba675SRob Herring }; 62*724ba675SRob Herring }; 63*724ba675SRob Herring 64*724ba675SRob Herring cpu0: cpu@0 { 65*724ba675SRob Herring device_type = "cpu"; 66*724ba675SRob Herring compatible = "arm,cortex-a53"; 67*724ba675SRob Herring reg = <0x0>; 68*724ba675SRob Herring enable-method = "psci"; 69*724ba675SRob Herring clock-frequency = <80000000>; 70*724ba675SRob Herring next-level-cache = <&L2_0>; 71*724ba675SRob Herring }; 72*724ba675SRob Herring 73*724ba675SRob Herring cpu1: cpu@1 { 74*724ba675SRob Herring device_type = "cpu"; 75*724ba675SRob Herring compatible = "arm,cortex-a53"; 76*724ba675SRob Herring reg = <0x1>; 77*724ba675SRob Herring enable-method = "psci"; 78*724ba675SRob Herring clock-frequency = <80000000>; 79*724ba675SRob Herring next-level-cache = <&L2_0>; 80*724ba675SRob Herring }; 81*724ba675SRob Herring 82*724ba675SRob Herring L2_0: l2-cache0 { 83*724ba675SRob Herring compatible = "cache"; 84*724ba675SRob Herring cache-level = <2>; 85*724ba675SRob Herring cache-unified; 86*724ba675SRob Herring }; 87*724ba675SRob Herring }; 88*724ba675SRob Herring 89*724ba675SRob Herring scu: system-controller@1fa20000 { 90*724ba675SRob Herring compatible = "airoha,en7523-scu"; 91*724ba675SRob Herring reg = <0x1fa20000 0x400>, 92*724ba675SRob Herring <0x1fb00000 0x1000>; 93*724ba675SRob Herring #clock-cells = <1>; 94*724ba675SRob Herring }; 95*724ba675SRob Herring 96*724ba675SRob Herring gic: interrupt-controller@9000000 { 97*724ba675SRob Herring compatible = "arm,gic-v3"; 98*724ba675SRob Herring interrupt-controller; 99*724ba675SRob Herring #interrupt-cells = <3>; 100*724ba675SRob Herring #address-cells = <1>; 101*724ba675SRob Herring #size-cells = <1>; 102*724ba675SRob Herring reg = <0x09000000 0x20000>, 103*724ba675SRob Herring <0x09080000 0x80000>, 104*724ba675SRob Herring <0x09400000 0x2000>, 105*724ba675SRob Herring <0x09500000 0x2000>, 106*724ba675SRob Herring <0x09600000 0x20000>; 107*724ba675SRob Herring interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_LOW>; 108*724ba675SRob Herring }; 109*724ba675SRob Herring 110*724ba675SRob Herring timer { 111*724ba675SRob Herring compatible = "arm,armv8-timer"; 112*724ba675SRob Herring interrupt-parent = <&gic>; 113*724ba675SRob Herring interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, 114*724ba675SRob Herring <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, 115*724ba675SRob Herring <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, 116*724ba675SRob Herring <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; 117*724ba675SRob Herring }; 118*724ba675SRob Herring 119*724ba675SRob Herring uart1: serial@1fbf0000 { 120*724ba675SRob Herring compatible = "ns16550"; 121*724ba675SRob Herring reg = <0x1fbf0000 0x30>; 122*724ba675SRob Herring reg-io-width = <4>; 123*724ba675SRob Herring reg-shift = <2>; 124*724ba675SRob Herring interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; 125*724ba675SRob Herring clock-frequency = <1843200>; 126*724ba675SRob Herring status = "okay"; 127*724ba675SRob Herring }; 128*724ba675SRob Herring 129*724ba675SRob Herring gpio0: gpio@1fbf0200 { 130*724ba675SRob Herring compatible = "airoha,en7523-gpio"; 131*724ba675SRob Herring reg = <0x1fbf0204 0x4>, 132*724ba675SRob Herring <0x1fbf0200 0x4>, 133*724ba675SRob Herring <0x1fbf0220 0x4>, 134*724ba675SRob Herring <0x1fbf0214 0x4>; 135*724ba675SRob Herring gpio-controller; 136*724ba675SRob Herring #gpio-cells = <2>; 137*724ba675SRob Herring }; 138*724ba675SRob Herring 139*724ba675SRob Herring gpio1: gpio@1fbf0270 { 140*724ba675SRob Herring compatible = "airoha,en7523-gpio"; 141*724ba675SRob Herring reg = <0x1fbf0270 0x4>, 142*724ba675SRob Herring <0x1fbf0260 0x4>, 143*724ba675SRob Herring <0x1fbf0264 0x4>, 144*724ba675SRob Herring <0x1fbf0278 0x4>; 145*724ba675SRob Herring gpio-controller; 146*724ba675SRob Herring #gpio-cells = <2>; 147*724ba675SRob Herring }; 148*724ba675SRob Herring 149*724ba675SRob Herring pcie0: pcie@1fa91000 { 150*724ba675SRob Herring compatible = "airoha,en7523-pcie", "mediatek,mt7622-pcie"; 151*724ba675SRob Herring device_type = "pci"; 152*724ba675SRob Herring reg = <0x1fa91000 0x1000>; 153*724ba675SRob Herring reg-names = "port0"; 154*724ba675SRob Herring linux,pci-domain = <0>; 155*724ba675SRob Herring #address-cells = <3>; 156*724ba675SRob Herring #size-cells = <2>; 157*724ba675SRob Herring interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; 158*724ba675SRob Herring interrupt-names = "pcie_irq"; 159*724ba675SRob Herring clocks = <&scu EN7523_CLK_PCIE>; 160*724ba675SRob Herring clock-names = "sys_ck0"; 161*724ba675SRob Herring bus-range = <0x00 0xff>; 162*724ba675SRob Herring ranges = <0x82000000 0 0x20000000 0x20000000 0 0x8000000>; 163*724ba675SRob Herring status = "disabled"; 164*724ba675SRob Herring 165*724ba675SRob Herring #interrupt-cells = <1>; 166*724ba675SRob Herring interrupt-map-mask = <0 0 0 7>; 167*724ba675SRob Herring interrupt-map = <0 0 0 1 &pcie_intc0 0>, 168*724ba675SRob Herring <0 0 0 2 &pcie_intc0 1>, 169*724ba675SRob Herring <0 0 0 3 &pcie_intc0 2>, 170*724ba675SRob Herring <0 0 0 4 &pcie_intc0 3>; 171*724ba675SRob Herring pcie_intc0: interrupt-controller { 172*724ba675SRob Herring interrupt-controller; 173*724ba675SRob Herring #address-cells = <0>; 174*724ba675SRob Herring #interrupt-cells = <1>; 175*724ba675SRob Herring }; 176*724ba675SRob Herring }; 177*724ba675SRob Herring 178*724ba675SRob Herring pcie1: pcie@1fa92000 { 179*724ba675SRob Herring compatible = "airoha,en7523-pcie", "mediatek,mt7622-pcie"; 180*724ba675SRob Herring device_type = "pci"; 181*724ba675SRob Herring reg = <0x1fa92000 0x1000>; 182*724ba675SRob Herring reg-names = "port1"; 183*724ba675SRob Herring linux,pci-domain = <1>; 184*724ba675SRob Herring #address-cells = <3>; 185*724ba675SRob Herring #size-cells = <2>; 186*724ba675SRob Herring interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; 187*724ba675SRob Herring interrupt-names = "pcie_irq"; 188*724ba675SRob Herring clocks = <&scu EN7523_CLK_PCIE>; 189*724ba675SRob Herring clock-names = "sys_ck1"; 190*724ba675SRob Herring bus-range = <0x00 0xff>; 191*724ba675SRob Herring ranges = <0x82000000 0 0x28000000 0x28000000 0 0x8000000>; 192*724ba675SRob Herring status = "disabled"; 193*724ba675SRob Herring 194*724ba675SRob Herring #interrupt-cells = <1>; 195*724ba675SRob Herring interrupt-map-mask = <0 0 0 7>; 196*724ba675SRob Herring interrupt-map = <0 0 0 1 &pcie_intc1 0>, 197*724ba675SRob Herring <0 0 0 2 &pcie_intc1 1>, 198*724ba675SRob Herring <0 0 0 3 &pcie_intc1 2>, 199*724ba675SRob Herring <0 0 0 4 &pcie_intc1 3>; 200*724ba675SRob Herring pcie_intc1: interrupt-controller { 201*724ba675SRob Herring interrupt-controller; 202*724ba675SRob Herring #address-cells = <0>; 203*724ba675SRob Herring #interrupt-cells = <1>; 204*724ba675SRob Herring }; 205*724ba675SRob Herring }; 206*724ba675SRob Herring}; 207