blob: c2a266a439d0504dd76a0404b9eb840c873a1c36 [file] [log] [blame]
Rafał Miłecki2b3db672018-05-02 16:11:02 +02001// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
Rafał Miłecki41182be2016-11-13 11:12:09 +01002/*
3 * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
Rafał Miłecki41182be2016-11-13 11:12:09 +01004 */
5
6/dts-v1/;
7
8#include "bcm4709.dtsi"
9
10/ {
11 compatible = "tplink,archer-c9-v1", "brcm,bcm4709", "brcm,bcm4708";
12 model = "TP-LINK Archer C9 V1";
13
14 chosen {
15 bootargs = "console=ttyS0,115200 earlycon";
16 };
17
Rafał Miłeckic5e1df32021-08-19 08:57:02 +020018 memory@0 {
Florian Fainellie8bd76d2019-05-09 10:11:35 -070019 device_type = "memory";
Rafał Miłecki41182be2016-11-13 11:12:09 +010020 reg = <0x00000000 0x08000000>;
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 lan {
27 label = "bcm53xx:blue:lan";
28 gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
Rafał Miłecki41182be2016-11-13 11:12:09 +010029 };
30
31 wps {
32 label = "bcm53xx:blue:wps";
33 gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
Rafał Miłecki41182be2016-11-13 11:12:09 +010034 };
35
36 2ghz {
37 label = "bcm53xx:blue:2ghz";
38 gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
Rafał Miłecki41182be2016-11-13 11:12:09 +010039 };
40
41 5ghz {
42 label = "bcm53xx:blue:5ghz";
43 gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
Rafał Miłecki41182be2016-11-13 11:12:09 +010044 };
45
46 usb3 {
47 label = "bcm53xx:blue:usb3";
48 gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
Rafał Miłecki0b1f1102017-08-02 06:40:41 +020049 trigger-sources = <&ohci_port1>, <&ehci_port1>,
50 <&xhci_port1>;
51 linux,default-trigger = "usbport";
Rafał Miłecki41182be2016-11-13 11:12:09 +010052 };
53
54 usb2 {
55 label = "bcm53xx:blue:usb2";
56 gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
Rafał Miłecki0b1f1102017-08-02 06:40:41 +020057 trigger-sources = <&ohci_port2>, <&ehci_port2>;
58 linux,default-trigger = "usbport";
Rafał Miłecki41182be2016-11-13 11:12:09 +010059 };
60
61 wan-blue {
62 label = "bcm53xx:blue:wan";
63 gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
Rafał Miłecki41182be2016-11-13 11:12:09 +010064 };
65
66 wan-amber {
67 label = "bcm53xx:amber:wan";
68 gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
Rafał Miłecki41182be2016-11-13 11:12:09 +010069 };
70
71 power {
72 label = "bcm53xx:blue:power";
73 gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
74 linux,default-trigger = "default-on";
75 };
76 };
77
78 gpio-keys {
79 compatible = "gpio-keys";
80 #address-cells = <1>;
81 #size-cells = <0>;
82
83 wps {
84 label = "WPS";
85 linux,code = <KEY_WPS_BUTTON>;
86 gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
87 };
88
89 restart {
90 label = "Reset";
91 linux,code = <KEY_RESTART>;
92 gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
93 };
94 };
95};
96
Rafał Miłecki41182be2016-11-13 11:12:09 +010097&usb2 {
98 vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
99};
100
101&usb3 {
102 vcc-gpio = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
103};
104
105&spi_nor {
106 status = "okay";
Rafał Miłeckib0465fd2018-07-28 14:13:57 +0200107
108 partitions {
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
111 #size-cells = <1>;
112
113 boot@0 {
114 label = "boot";
115 reg = <0x000000 0x040000>;
116 read-only;
117 };
118
119 os-image@100000 {
120 label = "os-image";
121 reg = <0x040000 0x200000>;
122 compatible = "brcm,trx";
123 };
124
125 rootfs@240000 {
126 label = "rootfs";
127 reg = <0x240000 0xc00000>;
128 };
129
130 nvram@ff0000 {
131 label = "nvram";
132 reg = <0xff0000 0x010000>;
133 };
134 };
Rafał Miłecki41182be2016-11-13 11:12:09 +0100135};
Vivek Unune37f6130e2018-04-09 18:31:53 -0400136
137&usb3_phy {
138 status = "okay";
139};