b0b790a5aa8d8265d22c21b83fc18421084da751
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / hisilicon / hi3798cv200-poplar.dts
1 /*
2  * DTS File for HiSilicon Poplar Development Board
3  *
4  * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd.
5  *
6  * Released under the GPLv2 only.
7  * SPDX-License-Identifier: GPL-2.0
8  */
9
10 /dts-v1/;
11
12 #include <dt-bindings/gpio/gpio.h>
13 #include "hi3798cv200.dtsi"
14
15 / {
16         model = "HiSilicon Poplar Development Board";
17         compatible = "hisilicon,hi3798cv200-poplar", "hisilicon,hi3798cv200";
18
19         aliases {
20                 serial0 = &uart0;
21                 serial2 = &uart2;
22         };
23
24         chosen {
25                 stdout-path = "serial0:115200n8";
26         };
27
28         memory@0 {
29                 device_type = "memory";
30                 reg = <0x0 0x0 0x0 0x80000000>;
31         };
32
33         leds {
34                 compatible = "gpio-leds";
35
36                 user-led0 {
37                         label = "USER-LED0";
38                         gpios = <&gpio6 3 GPIO_ACTIVE_LOW>;
39                         linux,default-trigger = "heartbeat";
40                         default-state = "off";
41                 };
42
43                 user-led1 {
44                         label = "USER-LED1";
45                         gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
46                         linux,default-trigger = "mmc0";
47                         default-state = "off";
48                 };
49
50                 user-led2 {
51                         label = "USER-LED2";
52                         gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
53                         linux,default-trigger = "none";
54                         default-state = "off";
55                 };
56
57                 user-led3 {
58                         label = "USER-LED3";
59                         gpios = <&gpio10 6 GPIO_ACTIVE_LOW>;
60                         linux,default-trigger = "cpu0";
61                         default-state = "off";
62                 };
63         };
64
65         reg_pcie: regulator-pcie {
66                 compatible = "regulator-fixed";
67                 regulator-name = "3V3_PCIE0";
68                 regulator-min-microvolt = <3300000>;
69                 regulator-max-microvolt = <3300000>;
70                 gpio = <&gpio6 7 0>;
71                 enable-active-high;
72         };
73 };
74
75 &ehci {
76         status = "okay";
77 };
78
79 &gmac1 {
80         status = "okay";
81         #address-cells = <1>;
82         #size-cells = <0>;
83         phy-handle = <&eth_phy1>;
84         phy-mode = "rgmii";
85         hisilicon,phy-reset-delays-us = <10000 10000 30000>;
86
87         eth_phy1: phy@3 {
88                 reg = <3>;
89         };
90 };
91
92 &gpio1 {
93         status = "okay";
94         gpio-line-names = "GPIO-E",     "",
95                           "",           "",
96                           "",           "GPIO-F",
97                           "",           "GPIO-J";
98 };
99
100 &gpio2 {
101         status = "okay";
102         gpio-line-names = "GPIO-H",     "GPIO-I",
103                           "GPIO-L",     "GPIO-G",
104                           "GPIO-K",     "",
105                           "",           "";
106 };
107
108 &gpio3 {
109         status = "okay";
110         gpio-line-names = "",           "",
111                           "",           "",
112                           "GPIO-C",     "",
113                           "",           "GPIO-B";
114 };
115
116 &gpio4 {
117         status = "okay";
118         gpio-line-names = "",           "",
119                           "",           "",
120                           "",           "GPIO-D",
121                           "",           "";
122 };
123
124 &gpio5 {
125         status = "okay";
126         gpio-line-names = "",           "USER-LED-1",
127                           "USER-LED-2", "",
128                           "",           "GPIO-A",
129                           "",           "";
130 };
131
132 &gpio6 {
133         status = "okay";
134         gpio-line-names = "",           "",
135                           "",           "USER-LED-0",
136                           "",           "",
137                           "",           "";
138 };
139
140 &gpio10 {
141         status = "okay";
142         gpio-line-names = "",           "",
143                           "",           "",
144                           "",           "",
145                           "USER-LED-3", "";
146 };
147
148 &i2c0 {
149         status = "okay";
150         label = "LS-I2C0";
151 };
152
153 &i2c2 {
154         status = "okay";
155         label = "LS-I2C1";
156 };
157
158 &ir {
159         status = "okay";
160 };
161
162 &ohci {
163         status = "okay";
164 };
165
166 &pcie {
167         reset-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;
168         vpcie-supply = <&reg_pcie>;
169         status = "okay";
170 };
171
172 &sd0 {
173         bus-width = <4>;
174         cap-sd-highspeed;
175         status = "okay";
176 };
177
178 &spi0 {
179         status = "okay";
180         label = "LS-SPI0";
181 };
182
183 &uart0 {
184         status = "okay";
185 };
186
187 &uart2 {
188         status = "okay";
189         label = "LS-UART0";
190 };
191 /* No optional LS-UART1 on Low Speed Expansion Connector. */