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,bcm3380.dtsi"
9
10/ {
11	model = "Netgear CG3100D";
12	compatible = "netgear,cg3100d", "brcm,bcm3380";
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		wifi_green {
26			label = "CG3100D:green:wifi";
27			gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
28		};
29
30		wps_green {
31			label = "CG3100D:green:wps";
32			gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
33		};
34
35		power_red {
36			label = "CG3100D:red:power";
37			gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
38		};
39	};
40};
41
42&leds {
43	status = "okay";
44
45	led@0 {
46		reg = <0>;
47		active-low;
48		label = "CG3100D:green:power";
49	};
50
51	led@1 {
52		reg = <1>;
53		active-low;
54		label = "CG3100D:green:downlink";
55	};
56
57	led@2 {
58		reg = <2>;
59		active-low;
60		label = "CG3100D:orange:downlink";
61	};
62
63	led@3 {
64		reg = <3>;
65		active-low;
66		label = "CG3100D:green:uplink";
67	};
68
69	led@4 {
70		reg = <4>;
71		active-low;
72		label = "CG3100D:orange:uplink";
73	};
74
75	led@6 {
76		reg = <6>;
77		active-low;
78		label = "CG3100D:green:inet";
79	};
80
81	led@7 {
82		reg = <7>;
83		active-low;
84		label = "CG3100D:green:stby";
85	};
86};
87
88&gpio0 {
89	status = "okay";
90};
91
92&spi {
93	status = "okay";
94
95	spi-flash@0 {
96		compatible = "spi-flash";
97		reg = <0>;
98		#address-cells = <1>;
99		#size-cells = <1>;
100		spi-max-frequency = <25000000>;
101	};
102};
103
104&uart0 {
105	u-boot,dm-pre-reloc;
106	status = "okay";
107};
108