Linux Audio

Check our new training course

Loading...
v6.2
  1// SPDX-License-Identifier: GPL-2.0-only
  2/*
  3 * Copyright (C) 2015 Altera Corporation. All rights reserved.
 
 
 
 
 
 
 
 
 
 
 
 
  4 */
  5
  6/dts-v1/;
  7
  8/ {
  9	model = "Altera NiosII Max10";
 10	compatible = "altr,niosii-max10";
 11	#address-cells = <1>;
 12	#size-cells = <1>;
 13
 14	cpus {
 15		#address-cells = <1>;
 16		#size-cells = <0>;
 17
 18		cpu: cpu@0 {
 19			device_type = "cpu";
 20			compatible = "altr,nios2-1.1";
 21			reg = <0x00000000>;
 22			interrupt-controller;
 23			#interrupt-cells = <1>;
 24			altr,exception-addr = <0xc8000120>;
 25			altr,fast-tlb-miss-addr = <0xc0000100>;
 26			altr,has-div = <1>;
 27			altr,has-initda = <1>;
 28			altr,has-mmu = <1>;
 29			altr,has-mul = <1>;
 30			altr,implementation = "fast";
 31			altr,pid-num-bits = <8>;
 32			altr,reset-addr = <0xd4000000>;
 33			altr,tlb-num-entries = <256>;
 34			altr,tlb-num-ways = <16>;
 35			altr,tlb-ptr-sz = <8>;
 36			clock-frequency = <75000000>;
 37			dcache-line-size = <32>;
 38			dcache-size = <32768>;
 39			icache-line-size = <32>;
 40			icache-size = <32768>;
 41		};
 42	};
 43
 44	memory {
 45		device_type = "memory";
 46		reg = <0x08000000 0x08000000>,
 47			<0x00000000 0x00000400>;
 48	};
 49
 50	sopc0: sopc@0 {
 51		device_type = "soc";
 52		ranges;
 53		#address-cells = <1>;
 54		#size-cells = <1>;
 55		compatible = "altr,avalon", "simple-bus";
 56		bus-frequency = <75000000>;
 57
 58		jtag_uart: serial@18001530 {
 59			compatible = "altr,juart-1.0";
 60			reg = <0x18001530 0x00000008>;
 61			interrupt-parent = <&cpu>;
 62			interrupts = <7>;
 63		};
 64
 65		a_16550_uart_0: serial@18001600 {
 66			compatible = "altr,16550-FIFO32", "ns16550a";
 67			reg = <0x18001600 0x00000200>;
 68			interrupt-parent = <&cpu>;
 69			interrupts = <1>;
 70			auto-flow-control = <1>;
 71			clock-frequency = <50000000>;
 72			fifo-size = <32>;
 73			reg-io-width = <4>;
 74			reg-shift = <2>;
 75			tx-threshold = <16>;
 76		};
 77
 78		sysid: sysid@18001528 {
 79			compatible = "altr,sysid-1.0";
 80			reg = <0x18001528 0x00000008>;
 81			id = <4207856382>;
 82			timestamp = <1431309290>;
 83		};
 84
 85		rgmii_0_eth_tse_0: ethernet@400 {
 86			compatible = "altr,tse-msgdma-1.0", "altr,tse-1.0";
 87			reg = <0x00000400 0x00000400>,
 88				<0x00000820 0x00000020>,
 89				<0x00000800 0x00000020>,
 90				<0x000008c0 0x00000008>,
 91				<0x00000840 0x00000020>,
 92				<0x00000860 0x00000020>;
 93			reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
 94			interrupt-parent = <&cpu>;
 95			interrupts = <2 3>;
 96			interrupt-names = "rx_irq", "tx_irq";
 97			rx-fifo-depth = <8192>;
 98			tx-fifo-depth = <8192>;
 99			address-bits = <48>;
100			max-frame-size = <1518>;
101			local-mac-address = [00 00 00 00 00 00];
102			altr,has-supplementary-unicast;
103			altr,enable-sup-addr = <1>;
104			altr,has-hash-multicast-filter;
105			altr,enable-hash = <1>;
106			phy-mode = "rgmii-id";
107			phy-handle = <&phy0>;
108			rgmii_0_eth_tse_0_mdio: mdio {
109				compatible = "altr,tse-mdio";
110				#address-cells = <1>;
111				#size-cells = <0>;
112				phy0: ethernet-phy@0 {
113					reg = <0>;
114					device_type = "ethernet-phy";
115				};
116			};
117		};
118
119		enet_pll: clock@0 {
120			compatible = "altr,pll-1.0";
121			#clock-cells = <1>;
122
123			enet_pll_c0: enet_pll_c0 {
124				compatible = "fixed-clock";
125				#clock-cells = <0>;
126				clock-frequency = <125000000>;
127				clock-output-names = "enet_pll-c0";
128			};
129
130			enet_pll_c1: enet_pll_c1 {
131				compatible = "fixed-clock";
132				#clock-cells = <0>;
133				clock-frequency = <25000000>;
134				clock-output-names = "enet_pll-c1";
135			};
136
137			enet_pll_c2: enet_pll_c2 {
138				compatible = "fixed-clock";
139				#clock-cells = <0>;
140				clock-frequency = <2500000>;
141				clock-output-names = "enet_pll-c2";
142			};
143		};
144
145		sys_pll: clock@1 {
146			compatible = "altr,pll-1.0";
147			#clock-cells = <1>;
148
149			sys_pll_c0: sys_pll_c0 {
150				compatible = "fixed-clock";
151				#clock-cells = <0>;
152				clock-frequency = <100000000>;
153				clock-output-names = "sys_pll-c0";
154			};
155
156			sys_pll_c1: sys_pll_c1 {
157				compatible = "fixed-clock";
158				#clock-cells = <0>;
159				clock-frequency = <50000000>;
160				clock-output-names = "sys_pll-c1";
161			};
162
163			sys_pll_c2: sys_pll_c2 {
164				compatible = "fixed-clock";
165				#clock-cells = <0>;
166				clock-frequency = <75000000>;
167				clock-output-names = "sys_pll-c2";
168			};
169		};
170
171		sys_clk_timer: timer@18001440 {
172			compatible = "altr,timer-1.0";
173			reg = <0x18001440 0x00000020>;
174			interrupt-parent = <&cpu>;
175			interrupts = <0>;
176			clock-frequency = <75000000>;
177		};
178
179		led_pio: gpio@180014d0 {
180			compatible = "altr,pio-1.0";
181			reg = <0x180014d0 0x00000010>;
182			altr,ngpio = <4>;
 
183			#gpio-cells = <2>;
184			gpio-controller;
185		};
186
187		button_pio: gpio@180014c0 {
188			compatible = "altr,pio-1.0";
189			reg = <0x180014c0 0x00000010>;
190			interrupt-parent = <&cpu>;
191			interrupts = <6>;
192			altr,ngpio = <3>;
193			altr,interrupt-type = <2>;
194			edge_type = <1>;
195			level_trigger = <0>;
 
196			#gpio-cells = <2>;
197			gpio-controller;
198		};
199
200		sys_clk_timer_1: timer@880 {
201			compatible = "altr,timer-1.0";
202			reg = <0x00000880 0x00000020>;
203			interrupt-parent = <&cpu>;
204			interrupts = <5>;
205			clock-frequency = <75000000>;
206		};
207
208		fpga_leds: leds {
209			compatible = "gpio-leds";
210
211			led_fpga0: fpga0 {
212				label = "fpga_led0";
213				gpios = <&led_pio 0 1>;
214			};
215
216			led_fpga1: fpga1 {
217				label = "fpga_led1";
218				gpios = <&led_pio 1 1>;
219			};
220
221			led_fpga2: fpga2 {
222				label = "fpga_led2";
223				gpios = <&led_pio 2 1>;
224			};
225
226			led_fpga3: fpga3 {
227				label = "fpga_led3";
228				gpios = <&led_pio 3 1>;
229			};
230		};
231	};
232
233	chosen {
234		bootargs = "debug earlycon console=ttyS0,115200";
235		stdout-path = &a_16550_uart_0;
236	};
237};
v4.10.11
 
  1/*
  2 * Copyright (C) 2015 Altera Corporation. All rights reserved.
  3 *
  4 * This program is free software; you can redistribute it and/or modify
  5 * it under the terms and conditions of the GNU General Public License,
  6 * version 2, as published by the Free Software Foundation.
  7 *
  8 * This program is distributed in the hope it will be useful, but WITHOUT
  9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 10 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 11 * more details.
 12 *
 13 * You should have received a copy of the GNU General Public License along with
 14 * this program.  If not, see <http://www.gnu.org/licenses/>.
 15 */
 16
 17/dts-v1/;
 18
 19/ {
 20	model = "Altera NiosII Max10";
 21	compatible = "altr,niosii-max10";
 22	#address-cells = <1>;
 23	#size-cells = <1>;
 24
 25	cpus {
 26		#address-cells = <1>;
 27		#size-cells = <0>;
 28
 29		cpu: cpu@0 {
 30			device_type = "cpu";
 31			compatible = "altr,nios2-1.1";
 32			reg = <0x00000000>;
 33			interrupt-controller;
 34			#interrupt-cells = <1>;
 35			altr,exception-addr = <0xc8000120>;
 36			altr,fast-tlb-miss-addr = <0xc0000100>;
 37			altr,has-div = <1>;
 38			altr,has-initda = <1>;
 39			altr,has-mmu = <1>;
 40			altr,has-mul = <1>;
 41			altr,implementation = "fast";
 42			altr,pid-num-bits = <8>;
 43			altr,reset-addr = <0xd4000000>;
 44			altr,tlb-num-entries = <256>;
 45			altr,tlb-num-ways = <16>;
 46			altr,tlb-ptr-sz = <8>;
 47			clock-frequency = <75000000>;
 48			dcache-line-size = <32>;
 49			dcache-size = <32768>;
 50			icache-line-size = <32>;
 51			icache-size = <32768>;
 52		};
 53	};
 54
 55	memory {
 56		device_type = "memory";
 57		reg = <0x08000000 0x08000000>,
 58			<0x00000000 0x00000400>;
 59	};
 60
 61	sopc0: sopc@0 {
 62		device_type = "soc";
 63		ranges;
 64		#address-cells = <1>;
 65		#size-cells = <1>;
 66		compatible = "altr,avalon", "simple-bus";
 67		bus-frequency = <75000000>;
 68
 69		jtag_uart: serial@18001530 {
 70			compatible = "altr,juart-1.0";
 71			reg = <0x18001530 0x00000008>;
 72			interrupt-parent = <&cpu>;
 73			interrupts = <7>;
 74		};
 75
 76		a_16550_uart_0: serial@18001600 {
 77			compatible = "altr,16550-FIFO32", "ns16550a";
 78			reg = <0x18001600 0x00000200>;
 79			interrupt-parent = <&cpu>;
 80			interrupts = <1>;
 81			auto-flow-control = <1>;
 82			clock-frequency = <50000000>;
 83			fifo-size = <32>;
 84			reg-io-width = <4>;
 85			reg-shift = <2>;
 86			tx-threshold = <16>;
 87		};
 88
 89		sysid: sysid@18001528 {
 90			compatible = "altr,sysid-1.0";
 91			reg = <0x18001528 0x00000008>;
 92			id = <4207856382>;
 93			timestamp = <1431309290>;
 94		};
 95
 96		rgmii_0_eth_tse_0: ethernet@400 {
 97			compatible = "altr,tse-msgdma-1.0", "altr,tse-1.0";
 98			reg = <0x00000400 0x00000400>,
 99				<0x00000820 0x00000020>,
100				<0x00000800 0x00000020>,
101				<0x000008c0 0x00000008>,
102				<0x00000840 0x00000020>,
103				<0x00000860 0x00000020>;
104			reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
105			interrupt-parent = <&cpu>;
106			interrupts = <2 3>;
107			interrupt-names = "rx_irq", "tx_irq";
108			rx-fifo-depth = <8192>;
109			tx-fifo-depth = <8192>;
110			address-bits = <48>;
111			max-frame-size = <1518>;
112			local-mac-address = [00 00 00 00 00 00];
113			altr,has-supplementary-unicast;
114			altr,enable-sup-addr = <1>;
115			altr,has-hash-multicast-filter;
116			altr,enable-hash = <1>;
117			phy-mode = "rgmii-id";
118			phy-handle = <&phy0>;
119			rgmii_0_eth_tse_0_mdio: mdio {
120				compatible = "altr,tse-mdio";
121				#address-cells = <1>;
122				#size-cells = <0>;
123				phy0: ethernet-phy@0 {
124					reg = <0>;
125					device_type = "ethernet-phy";
126				};
127			};
128		};
129
130		enet_pll: clock@0 {
131			compatible = "altr,pll-1.0";
132			#clock-cells = <1>;
133
134			enet_pll_c0: enet_pll_c0 {
135				compatible = "fixed-clock";
136				#clock-cells = <0>;
137				clock-frequency = <125000000>;
138				clock-output-names = "enet_pll-c0";
139			};
140
141			enet_pll_c1: enet_pll_c1 {
142				compatible = "fixed-clock";
143				#clock-cells = <0>;
144				clock-frequency = <25000000>;
145				clock-output-names = "enet_pll-c1";
146			};
147
148			enet_pll_c2: enet_pll_c2 {
149				compatible = "fixed-clock";
150				#clock-cells = <0>;
151				clock-frequency = <2500000>;
152				clock-output-names = "enet_pll-c2";
153			};
154		};
155
156		sys_pll: clock@1 {
157			compatible = "altr,pll-1.0";
158			#clock-cells = <1>;
159
160			sys_pll_c0: sys_pll_c0 {
161				compatible = "fixed-clock";
162				#clock-cells = <0>;
163				clock-frequency = <100000000>;
164				clock-output-names = "sys_pll-c0";
165			};
166
167			sys_pll_c1: sys_pll_c1 {
168				compatible = "fixed-clock";
169				#clock-cells = <0>;
170				clock-frequency = <50000000>;
171				clock-output-names = "sys_pll-c1";
172			};
173
174			sys_pll_c2: sys_pll_c2 {
175				compatible = "fixed-clock";
176				#clock-cells = <0>;
177				clock-frequency = <75000000>;
178				clock-output-names = "sys_pll-c2";
179			};
180		};
181
182		sys_clk_timer: timer@18001440 {
183			compatible = "altr,timer-1.0";
184			reg = <0x18001440 0x00000020>;
185			interrupt-parent = <&cpu>;
186			interrupts = <0>;
187			clock-frequency = <75000000>;
188		};
189
190		led_pio: gpio@180014d0 {
191			compatible = "altr,pio-1.0";
192			reg = <0x180014d0 0x00000010>;
193			altr,gpio-bank-width = <4>;
194			resetvalue = <15>;
195			#gpio-cells = <2>;
196			gpio-controller;
197		};
198
199		button_pio: gpio@180014c0 {
200			compatible = "altr,pio-1.0";
201			reg = <0x180014c0 0x00000010>;
202			interrupt-parent = <&cpu>;
203			interrupts = <6>;
204			altr,gpio-bank-width = <3>;
205			altr,interrupt-type = <2>;
206			edge_type = <1>;
207			level_trigger = <0>;
208			resetvalue = <0>;
209			#gpio-cells = <2>;
210			gpio-controller;
211		};
212
213		sys_clk_timer_1: timer@880 {
214			compatible = "altr,timer-1.0";
215			reg = <0x00000880 0x00000020>;
216			interrupt-parent = <&cpu>;
217			interrupts = <5>;
218			clock-frequency = <75000000>;
219		};
220
221		fpga_leds: leds {
222			compatible = "gpio-leds";
223
224			led_fpga0: fpga0 {
225				label = "fpga_led0";
226				gpios = <&led_pio 0 1>;
227			};
228
229			led_fpga1: fpga1 {
230				label = "fpga_led1";
231				gpios = <&led_pio 1 1>;
232			};
233
234			led_fpga2: fpga2 {
235				label = "fpga_led2";
236				gpios = <&led_pio 2 1>;
237			};
238
239			led_fpga3: fpga3 {
240				label = "fpga_led3";
241				gpios = <&led_pio 3 1>;
242			};
243		};
244	};
245
246	chosen {
247		bootargs = "debug console=ttyS0,115200";
 
248	};
249};