1f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2f126890aSEmmanuel Vadot/* 3f126890aSEmmanuel Vadot * Copyright 2022 Broadcom Ltd. 4f126890aSEmmanuel Vadot */ 5f126890aSEmmanuel Vadot 6f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h> 7f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h> 8f126890aSEmmanuel Vadot 9f126890aSEmmanuel Vadot/ { 10f126890aSEmmanuel Vadot compatible = "brcm,bcm63148", "brcm,bcmbca"; 11f126890aSEmmanuel Vadot #address-cells = <1>; 12f126890aSEmmanuel Vadot #size-cells = <1>; 13f126890aSEmmanuel Vadot 14f126890aSEmmanuel Vadot interrupt-parent = <&gic>; 15f126890aSEmmanuel Vadot 16f126890aSEmmanuel Vadot cpus { 17f126890aSEmmanuel Vadot #address-cells = <1>; 18f126890aSEmmanuel Vadot #size-cells = <0>; 19f126890aSEmmanuel Vadot 20f126890aSEmmanuel Vadot B15_0: cpu@0 { 21f126890aSEmmanuel Vadot device_type = "cpu"; 22f126890aSEmmanuel Vadot compatible = "brcm,brahma-b15"; 23f126890aSEmmanuel Vadot reg = <0x0>; 24f126890aSEmmanuel Vadot next-level-cache = <&L2_0>; 25f126890aSEmmanuel Vadot enable-method = "psci"; 26f126890aSEmmanuel Vadot }; 27f126890aSEmmanuel Vadot 28f126890aSEmmanuel Vadot B15_1: cpu@1 { 29f126890aSEmmanuel Vadot device_type = "cpu"; 30f126890aSEmmanuel Vadot compatible = "brcm,brahma-b15"; 31f126890aSEmmanuel Vadot reg = <0x1>; 32f126890aSEmmanuel Vadot next-level-cache = <&L2_0>; 33f126890aSEmmanuel Vadot enable-method = "psci"; 34f126890aSEmmanuel Vadot }; 35f126890aSEmmanuel Vadot 36f126890aSEmmanuel Vadot L2_0: l2-cache0 { 37f126890aSEmmanuel Vadot compatible = "cache"; 38f126890aSEmmanuel Vadot cache-level = <2>; 39f126890aSEmmanuel Vadot cache-unified; 40f126890aSEmmanuel Vadot }; 41f126890aSEmmanuel Vadot }; 42f126890aSEmmanuel Vadot 43f126890aSEmmanuel Vadot timer { 44f126890aSEmmanuel Vadot compatible = "arm,armv7-timer"; 45f126890aSEmmanuel Vadot interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, 46f126890aSEmmanuel Vadot <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, 47f126890aSEmmanuel Vadot <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, 48f126890aSEmmanuel Vadot <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>; 49f126890aSEmmanuel Vadot }; 50f126890aSEmmanuel Vadot 51f126890aSEmmanuel Vadot pmu: pmu { 52f126890aSEmmanuel Vadot compatible = "arm,cortex-a15-pmu"; 53f126890aSEmmanuel Vadot interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>, 54f126890aSEmmanuel Vadot <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; 55f126890aSEmmanuel Vadot interrupt-affinity = <&B15_0>, <&B15_1>; 56f126890aSEmmanuel Vadot }; 57f126890aSEmmanuel Vadot 58f126890aSEmmanuel Vadot clocks: clocks { 59f126890aSEmmanuel Vadot periph_clk: periph-clk { 60f126890aSEmmanuel Vadot compatible = "fixed-clock"; 61f126890aSEmmanuel Vadot #clock-cells = <0>; 62f126890aSEmmanuel Vadot clock-frequency = <50000000>; 63f126890aSEmmanuel Vadot }; 64f126890aSEmmanuel Vadot 65f126890aSEmmanuel Vadot hsspi_pll: hsspi-pll { 66f126890aSEmmanuel Vadot compatible = "fixed-clock"; 67f126890aSEmmanuel Vadot #clock-cells = <0>; 68f126890aSEmmanuel Vadot clock-frequency = <400000000>; 69f126890aSEmmanuel Vadot }; 70f126890aSEmmanuel Vadot }; 71f126890aSEmmanuel Vadot 72f126890aSEmmanuel Vadot psci { 73f126890aSEmmanuel Vadot compatible = "arm,psci-0.2"; 74f126890aSEmmanuel Vadot method = "smc"; 75f126890aSEmmanuel Vadot }; 76f126890aSEmmanuel Vadot 77f126890aSEmmanuel Vadot axi@80030000 { 78f126890aSEmmanuel Vadot compatible = "simple-bus"; 79f126890aSEmmanuel Vadot #address-cells = <1>; 80f126890aSEmmanuel Vadot #size-cells = <1>; 81f126890aSEmmanuel Vadot ranges = <0 0x80030000 0x8000>; 82f126890aSEmmanuel Vadot 83f126890aSEmmanuel Vadot gic: interrupt-controller@1000 { 84f126890aSEmmanuel Vadot compatible = "arm,cortex-a15-gic"; 85f126890aSEmmanuel Vadot #interrupt-cells = <3>; 86f126890aSEmmanuel Vadot interrupt-controller; 87f126890aSEmmanuel Vadot reg = <0x1000 0x1000>, 88f126890aSEmmanuel Vadot <0x2000 0x2000>, 89f126890aSEmmanuel Vadot <0x4000 0x2000>, 90f126890aSEmmanuel Vadot <0x6000 0x2000>; 91f126890aSEmmanuel Vadot interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | 92f126890aSEmmanuel Vadot IRQ_TYPE_LEVEL_HIGH)>; 93f126890aSEmmanuel Vadot }; 94f126890aSEmmanuel Vadot }; 95f126890aSEmmanuel Vadot 96f126890aSEmmanuel Vadot bus@ff800000 { 97f126890aSEmmanuel Vadot compatible = "simple-bus"; 98f126890aSEmmanuel Vadot #address-cells = <1>; 99f126890aSEmmanuel Vadot #size-cells = <1>; 100f126890aSEmmanuel Vadot ranges = <0 0xfffe8000 0x8000>; 101f126890aSEmmanuel Vadot 102f126890aSEmmanuel Vadot uart0: serial@600 { 103f126890aSEmmanuel Vadot compatible = "brcm,bcm6345-uart"; 104f126890aSEmmanuel Vadot reg = <0x600 0x20>; 105f126890aSEmmanuel Vadot interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 106f126890aSEmmanuel Vadot clocks = <&periph_clk>; 107f126890aSEmmanuel Vadot clock-names = "refclk"; 108f126890aSEmmanuel Vadot status = "disabled"; 109f126890aSEmmanuel Vadot }; 110f126890aSEmmanuel Vadot 111f126890aSEmmanuel Vadot hsspi: spi@1000 { 112f126890aSEmmanuel Vadot #address-cells = <1>; 113f126890aSEmmanuel Vadot #size-cells = <0>; 114f126890aSEmmanuel Vadot compatible = "brcm,bcm63148-hsspi", "brcm,bcmbca-hsspi-v1.0"; 115f126890aSEmmanuel Vadot reg = <0x1000 0x600>; 116f126890aSEmmanuel Vadot interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 117f126890aSEmmanuel Vadot clocks = <&hsspi_pll &hsspi_pll>; 118f126890aSEmmanuel Vadot clock-names = "hsspi", "pll"; 119f126890aSEmmanuel Vadot num-cs = <8>; 120f126890aSEmmanuel Vadot status = "disabled"; 121f126890aSEmmanuel Vadot }; 122*01950c46SEmmanuel Vadot 123*01950c46SEmmanuel Vadot nand_controller: nand-controller@2000 { 124*01950c46SEmmanuel Vadot #address-cells = <1>; 125*01950c46SEmmanuel Vadot #size-cells = <0>; 126*01950c46SEmmanuel Vadot compatible = "brcm,nand-bcm63138", "brcm,brcmnand-v7.1", "brcm,brcmnand"; 127*01950c46SEmmanuel Vadot reg = <0x2000 0x600>, <0xf0 0x10>; 128*01950c46SEmmanuel Vadot reg-names = "nand", "nand-int-base"; 129*01950c46SEmmanuel Vadot status = "disabled"; 130*01950c46SEmmanuel Vadot 131*01950c46SEmmanuel Vadot nandcs: nand@0 { 132*01950c46SEmmanuel Vadot compatible = "brcm,nandcs"; 133*01950c46SEmmanuel Vadot reg = <0>; 134*01950c46SEmmanuel Vadot }; 135*01950c46SEmmanuel Vadot }; 136f126890aSEmmanuel Vadot }; 137f126890aSEmmanuel Vadot}; 138