Linux Audio

Check our new training course

Loading...
v4.17
 1/*
 2 * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
 3 *
 4 * Licensed under the ISC license.
 5 */
 6
 7/dts-v1/;
 8
 9#include "bcm47094.dtsi"
10#include "bcm5301x-nand-cs0-bch8.dtsi"
11
12/ {
13	compatible = "netgear,r8500", "brcm,bcm47094", "brcm,bcm4708";
14	model = "Netgear R8500";
15
16	chosen {
17		bootargs = "console=ttyS0,115200";
18	};
19
20	memory {
21		reg = <0x00000000 0x08000000
22		       0x88000000 0x18000000>;
23	};
24
25	leds {
26		compatible = "gpio-leds";
27
28		power0 {
29			label = "bcm53xx:white:power";
30			gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
31			linux,default-trigger = "default-on";
32		};
33
34		power1 {
35			label = "bcm53xx:amber:power";
36			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
 
37		};
38
39		5ghz-1 {
40			label = "bcm53xx:white:5ghz-1";
41			gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
 
42		};
43
44		5ghz-2 {
45			label = "bcm53xx:white:5ghz-2";
46			gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
 
47		};
48
49		2ghz {
50			label = "bcm53xx:white:2ghz";
51			gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
 
52		};
53
54		usb2 {
55			label = "bcm53xx:white:usb2";
56			gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
 
57		};
58
59		usb3 {
60			label = "bcm53xx:white:usb3";
61			gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
 
62		};
63	};
64
65	gpio-keys {
66		compatible = "gpio-keys";
67		#address-cells = <1>;
68		#size-cells = <0>;
69
70		brightness {
71			label = "Backlight";
72			linux,code = <KEY_BRIGHTNESS_ZERO>;
73			gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
74		};
75
76		restart {
77			label = "Reset";
78			linux,code = <KEY_RESTART>;
79			gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
80		};
81
82		wps {
83			label = "WPS";
84			linux,code = <KEY_WPS_BUTTON>;
85			gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
86		};
87
88		rfkill {
89			label = "WiFi";
90			linux,code = <KEY_RFKILL>;
91			gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
92		};
93	};
 
 
 
 
94};
v4.10.11
  1/*
  2 * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
  3 *
  4 * Licensed under the ISC license.
  5 */
  6
  7/dts-v1/;
  8
  9#include "bcm47094.dtsi"
 10#include "bcm5301x-nand-cs0-bch8.dtsi"
 11
 12/ {
 13	compatible = "netgear,r8500", "brcm,bcm47094", "brcm,bcm4708";
 14	model = "Netgear R8500";
 15
 16	chosen {
 17		bootargs = "console=ttyS0,115200";
 18	};
 19
 20	memory {
 21		reg = <0x00000000 0x08000000>;
 
 22	};
 23
 24	leds {
 25		compatible = "gpio-leds";
 26
 27		power0 {
 28			label = "bcm53xx:white:power";
 29			gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
 30			linux,default-trigger = "default-on";
 31		};
 32
 33		power1 {
 34			label = "bcm53xx:amber:power";
 35			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
 36			linux,default-trigger = "default-off";
 37		};
 38
 39		5ghz-1 {
 40			label = "bcm53xx:white:5ghz-1";
 41			gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
 42			linux,default-trigger = "default-off";
 43		};
 44
 45		5ghz-2 {
 46			label = "bcm53xx:white:5ghz-2";
 47			gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
 48			linux,default-trigger = "default-off";
 49		};
 50
 51		2ghz {
 52			label = "bcm53xx:white:2ghz";
 53			gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
 54			linux,default-trigger = "default-off";
 55		};
 56
 57		usb2 {
 58			label = "bcm53xx:white:usb2";
 59			gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
 60			linux,default-trigger = "default-off";
 61		};
 62
 63		usb3 {
 64			label = "bcm53xx:white:usb3";
 65			gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
 66			linux,default-trigger = "default-off";
 67		};
 68	};
 69
 70	gpio-keys {
 71		compatible = "gpio-keys";
 72		#address-cells = <1>;
 73		#size-cells = <0>;
 74
 75		brightness {
 76			label = "Backlight";
 77			linux,code = <KEY_BRIGHTNESS_ZERO>;
 78			gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
 79		};
 80
 81		restart {
 82			label = "Reset";
 83			linux,code = <KEY_RESTART>;
 84			gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
 85		};
 86
 87		wps {
 88			label = "WPS";
 89			linux,code = <KEY_WPS_BUTTON>;
 90			gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
 91		};
 92
 93		rfkill {
 94			label = "WiFi";
 95			linux,code = <KEY_RFKILL>;
 96			gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
 97		};
 98	};
 99};
100
101&uart0 {
102	status = "okay";
103};