xref: /linux/scripts/dtc/include-prefixes/arm64/hisilicon/hi3798cv200-poplar.dts (revision c86aa0129c07c8c7f54dc47656de99ab0eb809b3)
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
66&gmac1 {
67	status = "okay";
68	#address-cells = <1>;
69	#size-cells = <0>;
70	phy-handle = <&eth_phy1>;
71	phy-mode = "rgmii";
72	hisilicon,phy-reset-delays-us = <10000 10000 30000>;
73
74	eth_phy1: phy@3 {
75		reg = <3>;
76	};
77};
78
79&gpio1 {
80	status = "okay";
81	gpio-line-names = "GPIO-E",	"",
82			  "",		"",
83			  "",		"GPIO-F",
84			  "",		"GPIO-J";
85};
86
87&gpio2 {
88	status = "okay";
89	gpio-line-names = "GPIO-H",	"GPIO-I",
90			  "GPIO-L",	"GPIO-G",
91			  "GPIO-K",	"",
92			  "",		"";
93};
94
95&gpio3 {
96	status = "okay";
97	gpio-line-names = "",		"",
98			  "",		"",
99			  "GPIO-C",	"",
100			  "",		"GPIO-B";
101};
102
103&gpio4 {
104	status = "okay";
105	gpio-line-names = "",		"",
106			  "",		"",
107			  "",		"GPIO-D",
108			  "",		"";
109};
110
111&gpio5 {
112	status = "okay";
113	gpio-line-names = "",		"USER-LED-1",
114			  "USER-LED-2",	"",
115			  "",		"GPIO-A",
116			  "",		"";
117};
118
119&gpio6 {
120	status = "okay";
121	gpio-line-names = "",		"",
122			  "",		"USER-LED-0",
123			  "",		"",
124			  "",		"";
125};
126
127&gpio10 {
128	status = "okay";
129	gpio-line-names = "",		"",
130			  "",		"",
131			  "",		"",
132			  "USER-LED-3",	"";
133};
134
135&i2c0 {
136	status = "okay";
137	label = "LS-I2C0";
138};
139
140&i2c2 {
141	status = "okay";
142	label = "LS-I2C1";
143};
144
145&ir {
146	status = "okay";
147};
148
149&spi0 {
150	status = "okay";
151	label = "LS-SPI0";
152};
153
154&uart0 {
155	status = "okay";
156};
157
158&uart2 {
159	status = "okay";
160	label = "LS-UART0";
161};
162/* No optional LS-UART1 on Low Speed Expansion Connector. */
163