1*79f74d4cSKrzysztof Kozlowski// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2724ba675SRob Herring// Copyright (C) 2022 Arm Ltd. 3724ba675SRob Herring 4724ba675SRob Herring#define SOC_PERIPHERAL_IRQ(nr) GIC_SPI nr 5724ba675SRob Herring 6724ba675SRob Herring#include <dt-bindings/interrupt-controller/arm-gic.h> 7724ba675SRob Herring#include <riscv/allwinner/sunxi-d1s-t113.dtsi> 8724ba675SRob Herring#include <riscv/allwinner/sunxi-d1-t113.dtsi> 9724ba675SRob Herring 10724ba675SRob Herring/ { 11724ba675SRob Herring interrupt-parent = <&gic>; 12724ba675SRob Herring 13724ba675SRob Herring cpus { 14724ba675SRob Herring #address-cells = <1>; 15724ba675SRob Herring #size-cells = <0>; 16724ba675SRob Herring 17724ba675SRob Herring cpu0: cpu@0 { 18724ba675SRob Herring compatible = "arm,cortex-a7"; 19724ba675SRob Herring device_type = "cpu"; 20724ba675SRob Herring reg = <0>; 21724ba675SRob Herring clocks = <&ccu CLK_CPUX>; 22724ba675SRob Herring clock-names = "cpu"; 23724ba675SRob Herring }; 24724ba675SRob Herring 25724ba675SRob Herring cpu1: cpu@1 { 26724ba675SRob Herring compatible = "arm,cortex-a7"; 27724ba675SRob Herring device_type = "cpu"; 28724ba675SRob Herring reg = <1>; 29724ba675SRob Herring clocks = <&ccu CLK_CPUX>; 30724ba675SRob Herring clock-names = "cpu"; 31724ba675SRob Herring }; 32724ba675SRob Herring }; 33724ba675SRob Herring 34724ba675SRob Herring gic: interrupt-controller@1c81000 { 35724ba675SRob Herring compatible = "arm,gic-400"; 36724ba675SRob Herring reg = <0x03021000 0x1000>, 37724ba675SRob Herring <0x03022000 0x2000>, 38724ba675SRob Herring <0x03024000 0x2000>, 39724ba675SRob Herring <0x03026000 0x2000>; 40724ba675SRob Herring interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 41724ba675SRob Herring interrupt-controller; 42724ba675SRob Herring #interrupt-cells = <3>; 43724ba675SRob Herring }; 44724ba675SRob Herring 45724ba675SRob Herring timer { 46724ba675SRob Herring compatible = "arm,armv7-timer"; 47724ba675SRob Herring interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 48724ba675SRob Herring <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 49724ba675SRob Herring <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 50724ba675SRob Herring <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; 51724ba675SRob Herring }; 52724ba675SRob Herring 53724ba675SRob Herring pmu { 54724ba675SRob Herring compatible = "arm,cortex-a7-pmu"; 55724ba675SRob Herring interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>, 56724ba675SRob Herring <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>; 57724ba675SRob Herring interrupt-affinity = <&cpu0>, <&cpu1>; 58724ba675SRob Herring }; 59724ba675SRob Herring}; 60