xref: /linux/scripts/dtc/include-prefixes/arm/broadcom/bcm47081-tplink-archer-c5-v2.dts (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
4*724ba675SRob Herring */
5*724ba675SRob Herring
6*724ba675SRob Herring/dts-v1/;
7*724ba675SRob Herring
8*724ba675SRob Herring#include "bcm47081.dtsi"
9*724ba675SRob Herring
10*724ba675SRob Herring/ {
11*724ba675SRob Herring	compatible = "tplink,archer-c5-v2", "brcm,bcm47081", "brcm,bcm4708";
12*724ba675SRob Herring	model = "TP-LINK Archer C5 V2";
13*724ba675SRob Herring
14*724ba675SRob Herring	chosen {
15*724ba675SRob Herring		bootargs = "earlycon";
16*724ba675SRob Herring	};
17*724ba675SRob Herring
18*724ba675SRob Herring	memory@0 {
19*724ba675SRob Herring		device_type = "memory";
20*724ba675SRob Herring		reg = <0x00000000 0x08000000>;
21*724ba675SRob Herring	};
22*724ba675SRob Herring
23*724ba675SRob Herring	leds {
24*724ba675SRob Herring		compatible = "gpio-leds";
25*724ba675SRob Herring
26*724ba675SRob Herring		led-2ghz {
27*724ba675SRob Herring			label = "bcm53xx:green:2ghz";
28*724ba675SRob Herring			gpios = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
29*724ba675SRob Herring		};
30*724ba675SRob Herring
31*724ba675SRob Herring		led-lan {
32*724ba675SRob Herring			label = "bcm53xx:green:lan";
33*724ba675SRob Herring			gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
34*724ba675SRob Herring		};
35*724ba675SRob Herring
36*724ba675SRob Herring		led-usb2-port1 {
37*724ba675SRob Herring			label = "bcm53xx:green:usb2-port1";
38*724ba675SRob Herring			gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
39*724ba675SRob Herring			trigger-sources = <&ohci_port1>, <&ehci_port1>;
40*724ba675SRob Herring			linux,default-trigger = "usbport";
41*724ba675SRob Herring		};
42*724ba675SRob Herring
43*724ba675SRob Herring		led-power {
44*724ba675SRob Herring			label = "bcm53xx:green:power";
45*724ba675SRob Herring			gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
46*724ba675SRob Herring			linux,default-trigger = "default-on";
47*724ba675SRob Herring		};
48*724ba675SRob Herring
49*724ba675SRob Herring		led-wan-green {
50*724ba675SRob Herring			label = "bcm53xx:green:wan";
51*724ba675SRob Herring			gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
52*724ba675SRob Herring		};
53*724ba675SRob Herring
54*724ba675SRob Herring		led-wps {
55*724ba675SRob Herring			label = "bcm53xx:green:wps";
56*724ba675SRob Herring			gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
57*724ba675SRob Herring		};
58*724ba675SRob Herring
59*724ba675SRob Herring		led-wan-amber {
60*724ba675SRob Herring			label = "bcm53xx:amber:wan";
61*724ba675SRob Herring			gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
62*724ba675SRob Herring		};
63*724ba675SRob Herring
64*724ba675SRob Herring		led-5ghz {
65*724ba675SRob Herring			label = "bcm53xx:green:5ghz";
66*724ba675SRob Herring			gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
67*724ba675SRob Herring		};
68*724ba675SRob Herring
69*724ba675SRob Herring		led-usb2-port2 {
70*724ba675SRob Herring			label = "bcm53xx:green:usb2-port2";
71*724ba675SRob Herring			gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
72*724ba675SRob Herring			trigger-sources = <&ohci_port2>, <&ehci_port2>;
73*724ba675SRob Herring			linux,default-trigger = "usbport";
74*724ba675SRob Herring		};
75*724ba675SRob Herring	};
76*724ba675SRob Herring
77*724ba675SRob Herring	gpio-keys {
78*724ba675SRob Herring		compatible = "gpio-keys";
79*724ba675SRob Herring
80*724ba675SRob Herring		button-rfkill {
81*724ba675SRob Herring			label = "WiFi";
82*724ba675SRob Herring			linux,code = <KEY_RFKILL>;
83*724ba675SRob Herring			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
84*724ba675SRob Herring		};
85*724ba675SRob Herring
86*724ba675SRob Herring		button-restart {
87*724ba675SRob Herring			label = "Reset";
88*724ba675SRob Herring			linux,code = <KEY_RESTART>;
89*724ba675SRob Herring			gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
90*724ba675SRob Herring		};
91*724ba675SRob Herring	};
92*724ba675SRob Herring};
93*724ba675SRob Herring
94*724ba675SRob Herring&spi_nor {
95*724ba675SRob Herring	status = "okay";
96*724ba675SRob Herring
97*724ba675SRob Herring	partitions {
98*724ba675SRob Herring		compatible = "tplink,safeloader-partitions";
99*724ba675SRob Herring		partitions-table-offset = <0xe50000>;
100*724ba675SRob Herring
101*724ba675SRob Herring		partition-os-image {
102*724ba675SRob Herring			compatible = "brcm,trx";
103*724ba675SRob Herring		};
104*724ba675SRob Herring
105*724ba675SRob Herring		partition-file-system {
106*724ba675SRob Herring			linux,rootfs;
107*724ba675SRob Herring		};
108*724ba675SRob Herring	};
109*724ba675SRob Herring};
110*724ba675SRob Herring
111*724ba675SRob Herring&usb2 {
112*724ba675SRob Herring	vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
113*724ba675SRob Herring};
114