xref: /linux/arch/arm/boot/dts/broadcom/bcm47094-dlink-dir-885l.dts (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2724ba675SRob Herring/*
3724ba675SRob Herring * Broadcom BCM470X / BCM5301X ARM platform code.
4724ba675SRob Herring * DTS for D-Link DIR-885L
5724ba675SRob Herring *
6724ba675SRob Herring * Copyright (C) 2016 Rafał Miłecki <zajec5@gmail.com>
7724ba675SRob Herring */
8724ba675SRob Herring
9724ba675SRob Herring/dts-v1/;
10724ba675SRob Herring
11724ba675SRob Herring#include "bcm47094.dtsi"
12724ba675SRob Herring#include "bcm5301x-nand-cs0-bch1.dtsi"
13724ba675SRob Herring
14724ba675SRob Herring/ {
15724ba675SRob Herring	compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708";
16724ba675SRob Herring	model = "D-Link DIR-885L";
17724ba675SRob Herring
18724ba675SRob Herring	chosen {
19724ba675SRob Herring		bootargs = "console=ttyS0,115200 earlycon";
20724ba675SRob Herring	};
21724ba675SRob Herring
22724ba675SRob Herring	memory@0 {
23724ba675SRob Herring		device_type = "memory";
24724ba675SRob Herring		reg = <0x00000000 0x08000000>,
25724ba675SRob Herring		      <0x88000000 0x08000000>;
26724ba675SRob Herring	};
27724ba675SRob Herring
285cbee582SRafał Miłecki	nvram@1e3f0000 {
295cbee582SRafał Miłecki		compatible = "brcm,nvram";
305cbee582SRafał Miłecki		reg = <0x1e3f0000 0x10000>;
315cbee582SRafał Miłecki
325cbee582SRafał Miłecki		et2macaddr: et2macaddr {
335cbee582SRafał Miłecki			#nvmem-cell-cells = <1>;
345cbee582SRafał Miłecki		};
355cbee582SRafał Miłecki	};
365cbee582SRafał Miłecki
37724ba675SRob Herring	nand_controller: nand-controller@18028000 {
38724ba675SRob Herring		nand@0 {
39724ba675SRob Herring			partitions {
40724ba675SRob Herring				compatible = "fixed-partitions";
41724ba675SRob Herring				#address-cells = <1>;
42724ba675SRob Herring				#size-cells = <1>;
43724ba675SRob Herring
44724ba675SRob Herring				partition@0 {
4572ec77d7SLinus Walleij					compatible = "seama";
46724ba675SRob Herring					label = "firmware";
47724ba675SRob Herring					reg = <0x00000000 0x08000000>;
48724ba675SRob Herring				};
49724ba675SRob Herring			};
50724ba675SRob Herring		};
51724ba675SRob Herring	};
52724ba675SRob Herring
53724ba675SRob Herring	leds {
54724ba675SRob Herring		compatible = "gpio-leds";
55724ba675SRob Herring
56724ba675SRob Herring		led-power-white {
57724ba675SRob Herring			label = "bcm53xx:white:power";
58724ba675SRob Herring			gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
59724ba675SRob Herring			linux,default-trigger = "default-on";
60724ba675SRob Herring		};
61724ba675SRob Herring
62724ba675SRob Herring		led-wan-white {
63724ba675SRob Herring			label = "bcm53xx:white:wan";
64724ba675SRob Herring			gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
65724ba675SRob Herring		};
66724ba675SRob Herring
67724ba675SRob Herring		led-power-amber {
68724ba675SRob Herring			label = "bcm53xx:amber:power";
69724ba675SRob Herring			gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
70724ba675SRob Herring		};
71724ba675SRob Herring
72724ba675SRob Herring		led-wan-amber {
73724ba675SRob Herring			label = "bcm53xx:amber:wan";
74724ba675SRob Herring			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
75724ba675SRob Herring		};
76724ba675SRob Herring
77724ba675SRob Herring		led-usb3-white {
78724ba675SRob Herring			label = "bcm53xx:white:usb3";
79724ba675SRob Herring			gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
80724ba675SRob Herring			trigger-sources = <&ohci_port1>, <&ehci_port1>,
81724ba675SRob Herring					  <&xhci_port1>;
82724ba675SRob Herring			linux,default-trigger = "usbport";
83724ba675SRob Herring		};
84724ba675SRob Herring
85724ba675SRob Herring		led-2ghz {
86724ba675SRob Herring			label = "bcm53xx:white:2ghz";
87724ba675SRob Herring			gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
88724ba675SRob Herring		};
89724ba675SRob Herring
90724ba675SRob Herring		led-5ghz {
91724ba675SRob Herring			label = "bcm53xx:white:5ghz";
92724ba675SRob Herring			gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
93724ba675SRob Herring		};
94724ba675SRob Herring	};
95724ba675SRob Herring
96724ba675SRob Herring	gpio-keys {
97724ba675SRob Herring		compatible = "gpio-keys";
98724ba675SRob Herring
99724ba675SRob Herring		button-wps {
100724ba675SRob Herring			label = "WPS";
101724ba675SRob Herring			linux,code = <KEY_WPS_BUTTON>;
102724ba675SRob Herring			gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
103724ba675SRob Herring		};
104724ba675SRob Herring
105724ba675SRob Herring		/* Switch: router / extender */
106724ba675SRob Herring		button-extender {
107724ba675SRob Herring			label = "Extender";
108724ba675SRob Herring			linux,code = <BTN_0>;
109724ba675SRob Herring			gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
110724ba675SRob Herring		};
111724ba675SRob Herring
112724ba675SRob Herring		button-restart {
113724ba675SRob Herring			label = "Reset";
114724ba675SRob Herring			linux,code = <KEY_RESTART>;
115724ba675SRob Herring			gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
116724ba675SRob Herring		};
117724ba675SRob Herring	};
118724ba675SRob Herring};
119724ba675SRob Herring
120724ba675SRob Herring&usb3 {
121724ba675SRob Herring	vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
122724ba675SRob Herring};
123724ba675SRob Herring
1245cbee582SRafał Miłecki&gmac0 {
1255cbee582SRafał Miłecki	nvmem-cells = <&et2macaddr 0>;
1265cbee582SRafał Miłecki	nvmem-cell-names = "mac-address";
1275cbee582SRafał Miłecki};
1285cbee582SRafał Miłecki
129724ba675SRob Herring&spi_nor {
130724ba675SRob Herring	status = "okay";
131724ba675SRob Herring};
132724ba675SRob Herring
133724ba675SRob Herring&usb3_phy {
134724ba675SRob Herring	status = "okay";
135724ba675SRob Herring};
136724ba675SRob Herring
137724ba675SRob Herring&srab {
138724ba675SRob Herring	status = "okay";
139724ba675SRob Herring
140724ba675SRob Herring	ports {
141724ba675SRob Herring		port@0 {
142724ba675SRob Herring			label = "lan4";
143724ba675SRob Herring		};
144724ba675SRob Herring
145724ba675SRob Herring		port@1 {
146724ba675SRob Herring			label = "lan3";
147724ba675SRob Herring		};
148724ba675SRob Herring
149724ba675SRob Herring		port@2 {
150724ba675SRob Herring			label = "lan2";
151724ba675SRob Herring		};
152724ba675SRob Herring
153724ba675SRob Herring		port@3 {
154724ba675SRob Herring			label = "lan1";
155724ba675SRob Herring		};
156724ba675SRob Herring
157724ba675SRob Herring		port@4 {
158724ba675SRob Herring			label = "wan";
1595cbee582SRafał Miłecki			nvmem-cells = <&et2macaddr 3>;
1605cbee582SRafał Miłecki			nvmem-cell-names = "mac-address";
161724ba675SRob Herring		};
162724ba675SRob Herring
163*473baeabSRafał Miłecki		port@5 {
164*473baeabSRafał Miłecki			status = "disabled";
165*473baeabSRafał Miłecki		};
166*473baeabSRafał Miłecki
167*473baeabSRafał Miłecki		port@7 {
168*473baeabSRafał Miłecki			status = "disabled";
169*473baeabSRafał Miłecki		};
170*473baeabSRafał Miłecki
171724ba675SRob Herring		port@8 {
172724ba675SRob Herring			label = "cpu";
173724ba675SRob Herring		};
174724ba675SRob Herring	};
175724ba675SRob Herring};
176