xref: /openbmc/u-boot/arch/mips/dts/huawei,hg556a.dts (revision dd1033e4)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
4 */
5
6/dts-v1/;
7
8#include "brcm,bcm6358.dtsi"
9
10/ {
11	model = "Huawei EchoLife HG556a";
12	compatible = "huawei,hg556a", "brcm,bcm6358";
13
14	aliases {
15		serial0 = &uart0;
16	};
17
18	chosen {
19		stdout-path = "serial0:115200n8";
20	};
21
22	gpio-leds {
23		compatible = "gpio-leds";
24
25		message_red {
26			label = "HG556a:red:message";
27			gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
28		};
29
30		hspa_red {
31			label = "HG556a:red:hspa";
32			gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
33		};
34
35		dsl_red {
36			label = "HG556a:red:dsl";
37			gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
38		};
39
40		power_red {
41			label = "HG556a:red:power";
42			gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
43		};
44
45		all_red {
46			label = "HG556a:red:all";
47			gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
48		};
49
50		lan1_green {
51			label = "HG556a:green:lan1";
52			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
53		};
54
55		lan1_red {
56			label = "HG556a:red:lan1";
57			gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
58		};
59
60		lan2_green {
61			label = "HG556a:green:lan2";
62			gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
63		};
64
65		lan2_red {
66			label = "HG556a:red:lan2";
67			gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
68		};
69
70		lan3_green {
71			label = "HG556a:green:lan3";
72			gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
73		};
74
75		lan3_red {
76			label = "HG556a:red:lan3";
77			gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
78		};
79
80		lan4_green {
81			label = "HG556a:green:lan4";
82			gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
83		};
84
85		lan4_red {
86			label = "HG556a:red:lan4";
87			gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
88		};
89	};
90};
91
92&ehci {
93	status = "okay";
94};
95
96&enet1 {
97	status = "okay";
98	phy = <&enet1phy>;
99	phy-mode = "mii";
100
101	enet1phy: fixed-link {
102		reg = <1>;
103		speed = <100>;
104		full-duplex;
105	};
106};
107
108&gpio0 {
109	status = "okay";
110};
111
112&ohci {
113	status = "okay";
114};
115
116&pflash {
117	status = "okay";
118};
119
120&uart0 {
121	u-boot,dm-pre-reloc;
122	status = "okay";
123};
124
125&usbh {
126	status = "okay";
127};
128