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