Merge branch 'master' of git://git.denx.de/u-boot-socfpga
[platform/kernel/u-boot.git] / arch / arm / dts / socfpga_arria5_secu1.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2016-2020 ABB
4  */
5
6 #include "socfpga_arria5.dtsi"
7 #include "socfpga-common-u-boot.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9
10 / {
11         model = "ABB SoC SECU1 Board";
12         compatible = "altr,socfpga-secu1", "altr,socfpga";
13
14         chosen {
15                 stdout-path = "serial0:115200n8";
16                 bootargs = "console=ttyS0,115200";
17         };
18
19         memory {
20                 name = "memory";
21                 device_type = "memory";
22                 reg = <0x0 0x20000000>; /* 512MB */
23         };
24
25         aliases {
26                 /*
27                  * this allow the ethaddr uboot environment variable contents
28                  * to be added to the gmac0 device tree blob.
29                  */
30                 ethernet0 = &gmac0;
31                 spi0 = &spi1;
32         };
33
34         i2c_gpio: i2c@0 {
35                 compatible = "i2c-gpio";
36                 #address-cells = <1>;
37                 #size-cells = <0>;
38                 gpios = <&portc 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)    /* SDA */
39                          &portc 6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;  /* SCL */
40                 i2c-gpio,delay-us = <5>;        /* ~100 kHz */
41                 i2c-gpio,deblock;
42
43                 temp_sensor@48 {
44                         compatible = "national,lm75";
45                         reg = <0x48>;
46                 };
47
48                 eeprom@50 {
49                         compatible = "at,24c08";
50                         reg = <0x50>;
51                 };
52
53                 rtc: rtc@68 {
54                         compatible = "st,m41st87";
55                         reg = <0x68>;
56                         interrupt-parent = <&intc>;
57                         interrupts = <0 42 0x4>;
58                 };
59         };
60
61         regulator_3_3v: 3-3-v-regulator {
62                 compatible = "regulator-fixed";
63                 regulator-name = "3.3V";
64                 regulator-min-microvolt = <3300000>;
65                 regulator-max-microvolt = <3300000>;
66         };
67 };
68
69 &gmac0 {
70         status = "okay";
71         phy-mode = "rgmii";
72         fixed-link {
73                 speed = <1000>;
74                 full-duplex;
75         };
76 };
77
78 &gpio0 {
79         status = "okay";
80 };
81
82 &gpio1 {
83         status = "okay";
84 };
85
86 &gpio2 {
87         status = "okay";
88 };
89
90 &mmc0 {
91         vmmc-supply = <&regulator_3_3v>;
92         vqmmc-supply = <&regulator_3_3v>;
93         bus-width = <4>;
94         u-boot,dm-pre-reloc;
95 };
96
97 &nand0 {
98         status = "okay";
99 };
100
101 &porta {
102         bank-name = "porta";
103 };
104
105 &portb {
106         bank-name = "portb";
107 };
108
109 &portc {
110         bank-name = "portc";
111 };
112
113 &spi1 {
114         status = "okay";
115 };
116
117 &uart0 {
118         clock-frequency = <100000000>;
119         u-boot,dm-pre-reloc;
120         status = "okay";
121 };
122
123 &uart1 {
124         clock-frequency = <100000000>;
125 };
126
127 &watchdog0 {
128         u-boot,dm-pre-reloc;
129         status = "okay";
130 };