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