xref: /linux/scripts/dtc/include-prefixes/arm/broadcom/bcm4709-asus-rt-ac87u.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 Asus RT-AC87U
5724ba675SRob Herring *
6724ba675SRob Herring * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
7724ba675SRob Herring */
8724ba675SRob Herring
9724ba675SRob Herring/dts-v1/;
10724ba675SRob Herring
11724ba675SRob Herring#include "bcm4709.dtsi"
12724ba675SRob Herring#include "bcm5301x-nand-cs0-bch8.dtsi"
13724ba675SRob Herring
14724ba675SRob Herring/ {
15724ba675SRob Herring	compatible = "asus,rt-ac87u", "brcm,bcm4709", "brcm,bcm4708";
16724ba675SRob Herring	model = "Asus RT-AC87U";
17724ba675SRob Herring
18724ba675SRob Herring	chosen {
19724ba675SRob Herring		bootargs = "console=ttyS0,115200";
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
28*a9e79863SRafał Miłecki	nvram@1c080000 {
29*a9e79863SRafał Miłecki		et1macaddr: et1macaddr {
30*a9e79863SRafał Miłecki			#nvmem-cell-cells = <1>;
31*a9e79863SRafał Miłecki		};
32*a9e79863SRafał Miłecki	};
33*a9e79863SRafał Miłecki
34724ba675SRob Herring	leds {
35724ba675SRob Herring		compatible = "gpio-leds";
36724ba675SRob Herring
37724ba675SRob Herring		led-wps {
38724ba675SRob Herring			label = "bcm53xx:blue:wps";
39724ba675SRob Herring			gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
40724ba675SRob Herring		};
41724ba675SRob Herring
42724ba675SRob Herring		led-power {
43724ba675SRob Herring			label = "bcm53xx:blue:power";
44724ba675SRob Herring			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
45724ba675SRob Herring			linux,default-trigger = "default-on";
46724ba675SRob Herring		};
47724ba675SRob Herring
48724ba675SRob Herring		led-wan {
49724ba675SRob Herring			label = "bcm53xx:red:wan";
50724ba675SRob Herring			gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
51724ba675SRob Herring		};
52724ba675SRob Herring	};
53724ba675SRob Herring
54724ba675SRob Herring	gpio-keys {
55724ba675SRob Herring		compatible = "gpio-keys";
56724ba675SRob Herring
57724ba675SRob Herring		button-wps {
58724ba675SRob Herring			label = "WPS";
59724ba675SRob Herring			linux,code = <KEY_WPS_BUTTON>;
60724ba675SRob Herring			gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
61724ba675SRob Herring		};
62724ba675SRob Herring
63724ba675SRob Herring		button-restart {
64724ba675SRob Herring			label = "Reset";
65724ba675SRob Herring			linux,code = <KEY_RESTART>;
66724ba675SRob Herring			gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
67724ba675SRob Herring		};
68724ba675SRob Herring	};
69724ba675SRob Herring};
70724ba675SRob Herring
71*a9e79863SRafał Miłecki&gmac0 {
72*a9e79863SRafał Miłecki	nvmem-cells = <&et1macaddr 0>;
73*a9e79863SRafał Miłecki	nvmem-cell-names = "mac-address";
74*a9e79863SRafał Miłecki};
75*a9e79863SRafał Miłecki
76724ba675SRob Herring&usb3_phy {
77724ba675SRob Herring	status = "okay";
78724ba675SRob Herring};
79724ba675SRob Herring
80724ba675SRob Herring&nandcs {
81724ba675SRob Herring	partitions {
82724ba675SRob Herring		compatible = "fixed-partitions";
83724ba675SRob Herring		#address-cells = <1>;
84724ba675SRob Herring		#size-cells = <1>;
85724ba675SRob Herring
86724ba675SRob Herring		boot@0 {
87724ba675SRob Herring			label = "boot";
88724ba675SRob Herring			reg = <0x00000000 0x00080000>;
89724ba675SRob Herring			read-only;
90724ba675SRob Herring		};
91724ba675SRob Herring
92724ba675SRob Herring		nvram@80000 {
93724ba675SRob Herring			label = "nvram";
94724ba675SRob Herring			reg = <0x00080000 0x00180000>;
95724ba675SRob Herring		};
96724ba675SRob Herring
97724ba675SRob Herring		firmware@200000 {
98724ba675SRob Herring			label = "firmware";
99724ba675SRob Herring			reg = <0x00200000 0x07cc0000>;
100724ba675SRob Herring			compatible = "brcm,trx";
101724ba675SRob Herring		};
102724ba675SRob Herring
103724ba675SRob Herring		asus@7ec0000 {
104724ba675SRob Herring			label = "asus";
105724ba675SRob Herring			reg = <0x07ec0000 0x00140000>;
106724ba675SRob Herring			read-only;
107724ba675SRob Herring		};
108724ba675SRob Herring	};
109724ba675SRob Herring};
110