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&gmac1 {
76	status = "okay";
77	#address-cells = <1>;
78	#size-cells = <0>;
79	phy-handle = <&eth_phy1>;
80	phy-mode = "rgmii";
81	hisilicon,phy-reset-delays-us = <10000 10000 30000>;
82
83	eth_phy1: phy@3 {
84		reg = <3>;
85	};
86};
87
88&gpio1 {
89	status = "okay";
90	gpio-line-names = "GPIO-E",	"",
91			  "",		"",
92			  "",		"GPIO-F",
93			  "",		"GPIO-J";
94};
95
96&gpio2 {
97	status = "okay";
98	gpio-line-names = "GPIO-H",	"GPIO-I",
99			  "GPIO-L",	"GPIO-G",
100			  "GPIO-K",	"",
101			  "",		"";
102};
103
104&gpio3 {
105	status = "okay";
106	gpio-line-names = "",		"",
107			  "",		"",
108			  "GPIO-C",	"",
109			  "",		"GPIO-B";
110};
111
112&gpio4 {
113	status = "okay";
114	gpio-line-names = "",		"",
115			  "",		"",
116			  "",		"GPIO-D",
117			  "",		"";
118};
119
120&gpio5 {
121	status = "okay";
122	gpio-line-names = "",		"USER-LED-1",
123			  "USER-LED-2",	"",
124			  "",		"GPIO-A",
125			  "",		"";
126};
127
128&gpio6 {
129	status = "okay";
130	gpio-line-names = "",		"",
131			  "",		"USER-LED-0",
132			  "",		"",
133			  "",		"";
134};
135
136&gpio10 {
137	status = "okay";
138	gpio-line-names = "",		"",
139			  "",		"",
140			  "",		"",
141			  "USER-LED-3",	"";
142};
143
144&i2c0 {
145	status = "okay";
146	label = "LS-I2C0";
147};
148
149&i2c2 {
150	status = "okay";
151	label = "LS-I2C1";
152};
153
154&ir {
155	status = "okay";
156};
157
158&pcie {
159	reset-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;
160	vpcie-supply = <&reg_pcie>;
161	status = "okay";
162};
163
164&sd0 {
165	bus-width = <4>;
166	cap-sd-highspeed;
167	status = "okay";
168};
169
170&spi0 {
171	status = "okay";
172	label = "LS-SPI0";
173};
174
175&uart0 {
176	status = "okay";
177};
178
179&uart2 {
180	status = "okay";
181	label = "LS-UART0";
182};
183/* No optional LS-UART1 on Low Speed Expansion Connector. */
184