summaryrefslogtreecommitdiff
path: root/arch/mips/boot/dts/mobileye/eyeq6h.dtsi
blob: 1db3c3cda2e395025075387bcb66ea0737fd37f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
/*
 * Copyright 2024 Mobileye Vision Technologies Ltd.
 */

#include <dt-bindings/interrupt-controller/mips-gic.h>

#include "eyeq6h-fixed-clocks.dtsi"

/ {
	#address-cells = <2>;
	#size-cells = <2>;
	cpus {
		#address-cells = <1>;
		#size-cells = <0>;
		cpu@0 {
			device_type = "cpu";
			compatible = "img,i6500";
			reg = <0>;
			clocks = <&occ_cpu>;
		};
	};

	aliases {
		serial0 = &uart0;
	};

	cpu_intc: interrupt-controller {
		compatible = "mti,cpu-interrupt-controller";
		interrupt-controller;
		#address-cells = <0>;
		#interrupt-cells = <1>;
	};

	soc: soc {
		compatible = "simple-bus";
		#address-cells = <2>;
		#size-cells = <2>;
		ranges;

		uart0: serial@d3331000 {
			compatible = "arm,pl011", "arm,primecell";
			reg = <0 0xd3331000 0x0 0x1000>;
			reg-io-width = <4>;
			interrupt-parent = <&gic>;
			interrupts = <GIC_SHARED 43 IRQ_TYPE_LEVEL_HIGH>;
			clocks = <&occ_periph_w>, <&occ_periph_w>;
			clock-names = "uartclk", "apb_pclk";
		};

		pinctrl_west: pinctrl@d3337000 {
			compatible = "pinctrl-single";
			reg = <0x0 0xd3337000 0x0 0xb0>;
			#pinctrl-cells = <1>;
			pinctrl-single,register-width = <32>;
			pinctrl-single,function-mask = <0xffff>;
		};

		pinctrl_east: pinctrl@d3357000 {
			compatible = "pinctrl-single";
			reg = <0x0 0xd3357000 0x0 0xb0>;
			#pinctrl-cells = <1>;
			pinctrl-single,register-width = <32>;
			pinctrl-single,function-mask = <0xffff>;
		};

		pinctrl_south: pinctrl@d8014000 {
			compatible = "pinctrl-single";
			reg = <0x0 0xd8014000 0x0 0xf8>;
			#pinctrl-cells = <1>;
			pinctrl-single,register-width = <32>;
			pinctrl-single,function-mask = <0xffff>;
		};

		gic: interrupt-controller@f0920000 {
			compatible = "mti,gic";
			reg = <0x0 0xf0920000 0x0 0x20000>;
			interrupt-controller;
			#interrupt-cells = <3>;

			/*
			 * Declare the interrupt-parent even though the mti,gic
			 * binding doesn't require it, such that the kernel can
			 * figure out that cpu_intc is the root interrupt
			 * controller & should be probed first.
			 */
			interrupt-parent = <&cpu_intc>;

			timer {
				compatible = "mti,gic-timer";
				interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
				clocks = <&occ_cpu>;
			};
		};
	};
};

#include "eyeq6h-pins.dtsi"