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