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