0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003 * Broadcom BCM470X / BCM5301X ARM platform code.
0004 * DTS for Asus RT-N18U
0005 *
0006 * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com>
0007 */
0008
0009 /dts-v1/;
0010
0011 #include "bcm47081.dtsi"
0012 #include "bcm5301x-nand-cs0-bch8.dtsi"
0013
0014 / {
0015 compatible = "asus,rt-n18u", "brcm,bcm47081", "brcm,bcm4708";
0016 model = "Asus RT-N18U (BCM47081)";
0017
0018 chosen {
0019 bootargs = "console=ttyS0,115200";
0020 };
0021
0022 memory@0 {
0023 device_type = "memory";
0024 reg = <0x00000000 0x08000000>,
0025 <0x88000000 0x08000000>;
0026 };
0027
0028 leds {
0029 compatible = "gpio-leds";
0030
0031 power {
0032 label = "bcm53xx:blue:power";
0033 gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
0034 linux,default-trigger = "default-on";
0035 };
0036
0037 usb2 {
0038 label = "bcm53xx:blue:usb2";
0039 gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
0040 };
0041
0042 wan {
0043 label = "bcm53xx:blue:wan";
0044 gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
0045 linux,default-trigger = "default-on";
0046 };
0047
0048 lan {
0049 label = "bcm53xx:blue:lan";
0050 gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>;
0051 linux,default-trigger = "default-on";
0052 };
0053
0054 usb3 {
0055 label = "bcm53xx:blue:usb3";
0056 gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
0057 };
0058 };
0059
0060 gpio-keys {
0061 compatible = "gpio-keys";
0062
0063 button-restart {
0064 label = "Reset";
0065 linux,code = <KEY_RESTART>;
0066 gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
0067 };
0068
0069 button-wps {
0070 label = "WPS";
0071 linux,code = <KEY_WPS_BUTTON>;
0072 gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
0073 };
0074 };
0075 };
0076
0077 &usb3_phy {
0078 status = "okay";
0079 };