1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Broadcom BCM470X / BCM5301X ARM platform code. 4*724ba675SRob Herring * DTS for D-Link DIR-885L 5*724ba675SRob Herring * 6*724ba675SRob Herring * Copyright (C) 2016 Rafał Miłecki <zajec5@gmail.com> 7*724ba675SRob Herring */ 8*724ba675SRob Herring 9*724ba675SRob Herring/dts-v1/; 10*724ba675SRob Herring 11*724ba675SRob Herring#include "bcm47094.dtsi" 12*724ba675SRob Herring#include "bcm5301x-nand-cs0-bch1.dtsi" 13*724ba675SRob Herring 14*724ba675SRob Herring/ { 15*724ba675SRob Herring compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708"; 16*724ba675SRob Herring model = "D-Link DIR-885L"; 17*724ba675SRob Herring 18*724ba675SRob Herring chosen { 19*724ba675SRob Herring bootargs = "console=ttyS0,115200 earlycon"; 20*724ba675SRob Herring }; 21*724ba675SRob Herring 22*724ba675SRob Herring memory@0 { 23*724ba675SRob Herring device_type = "memory"; 24*724ba675SRob Herring reg = <0x00000000 0x08000000>, 25*724ba675SRob Herring <0x88000000 0x08000000>; 26*724ba675SRob Herring }; 27*724ba675SRob Herring 28*724ba675SRob Herring nand_controller: nand-controller@18028000 { 29*724ba675SRob Herring nand@0 { 30*724ba675SRob Herring partitions { 31*724ba675SRob Herring compatible = "fixed-partitions"; 32*724ba675SRob Herring #address-cells = <1>; 33*724ba675SRob Herring #size-cells = <1>; 34*724ba675SRob Herring 35*724ba675SRob Herring partition@0 { 36*724ba675SRob Herring label = "firmware"; 37*724ba675SRob Herring reg = <0x00000000 0x08000000>; 38*724ba675SRob Herring }; 39*724ba675SRob Herring }; 40*724ba675SRob Herring }; 41*724ba675SRob Herring }; 42*724ba675SRob Herring 43*724ba675SRob Herring leds { 44*724ba675SRob Herring compatible = "gpio-leds"; 45*724ba675SRob Herring 46*724ba675SRob Herring led-power-white { 47*724ba675SRob Herring label = "bcm53xx:white:power"; 48*724ba675SRob Herring gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>; 49*724ba675SRob Herring linux,default-trigger = "default-on"; 50*724ba675SRob Herring }; 51*724ba675SRob Herring 52*724ba675SRob Herring led-wan-white { 53*724ba675SRob Herring label = "bcm53xx:white:wan"; 54*724ba675SRob Herring gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; 55*724ba675SRob Herring }; 56*724ba675SRob Herring 57*724ba675SRob Herring led-power-amber { 58*724ba675SRob Herring label = "bcm53xx:amber:power"; 59*724ba675SRob Herring gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; 60*724ba675SRob Herring }; 61*724ba675SRob Herring 62*724ba675SRob Herring led-wan-amber { 63*724ba675SRob Herring label = "bcm53xx:amber:wan"; 64*724ba675SRob Herring gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; 65*724ba675SRob Herring }; 66*724ba675SRob Herring 67*724ba675SRob Herring led-usb3-white { 68*724ba675SRob Herring label = "bcm53xx:white:usb3"; 69*724ba675SRob Herring gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>; 70*724ba675SRob Herring trigger-sources = <&ohci_port1>, <&ehci_port1>, 71*724ba675SRob Herring <&xhci_port1>; 72*724ba675SRob Herring linux,default-trigger = "usbport"; 73*724ba675SRob Herring }; 74*724ba675SRob Herring 75*724ba675SRob Herring led-2ghz { 76*724ba675SRob Herring label = "bcm53xx:white:2ghz"; 77*724ba675SRob Herring gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; 78*724ba675SRob Herring }; 79*724ba675SRob Herring 80*724ba675SRob Herring led-5ghz { 81*724ba675SRob Herring label = "bcm53xx:white:5ghz"; 82*724ba675SRob Herring gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; 83*724ba675SRob Herring }; 84*724ba675SRob Herring }; 85*724ba675SRob Herring 86*724ba675SRob Herring gpio-keys { 87*724ba675SRob Herring compatible = "gpio-keys"; 88*724ba675SRob Herring 89*724ba675SRob Herring button-wps { 90*724ba675SRob Herring label = "WPS"; 91*724ba675SRob Herring linux,code = <KEY_WPS_BUTTON>; 92*724ba675SRob Herring gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; 93*724ba675SRob Herring }; 94*724ba675SRob Herring 95*724ba675SRob Herring /* Switch: router / extender */ 96*724ba675SRob Herring button-extender { 97*724ba675SRob Herring label = "Extender"; 98*724ba675SRob Herring linux,code = <BTN_0>; 99*724ba675SRob Herring gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; 100*724ba675SRob Herring }; 101*724ba675SRob Herring 102*724ba675SRob Herring button-restart { 103*724ba675SRob Herring label = "Reset"; 104*724ba675SRob Herring linux,code = <KEY_RESTART>; 105*724ba675SRob Herring gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; 106*724ba675SRob Herring }; 107*724ba675SRob Herring }; 108*724ba675SRob Herring}; 109*724ba675SRob Herring 110*724ba675SRob Herring&usb3 { 111*724ba675SRob Herring vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>; 112*724ba675SRob Herring}; 113*724ba675SRob Herring 114*724ba675SRob Herring&spi_nor { 115*724ba675SRob Herring status = "okay"; 116*724ba675SRob Herring}; 117*724ba675SRob Herring 118*724ba675SRob Herring&usb3_phy { 119*724ba675SRob Herring status = "okay"; 120*724ba675SRob Herring}; 121*724ba675SRob Herring 122*724ba675SRob Herring&srab { 123*724ba675SRob Herring status = "okay"; 124*724ba675SRob Herring 125*724ba675SRob Herring ports { 126*724ba675SRob Herring port@0 { 127*724ba675SRob Herring label = "lan4"; 128*724ba675SRob Herring }; 129*724ba675SRob Herring 130*724ba675SRob Herring port@1 { 131*724ba675SRob Herring label = "lan3"; 132*724ba675SRob Herring }; 133*724ba675SRob Herring 134*724ba675SRob Herring port@2 { 135*724ba675SRob Herring label = "lan2"; 136*724ba675SRob Herring }; 137*724ba675SRob Herring 138*724ba675SRob Herring port@3 { 139*724ba675SRob Herring label = "lan1"; 140*724ba675SRob Herring }; 141*724ba675SRob Herring 142*724ba675SRob Herring port@4 { 143*724ba675SRob Herring label = "wan"; 144*724ba675SRob Herring }; 145*724ba675SRob Herring 146*724ba675SRob Herring port@8 { 147*724ba675SRob Herring label = "cpu"; 148*724ba675SRob Herring }; 149*724ba675SRob Herring }; 150*724ba675SRob Herring}; 151