1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2724ba675SRob Herring/* 3724ba675SRob Herring * Broadcom BCM470X / BCM5301X arm platform code. 4724ba675SRob Herring * DTS for SmartRG SR400ac 5724ba675SRob Herring * 6724ba675SRob Herring * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com> 7724ba675SRob Herring */ 8724ba675SRob Herring 9724ba675SRob Herring/dts-v1/; 10724ba675SRob Herring 11724ba675SRob Herring#include "bcm4708.dtsi" 12724ba675SRob Herring#include "bcm5301x-nand-cs0-bch8.dtsi" 13724ba675SRob Herring 14724ba675SRob Herring/ { 15724ba675SRob Herring compatible = "smartrg,sr400ac", "brcm,bcm4708"; 16724ba675SRob Herring model = "SmartRG SR400ac"; 17724ba675SRob Herring 18724ba675SRob Herring chosen { 19724ba675SRob Herring bootargs = "console=ttyS0,115200 earlycon"; 20724ba675SRob Herring }; 21724ba675SRob Herring 22724ba675SRob Herring memory@0 { 23724ba675SRob Herring device_type = "memory"; 24724ba675SRob Herring reg = <0x00000000 0x08000000>, 25724ba675SRob Herring <0x88000000 0x08000000>; 26724ba675SRob Herring }; 27724ba675SRob Herring 28724ba675SRob Herring leds { 29724ba675SRob Herring compatible = "gpio-leds"; 30724ba675SRob Herring 31724ba675SRob Herring led-power-white { 32724ba675SRob Herring label = "bcm53xx:white:power"; 33724ba675SRob Herring gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>; 34724ba675SRob Herring linux,default-trigger = "default-on"; 35724ba675SRob Herring }; 36724ba675SRob Herring 37724ba675SRob Herring led-power-amber { 38724ba675SRob Herring label = "bcm53xx:amber:power"; 39724ba675SRob Herring gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>; 40724ba675SRob Herring }; 41724ba675SRob Herring 42724ba675SRob Herring led-usb2 { 43724ba675SRob Herring label = "bcm53xx:white:usb2"; 44724ba675SRob Herring gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>; 45724ba675SRob Herring trigger-sources = <&ohci_port2>, <&ehci_port2>; 46724ba675SRob Herring linux,default-trigger = "usbport"; 47724ba675SRob Herring }; 48724ba675SRob Herring 49724ba675SRob Herring led-usb3-white { 50724ba675SRob Herring label = "bcm53xx:white:usb3"; 51724ba675SRob Herring gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>; 52724ba675SRob Herring trigger-sources = <&xhci_port1>; 53724ba675SRob Herring linux,default-trigger = "usbport"; 54724ba675SRob Herring }; 55724ba675SRob Herring 56724ba675SRob Herring led-usb3-green { 57724ba675SRob Herring label = "bcm53xx:green:usb3"; 58724ba675SRob Herring gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; 59724ba675SRob Herring trigger-sources = <&ohci_port1>, <&ehci_port1>; 60724ba675SRob Herring linux,default-trigger = "usbport"; 61724ba675SRob Herring }; 62724ba675SRob Herring 63724ba675SRob Herring led-wps { 64724ba675SRob Herring label = "bcm53xx:white:wps"; 65724ba675SRob Herring gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>; 66724ba675SRob Herring }; 67724ba675SRob Herring 68724ba675SRob Herring led-status-red { 69724ba675SRob Herring label = "bcm53xx:red:status"; 70724ba675SRob Herring gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>; 71724ba675SRob Herring }; 72724ba675SRob Herring 73724ba675SRob Herring led-status-green { 74724ba675SRob Herring label = "bcm53xx:green:status"; 75724ba675SRob Herring gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>; 76724ba675SRob Herring }; 77724ba675SRob Herring 78724ba675SRob Herring led-status-blue { 79724ba675SRob Herring label = "bcm53xx:blue:status"; 80724ba675SRob Herring gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>; 81724ba675SRob Herring }; 82724ba675SRob Herring 83724ba675SRob Herring led-wan-white { 84724ba675SRob Herring label = "bcm53xx:white:wan"; 85724ba675SRob Herring gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>; 86724ba675SRob Herring }; 87724ba675SRob Herring 88724ba675SRob Herring led-wan-red { 89724ba675SRob Herring label = "bcm53xx:red:wan"; 90724ba675SRob Herring gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>; 91724ba675SRob Herring }; 92724ba675SRob Herring }; 93724ba675SRob Herring 94724ba675SRob Herring gpio-keys { 95724ba675SRob Herring compatible = "gpio-keys"; 96724ba675SRob Herring 97724ba675SRob Herring button-rfkill { 98724ba675SRob Herring label = "WiFi"; 99724ba675SRob Herring linux,code = <KEY_RFKILL>; 100724ba675SRob Herring gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>; 101724ba675SRob Herring }; 102724ba675SRob Herring 103724ba675SRob Herring button-wps { 104724ba675SRob Herring label = "WPS"; 105724ba675SRob Herring linux,code = <KEY_WPS_BUTTON>; 106724ba675SRob Herring gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; 107724ba675SRob Herring }; 108724ba675SRob Herring 109724ba675SRob Herring button-restart { 110724ba675SRob Herring label = "Reset"; 111724ba675SRob Herring linux,code = <KEY_RESTART>; 112724ba675SRob Herring gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; 113724ba675SRob Herring }; 114724ba675SRob Herring }; 115724ba675SRob Herring}; 116724ba675SRob Herring 117724ba675SRob Herring&spi_nor { 118724ba675SRob Herring status = "okay"; 119724ba675SRob Herring}; 120724ba675SRob Herring 121724ba675SRob Herring&srab { 122724ba675SRob Herring status = "okay"; 123724ba675SRob Herring 124724ba675SRob Herring ports { 125724ba675SRob Herring port@0 { 126724ba675SRob Herring label = "lan4"; 127724ba675SRob Herring }; 128724ba675SRob Herring 129724ba675SRob Herring port@1 { 130724ba675SRob Herring label = "lan3"; 131724ba675SRob Herring }; 132724ba675SRob Herring 133724ba675SRob Herring port@2 { 134724ba675SRob Herring label = "lan2"; 135724ba675SRob Herring }; 136724ba675SRob Herring 137724ba675SRob Herring port@3 { 138724ba675SRob Herring label = "lan1"; 139724ba675SRob Herring }; 140724ba675SRob Herring 141724ba675SRob Herring port@4 { 142724ba675SRob Herring label = "wan"; 143724ba675SRob Herring }; 144724ba675SRob Herring 145724ba675SRob Herring port@5 { 146724ba675SRob Herring label = "cpu"; 147724ba675SRob Herring }; 148*473baeabSRafał Miłecki 149*473baeabSRafał Miłecki port@7 { 150*473baeabSRafał Miłecki status = "disabled"; 151*473baeabSRafał Miłecki }; 152*473baeabSRafał Miłecki 153*473baeabSRafał Miłecki port@8 { 154*473baeabSRafał Miłecki status = "disabled"; 155*473baeabSRafał Miłecki }; 156724ba675SRob Herring }; 157724ba675SRob Herring}; 158724ba675SRob Herring 159724ba675SRob Herring&usb3_phy { 160724ba675SRob Herring status = "okay"; 161724ba675SRob Herring}; 162