Linux Audio

Check our new training course

Linux kernel drivers training

May 6-19, 2025
Register
Loading...
v4.17
  1/*
  2 * Broadcom BCM470X / BCM5301X ARM platform code.
  3 * DTS for D-Link DIR-885L
  4 *
  5 * Copyright (C) 2016 Rafał Miłecki <zajec5@gmail.com>
  6 *
  7 * Permission to use, copy, modify, and/or distribute this software for any
  8 * purpose with or without fee is hereby granted, provided that the above
  9 * copyright notice and this permission notice appear in all copies.
 10 *
 11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
 12 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 13 * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
 14 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 15 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
 16 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 17 * PERFORMANCE OF THIS SOFTWARE.
 18 */
 19
 20/dts-v1/;
 21
 22#include "bcm47094.dtsi"
 23#include "bcm5301x-nand-cs0-bch1.dtsi"
 24
 25/ {
 26	compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708";
 27	model = "D-Link DIR-885L";
 28
 29	chosen {
 30		bootargs = "console=ttyS0,115200 earlycon";
 31	};
 32
 33	memory {
 34		reg = <0x00000000 0x08000000
 35		       0x88000000 0x08000000>;
 36	};
 37
 38	nand: nand@18028000 {
 39		nandcs@0 {
 40			partition@0 {
 41				label = "firmware";
 42				reg = <0x00000000 0x08000000>;
 43			};
 44		};
 45	};
 46
 47	leds {
 48		compatible = "gpio-leds";
 49
 50		power-white {
 51			label = "bcm53xx:white:power";
 52			gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
 53			linux,default-trigger = "default-on";
 54		};
 55
 56		wan-white {
 57			label = "bcm53xx:white:wan";
 58			gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
 
 59		};
 60
 61		power-amber {
 62			label = "bcm53xx:amber:power";
 63			gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
 
 64		};
 65
 66		wan-amber {
 67			label = "bcm53xx:amber:wan";
 68			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
 
 69		};
 70
 71		usb3-white {
 72			label = "bcm53xx:white:usb3";
 73			gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
 74			trigger-sources = <&ohci_port1>, <&ehci_port1>,
 75					  <&xhci_port1>;
 76			linux,default-trigger = "usbport";
 77		};
 78
 79		2ghz {
 80			label = "bcm53xx:white:2ghz";
 81			gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
 
 82		};
 83
 84		5ghz {
 85			label = "bcm53xx:white:5ghz";
 86			gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
 
 87		};
 88	};
 89
 90	gpio-keys {
 91		compatible = "gpio-keys";
 92		#address-cells = <1>;
 93		#size-cells = <0>;
 94
 95		wps {
 96			label = "WPS";
 97			linux,code = <KEY_WPS_BUTTON>;
 98			gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
 99		};
100
101		/* Switch: router / extender */
102		extender {
103			label = "Extender";
104			linux,code = <BTN_0>;
105			gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
106		};
107
108		restart {
109			label = "Reset";
110			linux,code = <KEY_RESTART>;
111			gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
112		};
113	};
114};
115
116&usb3 {
117	vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
118};
119
120&spi_nor {
121	status = "okay";
 
122};
v4.6
  1/*
  2 * Broadcom BCM470X / BCM5301X ARM platform code.
  3 * DTS for D-Link DIR-885L
  4 *
  5 * Copyright (C) 2016 Rafał Miłecki <zajec5@gmail.com>
  6 *
  7 * Licensed under the GNU/GPL. See COPYING for details.
 
 
 
 
 
 
 
 
 
 
  8 */
  9
 10/dts-v1/;
 11
 12#include "bcm4708.dtsi"
 13#include "bcm5301x-nand-cs0-bch8.dtsi"
 14
 15/ {
 16	compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708";
 17	model = "D-Link DIR-885L";
 18
 19	chosen {
 20		bootargs = "console=ttyS0,115200";
 21	};
 22
 23	memory {
 24		reg = <0x00000000 0x08000000>;
 
 25	};
 26
 27	nand: nand@18028000 {
 28		nandcs@0 {
 29			partition@0 {
 30				label = "firmware";
 31				reg = <0x00000000 0x08000000>;
 32			};
 33		};
 34	};
 35
 36	leds {
 37		compatible = "gpio-leds";
 38
 39		power-white {
 40			label = "bcm53xx:white:power";
 41			gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
 42			linux,default-trigger = "default-on";
 43		};
 44
 45		wan-white {
 46			label = "bcm53xx:white:wan";
 47			gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
 48			linux,default-trigger = "default-off";
 49		};
 50
 51		power-amber {
 52			label = "bcm53xx:amber:power";
 53			gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
 54			linux,default-trigger = "default-off";
 55		};
 56
 57		wan-amber {
 58			label = "bcm53xx:amber:wan";
 59			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
 60			linux,default-trigger = "default-off";
 61		};
 62
 63		usb3-white {
 64			label = "bcm53xx:white:usb3";
 65			gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
 66			linux,default-trigger = "default-off";
 
 
 67		};
 68
 69		2ghz {
 70			label = "bcm53xx:white:2ghz";
 71			gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
 72			linux,default-trigger = "default-off";
 73		};
 74
 75		5ghz {
 76			label = "bcm53xx:white:5ghz";
 77			gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
 78			linux,default-trigger = "default-off";
 79		};
 80	};
 81
 82	gpio-keys {
 83		compatible = "gpio-keys";
 84		#address-cells = <1>;
 85		#size-cells = <0>;
 86
 87		wps {
 88			label = "WPS";
 89			linux,code = <KEY_WPS_BUTTON>;
 90			gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
 91		};
 92
 93		/* Switch: router / extender */
 94		extender {
 95			label = "Extender";
 96			linux,code = <BTN_0>;
 97			gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
 98		};
 99
100		restart {
101			label = "Reset";
102			linux,code = <KEY_RESTART>;
103			gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
104		};
105	};
106};
107
108&uart0 {
 
 
 
 
109	status = "okay";
110	clock-frequency = <125000000>;
111};