blob: 6a7fc1df4b94843a1191da1859eb5f75b8fe097e [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Álvaro Fernández Rojas4a2b2722017-04-25 00:39:22 +02002/*
3 * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
Álvaro Fernández Rojas4a2b2722017-04-25 00:39:22 +02004 */
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 };
Álvaro Fernández Rojas2791f8d2017-05-07 20:09:34 +020021
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
Álvaro Fernández Rojas465d6972018-02-04 11:19:13 +010092&ehci {
93 status = "okay";
94};
95
Álvaro Fernández Rojas15591a92018-12-01 19:00:30 +010096&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
Álvaro Fernández Rojas2791f8d2017-05-07 20:09:34 +0200108&gpio0 {
109 status = "okay";
Álvaro Fernández Rojas4a2b2722017-04-25 00:39:22 +0200110};
111
Álvaro Fernández Rojas465d6972018-02-04 11:19:13 +0100112&ohci {
113 status = "okay";
114};
115
Álvaro Fernández Rojas4a2b2722017-04-25 00:39:22 +0200116&pflash {
117 status = "okay";
118};
119
120&uart0 {
121 u-boot,dm-pre-reloc;
122 status = "okay";
123};
Álvaro Fernández Rojas465d6972018-02-04 11:19:13 +0100124
125&usbh {
126 status = "okay";
127};