Debian Codegraph @

scripts/dtc/include-prefixes/arm64/altera/socfpga_stratix10_socdk.dts

raw
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Copyright Altera Corporation (C) 2015. All rights reserved.
4 */
5
6 #include "socfpga_stratix10.dtsi"
7
8 / {
9 model = "SoCFPGA Stratix 10 SoCDK";
10 compatible = "altr,socfpga-stratix10-socdk", "altr,socfpga-stratix10";
11
12 aliases {
13 serial0 = &uart0;
14 ethernet0 = &gmac0;
15 ethernet1 = &gmac1;
16 ethernet2 = &gmac2;
17 };
18
19 chosen {
20 stdout-path = "serial0:115200n8";
21 };
22
23 leds {
24 compatible = "gpio-leds";
25 led-hps0 {
26 label = "hps_led0";
27 gpios = <&portb 20 GPIO_ACTIVE_HIGH>;
28 };
29
30 led-hps1 {
31 label = "hps_led1";
32 gpios = <&portb 19 GPIO_ACTIVE_HIGH>;
33 };
34
35 led-hps2 {
36 label = "hps_led2";
37 gpios = <&portb 21 GPIO_ACTIVE_HIGH>;
38 };
39 };
40
41 memory@80000000 {
42 device_type = "memory";
43 /* We expect the bootloader to fill in the reg */
44 reg = <0 0x80000000 0 0>;
45 };
46
47 ref_033v: regulator-v-ref {
48 compatible = "regulator-fixed";
49 regulator-name = "0.33V";
50 regulator-min-microvolt = <330000>;
51 regulator-max-microvolt = <330000>;
52 };
53 };
54
55 &pinctrl0 {
56 i2c1_pmx_func: i2c1-pmx-func-pins {
57 pinctrl-single,pins = <
58 0x78 0x4 /* I2C1_SDA (IO6-B) PIN30SEL) */
59 0x7c 0x4 /* I2C1_SCL (IO7-B) PIN31SEL */
60 >;
61 };
62
63 i2c1_pmx_func_gpio: i2c1-pmx-func-gpio-pins {
64 pinctrl-single,pins = <
65 0x78 0x8 /* I2C1_SDA (IO6-B) PIN30SEL) */
66 0x7c 0x8 /* I2C1_SCL (IO7-B) PIN31SEL */
67 >;
68 };
69 };
70
71 &gpio1 {
72 status = "okay";
73 };
74
75 &gmac0 {
76 status = "okay";
77 phy-mode = "rgmii";
78 phy-handle = <&phy0>;
79
80 max-frame-size = <9000>;
81
82 mdio0 {
83 #address-cells = <1>;
84 #size-cells = <0>;
85 compatible = "snps,dwmac-mdio";
86 phy0: ethernet-phy@0 {
87 reg = <4>;
88
89 txd0-skew-ps = <0>; /* -420ps */
90 txd1-skew-ps = <0>; /* -420ps */
91 txd2-skew-ps = <0>; /* -420ps */
92 txd3-skew-ps = <0>; /* -420ps */
93 rxd0-skew-ps = <420>; /* 0ps */
94 rxd1-skew-ps = <420>; /* 0ps */
95 rxd2-skew-ps = <420>; /* 0ps */
96 rxd3-skew-ps = <420>; /* 0ps */
97 txen-skew-ps = <0>; /* -420ps */
98 txc-skew-ps = <900>; /* 0ps */
99 rxdv-skew-ps = <420>; /* 0ps */
100 rxc-skew-ps = <1680>; /* 780ps */
101 };
102 };
103 };
104
105 &mmc {
106 status = "okay";
107 cap-sd-highspeed;
108 cap-mmc-highspeed;
109 broken-cd;
110 bus-width = <4>;
111 clk-phase-sd-hs = <0>, <135>;
112 };
113
114 &osc1 {
115 clock-frequency = <25000000>;
116 };
117
118 &uart0 {
119 status = "okay";
120 };
121
122 &usb0 {
123 status = "okay";
124 disable-over-current;
125 };
126
127 &watchdog0 {
128 status = "okay";
129 };
130
131 &i2c1 {
132 status = "okay";
133 clock-frequency = <100000>;
134 i2c-sda-falling-time-ns = <890>; /* hcnt */
135 i2c-scl-falling-time-ns = <890>; /* lcnt */
136
137 pinctrl-names = "default", "gpio";
138 pinctrl-0 = <&i2c1_pmx_func>;
139 pinctrl-1 = <&i2c1_pmx_func_gpio>;
140
141 scl-gpios = <&portb 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
142 sda-gpios = <&portb 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
143
144 adc@14 {
145 compatible = "lltc,ltc2497";
146 reg = <0x14>;
147 vref-supply = <&ref_033v>;
148 };
149
150 temp@4c {
151 compatible = "maxim,max1619";
152 reg = <0x4c>;
153 };
154
155 eeprom@51 {
156 compatible = "atmel,24c32";
157 reg = <0x51>;
158 pagesize = <32>;
159 };
160
161 rtc@68 {
162 compatible = "dallas,ds1339";
163 reg = <0x68>;
164 };
165 };
166
167 &qspi {
168 status = "okay";
169 flash@0 {
170 compatible = "micron,mt25qu02g", "jedec,spi-nor";
171 reg = <0>;
172 spi-max-frequency = <100000000>;
173
174 m25p,fast-read;
175 cdns,read-delay = <1>;
176 cdns,tshsl-ns = <50>;
177 cdns,tsd2d-ns = <50>;
178 cdns,tchsh-ns = <4>;
179 cdns,tslch-ns = <4>;
180 spi-tx-bus-width = <4>;
181 spi-rx-bus-width = <4>;
182
183 partitions {
184 compatible = "fixed-partitions";
185 #address-cells = <1>;
186 #size-cells = <1>;
187
188 qspi_boot: partition@0 {
189 label = "Boot and fpga data";
190 reg = <0x0 0x04200000>;
191 };
192
193 root: partition@4200000 {
194 label = "Root Filesystem - UBIFS";
195 reg = <0x04200000 0x0be00000>;
196 };
197 };
198 };
199 };