xref: /freebsd/sys/contrib/device-tree/src/arc/nsimosci_hs.dts (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*c66ec88fSEmmanuel Vadot/*
3*c66ec88fSEmmanuel Vadot * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com)
4*c66ec88fSEmmanuel Vadot */
5*c66ec88fSEmmanuel Vadot/dts-v1/;
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadot/include/ "skeleton_hs.dtsi"
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadot/ {
10*c66ec88fSEmmanuel Vadot	model = "snps,nsimosci_hs";
11*c66ec88fSEmmanuel Vadot	compatible = "snps,nsimosci_hs";
12*c66ec88fSEmmanuel Vadot	#address-cells = <1>;
13*c66ec88fSEmmanuel Vadot	#size-cells = <1>;
14*c66ec88fSEmmanuel Vadot	interrupt-parent = <&core_intc>;
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel Vadot	chosen {
17*c66ec88fSEmmanuel Vadot		/* this is for console on PGU */
18*c66ec88fSEmmanuel Vadot		/* bootargs = "console=tty0 consoleblank=0"; */
19*c66ec88fSEmmanuel Vadot		/* this is for console on serial */
20*c66ec88fSEmmanuel Vadot		bootargs = "earlycon=uart8250,mmio32,0xf0000000,115200n8 console=tty0 console=ttyS0,115200n8 consoleblank=0 debug video=640x480-24 print-fatal-signals=1";
21*c66ec88fSEmmanuel Vadot	};
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot	aliases {
24*c66ec88fSEmmanuel Vadot		serial0 = &uart0;
25*c66ec88fSEmmanuel Vadot	};
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel Vadot	fpga {
28*c66ec88fSEmmanuel Vadot		compatible = "simple-bus";
29*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
30*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel Vadot		/* child and parent address space 1:1 mapped */
33*c66ec88fSEmmanuel Vadot		ranges;
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel Vadot		core_clk: core_clk {
36*c66ec88fSEmmanuel Vadot			#clock-cells = <0>;
37*c66ec88fSEmmanuel Vadot			compatible = "fixed-clock";
38*c66ec88fSEmmanuel Vadot			clock-frequency = <20000000>;
39*c66ec88fSEmmanuel Vadot		};
40*c66ec88fSEmmanuel Vadot
41*c66ec88fSEmmanuel Vadot		core_intc: core-interrupt-controller {
42*c66ec88fSEmmanuel Vadot			compatible = "snps,archs-intc";
43*c66ec88fSEmmanuel Vadot			interrupt-controller;
44*c66ec88fSEmmanuel Vadot			#interrupt-cells = <1>;
45*c66ec88fSEmmanuel Vadot		};
46*c66ec88fSEmmanuel Vadot
47*c66ec88fSEmmanuel Vadot		uart0: serial@f0000000 {
48*c66ec88fSEmmanuel Vadot			compatible = "ns8250";
49*c66ec88fSEmmanuel Vadot			reg = <0xf0000000 0x2000>;
50*c66ec88fSEmmanuel Vadot			interrupts = <24>;
51*c66ec88fSEmmanuel Vadot			clock-frequency = <3686400>;
52*c66ec88fSEmmanuel Vadot			baud = <115200>;
53*c66ec88fSEmmanuel Vadot			reg-shift = <2>;
54*c66ec88fSEmmanuel Vadot			reg-io-width = <4>;
55*c66ec88fSEmmanuel Vadot			no-loopback-test = <1>;
56*c66ec88fSEmmanuel Vadot		};
57*c66ec88fSEmmanuel Vadot
58*c66ec88fSEmmanuel Vadot		pguclk: pguclk {
59*c66ec88fSEmmanuel Vadot			#clock-cells = <0>;
60*c66ec88fSEmmanuel Vadot			compatible = "fixed-clock";
61*c66ec88fSEmmanuel Vadot			clock-frequency = <25175000>;
62*c66ec88fSEmmanuel Vadot		};
63*c66ec88fSEmmanuel Vadot
64*c66ec88fSEmmanuel Vadot		pgu@f9000000 {
65*c66ec88fSEmmanuel Vadot			compatible = "snps,arcpgu";
66*c66ec88fSEmmanuel Vadot			reg = <0xf9000000 0x400>;
67*c66ec88fSEmmanuel Vadot			clocks = <&pguclk>;
68*c66ec88fSEmmanuel Vadot			clock-names = "pxlclk";
69*c66ec88fSEmmanuel Vadot		};
70*c66ec88fSEmmanuel Vadot
71*c66ec88fSEmmanuel Vadot		ps2: ps2@f9001000 {
72*c66ec88fSEmmanuel Vadot			compatible = "snps,arc_ps2";
73*c66ec88fSEmmanuel Vadot			reg = <0xf9000400 0x14>;
74*c66ec88fSEmmanuel Vadot			interrupts = <27>;
75*c66ec88fSEmmanuel Vadot			interrupt-names = "arc_ps2_irq";
76*c66ec88fSEmmanuel Vadot		};
77*c66ec88fSEmmanuel Vadot
78*c66ec88fSEmmanuel Vadot		eth0: ethernet@f0003000 {
79*c66ec88fSEmmanuel Vadot			compatible = "ezchip,nps-mgt-enet";
80*c66ec88fSEmmanuel Vadot			reg = <0xf0003000 0x44>;
81*c66ec88fSEmmanuel Vadot			interrupts = <25>;
82*c66ec88fSEmmanuel Vadot		};
83*c66ec88fSEmmanuel Vadot
84*c66ec88fSEmmanuel Vadot		arcpct0: pct {
85*c66ec88fSEmmanuel Vadot			compatible = "snps,archs-pct";
86*c66ec88fSEmmanuel Vadot			#interrupt-cells = <1>;
87*c66ec88fSEmmanuel Vadot			interrupts = <20>;
88*c66ec88fSEmmanuel Vadot		};
89*c66ec88fSEmmanuel Vadot	};
90*c66ec88fSEmmanuel Vadot};
91