xref: /freebsd-src/sys/contrib/device-tree/src/arm/intel/socfpga/socfpga_cyclone5_sodia.dts (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2016 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot#include "socfpga_cyclone5.dtsi"
7*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
8*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot	model = "Altera SOCFPGA Cyclone V SoC Macnica Sodia board";
12*f126890aSEmmanuel Vadot	compatible = "macnica,sodia", "altr,socfpga-cyclone5", "altr,socfpga";
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot	chosen {
15*f126890aSEmmanuel Vadot		bootargs = "earlyprintk";
16*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
17*f126890aSEmmanuel Vadot	};
18*f126890aSEmmanuel Vadot
19*f126890aSEmmanuel Vadot	memory@0 {
20*f126890aSEmmanuel Vadot		name = "memory";
21*f126890aSEmmanuel Vadot		device_type = "memory";
22*f126890aSEmmanuel Vadot		reg = <0x0 0x40000000>;
23*f126890aSEmmanuel Vadot	};
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot	aliases {
26*f126890aSEmmanuel Vadot		ethernet0 = &gmac1;
27*f126890aSEmmanuel Vadot	};
28*f126890aSEmmanuel Vadot
29*f126890aSEmmanuel Vadot	regulator_3_3v: regulator {
30*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
31*f126890aSEmmanuel Vadot		regulator-name = "3.3V";
32*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
33*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
34*f126890aSEmmanuel Vadot	};
35*f126890aSEmmanuel Vadot
36*f126890aSEmmanuel Vadot	leds: gpio-leds {
37*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
38*f126890aSEmmanuel Vadot
39*f126890aSEmmanuel Vadot		hps_led0 {
40*f126890aSEmmanuel Vadot			label = "hps:green:led0";
41*f126890aSEmmanuel Vadot			gpios = <&portb 12 GPIO_ACTIVE_LOW>;
42*f126890aSEmmanuel Vadot		};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot		hps_led1 {
45*f126890aSEmmanuel Vadot			label = "hps:green:led1";
46*f126890aSEmmanuel Vadot			gpios = <&portb 13 GPIO_ACTIVE_LOW>;
47*f126890aSEmmanuel Vadot		};
48*f126890aSEmmanuel Vadot
49*f126890aSEmmanuel Vadot		hps_led2 {
50*f126890aSEmmanuel Vadot			label = "hps:green:led2";
51*f126890aSEmmanuel Vadot			gpios = <&portb 14 GPIO_ACTIVE_LOW>;
52*f126890aSEmmanuel Vadot		};
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot		hps_led3 {
55*f126890aSEmmanuel Vadot			label = "hps:green:led3";
56*f126890aSEmmanuel Vadot			gpios = <&portb 15 GPIO_ACTIVE_LOW>;
57*f126890aSEmmanuel Vadot		};
58*f126890aSEmmanuel Vadot	};
59*f126890aSEmmanuel Vadot};
60*f126890aSEmmanuel Vadot
61*f126890aSEmmanuel Vadot&gmac1 {
62*f126890aSEmmanuel Vadot	status = "okay";
63*f126890aSEmmanuel Vadot	phy-mode = "rgmii";
64*f126890aSEmmanuel Vadot	phy = <&phy0>;
65*f126890aSEmmanuel Vadot
66*f126890aSEmmanuel Vadot	mdio0 {
67*f126890aSEmmanuel Vadot		#address-cells = <1>;
68*f126890aSEmmanuel Vadot		#size-cells = <0>;
69*f126890aSEmmanuel Vadot		phy0: ethernet-phy@0 {
70*f126890aSEmmanuel Vadot			reg = <0>;
71*f126890aSEmmanuel Vadot			rxd0-skew-ps = <0>;
72*f126890aSEmmanuel Vadot			rxd1-skew-ps = <0>;
73*f126890aSEmmanuel Vadot			rxd2-skew-ps = <0>;
74*f126890aSEmmanuel Vadot			rxd3-skew-ps = <0>;
75*f126890aSEmmanuel Vadot			rxdv-skew-ps = <0>;
76*f126890aSEmmanuel Vadot			rxc-skew-ps = <3000>;
77*f126890aSEmmanuel Vadot			txen-skew-ps = <0>;
78*f126890aSEmmanuel Vadot			txc-skew-ps = <3000>;
79*f126890aSEmmanuel Vadot		};
80*f126890aSEmmanuel Vadot	};
81*f126890aSEmmanuel Vadot};
82*f126890aSEmmanuel Vadot
83*f126890aSEmmanuel Vadot&gpio1 {
84*f126890aSEmmanuel Vadot	status = "okay";
85*f126890aSEmmanuel Vadot};
86*f126890aSEmmanuel Vadot
87*f126890aSEmmanuel Vadot&i2c0 {
88*f126890aSEmmanuel Vadot	status = "okay";
89*f126890aSEmmanuel Vadot
90*f126890aSEmmanuel Vadot	eeprom@51 {
91*f126890aSEmmanuel Vadot		compatible = "atmel,24c32";
92*f126890aSEmmanuel Vadot		reg = <0x51>;
93*f126890aSEmmanuel Vadot		pagesize = <32>;
94*f126890aSEmmanuel Vadot	};
95*f126890aSEmmanuel Vadot
96*f126890aSEmmanuel Vadot	rtc@68 {
97*f126890aSEmmanuel Vadot		compatible = "dallas,ds1339";
98*f126890aSEmmanuel Vadot		reg = <0x68>;
99*f126890aSEmmanuel Vadot	};
100*f126890aSEmmanuel Vadot};
101*f126890aSEmmanuel Vadot
102*f126890aSEmmanuel Vadot&mmc0 {
103*f126890aSEmmanuel Vadot	cd-gpios = <&portb 18 0>;
104*f126890aSEmmanuel Vadot	vmmc-supply = <&regulator_3_3v>;
105*f126890aSEmmanuel Vadot	vqmmc-supply = <&regulator_3_3v>;
106*f126890aSEmmanuel Vadot	status = "okay";
107*f126890aSEmmanuel Vadot};
108*f126890aSEmmanuel Vadot
109*f126890aSEmmanuel Vadot&usb1 {
110*f126890aSEmmanuel Vadot	status = "okay";
111*f126890aSEmmanuel Vadot};
112*f126890aSEmmanuel Vadot
113*f126890aSEmmanuel Vadot&qspi {
114*f126890aSEmmanuel Vadot	status = "okay";
115*f126890aSEmmanuel Vadot
116*f126890aSEmmanuel Vadot	flash0: flash@0 {
117*f126890aSEmmanuel Vadot		#address-cells = <1>;
118*f126890aSEmmanuel Vadot		#size-cells = <1>;
119*f126890aSEmmanuel Vadot		compatible = "micron,n25q512a", "jedec,spi-nor";
120*f126890aSEmmanuel Vadot		reg = <0>;
121*f126890aSEmmanuel Vadot		spi-max-frequency = <100000000>;
122*f126890aSEmmanuel Vadot
123*f126890aSEmmanuel Vadot		m25p,fast-read;
124*f126890aSEmmanuel Vadot		cdns,read-delay = <4>;
125*f126890aSEmmanuel Vadot		cdns,tshsl-ns = <50>;
126*f126890aSEmmanuel Vadot		cdns,tsd2d-ns = <50>;
127*f126890aSEmmanuel Vadot		cdns,tchsh-ns = <4>;
128*f126890aSEmmanuel Vadot		cdns,tslch-ns = <4>;
129*f126890aSEmmanuel Vadot	};
130*f126890aSEmmanuel Vadot};
131