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