xref: /freebsd/sys/contrib/device-tree/src/arm/broadcom/bcm6846.dtsi (revision 01950c46b8155250f64374fb72fc11faa44bf099)
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,bcm6846", "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		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		arm,cpu-registers-not-fw-configured;
50f126890aSEmmanuel Vadot	};
51f126890aSEmmanuel Vadot
52f126890aSEmmanuel Vadot	pmu: pmu {
53f126890aSEmmanuel Vadot		compatible = "arm,cortex-a7-pmu";
54f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
55f126890aSEmmanuel Vadot			<GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
56f126890aSEmmanuel Vadot		interrupt-affinity = <&CA7_0>, <&CA7_1>;
57f126890aSEmmanuel Vadot	};
58f126890aSEmmanuel Vadot
59f126890aSEmmanuel Vadot	clocks: clocks {
60f126890aSEmmanuel Vadot		periph_clk: periph-clk {
61f126890aSEmmanuel Vadot			compatible = "fixed-clock";
62f126890aSEmmanuel Vadot			#clock-cells = <0>;
63f126890aSEmmanuel Vadot			clock-frequency = <200000000>;
64f126890aSEmmanuel Vadot		};
65f126890aSEmmanuel Vadot
66f126890aSEmmanuel Vadot		hsspi_pll: hsspi-pll {
67f126890aSEmmanuel Vadot			compatible = "fixed-clock";
68f126890aSEmmanuel Vadot			#clock-cells = <0>;
69f126890aSEmmanuel Vadot			clock-frequency = <400000000>;
70f126890aSEmmanuel Vadot		};
71f126890aSEmmanuel Vadot	};
72f126890aSEmmanuel Vadot
73f126890aSEmmanuel Vadot	psci {
74f126890aSEmmanuel Vadot		compatible = "arm,psci-0.2";
75f126890aSEmmanuel Vadot		method = "smc";
76f126890aSEmmanuel Vadot	};
77f126890aSEmmanuel Vadot
78f126890aSEmmanuel Vadot	axi@81000000 {
79f126890aSEmmanuel Vadot		compatible = "simple-bus";
80f126890aSEmmanuel Vadot		#address-cells = <1>;
81f126890aSEmmanuel Vadot		#size-cells = <1>;
82f126890aSEmmanuel Vadot		ranges = <0 0x81000000 0x8000>;
83f126890aSEmmanuel Vadot
84f126890aSEmmanuel Vadot		gic: interrupt-controller@1000 {
85f126890aSEmmanuel Vadot			compatible = "arm,cortex-a7-gic";
86f126890aSEmmanuel Vadot			#interrupt-cells = <3>;
87f126890aSEmmanuel Vadot			interrupt-controller;
88f126890aSEmmanuel Vadot			interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
89f126890aSEmmanuel Vadot			reg = <0x1000 0x1000>,
90f126890aSEmmanuel Vadot				<0x2000 0x2000>,
91f126890aSEmmanuel Vadot				<0x4000 0x2000>,
92f126890aSEmmanuel Vadot				<0x6000 0x2000>;
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 0xff800000 0x800000>;
101f126890aSEmmanuel Vadot
102f126890aSEmmanuel Vadot		uart0: serial@640 {
103f126890aSEmmanuel Vadot			compatible = "brcm,bcm6345-uart";
104f126890aSEmmanuel Vadot			reg = <0x640 0x1b>;
105f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 92 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,bcm6846-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@1800 {
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 = <0x1800 0x600>, <0x2000 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