Merge branches 'pm-cpuidle', 'pm-cpufreq' and 'pm-sleep'
[sfrench/cifs-2.6.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 #include "poplar-pinctrl.dtsi"
15
16 / {
17         model = "HiSilicon Poplar Development Board";
18         compatible = "hisilicon,hi3798cv200-poplar", "hisilicon,hi3798cv200";
19
20         aliases {
21                 serial0 = &uart0;
22                 serial2 = &uart2;
23         };
24
25         chosen {
26                 stdout-path = "serial0:115200n8";
27         };
28
29         memory@0 {
30                 device_type = "memory";
31                 reg = <0x0 0x0 0x0 0x80000000>;
32         };
33
34         leds {
35                 compatible = "gpio-leds";
36
37                 user-led0 {
38                         label = "green:user1";
39                         gpios = <&gpio6 3 GPIO_ACTIVE_LOW>;
40                         linux,default-trigger = "heartbeat";
41                         default-state = "off";
42                 };
43
44                 user-led1 {
45                         label = "green:user2";
46                         gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
47                         linux,default-trigger = "mmc0";
48                         default-state = "off";
49                 };
50
51                 user-led2 {
52                         label = "green:user3";
53                         gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
54                         linux,default-trigger = "mmc1";
55                         default-state = "off";
56                 };
57
58                 user-led3 {
59                         label = "green:user4";
60                         gpios = <&gpio10 6 GPIO_ACTIVE_LOW>;
61                         linux,default-trigger = "none";
62                         panic-indicator;
63                         default-state = "off";
64                 };
65         };
66
67         reg_pcie: regulator-pcie {
68                 compatible = "regulator-fixed";
69                 regulator-name = "3V3_PCIE0";
70                 regulator-min-microvolt = <3300000>;
71                 regulator-max-microvolt = <3300000>;
72                 gpio = <&gpio6 7 0>;
73                 enable-active-high;
74         };
75 };
76
77 &ehci {
78         status = "okay";
79 };
80
81 &emmc {
82         pinctrl-names = "default";
83         pinctrl-0 = <&emmc_pins_1 &emmc_pins_2
84                      &emmc_pins_3 &emmc_pins_4>;
85         fifo-depth = <256>;
86         clock-frequency = <200000000>;
87         cap-mmc-highspeed;
88         mmc-ddr-1_8v;
89         mmc-hs200-1_8v;
90         non-removable;
91         bus-width = <8>;
92         status = "okay";
93 };
94
95 &gmac1 {
96         status = "okay";
97         #address-cells = <1>;
98         #size-cells = <0>;
99         phy-handle = <&eth_phy1>;
100         phy-mode = "rgmii";
101         hisilicon,phy-reset-delays-us = <10000 10000 30000>;
102
103         eth_phy1: phy@3 {
104                 reg = <3>;
105         };
106 };
107
108 &gpio1 {
109         status = "okay";
110         gpio-line-names = "GPIO-E",     "",
111                           "",           "",
112                           "",           "GPIO-F",
113                           "",           "GPIO-J";
114 };
115
116 &gpio2 {
117         status = "okay";
118         gpio-line-names = "GPIO-H",     "GPIO-I",
119                           "GPIO-L",     "GPIO-G",
120                           "GPIO-K",     "",
121                           "",           "";
122 };
123
124 &gpio3 {
125         status = "okay";
126         gpio-line-names = "",           "",
127                           "",           "",
128                           "GPIO-C",     "",
129                           "",           "GPIO-B";
130 };
131
132 &gpio4 {
133         status = "okay";
134         gpio-line-names = "",           "",
135                           "",           "",
136                           "",           "GPIO-D",
137                           "",           "";
138 };
139
140 &gpio5 {
141         status = "okay";
142         gpio-line-names = "",           "USER-LED-1",
143                           "USER-LED-2", "",
144                           "",           "GPIO-A",
145                           "",           "";
146 };
147
148 &gpio6 {
149         status = "okay";
150         gpio-line-names = "",           "",
151                           "",           "USER-LED-0",
152                           "",           "",
153                           "",           "";
154 };
155
156 &gpio10 {
157         status = "okay";
158         gpio-line-names = "",           "",
159                           "",           "",
160                           "",           "",
161                           "USER-LED-3", "";
162 };
163
164 &i2c0 {
165         status = "okay";
166         label = "LS-I2C0";
167 };
168
169 &i2c2 {
170         status = "okay";
171         label = "LS-I2C1";
172 };
173
174 &ir {
175         status = "okay";
176 };
177
178 &ohci {
179         status = "okay";
180 };
181
182 &pcie {
183         reset-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;
184         vpcie-supply = <&reg_pcie>;
185         status = "okay";
186 };
187
188 &sd0 {
189         bus-width = <4>;
190         cap-sd-highspeed;
191         status = "okay";
192 };
193
194 &spi0 {
195         status = "okay";
196         label = "LS-SPI0";
197 };
198
199 &uart0 {
200         status = "okay";
201 };
202
203 &uart2 {
204         status = "okay";
205         label = "LS-UART0";
206 };
207 /* No optional LS-UART1 on Low Speed Expansion Connector. */