xref: /freebsd/sys/contrib/device-tree/src/arm/broadcom/bcm47081-asus-rt-n18u.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Broadcom BCM470X / BCM5301X ARM platform code.
4*f126890aSEmmanuel Vadot * DTS for Asus RT-N18U
5*f126890aSEmmanuel Vadot *
6*f126890aSEmmanuel Vadot * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com>
7*f126890aSEmmanuel Vadot */
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot/dts-v1/;
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot#include "bcm47081.dtsi"
12*f126890aSEmmanuel Vadot#include "bcm5301x-nand-cs0-bch8.dtsi"
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot/ {
15*f126890aSEmmanuel Vadot	compatible = "asus,rt-n18u", "brcm,bcm47081", "brcm,bcm4708";
16*f126890aSEmmanuel Vadot	model = "Asus RT-N18U (BCM47081)";
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot	chosen {
19*f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,115200";
20*f126890aSEmmanuel Vadot	};
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot	memory@0 {
23*f126890aSEmmanuel Vadot		device_type = "memory";
24*f126890aSEmmanuel Vadot		reg = <0x00000000 0x08000000>,
25*f126890aSEmmanuel Vadot		      <0x88000000 0x08000000>;
26*f126890aSEmmanuel Vadot	};
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot	leds {
29*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
30*f126890aSEmmanuel Vadot
31*f126890aSEmmanuel Vadot		led-power {
32*f126890aSEmmanuel Vadot			label = "bcm53xx:blue:power";
33*f126890aSEmmanuel Vadot			gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
34*f126890aSEmmanuel Vadot			linux,default-trigger = "default-on";
35*f126890aSEmmanuel Vadot		};
36*f126890aSEmmanuel Vadot
37*f126890aSEmmanuel Vadot		led-usb2 {
38*f126890aSEmmanuel Vadot			label = "bcm53xx:blue:usb2";
39*f126890aSEmmanuel Vadot			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
40*f126890aSEmmanuel Vadot		};
41*f126890aSEmmanuel Vadot
42*f126890aSEmmanuel Vadot		led-wan {
43*f126890aSEmmanuel Vadot			label = "bcm53xx:blue:wan";
44*f126890aSEmmanuel Vadot			gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
45*f126890aSEmmanuel Vadot			linux,default-trigger = "default-on";
46*f126890aSEmmanuel Vadot		};
47*f126890aSEmmanuel Vadot
48*f126890aSEmmanuel Vadot		led-lan {
49*f126890aSEmmanuel Vadot			label = "bcm53xx:blue:lan";
50*f126890aSEmmanuel Vadot			gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>;
51*f126890aSEmmanuel Vadot			linux,default-trigger = "default-on";
52*f126890aSEmmanuel Vadot		};
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot		led-usb3 {
55*f126890aSEmmanuel Vadot			label = "bcm53xx:blue:usb3";
56*f126890aSEmmanuel Vadot			gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
57*f126890aSEmmanuel Vadot		};
58*f126890aSEmmanuel Vadot	};
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot	gpio-keys {
61*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot		button-restart {
64*f126890aSEmmanuel Vadot			label = "Reset";
65*f126890aSEmmanuel Vadot			linux,code = <KEY_RESTART>;
66*f126890aSEmmanuel Vadot			gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
67*f126890aSEmmanuel Vadot		};
68*f126890aSEmmanuel Vadot
69*f126890aSEmmanuel Vadot		button-wps {
70*f126890aSEmmanuel Vadot			label = "WPS";
71*f126890aSEmmanuel Vadot			linux,code = <KEY_WPS_BUTTON>;
72*f126890aSEmmanuel Vadot			gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
73*f126890aSEmmanuel Vadot		};
74*f126890aSEmmanuel Vadot	};
75*f126890aSEmmanuel Vadot};
76*f126890aSEmmanuel Vadot
77*f126890aSEmmanuel Vadot&usb3_phy {
78*f126890aSEmmanuel Vadot	status = "okay";
79*f126890aSEmmanuel Vadot};
80