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 "bcm53573.dtsi"
0009
0010 / {
0011 compatible = "tenda,ac9", "brcm,bcm47189", "brcm,bcm53573";
0012 model = "Tenda AC9";
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 usb {
0027 label = "bcm53xx:blue:usb";
0028 gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
0029 trigger-sources = <&ohci_port1>, <&ehci_port1>;
0030 linux,default-trigger = "usbport";
0031 };
0032
0033 wps {
0034 label = "bcm53xx:blue:wps";
0035 gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
0036 };
0037
0038 5ghz {
0039 label = "bcm53xx:blue:5ghz";
0040 gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
0041 };
0042
0043 system {
0044 label = "bcm53xx:blue:system";
0045 gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
0046 linux,default-trigger = "timer";
0047 };
0048 };
0049
0050 pcie0_leds {
0051 compatible = "gpio-leds";
0052
0053 2ghz {
0054 label = "bcm53xx:blue:2ghz";
0055 gpios = <&pcie0_chipcommon 3 GPIO_ACTIVE_HIGH>;
0056 };
0057 };
0058
0059 gpio-keys {
0060 compatible = "gpio-keys";
0061
0062 button-rfkill {
0063 label = "WiFi";
0064 linux,code = <KEY_RFKILL>;
0065 gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
0066 };
0067
0068 button-restart {
0069 label = "Reset";
0070 linux,code = <KEY_RESTART>;
0071 gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
0072 };
0073
0074 button-wps {
0075 label = "WPS";
0076 linux,code = <KEY_WPS_BUTTON>;
0077 gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>;
0078 };
0079 };
0080 };
0081
0082 &pcie0 {
0083 ranges = <0x00000000 0 0 0 0 0x00100000>;
0084 #address-cells = <3>;
0085 #size-cells = <2>;
0086
0087 bridge@0,0,0 {
0088 reg = <0x0000 0 0 0 0>;
0089 ranges = <0x00000000 0 0 0 0 0 0 0x00100000>;
0090 #address-cells = <3>;
0091 #size-cells = <2>;
0092
0093 wifi@0,1,0 {
0094 reg = <0x0000 0 0 0 0>;
0095 ranges = <0x00000000 0 0 0 0x00100000>;
0096 #address-cells = <1>;
0097 #size-cells = <1>;
0098
0099 pcie0_chipcommon: chipcommon@0 {
0100 reg = <0 0x1000>;
0101
0102 gpio-controller;
0103 #gpio-cells = <2>;
0104 };
0105 };
0106 };
0107 };
0108
0109 &switch {
0110 status = "okay";
0111
0112 ports {
0113 port@0 {
0114 reg = <0>;
0115 label = "wan";
0116 };
0117
0118 port@1 {
0119 reg = <1>;
0120 label = "lan1";
0121 };
0122
0123 port@2 {
0124 reg = <2>;
0125 label = "lan2";
0126 };
0127
0128 port@3 {
0129 reg = <3>;
0130 label = "lan3";
0131 };
0132
0133 port@4 {
0134 reg = <4>;
0135 label = "lan4";
0136 };
0137
0138 port@5 {
0139 reg = <5>;
0140 label = "cpu";
0141 ethernet = <&gmac0>;
0142 };
0143 };
0144 };