1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2724ba675SRob Herring/* 3724ba675SRob Herring * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl> 4724ba675SRob Herring */ 5724ba675SRob Herring 6724ba675SRob Herring/dts-v1/; 7724ba675SRob Herring 8724ba675SRob Herring#include "bcm53573.dtsi" 9724ba675SRob Herring 10724ba675SRob Herring/ { 11724ba675SRob Herring compatible = "tenda,ac9", "brcm,bcm47189", "brcm,bcm53573"; 12724ba675SRob Herring model = "Tenda AC9"; 13724ba675SRob Herring 14724ba675SRob Herring chosen { 15724ba675SRob Herring bootargs = "console=ttyS0,115200 earlycon"; 16724ba675SRob Herring }; 17724ba675SRob Herring 18724ba675SRob Herring memory@0 { 19724ba675SRob Herring device_type = "memory"; 20724ba675SRob Herring reg = <0x00000000 0x08000000>; 21724ba675SRob Herring }; 22724ba675SRob Herring 23724ba675SRob Herring leds-0 { 24724ba675SRob Herring compatible = "gpio-leds"; 25724ba675SRob Herring 26724ba675SRob Herring led-usb { 27724ba675SRob Herring label = "bcm53xx:blue:usb"; 28724ba675SRob Herring gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>; 29724ba675SRob Herring trigger-sources = <&ohci_port1>, <&ehci_port1>; 30724ba675SRob Herring linux,default-trigger = "usbport"; 31724ba675SRob Herring }; 32724ba675SRob Herring 33724ba675SRob Herring led-wps { 34724ba675SRob Herring label = "bcm53xx:blue:wps"; 35724ba675SRob Herring gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>; 36724ba675SRob Herring }; 37724ba675SRob Herring 38724ba675SRob Herring led-5ghz { 39724ba675SRob Herring label = "bcm53xx:blue:5ghz"; 40724ba675SRob Herring gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>; 41724ba675SRob Herring }; 42724ba675SRob Herring 43724ba675SRob Herring led-system { 44724ba675SRob Herring label = "bcm53xx:blue:system"; 45724ba675SRob Herring gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>; 46724ba675SRob Herring linux,default-trigger = "timer"; 47724ba675SRob Herring }; 48724ba675SRob Herring }; 49724ba675SRob Herring 50724ba675SRob Herring leds-1 { 51724ba675SRob Herring compatible = "gpio-leds"; 52724ba675SRob Herring 53724ba675SRob Herring led-2ghz { 54724ba675SRob Herring label = "bcm53xx:blue:2ghz"; 55724ba675SRob Herring gpios = <&pcie0_chipcommon 3 GPIO_ACTIVE_HIGH>; 56724ba675SRob Herring }; 57724ba675SRob Herring }; 58724ba675SRob Herring 59724ba675SRob Herring gpio-keys { 60724ba675SRob Herring compatible = "gpio-keys"; 61724ba675SRob Herring 62724ba675SRob Herring button-rfkill { 63724ba675SRob Herring label = "WiFi"; 64724ba675SRob Herring linux,code = <KEY_RFKILL>; 65724ba675SRob Herring gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; 66724ba675SRob Herring }; 67724ba675SRob Herring 68724ba675SRob Herring button-restart { 69724ba675SRob Herring label = "Reset"; 70724ba675SRob Herring linux,code = <KEY_RESTART>; 71724ba675SRob Herring gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; 72724ba675SRob Herring }; 73724ba675SRob Herring 74724ba675SRob Herring button-wps { 75724ba675SRob Herring label = "WPS"; 76724ba675SRob Herring linux,code = <KEY_WPS_BUTTON>; 77724ba675SRob Herring gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>; 78724ba675SRob Herring }; 79724ba675SRob Herring }; 80724ba675SRob Herring}; 81724ba675SRob Herring 82724ba675SRob Herring&pcie0 { 83724ba675SRob Herring ranges = <0x00000000 0 0 0 0 0x00100000>; 84724ba675SRob Herring #address-cells = <3>; 85724ba675SRob Herring #size-cells = <2>; 86724ba675SRob Herring 87724ba675SRob Herring bridge@0,0,0 { 88724ba675SRob Herring reg = <0x0000 0 0 0 0>; 89724ba675SRob Herring ranges = <0x00000000 0 0 0 0 0 0 0x00100000>; 90724ba675SRob Herring #address-cells = <3>; 91724ba675SRob Herring #size-cells = <2>; 92724ba675SRob Herring 93724ba675SRob Herring wifi@0,1,0 { 94724ba675SRob Herring reg = <0x0000 0 0 0 0>; 95724ba675SRob Herring ranges = <0x00000000 0 0 0 0x00100000>; 96724ba675SRob Herring #address-cells = <1>; 97724ba675SRob Herring #size-cells = <1>; 98724ba675SRob Herring 99724ba675SRob Herring pcie0_chipcommon: chipcommon@0 { 100724ba675SRob Herring reg = <0 0x1000>; 101724ba675SRob Herring 102724ba675SRob Herring gpio-controller; 103724ba675SRob Herring #gpio-cells = <2>; 104724ba675SRob Herring }; 105724ba675SRob Herring }; 106724ba675SRob Herring }; 107724ba675SRob Herring}; 108724ba675SRob Herring 109724ba675SRob Herring&switch { 110724ba675SRob Herring status = "okay"; 111724ba675SRob Herring 112724ba675SRob Herring ports { 113724ba675SRob Herring port@0 { 114724ba675SRob Herring label = "wan"; 115724ba675SRob Herring }; 116724ba675SRob Herring 117724ba675SRob Herring port@1 { 118724ba675SRob Herring label = "lan1"; 119724ba675SRob Herring }; 120724ba675SRob Herring 121724ba675SRob Herring port@2 { 122724ba675SRob Herring label = "lan2"; 123724ba675SRob Herring }; 124724ba675SRob Herring 125724ba675SRob Herring port@3 { 126724ba675SRob Herring label = "lan3"; 127724ba675SRob Herring }; 128724ba675SRob Herring 129724ba675SRob Herring port@4 { 130724ba675SRob Herring label = "lan4"; 131724ba675SRob Herring }; 132724ba675SRob Herring 133*7141209dSRafał Miłecki port@8 { 134724ba675SRob Herring label = "cpu"; 135724ba675SRob Herring }; 136724ba675SRob Herring }; 137724ba675SRob Herring}; 138