xref: /linux/scripts/dtc/include-prefixes/nios2/3c120_devboard.dts (revision 5d13c73179983f8692adf397e65f2f57c613a917)
195acd4c7SLey Foon Tan/*
295acd4c7SLey Foon Tan *  Copyright (C) 2013 Altera Corporation
395acd4c7SLey Foon Tan *
495acd4c7SLey Foon Tan * This program is free software; you can redistribute it and/or modify
595acd4c7SLey Foon Tan * it under the terms of the GNU General Public License as published by
695acd4c7SLey Foon Tan * the Free Software Foundation; either version 2 of the License, or
795acd4c7SLey Foon Tan * (at your option) any later version.
895acd4c7SLey Foon Tan *
995acd4c7SLey Foon Tan * This program is distributed in the hope that it will be useful,
1095acd4c7SLey Foon Tan * but WITHOUT ANY WARRANTY; without even the implied warranty of
1195acd4c7SLey Foon Tan * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1295acd4c7SLey Foon Tan * GNU General Public License for more details.
1395acd4c7SLey Foon Tan *
1495acd4c7SLey Foon Tan * You should have received a copy of the GNU General Public License
1595acd4c7SLey Foon Tan * along with this program.  If not, see <http://www.gnu.org/licenses/>.
1695acd4c7SLey Foon Tan *
1795acd4c7SLey Foon Tan * This file is generated by sopc2dts.
1895acd4c7SLey Foon Tan */
1995acd4c7SLey Foon Tan
2095acd4c7SLey Foon Tan/dts-v1/;
2195acd4c7SLey Foon Tan
2295acd4c7SLey Foon Tan/ {
2395acd4c7SLey Foon Tan	model = "altr,qsys_ghrd_3c120";
2495acd4c7SLey Foon Tan	compatible = "altr,qsys_ghrd_3c120";
2595acd4c7SLey Foon Tan	#address-cells = <1>;
2695acd4c7SLey Foon Tan	#size-cells = <1>;
2795acd4c7SLey Foon Tan
2895acd4c7SLey Foon Tan	cpus {
2995acd4c7SLey Foon Tan		#address-cells = <1>;
3095acd4c7SLey Foon Tan		#size-cells = <0>;
3195acd4c7SLey Foon Tan
32*5d13c731SMathieu Malaterre		cpu: cpu@0 {
3395acd4c7SLey Foon Tan			device_type = "cpu";
3495acd4c7SLey Foon Tan			compatible = "altr,nios2-1.0";
3595acd4c7SLey Foon Tan			reg = <0x00000000>;
3695acd4c7SLey Foon Tan			interrupt-controller;
3795acd4c7SLey Foon Tan			#interrupt-cells = <1>;
3895acd4c7SLey Foon Tan			clock-frequency = <125000000>;
3995acd4c7SLey Foon Tan			dcache-line-size = <32>;
4095acd4c7SLey Foon Tan			icache-line-size = <32>;
4195acd4c7SLey Foon Tan			dcache-size = <32768>;
4295acd4c7SLey Foon Tan			icache-size = <32768>;
4395acd4c7SLey Foon Tan			altr,implementation = "fast";
4495acd4c7SLey Foon Tan			altr,pid-num-bits = <8>;
4595acd4c7SLey Foon Tan			altr,tlb-num-ways = <16>;
4695acd4c7SLey Foon Tan			altr,tlb-num-entries = <128>;
4795acd4c7SLey Foon Tan			altr,tlb-ptr-sz = <7>;
4895acd4c7SLey Foon Tan			altr,has-div = <1>;
4995acd4c7SLey Foon Tan			altr,has-mul = <1>;
5095acd4c7SLey Foon Tan			altr,reset-addr = <0xc2800000>;
5195acd4c7SLey Foon Tan			altr,fast-tlb-miss-addr = <0xc7fff400>;
5295acd4c7SLey Foon Tan			altr,exception-addr = <0xd0000020>;
5395acd4c7SLey Foon Tan			altr,has-initda = <1>;
5495acd4c7SLey Foon Tan			altr,has-mmu = <1>;
5595acd4c7SLey Foon Tan		};
5695acd4c7SLey Foon Tan	};
5795acd4c7SLey Foon Tan
5895acd4c7SLey Foon Tan	memory@0 {
5995acd4c7SLey Foon Tan		device_type = "memory";
6095acd4c7SLey Foon Tan		reg = <0x10000000 0x08000000>,
6195acd4c7SLey Foon Tan			<0x07fff400 0x00000400>;
6295acd4c7SLey Foon Tan	};
6395acd4c7SLey Foon Tan
6495acd4c7SLey Foon Tan	sopc@0 {
6595acd4c7SLey Foon Tan		device_type = "soc";
6695acd4c7SLey Foon Tan		ranges;
6795acd4c7SLey Foon Tan		#address-cells = <1>;
6895acd4c7SLey Foon Tan		#size-cells = <1>;
6995acd4c7SLey Foon Tan		compatible = "altr,avalon", "simple-bus";
7095acd4c7SLey Foon Tan		bus-frequency = <125000000>;
7195acd4c7SLey Foon Tan
72*5d13c731SMathieu Malaterre		pb_cpu_to_io: bridge@8000000 {
7395acd4c7SLey Foon Tan			compatible = "simple-bus";
7495acd4c7SLey Foon Tan			reg = <0x08000000 0x00800000>;
7595acd4c7SLey Foon Tan			#address-cells = <1>;
7695acd4c7SLey Foon Tan			#size-cells = <1>;
7795acd4c7SLey Foon Tan			ranges = <0x00002000 0x08002000 0x00002000>,
7895acd4c7SLey Foon Tan				<0x00004000 0x08004000 0x00000400>,
7995acd4c7SLey Foon Tan				<0x00004400 0x08004400 0x00000040>,
8095acd4c7SLey Foon Tan				<0x00004800 0x08004800 0x00000040>,
8195acd4c7SLey Foon Tan				<0x00004c80 0x08004c80 0x00000020>,
8295acd4c7SLey Foon Tan				<0x00004d50 0x08004d50 0x00000008>,
8395acd4c7SLey Foon Tan				<0x00008000 0x08008000 0x00000020>,
8495acd4c7SLey Foon Tan				<0x00400000 0x08400000 0x00000020>;
8595acd4c7SLey Foon Tan
86*5d13c731SMathieu Malaterre			timer_1ms: timer@400000 {
8795acd4c7SLey Foon Tan				compatible = "altr,timer-1.0";
8895acd4c7SLey Foon Tan				reg = <0x00400000 0x00000020>;
8995acd4c7SLey Foon Tan				interrupt-parent = <&cpu>;
9095acd4c7SLey Foon Tan				interrupts = <11>;
9195acd4c7SLey Foon Tan				clock-frequency = <125000000>;
9295acd4c7SLey Foon Tan			};
9395acd4c7SLey Foon Tan
94*5d13c731SMathieu Malaterre			timer_0: timer@8000 {
9595acd4c7SLey Foon Tan				compatible = "altr,timer-1.0";
9695acd4c7SLey Foon Tan				reg = < 0x00008000 0x00000020 >;
9795acd4c7SLey Foon Tan				interrupt-parent = < &cpu >;
9895acd4c7SLey Foon Tan				interrupts = < 5 >;
9995acd4c7SLey Foon Tan				clock-frequency = < 125000000 >;
10095acd4c7SLey Foon Tan			};
10195acd4c7SLey Foon Tan
102*5d13c731SMathieu Malaterre			jtag_uart: serial@4d50 {
10395acd4c7SLey Foon Tan				compatible = "altr,juart-1.0";
10495acd4c7SLey Foon Tan				reg = <0x00004d50 0x00000008>;
10595acd4c7SLey Foon Tan				interrupt-parent = <&cpu>;
10695acd4c7SLey Foon Tan				interrupts = <1>;
10795acd4c7SLey Foon Tan			};
10895acd4c7SLey Foon Tan
109*5d13c731SMathieu Malaterre			tse_mac: ethernet@4000 {
11095acd4c7SLey Foon Tan				compatible = "altr,tse-1.0";
11195acd4c7SLey Foon Tan				reg = <0x00004000 0x00000400>,
11295acd4c7SLey Foon Tan					<0x00004400 0x00000040>,
11395acd4c7SLey Foon Tan					<0x00004800 0x00000040>,
11495acd4c7SLey Foon Tan					<0x00002000 0x00002000>;
11595acd4c7SLey Foon Tan				reg-names = "control_port", "rx_csr", "tx_csr", "s1";
11695acd4c7SLey Foon Tan				interrupt-parent = <&cpu>;
11795acd4c7SLey Foon Tan				interrupts = <2 3>;
11895acd4c7SLey Foon Tan				interrupt-names = "rx_irq", "tx_irq";
11995acd4c7SLey Foon Tan				rx-fifo-depth = <8192>;
12095acd4c7SLey Foon Tan				tx-fifo-depth = <8192>;
12195acd4c7SLey Foon Tan				max-frame-size = <1518>;
12295acd4c7SLey Foon Tan				local-mac-address = [ 00 00 00 00 00 00 ];
12395acd4c7SLey Foon Tan				phy-mode = "rgmii-id";
12495acd4c7SLey Foon Tan				phy-handle = <&phy0>;
12595acd4c7SLey Foon Tan				tse_mac_mdio: mdio {
12695acd4c7SLey Foon Tan					compatible = "altr,tse-mdio";
12795acd4c7SLey Foon Tan					#address-cells = <1>;
12895acd4c7SLey Foon Tan					#size-cells = <0>;
12995acd4c7SLey Foon Tan					phy0: ethernet-phy@18 {
13095acd4c7SLey Foon Tan						reg = <18>;
13195acd4c7SLey Foon Tan						device_type = "ethernet-phy";
13295acd4c7SLey Foon Tan					};
13395acd4c7SLey Foon Tan				};
13495acd4c7SLey Foon Tan			};
13595acd4c7SLey Foon Tan
136*5d13c731SMathieu Malaterre			uart: serial@4c80 {
13795acd4c7SLey Foon Tan				compatible = "altr,uart-1.0";
13895acd4c7SLey Foon Tan				reg = <0x00004c80 0x00000020>;
13995acd4c7SLey Foon Tan				interrupt-parent = <&cpu>;
14095acd4c7SLey Foon Tan				interrupts = <10>;
14195acd4c7SLey Foon Tan				current-speed = <115200>;
14295acd4c7SLey Foon Tan				clock-frequency = <62500000>;
14395acd4c7SLey Foon Tan			};
14495acd4c7SLey Foon Tan		};
14595acd4c7SLey Foon Tan
146*5d13c731SMathieu Malaterre		cfi_flash_64m: flash@0 {
14795acd4c7SLey Foon Tan			compatible = "cfi-flash";
14895acd4c7SLey Foon Tan			reg = <0x00000000 0x04000000>;
14995acd4c7SLey Foon Tan			bank-width = <2>;
15095acd4c7SLey Foon Tan			device-width = <1>;
15195acd4c7SLey Foon Tan			#address-cells = <1>;
15295acd4c7SLey Foon Tan			#size-cells = <1>;
15395acd4c7SLey Foon Tan
15495acd4c7SLey Foon Tan			partition@800000 {
15595acd4c7SLey Foon Tan				reg = <0x00800000 0x01e00000>;
15695acd4c7SLey Foon Tan				label = "JFFS2 Filesystem";
15795acd4c7SLey Foon Tan			};
15895acd4c7SLey Foon Tan		};
15995acd4c7SLey Foon Tan	};
16095acd4c7SLey Foon Tan
16195acd4c7SLey Foon Tan	chosen {
1628993d5e4STobias Klauser		bootargs = "debug earlycon console=ttyJ0,115200";
1638993d5e4STobias Klauser		stdout-path = &jtag_uart;
16495acd4c7SLey Foon Tan	};
16595acd4c7SLey Foon Tan};
166