Linux Audio

Check our new training course

Linux debugging, profiling, tracing and performance analysis training

Apr 14-17, 2025
Register
Loading...
v5.4
  1// SPDX-License-Identifier: GPL-2.0+
  2/*
  3 * Copyright (C) 2015 Altera Corporation <www.altera.com>
 
 
 
 
 
 
 
 
 
 
 
 
 
  4 */
  5#include "socfpga_arria10.dtsi"
  6
  7/ {
  8	model = "Altera SOCFPGA Arria 10";
  9	compatible = "altr,socfpga-arria10", "altr,socfpga";
 10
 11	aliases {
 12		ethernet0 = &gmac0;
 13		serial0 = &uart1;
 14	};
 15
 16	chosen {
 17		bootargs = "earlyprintk";
 18		stdout-path = "serial0:115200n8";
 19	};
 20
 21	memory@0 {
 22		name = "memory";
 23		device_type = "memory";
 24		reg = <0x0 0x40000000>; /* 1GB */
 25	};
 26
 27	a10leds {
 28		compatible = "gpio-leds";
 29
 30		a10sr_led0 {
 31			label = "a10sr-led0";
 32			gpios = <&a10sr_gpio 0 1>;
 33		};
 34
 35		a10sr_led1 {
 36			label = "a10sr-led1";
 37			gpios = <&a10sr_gpio 1 1>;
 38		};
 39
 40		a10sr_led2 {
 41			label = "a10sr-led2";
 42			gpios = <&a10sr_gpio 2 1>;
 43		};
 44
 45		a10sr_led3 {
 46			label = "a10sr-led3";
 47			gpios = <&a10sr_gpio 3 1>;
 48		};
 49	};
 50
 51	ref_033v: 033-v-ref {
 52		compatible = "regulator-fixed";
 53		regulator-name = "0.33V";
 54		regulator-min-microvolt = <330000>;
 55		regulator-max-microvolt = <330000>;
 56	};
 57
 58	soc {
 59		clkmgr@ffd04000 {
 60			clocks {
 61				osc1 {
 62					clock-frequency = <25000000>;
 63				};
 64			};
 65		};
 66	};
 67};
 68
 69&gmac0 {
 70	phy-mode = "rgmii";
 71	phy-addr = <0xffffffff>; /* probe for phy addr */
 72
 73	/*
 74	 * These skews assume the user's FPGA design is adding 600ps of delay
 75	 * for TX_CLK on Arria 10.
 76	 *
 77	 * All skews are offset since hardware skew values for the ksz9031
 78	 * range from a negative skew to a positive skew.
 79	 * See the micrel-ksz90x1.txt Documentation file for details.
 80	 */
 81	txd0-skew-ps = <0>; /* -420ps */
 82	txd1-skew-ps = <0>; /* -420ps */
 83	txd2-skew-ps = <0>; /* -420ps */
 84	txd3-skew-ps = <0>; /* -420ps */
 85	rxd0-skew-ps = <420>; /* 0ps */
 86	rxd1-skew-ps = <420>; /* 0ps */
 87	rxd2-skew-ps = <420>; /* 0ps */
 88	rxd3-skew-ps = <420>; /* 0ps */
 89	txen-skew-ps = <0>; /* -420ps */
 90	txc-skew-ps = <1860>; /* 960ps */
 91	rxdv-skew-ps = <420>; /* 0ps */
 92	rxc-skew-ps = <1680>; /* 780ps */
 93	max-frame-size = <3800>;
 94	status = "okay";
 95};
 96
 97&gpio1 {
 98	status = "okay";
 99};
100
101&spi1 {
102	status = "okay";
103
104	resource-manager@0 {
105		compatible = "altr,a10sr";
106		reg = <0>;
107		spi-max-frequency = <100000>;
108		/* low-level active IRQ at GPIO1_5 */
109		interrupt-parent = <&portb>;
110		interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
111		interrupt-controller;
112		#interrupt-cells = <2>;
113
114		a10sr_gpio: gpio-controller {
115			compatible = "altr,a10sr-gpio";
116			gpio-controller;
117			#gpio-cells = <2>;
118		};
119
120		a10sr_rst: reset-controller {
121			compatible = "altr,a10sr-reset";
122			#reset-cells = <1>;
123		};
124	};
125};
126
127&i2c1 {
 
128	status = "okay";
129
130	/*
131	 * adjust the falling times to decrease the i2c frequency to 50Khz
132	 * because the LCD module does not work at the standard 100Khz
133	 */
134	clock-frequency = <100000>;
135	i2c-sda-falling-time-ns = <6000>;
136	i2c-scl-falling-time-ns = <6000>;
137
138	adc@14 {
139		compatible = "lltc,ltc2497";
140		reg = <0x14>;
141		vref-supply = <&ref_033v>;
142	};
143
144	adc@16 {
145		compatible = "lltc,ltc2497";
146		reg = <0x16>;
147		vref-supply = <&ref_033v>;
148	};
149
150	eeprom@51 {
151		compatible = "atmel,24c32";
152		reg = <0x51>;
153		pagesize = <32>;
154	};
155
156	rtc@68 {
157		compatible = "dallas,ds1339";
158		reg = <0x68>;
159	};
160
161	ltc@5c {
162		compatible = "ltc2977";
163		reg = <0x5c>;
164	};
165};
166
167&uart1 {
168	status = "okay";
169};
170
171&usb0 {
172	status = "okay";
173	disable-over-current;
174};
175
176&watchdog1 {
177	status = "okay";
178};
v4.10.11
 
  1/*
  2 * Copyright (C) 2015 Altera Corporation <www.altera.com>
  3 *
  4 * This program is free software; you can redistribute it and/or modify
  5 * it under the terms of the GNU General Public License as published by
  6 * the Free Software Foundation; either version 2 of the License, or
  7 * (at your option) any later version.
  8 *
  9 * This program is distributed in the hope that it will be useful,
 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 12 * GNU General Public License for more details.
 13 *
 14 * You should have received a copy of the GNU General Public License
 15 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 16 */
 17#include "socfpga_arria10.dtsi"
 18
 19/ {
 20	model = "Altera SOCFPGA Arria 10";
 21	compatible = "altr,socfpga-arria10", "altr,socfpga";
 22
 23	aliases {
 24		ethernet0 = &gmac0;
 25		serial0 = &uart1;
 26	};
 27
 28	chosen {
 29		bootargs = "earlyprintk";
 30		stdout-path = "serial0:115200n8";
 31	};
 32
 33	memory {
 34		name = "memory";
 35		device_type = "memory";
 36		reg = <0x0 0x40000000>; /* 1GB */
 37	};
 38
 39	a10leds {
 40		compatible = "gpio-leds";
 41
 42		a10sr_led0 {
 43			label = "a10sr-led0";
 44			gpios = <&a10sr_gpio 0 1>;
 45		};
 46
 47		a10sr_led1 {
 48			label = "a10sr-led1";
 49			gpios = <&a10sr_gpio 1 1>;
 50		};
 51
 52		a10sr_led2 {
 53			label = "a10sr-led2";
 54			gpios = <&a10sr_gpio 2 1>;
 55		};
 56
 57		a10sr_led3 {
 58			label = "a10sr-led3";
 59			gpios = <&a10sr_gpio 3 1>;
 60		};
 61	};
 62
 
 
 
 
 
 
 
 63	soc {
 64		clkmgr@ffd04000 {
 65			clocks {
 66				osc1 {
 67					clock-frequency = <25000000>;
 68				};
 69			};
 70		};
 71	};
 72};
 73
 74&gmac0 {
 75	phy-mode = "rgmii";
 76	phy-addr = <0xffffffff>; /* probe for phy addr */
 77
 78	/*
 79	 * These skews assume the user's FPGA design is adding 600ps of delay
 80	 * for TX_CLK on Arria 10.
 81	 *
 82	 * All skews are offset since hardware skew values for the ksz9031
 83	 * range from a negative skew to a positive skew.
 84	 * See the micrel-ksz90x1.txt Documentation file for details.
 85	 */
 86	txd0-skew-ps = <0>; /* -420ps */
 87	txd1-skew-ps = <0>; /* -420ps */
 88	txd2-skew-ps = <0>; /* -420ps */
 89	txd3-skew-ps = <0>; /* -420ps */
 90	rxd0-skew-ps = <420>; /* 0ps */
 91	rxd1-skew-ps = <420>; /* 0ps */
 92	rxd2-skew-ps = <420>; /* 0ps */
 93	rxd3-skew-ps = <420>; /* 0ps */
 94	txen-skew-ps = <0>; /* -420ps */
 95	txc-skew-ps = <1860>; /* 960ps */
 96	rxdv-skew-ps = <420>; /* 0ps */
 97	rxc-skew-ps = <1680>; /* 780ps */
 98	max-frame-size = <3800>;
 99	status = "okay";
100};
101
102&gpio1 {
103	status = "okay";
104};
105
106&spi1 {
107	status = "okay";
108
109	resource-manager@0 {
110		compatible = "altr,a10sr";
111		reg = <0>;
112		spi-max-frequency = <100000>;
113		/* low-level active IRQ at GPIO1_5 */
114		interrupt-parent = <&portb>;
115		interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
116		interrupt-controller;
117		#interrupt-cells = <2>;
118
119		a10sr_gpio: gpio-controller {
120			compatible = "altr,a10sr-gpio";
121			gpio-controller;
122			#gpio-cells = <2>;
123		};
 
 
 
 
 
124	};
125};
126
127&i2c1 {
128	speed-mode = <0>;
129	status = "okay";
130
131	/*
132	 * adjust the falling times to decrease the i2c frequency to 50Khz
133	 * because the LCD module does not work at the standard 100Khz
134	 */
 
135	i2c-sda-falling-time-ns = <6000>;
136	i2c-scl-falling-time-ns = <6000>;
137
 
 
 
 
 
 
 
 
 
 
 
 
138	eeprom@51 {
139		compatible = "atmel,24c32";
140		reg = <0x51>;
141		pagesize = <32>;
142	};
143
144	rtc@68 {
145		compatible = "dallas,ds1339";
146		reg = <0x68>;
147	};
 
 
 
 
 
148};
149
150&uart1 {
151	status = "okay";
152};
153
154&usb0 {
 
 
 
 
 
155	status = "okay";
156};