0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003 * Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
0004 */
0005
0006 /dts-v1/;
0007
0008 #include "bcm47081.dtsi"
0009
0010 / {
0011 compatible = "tplink,archer-c5-v2", "brcm,bcm47081", "brcm,bcm4708";
0012 model = "TP-LINK Archer C5 V2";
0013
0014 chosen {
0015 bootargs = "earlycon";
0016 };
0017
0018 memory@0 {
0019 device_type = "memory";
0020 reg = <0x00000000 0x08000000>;
0021 };
0022
0023 leds {
0024 compatible = "gpio-leds";
0025
0026 2ghz {
0027 label = "bcm53xx:green:2ghz";
0028 gpios = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
0029 };
0030
0031 lan {
0032 label = "bcm53xx:green:lan";
0033 gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
0034 };
0035
0036 usb2-port1 {
0037 label = "bcm53xx:green:usb2-port1";
0038 gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
0039 trigger-sources = <&ohci_port1>, <&ehci_port1>;
0040 linux,default-trigger = "usbport";
0041 };
0042
0043 power {
0044 label = "bcm53xx:green:power";
0045 gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
0046 linux,default-trigger = "default-on";
0047 };
0048
0049 wan-green {
0050 label = "bcm53xx:green:wan";
0051 gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
0052 };
0053
0054 wps {
0055 label = "bcm53xx:green:wps";
0056 gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
0057 };
0058
0059 wan-amber {
0060 label = "bcm53xx:amber:wan";
0061 gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
0062 };
0063
0064 5ghz {
0065 label = "bcm53xx:green:5ghz";
0066 gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
0067 };
0068
0069 usb2-port2 {
0070 label = "bcm53xx:green:usb2-port2";
0071 gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
0072 trigger-sources = <&ohci_port2>, <&ehci_port2>;
0073 linux,default-trigger = "usbport";
0074 };
0075 };
0076
0077 gpio-keys {
0078 compatible = "gpio-keys";
0079
0080 button-rfkill {
0081 label = "WiFi";
0082 linux,code = <KEY_RFKILL>;
0083 gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
0084 };
0085
0086 button-restart {
0087 label = "Reset";
0088 linux,code = <KEY_RESTART>;
0089 gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
0090 };
0091 };
0092 };
0093
0094 &spi_nor {
0095 status = "okay";
0096
0097 partitions {
0098 compatible = "fixed-partitions";
0099 #address-cells = <1>;
0100 #size-cells = <1>;
0101
0102 boot@0 {
0103 label = "boot";
0104 reg = <0x000000 0x040000>;
0105 read-only;
0106 };
0107
0108 os-image@100000 {
0109 label = "os-image";
0110 reg = <0x040000 0x200000>;
0111 compatible = "brcm,trx";
0112 };
0113
0114 rootfs@240000 {
0115 label = "rootfs";
0116 reg = <0x240000 0xc00000>;
0117 };
0118
0119 nvram@ff0000 {
0120 label = "nvram";
0121 reg = <0xff0000 0x010000>;
0122 };
0123 };
0124 };
0125
0126 &usb2 {
0127 vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
0128 };