0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003 * Broadcom BCM470X / BCM5301X ARM platform code.
0004 * DTS for D-Link DIR-885L
0005 *
0006 * Copyright (C) 2016 Rafał Miłecki <zajec5@gmail.com>
0007 */
0008
0009 /dts-v1/;
0010
0011 #include "bcm47094.dtsi"
0012 #include "bcm5301x-nand-cs0-bch1.dtsi"
0013
0014 / {
0015 compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708";
0016 model = "D-Link DIR-885L";
0017
0018 chosen {
0019 bootargs = "console=ttyS0,115200 earlycon";
0020 };
0021
0022 memory@0 {
0023 device_type = "memory";
0024 reg = <0x00000000 0x08000000>,
0025 <0x88000000 0x08000000>;
0026 };
0027
0028 nand_controller: nand-controller@18028000 {
0029 nand@0 {
0030 partitions {
0031 compatible = "fixed-partitions";
0032 #address-cells = <1>;
0033 #size-cells = <1>;
0034
0035 partition@0 {
0036 label = "firmware";
0037 reg = <0x00000000 0x08000000>;
0038 };
0039 };
0040 };
0041 };
0042
0043 leds {
0044 compatible = "gpio-leds";
0045
0046 power-white {
0047 label = "bcm53xx:white:power";
0048 gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
0049 linux,default-trigger = "default-on";
0050 };
0051
0052 wan-white {
0053 label = "bcm53xx:white:wan";
0054 gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
0055 };
0056
0057 power-amber {
0058 label = "bcm53xx:amber:power";
0059 gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
0060 };
0061
0062 wan-amber {
0063 label = "bcm53xx:amber:wan";
0064 gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
0065 };
0066
0067 usb3-white {
0068 label = "bcm53xx:white:usb3";
0069 gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
0070 trigger-sources = <&ohci_port1>, <&ehci_port1>,
0071 <&xhci_port1>;
0072 linux,default-trigger = "usbport";
0073 };
0074
0075 2ghz {
0076 label = "bcm53xx:white:2ghz";
0077 gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
0078 };
0079
0080 5ghz {
0081 label = "bcm53xx:white:5ghz";
0082 gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
0083 };
0084 };
0085
0086 gpio-keys {
0087 compatible = "gpio-keys";
0088
0089 button-wps {
0090 label = "WPS";
0091 linux,code = <KEY_WPS_BUTTON>;
0092 gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
0093 };
0094
0095 /* Switch: router / extender */
0096 button-extender {
0097 label = "Extender";
0098 linux,code = <BTN_0>;
0099 gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
0100 };
0101
0102 button-restart {
0103 label = "Reset";
0104 linux,code = <KEY_RESTART>;
0105 gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
0106 };
0107 };
0108 };
0109
0110 &usb3 {
0111 vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
0112 };
0113
0114 &spi_nor {
0115 status = "okay";
0116 };
0117
0118 &usb3_phy {
0119 status = "okay";
0120 };
0121
0122 &srab {
0123 status = "okay";
0124
0125 ports {
0126 port@0 {
0127 reg = <0>;
0128 label = "lan4";
0129 };
0130
0131 port@1 {
0132 reg = <1>;
0133 label = "lan3";
0134 };
0135
0136 port@2 {
0137 reg = <2>;
0138 label = "lan2";
0139 };
0140
0141 port@3 {
0142 reg = <3>;
0143 label = "lan1";
0144 };
0145
0146 port@4 {
0147 reg = <4>;
0148 label = "wan";
0149 };
0150
0151 port@8 {
0152 reg = <8>;
0153 label = "cpu";
0154 ethernet = <&gmac2>;
0155
0156 fixed-link {
0157 speed = <1000>;
0158 full-duplex;
0159 };
0160 };
0161 };
0162 };