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,bcm63178", "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 CA7_0: cpu@0 { 21f126890aSEmmanuel Vadot device_type = "cpu"; 22f126890aSEmmanuel Vadot compatible = "arm,cortex-a7"; 23f126890aSEmmanuel Vadot reg = <0x0>; 24f126890aSEmmanuel Vadot next-level-cache = <&L2_0>; 25f126890aSEmmanuel Vadot enable-method = "psci"; 26f126890aSEmmanuel Vadot }; 27f126890aSEmmanuel Vadot 28f126890aSEmmanuel Vadot CA7_1: cpu@1 { 29f126890aSEmmanuel Vadot device_type = "cpu"; 30f126890aSEmmanuel Vadot compatible = "arm,cortex-a7"; 31f126890aSEmmanuel Vadot reg = <0x1>; 32f126890aSEmmanuel Vadot next-level-cache = <&L2_0>; 33f126890aSEmmanuel Vadot enable-method = "psci"; 34f126890aSEmmanuel Vadot }; 35f126890aSEmmanuel Vadot 36f126890aSEmmanuel Vadot CA7_2: cpu@2 { 37f126890aSEmmanuel Vadot device_type = "cpu"; 38f126890aSEmmanuel Vadot compatible = "arm,cortex-a7"; 39f126890aSEmmanuel Vadot reg = <0x2>; 40f126890aSEmmanuel Vadot next-level-cache = <&L2_0>; 41f126890aSEmmanuel Vadot enable-method = "psci"; 42f126890aSEmmanuel Vadot }; 43f126890aSEmmanuel Vadot 44f126890aSEmmanuel Vadot L2_0: l2-cache0 { 45f126890aSEmmanuel Vadot compatible = "cache"; 46f126890aSEmmanuel Vadot cache-level = <2>; 47f126890aSEmmanuel Vadot cache-unified; 48f126890aSEmmanuel Vadot }; 49f126890aSEmmanuel Vadot }; 50f126890aSEmmanuel Vadot 51f126890aSEmmanuel Vadot timer { 52f126890aSEmmanuel Vadot compatible = "arm,armv7-timer"; 53f126890aSEmmanuel Vadot interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(3) | IRQ_TYPE_LEVEL_LOW)>, 54f126890aSEmmanuel Vadot <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(3) | IRQ_TYPE_LEVEL_LOW)>, 55f126890aSEmmanuel Vadot <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(3) | IRQ_TYPE_LEVEL_LOW)>, 56f126890aSEmmanuel Vadot <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(3) | IRQ_TYPE_LEVEL_LOW)>; 57f126890aSEmmanuel Vadot arm,cpu-registers-not-fw-configured; 58f126890aSEmmanuel Vadot }; 59f126890aSEmmanuel Vadot 60f126890aSEmmanuel Vadot pmu: pmu { 61f126890aSEmmanuel Vadot compatible = "arm,cortex-a7-pmu"; 62f126890aSEmmanuel Vadot interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>, 63f126890aSEmmanuel Vadot <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>, 64f126890aSEmmanuel Vadot <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; 65f126890aSEmmanuel Vadot interrupt-affinity = <&CA7_0>, <&CA7_1>, 66f126890aSEmmanuel Vadot <&CA7_2>; 67f126890aSEmmanuel Vadot }; 68f126890aSEmmanuel Vadot 69f126890aSEmmanuel Vadot clocks: clocks { 70f126890aSEmmanuel Vadot periph_clk: periph-clk { 71f126890aSEmmanuel Vadot compatible = "fixed-clock"; 72f126890aSEmmanuel Vadot #clock-cells = <0>; 73f126890aSEmmanuel Vadot clock-frequency = <200000000>; 74f126890aSEmmanuel Vadot }; 75f126890aSEmmanuel Vadot 76f126890aSEmmanuel Vadot uart_clk: uart-clk { 77f126890aSEmmanuel Vadot compatible = "fixed-factor-clock"; 78f126890aSEmmanuel Vadot #clock-cells = <0>; 79f126890aSEmmanuel Vadot clocks = <&periph_clk>; 80f126890aSEmmanuel Vadot clock-div = <4>; 81f126890aSEmmanuel Vadot clock-mult = <1>; 82f126890aSEmmanuel Vadot }; 83f126890aSEmmanuel Vadot 84f126890aSEmmanuel Vadot hsspi_pll: hsspi-pll { 85f126890aSEmmanuel Vadot compatible = "fixed-clock"; 86f126890aSEmmanuel Vadot #clock-cells = <0>; 87f126890aSEmmanuel Vadot clock-frequency = <200000000>; 88f126890aSEmmanuel Vadot }; 89f126890aSEmmanuel Vadot }; 90f126890aSEmmanuel Vadot 91f126890aSEmmanuel Vadot psci { 92f126890aSEmmanuel Vadot compatible = "arm,psci-0.2"; 93f126890aSEmmanuel Vadot method = "smc"; 94f126890aSEmmanuel Vadot }; 95f126890aSEmmanuel Vadot 96f126890aSEmmanuel Vadot axi@81000000 { 97f126890aSEmmanuel Vadot compatible = "simple-bus"; 98f126890aSEmmanuel Vadot #address-cells = <1>; 99f126890aSEmmanuel Vadot #size-cells = <1>; 100f126890aSEmmanuel Vadot ranges = <0 0x81000000 0x8000>; 101f126890aSEmmanuel Vadot 102f126890aSEmmanuel Vadot gic: interrupt-controller@1000 { 103f126890aSEmmanuel Vadot compatible = "arm,cortex-a7-gic"; 104f126890aSEmmanuel Vadot #interrupt-cells = <3>; 105f126890aSEmmanuel Vadot interrupt-controller; 106f126890aSEmmanuel Vadot interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(3) | IRQ_TYPE_LEVEL_HIGH)>; 107f126890aSEmmanuel Vadot reg = <0x1000 0x1000>, 108f126890aSEmmanuel Vadot <0x2000 0x2000>, 109f126890aSEmmanuel Vadot <0x4000 0x2000>, 110f126890aSEmmanuel Vadot <0x6000 0x2000>; 111f126890aSEmmanuel Vadot }; 112f126890aSEmmanuel Vadot }; 113f126890aSEmmanuel Vadot 114f126890aSEmmanuel Vadot bus@ff800000 { 115f126890aSEmmanuel Vadot compatible = "simple-bus"; 116f126890aSEmmanuel Vadot #address-cells = <1>; 117f126890aSEmmanuel Vadot #size-cells = <1>; 118f126890aSEmmanuel Vadot ranges = <0 0xff800000 0x800000>; 119f126890aSEmmanuel Vadot 120f126890aSEmmanuel Vadot hsspi: spi@1000 { 121f126890aSEmmanuel Vadot #address-cells = <1>; 122f126890aSEmmanuel Vadot #size-cells = <0>; 123f126890aSEmmanuel Vadot compatible = "brcm,bcm63178-hsspi", "brcm,bcmbca-hsspi-v1.0"; 124f126890aSEmmanuel Vadot reg = <0x1000 0x600>; 125f126890aSEmmanuel Vadot interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; 126f126890aSEmmanuel Vadot clocks = <&hsspi_pll &hsspi_pll>; 127f126890aSEmmanuel Vadot clock-names = "hsspi", "pll"; 128f126890aSEmmanuel Vadot num-cs = <8>; 129f126890aSEmmanuel Vadot status = "disabled"; 130f126890aSEmmanuel Vadot }; 131f126890aSEmmanuel Vadot 132*01950c46SEmmanuel Vadot nand_controller: nand-controller@1800 { 133*01950c46SEmmanuel Vadot #address-cells = <1>; 134*01950c46SEmmanuel Vadot #size-cells = <0>; 135*01950c46SEmmanuel Vadot compatible = "brcm,nand-bcm63138", "brcm,brcmnand-v7.1", "brcm,brcmnand"; 136*01950c46SEmmanuel Vadot reg = <0x1800 0x600>, <0x2000 0x10>; 137*01950c46SEmmanuel Vadot reg-names = "nand", "nand-int-base"; 138*01950c46SEmmanuel Vadot status = "disabled"; 139*01950c46SEmmanuel Vadot 140*01950c46SEmmanuel Vadot nandcs: nand@0 { 141*01950c46SEmmanuel Vadot compatible = "brcm,nandcs"; 142*01950c46SEmmanuel Vadot reg = <0>; 143*01950c46SEmmanuel Vadot }; 144*01950c46SEmmanuel Vadot }; 145*01950c46SEmmanuel Vadot 146f126890aSEmmanuel Vadot uart0: serial@12000 { 147f126890aSEmmanuel Vadot compatible = "arm,pl011", "arm,primecell"; 148f126890aSEmmanuel Vadot reg = <0x12000 0x1000>; 149f126890aSEmmanuel Vadot interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 150f126890aSEmmanuel Vadot clocks = <&uart_clk>, <&uart_clk>; 151f126890aSEmmanuel Vadot clock-names = "uartclk", "apb_pclk"; 152f126890aSEmmanuel Vadot status = "disabled"; 153f126890aSEmmanuel Vadot }; 154f126890aSEmmanuel Vadot }; 155f126890aSEmmanuel Vadot}; 156