blob: 7e835b28d2cbd6d4d92fce0116336abdbe8d14e4 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Álvaro Fernández Rojas69639f02018-01-20 14:16:56 +01002/*
3 * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
Álvaro Fernández Rojas69639f02018-01-20 14:16:56 +01004 */
5
6/dts-v1/;
7
8#include "brcm,bcm6368.dtsi"
9
10/ {
11 model = "Comtrend WAP-5813n";
12 compatible = "comtrend,wap-5813n", "brcm,bcm6368";
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 inet_green {
26 label = "WAP-5813n:green:inet";
27 gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
28 };
29
30 power_green {
31 label = "WAP-5813n:green:power";
32 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
33 default-state = "on";
34 };
35
36 wps_green {
37 label = "WAP-5813n:green:wps";
38 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
39 };
40
41 power_red {
42 label = "WAP-5813n:red:power";
43 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
44 };
45
46 inet_red {
47 label = "WAP-5813n:red:inet";
48 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
49 };
50 };
51};
52
Álvaro Fernández Rojas02ca1bd2018-02-04 21:10:15 +010053&ehci {
54 status = "okay";
55};
56
Álvaro Fernández Rojas8f1c98e2018-12-01 19:00:34 +010057&enet {
58 status = "okay";
59
60 port@4 {
61 compatible = "brcm,enetsw-port";
62 reg = <4>;
63 label = "rgmii";
64 brcm,phy-id = <0xff>;
65 speed = <1000>;
66 full-duplex;
67 bypass-link;
68 };
69};
70
Álvaro Fernández Rojas69639f02018-01-20 14:16:56 +010071&gpio0 {
72 status = "okay";
73};
74
Álvaro Fernández Rojas02ca1bd2018-02-04 21:10:15 +010075&ohci {
76 status = "okay";
77};
78
Álvaro Fernández Rojas69639f02018-01-20 14:16:56 +010079&pflash {
80 status = "okay";
81};
82
83&uart0 {
84 u-boot,dm-pre-reloc;
85 status = "okay";
86};
Álvaro Fernández Rojas02ca1bd2018-02-04 21:10:15 +010087
88&usbh {
89 status = "okay";
90};