1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
4f126890aSEmmanuel Vadot */
5f126890aSEmmanuel Vadot
6f126890aSEmmanuel Vadot/dts-v1/;
7f126890aSEmmanuel Vadot
8f126890aSEmmanuel Vadot#include "bcm53573.dtsi"
9f126890aSEmmanuel Vadot
10f126890aSEmmanuel Vadot/ {
11f126890aSEmmanuel Vadot	compatible = "tenda,ac9", "brcm,bcm47189", "brcm,bcm53573";
12f126890aSEmmanuel Vadot	model = "Tenda AC9";
13f126890aSEmmanuel Vadot
14f126890aSEmmanuel Vadot	chosen {
15f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,115200 earlycon";
16f126890aSEmmanuel Vadot	};
17f126890aSEmmanuel Vadot
18f126890aSEmmanuel Vadot	memory@0 {
19f126890aSEmmanuel Vadot		device_type = "memory";
20f126890aSEmmanuel Vadot		reg = <0x00000000 0x08000000>;
21f126890aSEmmanuel Vadot	};
22f126890aSEmmanuel Vadot
23f126890aSEmmanuel Vadot	leds-0 {
24f126890aSEmmanuel Vadot		compatible = "gpio-leds";
25f126890aSEmmanuel Vadot
26f126890aSEmmanuel Vadot		led-usb {
27f126890aSEmmanuel Vadot			label = "bcm53xx:blue:usb";
28f126890aSEmmanuel Vadot			gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
29f126890aSEmmanuel Vadot			trigger-sources = <&ohci_port1>, <&ehci_port1>;
30f126890aSEmmanuel Vadot			linux,default-trigger = "usbport";
31f126890aSEmmanuel Vadot		};
32f126890aSEmmanuel Vadot
33f126890aSEmmanuel Vadot		led-wps {
34f126890aSEmmanuel Vadot			label = "bcm53xx:blue:wps";
35f126890aSEmmanuel Vadot			gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
36f126890aSEmmanuel Vadot		};
37f126890aSEmmanuel Vadot
38f126890aSEmmanuel Vadot		led-5ghz {
39f126890aSEmmanuel Vadot			label = "bcm53xx:blue:5ghz";
40f126890aSEmmanuel Vadot			gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
41f126890aSEmmanuel Vadot		};
42f126890aSEmmanuel Vadot
43f126890aSEmmanuel Vadot		led-system {
44f126890aSEmmanuel Vadot			label = "bcm53xx:blue:system";
45f126890aSEmmanuel Vadot			gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
46f126890aSEmmanuel Vadot			linux,default-trigger = "timer";
47f126890aSEmmanuel Vadot		};
48f126890aSEmmanuel Vadot	};
49f126890aSEmmanuel Vadot
50f126890aSEmmanuel Vadot	leds-1 {
51f126890aSEmmanuel Vadot		compatible = "gpio-leds";
52f126890aSEmmanuel Vadot
53f126890aSEmmanuel Vadot		led-2ghz {
54f126890aSEmmanuel Vadot			label = "bcm53xx:blue:2ghz";
55f126890aSEmmanuel Vadot			gpios = <&pcie0_chipcommon 3 GPIO_ACTIVE_HIGH>;
56f126890aSEmmanuel Vadot		};
57f126890aSEmmanuel Vadot	};
58f126890aSEmmanuel Vadot
59f126890aSEmmanuel Vadot	gpio-keys {
60f126890aSEmmanuel Vadot		compatible = "gpio-keys";
61f126890aSEmmanuel Vadot
62f126890aSEmmanuel Vadot		button-rfkill {
63f126890aSEmmanuel Vadot			label = "WiFi";
64f126890aSEmmanuel Vadot			linux,code = <KEY_RFKILL>;
65f126890aSEmmanuel Vadot			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
66f126890aSEmmanuel Vadot		};
67f126890aSEmmanuel Vadot
68f126890aSEmmanuel Vadot		button-restart {
69f126890aSEmmanuel Vadot			label = "Reset";
70f126890aSEmmanuel Vadot			linux,code = <KEY_RESTART>;
71f126890aSEmmanuel Vadot			gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
72f126890aSEmmanuel Vadot		};
73f126890aSEmmanuel Vadot
74f126890aSEmmanuel Vadot		button-wps {
75f126890aSEmmanuel Vadot			label = "WPS";
76f126890aSEmmanuel Vadot			linux,code = <KEY_WPS_BUTTON>;
77f126890aSEmmanuel Vadot			gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>;
78f126890aSEmmanuel Vadot		};
79f126890aSEmmanuel Vadot	};
80f126890aSEmmanuel Vadot};
81f126890aSEmmanuel Vadot
82f126890aSEmmanuel Vadot&pcie0 {
83f126890aSEmmanuel Vadot	ranges = <0x00000000 0 0 0 0 0x00100000>;
84f126890aSEmmanuel Vadot	#address-cells = <3>;
85f126890aSEmmanuel Vadot	#size-cells = <2>;
86f126890aSEmmanuel Vadot
87f126890aSEmmanuel Vadot	bridge@0,0,0 {
88f126890aSEmmanuel Vadot		reg = <0x0000 0 0 0 0>;
89f126890aSEmmanuel Vadot		ranges = <0x00000000 0 0 0 0 0 0 0x00100000>;
90f126890aSEmmanuel Vadot		#address-cells = <3>;
91f126890aSEmmanuel Vadot		#size-cells = <2>;
92f126890aSEmmanuel Vadot
93f126890aSEmmanuel Vadot		wifi@0,1,0 {
94f126890aSEmmanuel Vadot			reg = <0x0000 0 0 0 0>;
95f126890aSEmmanuel Vadot			ranges = <0x00000000 0 0 0 0x00100000>;
96f126890aSEmmanuel Vadot			#address-cells = <1>;
97f126890aSEmmanuel Vadot			#size-cells = <1>;
98f126890aSEmmanuel Vadot
99f126890aSEmmanuel Vadot			pcie0_chipcommon: chipcommon@0 {
100f126890aSEmmanuel Vadot				reg = <0 0x1000>;
101f126890aSEmmanuel Vadot
102f126890aSEmmanuel Vadot				gpio-controller;
103f126890aSEmmanuel Vadot				#gpio-cells = <2>;
104f126890aSEmmanuel Vadot			};
105f126890aSEmmanuel Vadot		};
106f126890aSEmmanuel Vadot	};
107f126890aSEmmanuel Vadot};
108f126890aSEmmanuel Vadot
109f126890aSEmmanuel Vadot&switch {
110f126890aSEmmanuel Vadot	status = "okay";
111f126890aSEmmanuel Vadot
112f126890aSEmmanuel Vadot	ports {
113f126890aSEmmanuel Vadot		port@0 {
114f126890aSEmmanuel Vadot			label = "wan";
115f126890aSEmmanuel Vadot		};
116f126890aSEmmanuel Vadot
117f126890aSEmmanuel Vadot		port@1 {
118f126890aSEmmanuel Vadot			label = "lan1";
119f126890aSEmmanuel Vadot		};
120f126890aSEmmanuel Vadot
121f126890aSEmmanuel Vadot		port@2 {
122f126890aSEmmanuel Vadot			label = "lan2";
123f126890aSEmmanuel Vadot		};
124f126890aSEmmanuel Vadot
125f126890aSEmmanuel Vadot		port@3 {
126f126890aSEmmanuel Vadot			label = "lan3";
127f126890aSEmmanuel Vadot		};
128f126890aSEmmanuel Vadot
129f126890aSEmmanuel Vadot		port@4 {
130f126890aSEmmanuel Vadot			label = "lan4";
131f126890aSEmmanuel Vadot		};
132f126890aSEmmanuel Vadot
133*aa1a8ff2SEmmanuel Vadot		port@8 {
134f126890aSEmmanuel Vadot			label = "cpu";
135f126890aSEmmanuel Vadot		};
136f126890aSEmmanuel Vadot	};
137f126890aSEmmanuel Vadot};
138