xref: /freebsd-src/sys/contrib/device-tree/src/mips/mscc/jaguar2.dtsi (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1*5def4c47SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*5def4c47SEmmanuel Vadot/*
3*5def4c47SEmmanuel Vadot * Copyright (c) 2020 Microsemi Corporation
4*5def4c47SEmmanuel Vadot */
5*5def4c47SEmmanuel Vadot
6*5def4c47SEmmanuel Vadot/ {
7*5def4c47SEmmanuel Vadot	#address-cells = <1>;
8*5def4c47SEmmanuel Vadot	#size-cells = <1>;
9*5def4c47SEmmanuel Vadot	compatible = "mscc,jr2";
10*5def4c47SEmmanuel Vadot
11*5def4c47SEmmanuel Vadot	aliases {
12*5def4c47SEmmanuel Vadot		serial0 = &uart0;
13*5def4c47SEmmanuel Vadot		serial1 = &uart2;
14*5def4c47SEmmanuel Vadot		gpio0 = &gpio;
15*5def4c47SEmmanuel Vadot	};
16*5def4c47SEmmanuel Vadot
17*5def4c47SEmmanuel Vadot	cpus {
18*5def4c47SEmmanuel Vadot		#address-cells = <1>;
19*5def4c47SEmmanuel Vadot		#size-cells = <0>;
20*5def4c47SEmmanuel Vadot
21*5def4c47SEmmanuel Vadot		cpu@0 {
22*5def4c47SEmmanuel Vadot			compatible = "mips,mips24KEc";
23*5def4c47SEmmanuel Vadot			device_type = "cpu";
24*5def4c47SEmmanuel Vadot			clocks = <&cpu_clk>;
25*5def4c47SEmmanuel Vadot			reg = <0>;
26*5def4c47SEmmanuel Vadot		};
27*5def4c47SEmmanuel Vadot	};
28*5def4c47SEmmanuel Vadot
29*5def4c47SEmmanuel Vadot	cpuintc: interrupt-controller {
30*5def4c47SEmmanuel Vadot		#address-cells = <0>;
31*5def4c47SEmmanuel Vadot		#interrupt-cells = <1>;
32*5def4c47SEmmanuel Vadot		interrupt-controller;
33*5def4c47SEmmanuel Vadot		compatible = "mti,cpu-interrupt-controller";
34*5def4c47SEmmanuel Vadot	};
35*5def4c47SEmmanuel Vadot
36*5def4c47SEmmanuel Vadot	cpu_clk: cpu-clock {
37*5def4c47SEmmanuel Vadot		compatible = "fixed-clock";
38*5def4c47SEmmanuel Vadot		#clock-cells = <0>;
39*5def4c47SEmmanuel Vadot		clock-frequency = <500000000>;
40*5def4c47SEmmanuel Vadot	};
41*5def4c47SEmmanuel Vadot
42*5def4c47SEmmanuel Vadot	ahb_clk: ahb-clk {
43*5def4c47SEmmanuel Vadot		compatible = "fixed-factor-clock";
44*5def4c47SEmmanuel Vadot		#clock-cells = <0>;
45*5def4c47SEmmanuel Vadot		clocks = <&cpu_clk>;
46*5def4c47SEmmanuel Vadot		clock-div = <2>;
47*5def4c47SEmmanuel Vadot		clock-mult = <1>;
48*5def4c47SEmmanuel Vadot	};
49*5def4c47SEmmanuel Vadot
50*5def4c47SEmmanuel Vadot	ahb: ahb {
51*5def4c47SEmmanuel Vadot		compatible = "simple-bus";
52*5def4c47SEmmanuel Vadot		#address-cells = <1>;
53*5def4c47SEmmanuel Vadot		#size-cells = <1>;
54*5def4c47SEmmanuel Vadot		ranges;
55*5def4c47SEmmanuel Vadot
56*5def4c47SEmmanuel Vadot		interrupt-parent = <&intc>;
57*5def4c47SEmmanuel Vadot
58*5def4c47SEmmanuel Vadot		cpu_ctrl: syscon@70000000 {
59*5def4c47SEmmanuel Vadot			compatible = "mscc,ocelot-cpu-syscon", "syscon";
60*5def4c47SEmmanuel Vadot			reg = <0x70000000 0x2c>;
61*5def4c47SEmmanuel Vadot		};
62*5def4c47SEmmanuel Vadot
63*5def4c47SEmmanuel Vadot		intc: interrupt-controller@70000070 {
64*5def4c47SEmmanuel Vadot			compatible = "mscc,jaguar2-icpu-intr";
65*5def4c47SEmmanuel Vadot			reg = <0x70000070 0x94>;
66*5def4c47SEmmanuel Vadot			#interrupt-cells = <1>;
67*5def4c47SEmmanuel Vadot			interrupt-controller;
68*5def4c47SEmmanuel Vadot			interrupt-parent = <&cpuintc>;
69*5def4c47SEmmanuel Vadot			interrupts = <2>;
70*5def4c47SEmmanuel Vadot		};
71*5def4c47SEmmanuel Vadot
72*5def4c47SEmmanuel Vadot		uart0: serial@70100000 {
73*5def4c47SEmmanuel Vadot			pinctrl-0 = <&uart_pins>;
74*5def4c47SEmmanuel Vadot			pinctrl-names = "default";
75*5def4c47SEmmanuel Vadot			compatible = "ns16550a";
76*5def4c47SEmmanuel Vadot			reg = <0x70100000 0x20>;
77*5def4c47SEmmanuel Vadot			interrupts = <6>;
78*5def4c47SEmmanuel Vadot			clocks = <&ahb_clk>;
79*5def4c47SEmmanuel Vadot			reg-io-width = <4>;
80*5def4c47SEmmanuel Vadot			reg-shift = <2>;
81*5def4c47SEmmanuel Vadot
82*5def4c47SEmmanuel Vadot			status = "disabled";
83*5def4c47SEmmanuel Vadot		};
84*5def4c47SEmmanuel Vadot
85*5def4c47SEmmanuel Vadot		uart2: serial@70100800 {
86*5def4c47SEmmanuel Vadot			pinctrl-0 = <&uart2_pins>;
87*5def4c47SEmmanuel Vadot			pinctrl-names = "default";
88*5def4c47SEmmanuel Vadot			compatible = "ns16550a";
89*5def4c47SEmmanuel Vadot			reg = <0x70100800 0x20>;
90*5def4c47SEmmanuel Vadot			interrupts = <7>;
91*5def4c47SEmmanuel Vadot			clocks = <&ahb_clk>;
92*5def4c47SEmmanuel Vadot			reg-io-width = <4>;
93*5def4c47SEmmanuel Vadot			reg-shift = <2>;
94*5def4c47SEmmanuel Vadot
95*5def4c47SEmmanuel Vadot			status = "disabled";
96*5def4c47SEmmanuel Vadot		};
97*5def4c47SEmmanuel Vadot
98*5def4c47SEmmanuel Vadot		gpio: pinctrl@71010038 {
99*5def4c47SEmmanuel Vadot			compatible = "mscc,jaguar2-pinctrl";
100*5def4c47SEmmanuel Vadot			reg = <0x71010038 0x90>;
101*5def4c47SEmmanuel Vadot			gpio-controller;
102*5def4c47SEmmanuel Vadot			#gpio-cells = <2>;
103*5def4c47SEmmanuel Vadot			gpio-ranges = <&gpio 0 0 64>;
104*5def4c47SEmmanuel Vadot
105*5def4c47SEmmanuel Vadot			uart_pins: uart-pins {
106*5def4c47SEmmanuel Vadot				pins = "GPIO_10", "GPIO_11";
107*5def4c47SEmmanuel Vadot				function = "uart";
108*5def4c47SEmmanuel Vadot			};
109*5def4c47SEmmanuel Vadot
110*5def4c47SEmmanuel Vadot			uart2_pins: uart2-pins {
111*5def4c47SEmmanuel Vadot				pins = "GPIO_24", "GPIO_25";
112*5def4c47SEmmanuel Vadot				function = "uart2";
113*5def4c47SEmmanuel Vadot			};
114*5def4c47SEmmanuel Vadot
115*5def4c47SEmmanuel Vadot			cs1_pins: cs1-pins {
116*5def4c47SEmmanuel Vadot				pins = "GPIO_16";
117*5def4c47SEmmanuel Vadot				function = "si";
118*5def4c47SEmmanuel Vadot			};
119*5def4c47SEmmanuel Vadot
120*5def4c47SEmmanuel Vadot			cs2_pins: cs2-pins {
121*5def4c47SEmmanuel Vadot				pins = "GPIO_17";
122*5def4c47SEmmanuel Vadot				function = "si";
123*5def4c47SEmmanuel Vadot			};
124*5def4c47SEmmanuel Vadot
125*5def4c47SEmmanuel Vadot			cs3_pins: cs3-pins {
126*5def4c47SEmmanuel Vadot				pins = "GPIO_18";
127*5def4c47SEmmanuel Vadot				function = "si";
128*5def4c47SEmmanuel Vadot			};
129*5def4c47SEmmanuel Vadot
130*5def4c47SEmmanuel Vadot			i2c_pins: i2c-pins {
131*5def4c47SEmmanuel Vadot				pins = "GPIO_14", "GPIO_15";
132*5def4c47SEmmanuel Vadot				function = "twi";
133*5def4c47SEmmanuel Vadot			};
134*5def4c47SEmmanuel Vadot
135*5def4c47SEmmanuel Vadot			i2c2_pins: i2c2-pins {
136*5def4c47SEmmanuel Vadot				pins = "GPIO_28", "GPIO_29";
137*5def4c47SEmmanuel Vadot				function = "twi2";
138*5def4c47SEmmanuel Vadot			};
139*5def4c47SEmmanuel Vadot		};
140*5def4c47SEmmanuel Vadot
141*5def4c47SEmmanuel Vadot		i2c0: i2c@70100400 {
142*5def4c47SEmmanuel Vadot			compatible = "mscc,ocelot-i2c", "snps,designware-i2c";
143*5def4c47SEmmanuel Vadot			status = "disabled";
144*5def4c47SEmmanuel Vadot			pinctrl-0 = <&i2c_pins>;
145*5def4c47SEmmanuel Vadot			pinctrl-names = "default";
146*5def4c47SEmmanuel Vadot			reg = <0x70100400 0x100>, <0x700001b8 0x8>;
147*5def4c47SEmmanuel Vadot			#address-cells = <1>;
148*5def4c47SEmmanuel Vadot			#size-cells = <0>;
149*5def4c47SEmmanuel Vadot			interrupts = <8>;
150*5def4c47SEmmanuel Vadot			clock-frequency = <100000>;
151*5def4c47SEmmanuel Vadot			clocks = <&ahb_clk>;
152*5def4c47SEmmanuel Vadot		};
153*5def4c47SEmmanuel Vadot
154*5def4c47SEmmanuel Vadot		i2c2: i2c@70100c00 {
155*5def4c47SEmmanuel Vadot			compatible = "mscc,ocelot-i2c", "snps,designware-i2c";
156*5def4c47SEmmanuel Vadot			status = "disabled";
157*5def4c47SEmmanuel Vadot			pinctrl-0 = <&i2c2_pins>;
158*5def4c47SEmmanuel Vadot			pinctrl-names = "default";
159*5def4c47SEmmanuel Vadot			reg = <0x70100c00 0x100>;
160*5def4c47SEmmanuel Vadot			#address-cells = <1>;
161*5def4c47SEmmanuel Vadot			#size-cells = <0>;
162*5def4c47SEmmanuel Vadot			interrupts = <8>;
163*5def4c47SEmmanuel Vadot			clock-frequency = <100000>;
164*5def4c47SEmmanuel Vadot			clocks = <&ahb_clk>;
165*5def4c47SEmmanuel Vadot		};
166*5def4c47SEmmanuel Vadot	};
167*5def4c47SEmmanuel Vadot};
168