GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)
This commit is contained in:
@@ -0,0 +1,267 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* Copyright (C) 2015 Altera Corporation
|
||||
*
|
||||
* This file is generated by sopc2dts.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
/ {
|
||||
model = "Altera NiosII Max10";
|
||||
compatible = "altr,niosii-max10";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
cpus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu: cpu@0 {
|
||||
u-boot,dm-pre-reloc;
|
||||
device_type = "cpu";
|
||||
compatible = "altr,nios2-1.1";
|
||||
reg = <0x00000000>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <1>;
|
||||
altr,exception-addr = <0xc8000120>;
|
||||
altr,fast-tlb-miss-addr = <0xc0000100>;
|
||||
altr,has-div = <1>;
|
||||
altr,has-initda = <1>;
|
||||
altr,has-mmu = <1>;
|
||||
altr,has-mul = <1>;
|
||||
altr,implementation = "fast";
|
||||
altr,pid-num-bits = <8>;
|
||||
altr,reset-addr = <0xd4000000>;
|
||||
altr,tlb-num-entries = <256>;
|
||||
altr,tlb-num-ways = <16>;
|
||||
altr,tlb-ptr-sz = <8>;
|
||||
clock-frequency = <75000000>;
|
||||
dcache-line-size = <32>;
|
||||
dcache-size = <32768>;
|
||||
icache-line-size = <32>;
|
||||
icache-size = <32768>;
|
||||
};
|
||||
};
|
||||
|
||||
memory {
|
||||
device_type = "memory";
|
||||
reg = <0x08000000 0x08000000>,
|
||||
<0x00000000 0x00000400>;
|
||||
};
|
||||
|
||||
sopc0: sopc@0 {
|
||||
device_type = "soc";
|
||||
ranges;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "altr,avalon", "simple-bus";
|
||||
bus-frequency = <75000000>;
|
||||
|
||||
jtag_uart: serial@18001530 {
|
||||
compatible = "altr,juart-1.0";
|
||||
reg = <0x18001530 0x00000008>;
|
||||
interrupt-parent = <&cpu>;
|
||||
interrupts = <7>;
|
||||
};
|
||||
|
||||
a_16550_uart_0: serial@18001600 {
|
||||
compatible = "altr,16550-FIFO32", "ns16550a";
|
||||
reg = <0x18001600 0x00000200>;
|
||||
interrupt-parent = <&cpu>;
|
||||
interrupts = <1>;
|
||||
auto-flow-control = <1>;
|
||||
clock-frequency = <50000000>;
|
||||
fifo-size = <32>;
|
||||
reg-io-width = <4>;
|
||||
reg-shift = <2>;
|
||||
};
|
||||
|
||||
ext_flash: quadspi@0x180014a0 {
|
||||
compatible = "altr,quadspi-1.0";
|
||||
reg = <0x180014a0 0x00000020>,
|
||||
<0x14000000 0x04000000>;
|
||||
reg-names = "avl_csr", "avl_mem";
|
||||
interrupt-parent = <&cpu>;
|
||||
interrupts = <4>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
flash0: nor0@0 {
|
||||
compatible = "micron,n25q512a";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
sysid: sysid@18001528 {
|
||||
compatible = "altr,sysid-1.0";
|
||||
reg = <0x18001528 0x00000008>;
|
||||
};
|
||||
|
||||
rgmii_0_eth_tse_0: ethernet@400 {
|
||||
compatible = "altr,tse-msgdma-1.0", "altr,tse-1.0";
|
||||
reg = <0x00000400 0x00000400>,
|
||||
<0x00000820 0x00000020>,
|
||||
<0x00000800 0x00000020>,
|
||||
<0x000008c0 0x00000008>,
|
||||
<0x00000840 0x00000020>,
|
||||
<0x00000860 0x00000020>;
|
||||
reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp",
|
||||
"tx_csr", "tx_desc";
|
||||
interrupt-parent = <&cpu>;
|
||||
interrupts = <2 3>;
|
||||
interrupt-names = "rx_irq", "tx_irq";
|
||||
rx-fifo-depth = <8192>;
|
||||
tx-fifo-depth = <8192>;
|
||||
address-bits = <48>;
|
||||
max-frame-size = <1518>;
|
||||
local-mac-address = [00 00 00 00 00 00];
|
||||
altr,has-supplementary-unicast;
|
||||
altr,enable-sup-addr = <1>;
|
||||
altr,has-hash-multicast-filter;
|
||||
altr,enable-hash = <1>;
|
||||
phy-mode = "rgmii-id";
|
||||
phy-handle = <&phy0>;
|
||||
rgmii_0_eth_tse_0_mdio: mdio {
|
||||
compatible = "altr,tse-mdio";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
phy0: ethernet-phy@0 {
|
||||
reg = <0>;
|
||||
device_type = "ethernet-phy";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
enet_pll: clock@0 {
|
||||
compatible = "altr,pll-1.0";
|
||||
#clock-cells = <1>;
|
||||
|
||||
enet_pll_c0: enet_pll_c0 {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <125000000>;
|
||||
clock-output-names = "enet_pll-c0";
|
||||
};
|
||||
|
||||
enet_pll_c1: enet_pll_c1 {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <25000000>;
|
||||
clock-output-names = "enet_pll-c1";
|
||||
};
|
||||
|
||||
enet_pll_c2: enet_pll_c2 {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <2500000>;
|
||||
clock-output-names = "enet_pll-c2";
|
||||
};
|
||||
};
|
||||
|
||||
sys_pll: clock@1 {
|
||||
compatible = "altr,pll-1.0";
|
||||
#clock-cells = <1>;
|
||||
|
||||
sys_pll_c0: sys_pll_c0 {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <100000000>;
|
||||
clock-output-names = "sys_pll-c0";
|
||||
};
|
||||
|
||||
sys_pll_c1: sys_pll_c1 {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <50000000>;
|
||||
clock-output-names = "sys_pll-c1";
|
||||
};
|
||||
|
||||
sys_pll_c2: sys_pll_c2 {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <75000000>;
|
||||
clock-output-names = "sys_pll-c2";
|
||||
};
|
||||
};
|
||||
|
||||
sys_clk_timer: timer@18001440 {
|
||||
compatible = "altr,timer-1.0";
|
||||
reg = <0x18001440 0x00000020>;
|
||||
interrupt-parent = <&cpu>;
|
||||
interrupts = <0>;
|
||||
clock-frequency = <75000000>;
|
||||
};
|
||||
|
||||
led_pio: gpio@180014d0 {
|
||||
compatible = "altr,pio-1.0";
|
||||
reg = <0x180014d0 0x00000010>;
|
||||
altr,gpio-bank-width = <4>;
|
||||
resetvalue = <15>;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
gpio-bank-name = "led";
|
||||
};
|
||||
|
||||
uart_0: serial@0x18001420 {
|
||||
compatible = "altr,uart-1.0";
|
||||
reg = <0x18001420 0x00000020>;
|
||||
interrupt-parent = <&cpu>;
|
||||
interrupts = <1>;
|
||||
clock-frequency = <75000000>;
|
||||
current-speed = <115200>;
|
||||
};
|
||||
|
||||
button_pio: gpio@180014c0 {
|
||||
compatible = "altr,pio-1.0";
|
||||
reg = <0x180014c0 0x00000010>;
|
||||
interrupt-parent = <&cpu>;
|
||||
interrupts = <6>;
|
||||
altr,gpio-bank-width = <3>;
|
||||
altr,interrupt-type = <2>;
|
||||
edge_type = <1>;
|
||||
level_trigger = <0>;
|
||||
resetvalue = <0>;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
gpio-bank-name = "button";
|
||||
};
|
||||
|
||||
sys_clk_timer_1: timer@880 {
|
||||
compatible = "altr,timer-1.0";
|
||||
reg = <0x00000880 0x00000020>;
|
||||
interrupt-parent = <&cpu>;
|
||||
interrupts = <5>;
|
||||
clock-frequency = <75000000>;
|
||||
};
|
||||
|
||||
fpga_leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led_fpga0: fpga0 {
|
||||
label = "fpga_led0";
|
||||
gpios = <&led_pio 0 1>;
|
||||
};
|
||||
|
||||
led_fpga1: fpga1 {
|
||||
label = "fpga_led1";
|
||||
gpios = <&led_pio 1 1>;
|
||||
};
|
||||
|
||||
led_fpga2: fpga2 {
|
||||
label = "fpga_led2";
|
||||
gpios = <&led_pio 2 1>;
|
||||
};
|
||||
|
||||
led_fpga3: fpga3 {
|
||||
label = "fpga_led3";
|
||||
gpios = <&led_pio 3 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "debug console=ttyS0,115200";
|
||||
stdout-path = &a_16550_uart_0;
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,200 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* Copyright (C) 2013 Altera Corporation
|
||||
*
|
||||
* This file is generated by sopc2dts.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
/ {
|
||||
model = "altr,qsys_ghrd_3c120";
|
||||
compatible = "altr,qsys_ghrd_3c120";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
cpus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu: cpu@0x0 {
|
||||
device_type = "cpu";
|
||||
compatible = "altr,nios2-1.0";
|
||||
reg = <0x00000000>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <1>;
|
||||
clock-frequency = <125000000>;
|
||||
dcache-line-size = <32>;
|
||||
icache-line-size = <32>;
|
||||
dcache-size = <32768>;
|
||||
icache-size = <32768>;
|
||||
altr,implementation = "fast";
|
||||
altr,pid-num-bits = <8>;
|
||||
altr,tlb-num-ways = <16>;
|
||||
altr,tlb-num-entries = <128>;
|
||||
altr,tlb-ptr-sz = <7>;
|
||||
altr,has-div = <1>;
|
||||
altr,has-mul = <1>;
|
||||
altr,reset-addr = <0xc2800000>;
|
||||
altr,fast-tlb-miss-addr = <0xc7fff400>;
|
||||
altr,exception-addr = <0xd0000020>;
|
||||
altr,has-initda = <1>;
|
||||
altr,has-mmu = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x10000000 0x08000000>,
|
||||
<0x07fff400 0x00000400>;
|
||||
};
|
||||
|
||||
sopc@0 {
|
||||
device_type = "soc";
|
||||
ranges;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "altr,avalon", "simple-bus";
|
||||
bus-frequency = <125000000>;
|
||||
|
||||
pb_cpu_to_io: bridge@0x8000000 {
|
||||
compatible = "simple-bus";
|
||||
reg = <0x08000000 0x00800000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
ranges = <0x00002000 0x08002000 0x00002000>,
|
||||
<0x00004000 0x08004000 0x00000400>,
|
||||
<0x00004400 0x08004400 0x00000040>,
|
||||
<0x00004800 0x08004800 0x00000040>,
|
||||
<0x00004c80 0x08004c80 0x00000020>,
|
||||
<0x00004cc0 0x08004cc0 0x00000010>,
|
||||
<0x00004ce0 0x08004ce0 0x00000010>,
|
||||
<0x00004d00 0x08004d00 0x00000010>,
|
||||
<0x00004d40 0x08004d40 0x00000008>,
|
||||
<0x00004d50 0x08004d50 0x00000008>,
|
||||
<0x00008000 0x08008000 0x00000020>,
|
||||
<0x00400000 0x08400000 0x00000020>;
|
||||
|
||||
timer_1ms: timer@0x400000 {
|
||||
compatible = "altr,timer-1.0";
|
||||
reg = <0x00400000 0x00000020>;
|
||||
interrupt-parent = <&cpu>;
|
||||
interrupts = <11>;
|
||||
clock-frequency = <125000000>;
|
||||
};
|
||||
|
||||
timer_0: timer@0x8000 {
|
||||
compatible = "altr,timer-1.0";
|
||||
reg = < 0x00008000 0x00000020 >;
|
||||
interrupt-parent = < &cpu >;
|
||||
interrupts = < 5 >;
|
||||
clock-frequency = < 125000000 >;
|
||||
};
|
||||
|
||||
sysid: sysid@0x4d40 {
|
||||
compatible = "altr,sysid-1.0";
|
||||
reg = <0x00004d40 0x00000008>;
|
||||
};
|
||||
|
||||
jtag_uart: serial@0x4d50 {
|
||||
compatible = "altr,juart-1.0";
|
||||
reg = <0x00004d50 0x00000008>;
|
||||
interrupt-parent = <&cpu>;
|
||||
interrupts = <1>;
|
||||
};
|
||||
|
||||
tse_mac: ethernet@0x4000 {
|
||||
compatible = "altr,tse-1.0";
|
||||
reg = <0x00004000 0x00000400>,
|
||||
<0x00004400 0x00000040>,
|
||||
<0x00004800 0x00000040>,
|
||||
<0x00002000 0x00002000>;
|
||||
reg-names = "control_port", "rx_csr", "tx_csr", "s1";
|
||||
interrupt-parent = <&cpu>;
|
||||
interrupts = <2 3>;
|
||||
interrupt-names = "rx_irq", "tx_irq";
|
||||
rx-fifo-depth = <8192>;
|
||||
tx-fifo-depth = <8192>;
|
||||
max-frame-size = <1518>;
|
||||
local-mac-address = [ 00 00 00 00 00 00 ];
|
||||
phy-mode = "rgmii-id";
|
||||
phy-handle = <&phy0>;
|
||||
tse_mac_mdio: mdio {
|
||||
compatible = "altr,tse-mdio";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
phy0: ethernet-phy@18 {
|
||||
reg = <18>;
|
||||
device_type = "ethernet-phy";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
uart: serial@0x4c80 {
|
||||
compatible = "altr,uart-1.0";
|
||||
reg = <0x00004c80 0x00000020>;
|
||||
interrupt-parent = <&cpu>;
|
||||
interrupts = <10>;
|
||||
current-speed = <115200>;
|
||||
clock-frequency = <62500000>;
|
||||
};
|
||||
|
||||
user_led_pio_8out: gpio@0x4cc0 {
|
||||
compatible = "altr,pio-1.0";
|
||||
reg = <0x00004cc0 0x00000010>;
|
||||
resetvalue = <255>;
|
||||
altr,gpio-bank-width = <8>;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
gpio-bank-name = "led";
|
||||
};
|
||||
|
||||
user_dipsw_pio_8in: gpio@0x4ce0 {
|
||||
compatible = "altr,pio-1.0";
|
||||
reg = <0x00004ce0 0x00000010>;
|
||||
interrupt-parent = <&cpu>;
|
||||
interrupts = <8>;
|
||||
edge_type = <2>;
|
||||
level_trigger = <0>;
|
||||
resetvalue = <0>;
|
||||
altr,gpio-bank-width = <8>;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
gpio-bank-name = "dipsw";
|
||||
};
|
||||
|
||||
user_pb_pio_4in: gpio@0x4d00 {
|
||||
compatible = "altr,pio-1.0";
|
||||
reg = <0x00004d00 0x00000010>;
|
||||
interrupt-parent = <&cpu>;
|
||||
interrupts = <9>;
|
||||
edge_type = <2>;
|
||||
level_trigger = <0>;
|
||||
resetvalue = <0>;
|
||||
altr,gpio-bank-width = <4>;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
gpio-bank-name = "pb";
|
||||
};
|
||||
};
|
||||
|
||||
cfi_flash_64m: flash@0x0 {
|
||||
compatible = "cfi-flash";
|
||||
reg = <0x00000000 0x04000000>;
|
||||
bank-width = <2>;
|
||||
device-width = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@800000 {
|
||||
reg = <0x00800000 0x01e00000>;
|
||||
label = "JFFS2 Filesystem";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "debug console=ttyJ0,115200";
|
||||
stdout-path = &jtag_uart;
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,13 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
dtb-y += $(CONFIG_DEFAULT_DEVICE_TREE:"%"=%).dtb
|
||||
|
||||
targets += $(dtb-y)
|
||||
|
||||
DTC_FLAGS += -R 4 -p 0x1000
|
||||
|
||||
PHONY += dtbs
|
||||
dtbs: $(addprefix $(obj)/, $(dtb-y))
|
||||
@:
|
||||
|
||||
clean-files := *.dtb
|
||||
@@ -0,0 +1 @@
|
||||
../../../../include/dt-bindings
|
||||
Reference in New Issue
Block a user