Commit | Line | Data |
---|---|---|
2b3db67c | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
3ea03a9d RM |
2 | /* |
3 | * Broadcom BCM470X / BCM5301X ARM platform code. | |
4 | * DTS for D-Link DIR-885L | |
5 | * | |
6 | * Copyright (C) 2016 Rafał Miłecki <zajec5@gmail.com> | |
3ea03a9d RM |
7 | */ |
8 | ||
9 | /dts-v1/; | |
10 | ||
54b902a4 | 11 | #include "bcm47094.dtsi" |
70a0ae1c | 12 | #include "bcm5301x-nand-cs0-bch1.dtsi" |
3ea03a9d RM |
13 | |
14 | / { | |
15 | compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708"; | |
16 | model = "D-Link DIR-885L"; | |
17 | ||
18 | chosen { | |
5a6516ff | 19 | bootargs = "console=ttyS0,115200 earlycon"; |
3ea03a9d RM |
20 | }; |
21 | ||
22 | memory { | |
a252ccd3 RM |
23 | reg = <0x00000000 0x08000000 |
24 | 0x88000000 0x08000000>; | |
3ea03a9d RM |
25 | }; |
26 | ||
27 | nand: nand@18028000 { | |
28 | nandcs@0 { | |
a05f1e36 RM |
29 | partitions { |
30 | compatible = "fixed-partitions"; | |
31 | #address-cells = <1>; | |
32 | #size-cells = <1>; | |
33 | ||
34 | partition@0 { | |
35 | label = "firmware"; | |
36 | reg = <0x00000000 0x08000000>; | |
37 | }; | |
3ea03a9d RM |
38 | }; |
39 | }; | |
40 | }; | |
41 | ||
42 | leds { | |
43 | compatible = "gpio-leds"; | |
44 | ||
45 | power-white { | |
46 | label = "bcm53xx:white:power"; | |
47 | gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>; | |
48 | linux,default-trigger = "default-on"; | |
49 | }; | |
50 | ||
51 | wan-white { | |
52 | label = "bcm53xx:white:wan"; | |
53 | gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; | |
3ea03a9d RM |
54 | }; |
55 | ||
56 | power-amber { | |
57 | label = "bcm53xx:amber:power"; | |
58 | gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; | |
3ea03a9d RM |
59 | }; |
60 | ||
61 | wan-amber { | |
62 | label = "bcm53xx:amber:wan"; | |
63 | gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; | |
3ea03a9d RM |
64 | }; |
65 | ||
66 | usb3-white { | |
67 | label = "bcm53xx:white:usb3"; | |
68 | gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>; | |
0b1f1100 RM |
69 | trigger-sources = <&ohci_port1>, <&ehci_port1>, |
70 | <&xhci_port1>; | |
71 | linux,default-trigger = "usbport"; | |
3ea03a9d RM |
72 | }; |
73 | ||
74 | 2ghz { | |
75 | label = "bcm53xx:white:2ghz"; | |
76 | gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; | |
3ea03a9d RM |
77 | }; |
78 | ||
79 | 5ghz { | |
80 | label = "bcm53xx:white:5ghz"; | |
81 | gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; | |
3ea03a9d RM |
82 | }; |
83 | }; | |
84 | ||
85 | gpio-keys { | |
86 | compatible = "gpio-keys"; | |
87 | #address-cells = <1>; | |
88 | #size-cells = <0>; | |
89 | ||
90 | wps { | |
91 | label = "WPS"; | |
92 | linux,code = <KEY_WPS_BUTTON>; | |
93 | gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; | |
94 | }; | |
95 | ||
96 | /* Switch: router / extender */ | |
97 | extender { | |
98 | label = "Extender"; | |
99 | linux,code = <BTN_0>; | |
100 | gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; | |
101 | }; | |
102 | ||
103 | restart { | |
104 | label = "Reset"; | |
105 | linux,code = <KEY_RESTART>; | |
106 | gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; | |
107 | }; | |
108 | }; | |
109 | }; | |
110 | ||
dd70ccfa RM |
111 | &usb3 { |
112 | vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>; | |
113 | }; | |
5f79985d RM |
114 | |
115 | &spi_nor { | |
116 | status = "okay"; | |
117 | }; |