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,bcm6368.dtsi"
10
11/ {
12	model = "Comtrend WAP-5813n";
13	compatible = "comtrend,wap-5813n", "brcm,bcm6368";
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		inet_green {
27			label = "WAP-5813n:green:inet";
28			gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
29		};
30
31		power_green {
32			label = "WAP-5813n:green:power";
33			gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
34			default-state = "on";
35		};
36
37		wps_green {
38			label = "WAP-5813n:green:wps";
39			gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
40		};
41
42		power_red {
43			label = "WAP-5813n:red:power";
44			gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
45		};
46
47		inet_red {
48			label = "WAP-5813n:red:inet";
49			gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
50		};
51	};
52};
53
54&gpio0 {
55	status = "okay";
56};
57
58&pflash {
59	status = "okay";
60};
61
62&uart0 {
63	u-boot,dm-pre-reloc;
64	status = "okay";
65};
66