Merge tag 'sound-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / intel / socfpga_agilex_socdk_nand.dts
1 // SPDX-License-Identifier:     GPL-2.0
2 /*
3  * Copyright (C) 2019, Intel Corporation
4  */
5 #include "socfpga_agilex.dtsi"
6
7 / {
8         model = "SoCFPGA Agilex SoCDK";
9
10         aliases {
11                 serial0 = &uart0;
12                 ethernet0 = &gmac0;
13                 ethernet1 = &gmac1;
14                 ethernet2 = &gmac2;
15         };
16
17         chosen {
18                 stdout-path = "serial0:115200n8";
19         };
20
21         leds {
22                 compatible = "gpio-leds";
23                 led0 {
24                         label = "hps_led0";
25                         gpios = <&portb 20 GPIO_ACTIVE_HIGH>;
26                 };
27
28                 led1 {
29                         label = "hps_led1";
30                         gpios = <&portb 19 GPIO_ACTIVE_HIGH>;
31                 };
32
33                 led2 {
34                         label = "hps_led2";
35                         gpios = <&portb 21 GPIO_ACTIVE_HIGH>;
36                 };
37         };
38
39         memory {
40                 device_type = "memory";
41                 /* We expect the bootloader to fill in the reg */
42                 reg = <0 0 0 0>;
43         };
44 };
45
46 &gpio1 {
47         status = "okay";
48 };
49
50 &gmac2 {
51         status = "okay";
52         phy-mode = "rgmii";
53         phy-handle = <&phy0>;
54
55         max-frame-size = <9000>;
56
57         mdio0 {
58                 #address-cells = <1>;
59                 #size-cells = <0>;
60                 compatible = "snps,dwmac-mdio";
61                 phy0: ethernet-phy@0 {
62                         reg = <4>;
63
64                         txd0-skew-ps = <0>; /* -420ps */
65                         txd1-skew-ps = <0>; /* -420ps */
66                         txd2-skew-ps = <0>; /* -420ps */
67                         txd3-skew-ps = <0>; /* -420ps */
68                         rxd0-skew-ps = <420>; /* 0ps */
69                         rxd1-skew-ps = <420>; /* 0ps */
70                         rxd2-skew-ps = <420>; /* 0ps */
71                         rxd3-skew-ps = <420>; /* 0ps */
72                         txen-skew-ps = <0>; /* -420ps */
73                         txc-skew-ps = <900>; /* 0ps */
74                         rxdv-skew-ps = <420>; /* 0ps */
75                         rxc-skew-ps = <1680>; /* 780ps */
76                 };
77         };
78 };
79
80 &nand {
81         status = "okay";
82
83         flash@0 {
84                 #address-cells = <1>;
85                 #size-cells = <1>;
86                 reg = <0>;
87                 nand-bus-width = <16>;
88
89                 partition@0 {
90                         label = "u-boot";
91                         reg = <0 0x200000>;
92                 };
93                 partition@200000 {
94                         label = "env";
95                         reg = <0x200000 0x40000>;
96                 };
97                 partition@240000 {
98                         label = "dtb";
99                         reg = <0x240000 0x40000>;
100                 };
101                 partition@280000 {
102                         label = "kernel";
103                         reg = <0x280000 0x2000000>;
104                 };
105                 partition@2280000 {
106                         label = "misc";
107                         reg = <0x2280000 0x2000000>;
108                 };
109                 partition@4280000 {
110                         label = "rootfs";
111                         reg = <0x4280000 0x3bd80000>;
112                 };
113         };
114 };
115
116 &osc1 {
117         clock-frequency = <25000000>;
118 };
119
120 &uart0 {
121         status = "okay";
122 };
123
124 &usb0 {
125         status = "okay";
126         disable-over-current;
127 };
128
129 &watchdog0 {
130         status = "okay";
131 };